var K4e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Szt=K4e((lf,$l)=>{(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 ma(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const mi={},Wm=[],pa=()=>{},Nm=()=>!1,Sv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),n3=e=>e.startsWith("onUpdate:"),fi=Object.assign,r3=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},q4e=Object.prototype.hasOwnProperty,$i=(e,t)=>q4e.call(e,t),Fn=Array.isArray,Gm=e=>Mg(e)==="[object Map]",kv=e=>Mg(e)==="[object Set]",xF=e=>Mg(e)==="[object Date]",Mue=e=>Mg(e)==="[object RegExp]",yr=e=>typeof e=="function",Er=e=>typeof e=="string",Ul=e=>typeof e=="symbol",Fi=e=>e!==null&&typeof e=="object",i3=e=>(Fi(e)||yr(e))&&yr(e.then)&&yr(e.catch),SV=Object.prototype.toString,Mg=e=>SV.call(e),Due=e=>Mg(e).slice(8,-1),Sk=e=>Mg(e)==="[object Object]",o3=e=>Er(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bh=ma(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Oue=ma("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),s3=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Y4e=/-\w/g,xo=s3(e=>e.replace(Y4e,t=>t.slice(1).toUpperCase())),X4e=/\B([A-Z])/g,ul=s3(e=>e.replace(X4e,"-$1").toLowerCase()),wv=s3(e=>e.charAt(0).toUpperCase()+e.slice(1)),Km=s3(e=>e?`on${wv(e)}`:""),al=(e,t)=>!Object.is(e,t),qm=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},E2=e=>{const t=parseFloat(e);return isNaN(t)?e:t},x2=e=>{const t=Er(e)?Number(e):NaN;return isNaN(t)?e:t};let Lee;const kk=()=>Lee||(Lee=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Z4e=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function J4e(e){return Z4e.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function Q4e(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const eAe={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"},tAe={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"},nAe={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"},rAe={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},iAe={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},oAe="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",wV=ma(oAe),sAe=wV,Pee=2;function $ue(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-Pee;c<=l+Pee||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 Ve(e){if(Fn(e)){const t={};for(let n=0;n{if(n){const r=n.split(lAe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function cAe(e){if(!e)return"";if(Er(e))return e;let t="";for(const n in e){const r=e[n];if(Er(r)||typeof r=="number"){const o=n.startsWith("--")?n:ul(n);t+=`${o}:${r};`}}return t}function le(e){let t="";if(Er(e))t=e;else if(Fn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,s8={};function gAe(e){if(s8.hasOwnProperty(e))return s8[e];const t=mAe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),s8[e]=!t}const yAe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},bAe=ma("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"),_Ae=ma("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"),SAe=ma("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 kAe(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const wAe=/["'&<>]/;function CAe(e){const t=""+e,n=wAe.exec(t);if(!n)return t;let r="",o,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function TAe(e,t){return e.replace(zue,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function AAe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rIh(n,t))}const Hue=e=>!!(e&&e.__v_isRef===!0),Be=e=>Er(e)?e:e==null?"":Fn(e)||Fi(e)&&(e.toString===SV||!yr(e.toString))?Hue(e)?Be(e.value):JSON.stringify(e,Wue,2):String(e),Wue=(e,t)=>Hue(t)?Wue(e,t.value):Gm(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[a8(r,a)+" =>"]=o,n),{})}:kv(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>a8(n))}:Ul(t)?a8(t):Fi(t)&&!Fn(t)&&!Sk(t)?String(t):t,a8=(e,t="")=>{var n;return Ul(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Gue(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const IAe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Wm,EMPTY_OBJ:mi,NO:Nm,NOOP:pa,PatchFlagNames:tAe,PatchFlags:eAe,ShapeFlags:nAe,SlotFlags:rAe,camelize:xo,capitalize:wv,cssVarNameEscapeSymbolsRE:zue,def:kV,escapeHtml:CAe,escapeHtmlComment:xAe,extend:fi,genCacheKey:Q4e,genPropsAccessExp:J4e,generateCodeFrame:$ue,getEscapedCssVarName:TAe,getGlobalThis:kk,hasChanged:al,hasOwn:$i,hyphenate:ul,includeBooleanAttr:EV,invokeArrayFns:qm,isArray:Fn,isBooleanAttr:vAe,isBuiltInDirective:Oue,isDate:xF,isFunction:yr,isGloballyAllowed:wV,isGloballyWhitelisted:sAe,isHTMLTag:Nue,isIntegerKey:o3,isKnownHtmlAttr:bAe,isKnownMathMLAttr:SAe,isKnownSvgAttr:_Ae,isMap:Gm,isMathMLTag:Fue,isModelListener:n3,isObject:Fi,isOn:Sv,isPlainObject:Sk,isPromise:i3,isRegExp:Mue,isRenderableAttrValue:kAe,isReservedProp:bh,isSSRSafeAttrName:gAe,isSVGTag:Bue,isSet:kv,isSpecialBooleanAttr:Vue,isString:Er,isSymbol:Ul,isVoidTag:jue,looseEqual:Ih,looseIndexOf:wk,looseToNumber:E2,makeMap:ma,normalizeClass:le,normalizeCssVarValue:Gue,normalizeProps:Ni,normalizeStyle:Ve,objectToString:SV,parseStringStyle:CV,propsToAttrMap:yAe,remove:r3,slotFlagsText:iAe,stringifyStyle:cAe,toDisplayString:Be,toHandlerKey:Km,toNumber:x2,toRawType:Due,toTypeString:Mg},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let nl;class xV{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=nl,!t&&nl&&(this.index=(nl.scopes||(nl.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&&(nl=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(IS){let t=IS;for(IS=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;AS;){let t=AS;for(AS=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 Yue(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xue(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),PV(r),LAe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function TF(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zue(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zue(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===A2)||(e.globalVersion=A2,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!TF(e))))return;e.flags|=2;const t=e.dep,n=wo,r=yd;wo=e,yd=!0;try{Yue(e);const o=e.fn(e._value);(t.version===0||al(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{wo=n,yd=r,Xue(e),e.flags&=-3}}function PV(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)PV(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function LAe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function PAe(e,t){e.effect instanceof T2&&(e=e.effect.fn);const n=new T2(e);t&&fi(n,t);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function RAe(e){e.effect.stop()}let yd=!0;const Jue=[];function Lh(){Jue.push(yd),yd=!1}function Ph(){const e=Jue.pop();yd=e===void 0?!0:e}function Ree(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=wo;wo=void 0;try{t()}finally{wo=n}}}let A2=0,MAe=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 l3{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(!wo||!yd||wo===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==wo)n=this.activeLink=new MAe(wo,this),wo.deps?(n.prevDep=wo.depsTail,wo.depsTail.nextDep=n,wo.depsTail=n):wo.deps=wo.depsTail=n,Que(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=wo.depsTail,n.nextDep=void 0,wo.depsTail.nextDep=n,wo.depsTail=n,wo.deps===n&&(wo.deps=r)}return n}trigger(t){this.version++,A2++,this.notify(t)}notify(t){IV();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{LV()}}}function Que(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)Que(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const SA=new WeakMap,Ym=Symbol(""),AF=Symbol(""),I2=Symbol("");function ll(e,t,n){if(yd&&wo){let r=SA.get(e);r||SA.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new l3),o.map=r,o.key=n),o.track()}}function dh(e,t,n,r,o,a){const s=SA.get(e);if(!s){A2++;return}const l=c=>{c&&c.trigger()};if(IV(),t==="clear")s.forEach(l);else{const c=Fn(e),f=c&&o3(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,m)=>{(m==="length"||m===I2||!Ul(m)&&m>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),f&&l(s.get(I2)),t){case"add":c?f&&l(s.get("length")):(l(s.get(Ym)),Gm(e)&&l(s.get(AF)));break;case"delete":c||(l(s.get(Ym)),Gm(e)&&l(s.get(AF)));break;case"set":Gm(e)&&l(s.get(Ym));break}}LV()}function DAe(e,t){const n=SA.get(e);return n&&n.get(t)}function W0(e){const t=Ti(e);return t===e?t:(ll(t,"iterate",I2),Qu(e)?t:t.map(La))}function u3(e){return ll(e=Ti(e),"iterate",I2),e}const OAe={__proto__:null,[Symbol.iterator](){return u8(this,Symbol.iterator,La)},concat(...e){return W0(this).concat(...e.map(t=>Fn(t)?W0(t):t))},entries(){return u8(this,"entries",e=>(e[1]=La(e[1]),e))},every(e,t){return Xf(this,"every",e,t,void 0,arguments)},filter(e,t){return Xf(this,"filter",e,t,n=>n.map(La),arguments)},find(e,t){return Xf(this,"find",e,t,La,arguments)},findIndex(e,t){return Xf(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xf(this,"findLast",e,t,La,arguments)},findLastIndex(e,t){return Xf(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xf(this,"forEach",e,t,void 0,arguments)},includes(...e){return c8(this,"includes",e)},indexOf(...e){return c8(this,"indexOf",e)},join(e){return W0(this).join(e)},lastIndexOf(...e){return c8(this,"lastIndexOf",e)},map(e,t){return Xf(this,"map",e,t,void 0,arguments)},pop(){return A_(this,"pop")},push(...e){return A_(this,"push",e)},reduce(e,...t){return Mee(this,"reduce",e,t)},reduceRight(e,...t){return Mee(this,"reduceRight",e,t)},shift(){return A_(this,"shift")},some(e,t){return Xf(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 u8(this,"values",La)}};function u8(e,t,n){const r=u3(e),o=r[t]();return r!==e&&!Qu(e)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.done||(a.value=n(a.value)),a}),o}const $Ae=Array.prototype;function Xf(e,t,n,r,o,a){const s=u3(e),l=s!==e&&!Qu(e),c=s[t];if(c!==$Ae[t]){const p=c.apply(e,a);return l?La(p):p}let f=n;s!==e&&(l?f=function(p,m){return n.call(this,La(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 Mee(e,t,n,r){const o=u3(e);let a=n;return o!==e&&(Qu(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,La(l),c,e)}),o[t](a,...r)}function c8(e,t,n){const r=Ti(e);ll(r,"iterate",I2);const o=r[t](...n);return(o===-1||o===!1)&&f3(n[0])?(n[0]=Ti(n[0]),r[t](...n)):o}function A_(e,t,n=[]){Lh(),IV();const r=Ti(e)[t].apply(e,n);return LV(),Ph(),r}const NAe=ma("__proto__,__v_isRef,__isVue"),ece=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ul));function BAe(e){Ul(e)||(e=String(e));const t=Ti(this);return ll(t,"has",e),t.hasOwnProperty(e)}class tce{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?ace:sce:a?oce:ice).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Fn(t);if(!o){let c;if(s&&(c=OAe[n]))return c;if(n==="hasOwnProperty")return BAe}const l=Reflect.get(t,n,To(t)?t:r);if((Ul(n)?ece.has(n):NAe(n))||(o||ll(t,"get",n),a))return l;if(To(l)){const c=s&&o3(n)?l:l.value;return o&&Fi(c)?L2(c):c}return Fi(l)?o?L2(l):Ht(l):l}}class nce extends tce{constructor(t=!1){super(!1,t)}set(t,n,r,o){let a=t[n];if(!this._isShallow){const c=Rh(a);if(!Qu(r)&&!Rh(r)&&(a=Ti(a),r=Ti(r)),!Fn(t)&&To(a)&&!To(r))return c||(a.value=r),!0}const s=Fn(t)&&o3(n)?Number(n)e,BE=e=>Reflect.getPrototypeOf(e);function zAe(e,t,n){return function(...r){const o=this.__v_raw,a=Ti(o),s=Gm(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,f=o[e](...r),h=n?IF:t?kA:La;return!t&&ll(a,"iterate",c?AF:Ym),{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 FE(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function HAe(e,t){const n={get(o){const a=this.__v_raw,s=Ti(a),l=Ti(o);e||(al(o,l)&&ll(s,"get",o),ll(s,"get",l));const{has:c}=BE(s),f=t?IF:e?kA:La;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&&ll(Ti(o),"iterate",Ym),o.size},has(o){const a=this.__v_raw,s=Ti(a),l=Ti(o);return e||(al(o,l)&&ll(s,"has",o),ll(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=Ti(l),f=t?IF:e?kA:La;return!e&&ll(c,"iterate",Ym),l.forEach((h,p)=>o.call(a,f(h),f(p),s))}};return fi(n,e?{add:FE("add"),set:FE("set"),delete:FE("delete"),clear:FE("clear")}:{add(o){!t&&!Qu(o)&&!Rh(o)&&(o=Ti(o));const a=Ti(this);return BE(a).has.call(a,o)||(a.add(o),dh(a,"add",o,o)),this},set(o,a){!t&&!Qu(a)&&!Rh(a)&&(a=Ti(a));const s=Ti(this),{has:l,get:c}=BE(s);let f=l.call(s,o);f||(o=Ti(o),f=l.call(s,o));const h=c.call(s,o);return s.set(o,a),f?al(a,h)&&dh(s,"set",o,a):dh(s,"add",o,a),this},delete(o){const a=Ti(this),{has:s,get:l}=BE(a);let c=s.call(a,o);c||(o=Ti(o),c=s.call(a,o)),l&&l.call(a,o);const f=a.delete(o);return c&&dh(a,"delete",o,void 0),f},clear(){const o=Ti(this),a=o.size!==0,s=o.clear();return a&&dh(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=zAe(o,e,t)}),n}function c3(e,t){const n=HAe(e,t);return(r,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get($i(n,o)&&o in r?n:r,o,a)}const WAe={get:c3(!1,!1)},GAe={get:c3(!1,!0)},KAe={get:c3(!0,!1)},qAe={get:c3(!0,!0)},ice=new WeakMap,oce=new WeakMap,sce=new WeakMap,ace=new WeakMap;function YAe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function XAe(e){return e.__v_skip||!Object.isExtensible(e)?0:YAe(Due(e))}function Ht(e){return Rh(e)?e:d3(e,!1,FAe,WAe,ice)}function RV(e){return d3(e,!1,UAe,GAe,oce)}function L2(e){return d3(e,!0,jAe,KAe,sce)}function ZAe(e){return d3(e,!0,VAe,qAe,ace)}function d3(e,t,n,r,o){if(!Fi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=XAe(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 uf(e){return Rh(e)?uf(e.__v_raw):!!(e&&e.__v_isReactive)}function Rh(e){return!!(e&&e.__v_isReadonly)}function Qu(e){return!!(e&&e.__v_isShallow)}function f3(e){return e?!!e.__v_raw:!1}function Ti(e){const t=e&&e.__v_raw;return t?Ti(t):e}function h3(e){return!$i(e,"__v_skip")&&Object.isExtensible(e)&&kV(e,"__v_skip",!0),e}const La=e=>Fi(e)?Ht(e):e,kA=e=>Fi(e)?L2(e):e;function To(e){return e?e.__v_isRef===!0:!1}function pe(e){return lce(e,!1)}function Xm(e){return lce(e,!0)}function lce(e,t){return To(e)?e:new JAe(e,t)}class JAe{constructor(t,n){this.dep=new l3,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ti(t),this._value=n?t:La(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Qu(t)||Rh(t);t=r?t:Ti(t),al(t,n)&&(this._rawValue=t,this._value=r?t:La(t),this.dep.trigger())}}function QAe(e){e.dep&&e.dep.trigger()}function st(e){return To(e)?e.value:e}function eIe(e){return yr(e)?e():st(e)}const tIe={get:(e,t,n)=>t==="__v_raw"?e:st(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return To(o)&&!To(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function MV(e){return uf(e)?e:new Proxy(e,tIe)}class nIe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new l3,{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 uce(e){return new nIe(e)}function Zt(e){const t=Fn(e)?new Array(e.length):{};for(const n in e)t[n]=cce(e,n);return t}class rIe{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 DAe(Ti(this._object),this._key)}}class iIe{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 wu(e,t,n){return To(e)?e:yr(e)?new iIe(e):Fi(e)&&arguments.length>1?cce(e,t,n):pe(e)}function cce(e,t,n){const r=e[t];return To(r)?r:new rIe(e,t,n)}class oIe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new l3(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=A2-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&wo!==this)return que(this,!0),!0}get value(){const t=this.dep.track();return Zue(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function sIe(e,t,n=!1){let r,o;return yr(e)?r=e:(r=e.get,o=e.set),new oIe(r,o,n)}const aIe={GET:"get",HAS:"has",ITERATE:"iterate"},lIe={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},jE={},wA=new WeakMap;let $p;function uIe(){return $p}function dce(e,t=!1,n=$p){if(n){let r=wA.get(n);r||wA.set(n,r=[]),r.push(e)}}function cIe(e,t,n=mi){const{immediate:r,deep:o,once:a,scheduler:s,augmentJob:l,call:c}=n,f=_=>o?_:Qu(_)||o===!1||o===0?fh(_,1):fh(_);let h,p,m,g,b=!1,S=!1;if(To(e)?(p=()=>e.value,b=Qu(e)):uf(e)?(p=()=>f(e),b=!0):Fn(e)?(S=!0,b=e.some(_=>uf(_)||Qu(_)),p=()=>e.map(_=>{if(To(_))return _.value;if(uf(_))return f(_);if(yr(_))return c?c(_,2):_()})):yr(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){Lh();try{m()}finally{Ph()}}const _=$p;$p=h;try{return c?c(e,3,[g]):e(g)}finally{$p=_}}:p=pa,t&&o){const _=p,A=o===!0?1/0:o;p=()=>fh(_(),A)}const k=a3(),C=()=>{h.stop(),k&&k.active&&r3(k.effects,h)};if(a&&t){const _=t;t=(...A)=>{_(...A),C()}}let E=S?new Array(e.length).fill(jE):jE;const x=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(t){const A=h.run();if(o||b||(S?A.some((R,M)=>al(R,E[M])):al(A,E))){m&&m();const R=$p;$p=h;try{const M=[A,E===jE?void 0:S&&E[0]===jE?[]:E,g];E=A,c?c(t,3,M):t(...M)}finally{$p=R}}}else h.run()};return l&&l(x),h=new T2(p),h.scheduler=s?()=>s(x,!1):x,g=_=>dce(_,!1,h),m=h.onStop=()=>{const _=wA.get(h);if(_){if(c)c(_,4);else for(const A of _)A();wA.delete(h)}},t?r?x(!0):E=h.run():s?s(x.bind(null,!0),!0):h.run(),C.pause=h.pause.bind(h),C.resume=h.resume.bind(h),C.stop=C,C}function fh(e,t=1/0,n){if(t<=0||!Fi(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,To(e))fh(e.value,t,n);else if(Fn(e))for(let r=0;r{fh(r,t,n)});else if(Sk(e)){for(const r in e)fh(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&fh(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const fce=[];function dIe(e){fce.push(e)}function fIe(){fce.pop()}function hIe(e,t){}const pIe={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"},vIe={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){Dg(o,t,n)}}function Bc(e,t,n,r){if(yr(e)){const o=j1(e,t,n,r);return o&&i3(o)&&o.catch(a=>{Dg(a,t,n)}),o}if(Fn(e)){const o=[];for(let a=0;a>>1,o=Ml[r],a=R2(o);a=R2(n)?Ml.push(e):Ml.splice(gIe(t),0,e),e.flags|=1,pce()}}function pce(){CA||(CA=hce.then(vce))}function P2(e){Fn(e)?By.push(...e):Np&&e.id===-1?Np.splice(by+1,0,e):e.flags&1||(By.push(e),e.flags|=1),pce()}function Dee(e,t,n=Kd+1){for(;nR2(n)-R2(r));if(By.length=0,Np){Np.push(...t);return}for(Np=t,by=0;bye.id==null?e.flags&2?-1:1/0:e.id;function vce(e){try{for(Kd=0;Kd_y.emit(o,...a)),UE=[]):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=>{mce(a,t)}),setTimeout(()=>{_y||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,UE=[])},3e3)):UE=[]}let Oa=null,p3=null;function M2(e){const t=Oa;return Oa=e,p3=e&&e.type.__scopeId||null,t}function yIe(e){p3=e}function bIe(){p3=null}const _Ie=e=>de;function de(e,t=Oa,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&$2(-1);const a=M2(t);let s;try{s=e(...o)}finally{M2(a),r._d&&$2(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function wi(e,t){if(Oa===null)return e;const n=xk(Oa),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,LS=e=>e&&(e.disabled||e.disabled===""),Oee=e=>e&&(e.defer||e.defer===""),$ee=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Nee=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,LF=(e,t)=>{const n=e&&e.to;return Er(n)?t?t(n):null:n},bce={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=LS(t.props);let{shapeFlag:E,children:x,dynamicChildren:_}=t;if(e==null){const A=t.el=S(""),R=t.anchor=S("");g(A,n,r),g(R,n,r);const M=($,L)=>{E&16&&h(x,$,L,o,a,s,l,c)},D=()=>{const $=t.target=LF(t.props,b),L=_ce($,t,S,g);$&&(s!=="svg"&&$ee($)?s="svg":s!=="mathml"&&Nee($)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add($),C||(M($,L),ET(t,!1)))};C&&(M(n,R),ET(t,!0)),Oee(t.props)?(t.el.__isMounted=!1,na(()=>{D(),delete t.el.__isMounted},a)):D()}else{if(Oee(t.props)&&e.el.__isMounted===!1){na(()=>{bce.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=LS(e.props),$=D?n:R,L=D?A:M;if(s==="svg"||$ee(R)?s="svg":(s==="mathml"||Nee(R))&&(s="mathml"),_?(m(e.dynamicChildren,_,$,o,a,s,l),GV(e,t,!0)):c||p(e,t,$,L,o,a,s,l,!1),C)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):VE(t,n,A,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=LF(t.props,b);B&&VE(t,B,null,f,0)}else D&&VE(t,R,M,f,1);ET(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||!LS(m);for(let b=0;b{e.isMounted=!0}),$o(()=>{e.isUnmounting=!0}),e}const vc=[Function,Array],$V={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:vc,onEnter:vc,onAfterEnter:vc,onEnterCancelled:vc,onBeforeLeave:vc,onLeave:vc,onAfterLeave:vc,onLeaveCancelled:vc,onBeforeAppear:vc,onAppear:vc,onAfterAppear:vc,onAppearCancelled:vc},Sce=e=>{const t=e.subTree;return t.component?Sce(t.component):t},kIe={name:"BaseTransition",props:$V,setup(e,{slots:t}){const n=uo(),r=OV();return()=>{const o=t.default&&v3(t.default(),!0);if(!o||!o.length)return;const a=kce(o),s=Ti(e),{mode:l}=s;if(r.isLeaving)return d8(a);const c=Bee(a);if(!c)return d8(a);let f=d1(c,s,r,n,p=>f=p);c.type!==ds&&Mh(c,f);let h=n.subTree&&Bee(n.subTree);if(h&&h.type!==ds&&!hd(h,c)&&Sce(n).type!==ds){let p=d1(h,s,r,n);if(Mh(h,p),l==="out-in"&&c.type!==ds)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},d8(a);l==="in-out"&&c.type!==ds?p.delayLeave=(m,g,b)=>{const S=Cce(r,h);S[String(h.key)]=h,m[uh]=()=>{g(),m[uh]=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 kce(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ds){t=n;break}}return t}const wce=kIe;function Cce(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:E,onAppearCancelled:x}=t,_=String(e.key),A=Cce(n,e),R=($,L)=>{$&&Bc($,r,9,L)},M=($,L)=>{const B=L[1];R($,L),Fn($)?$.every(F=>F.length<=1)&&B():$.length<=1&&B()},D={mode:s,persisted:l,beforeEnter($){let L=c;if(!n.isMounted)if(a)L=k||c;else return;$[uh]&&$[uh](!0);const B=A[_];B&&hd(e,B)&&B.el[uh]&&B.el[uh](),R(L,[$])},enter($){let L=f,B=h,F=p;if(!n.isMounted)if(a)L=C||f,B=E||h,F=x||p;else return;let U=!1;const z=$[zE]=G=>{U||(U=!0,G?R(F,[$]):R(B,[$]),D.delayedLeave&&D.delayedLeave(),$[zE]=void 0)};L?M(L,[$,z]):z()},leave($,L){const B=String(e.key);if($[zE]&&$[zE](!0),n.isUnmounting)return L();R(m,[$]);let F=!1;const U=$[uh]=z=>{F||(F=!0,L(),z?R(S,[$]):R(b,[$]),$[uh]=void 0,A[B]===e&&delete A[B])};A[B]=e,g?M(g,[$,U]):U()},clone($){const L=d1($,t,n,r,o);return o&&o(L),L}};return D}function d8(e){if(Ck(e))return e=vl(e),e.children=null,e}function Bee(e){if(!Ck(e))return yce(e.type)&&e.children?kce(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&&yr(n.default))return n.default()}}function Mh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Mh(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 v3(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 xA=new WeakMap;function Fy(e,t,n,r,o=!1){if(Fn(e)){e.forEach((b,S)=>Fy(b,t&&(Fn(t)?t[S]:t),n,r,o));return}if(ev(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?xk(r.component):r.el,s=o?null:a,{i:l,r:c}=e,f=t&&t.r,h=l.refs===mi?l.refs={}:l.refs,p=l.setupState,m=Ti(p),g=p===mi?Nm:b=>$i(m,b);if(f!=null&&f!==c){if(Fee(t),Er(f))h[f]=null,g(f)&&(p[f]=null);else if(To(f)){f.value=null;const b=t;b.k&&(h[b.k]=null)}}if(yr(c))j1(c,l,12,[s,h]);else{const b=Er(c),S=To(c);if(b||S){const k=()=>{if(e.f){const C=b?g(c)?p[c]:h[c]:c.value;if(o)Fn(C)&&r3(C,a);else if(Fn(C))C.includes(a)||C.push(a);else if(b)h[c]=[a],g(c)&&(p[c]=h[c]);else{const E=[a];c.value=E,e.k&&(h[e.k]=E)}}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(),xA.delete(e)};C.id=-1,xA.set(e,C),na(C,n)}else Fee(e),k()}}}function Fee(e){const t=xA.get(e);t&&(t.flags|=8,xA.delete(e))}let jee=!1;const G0=()=>{jee||(console.error("Hydration completed but contains mismatches."),jee=!0)},EIe=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",xIe=e=>e.namespaceURI.includes("MathML"),HE=e=>{if(e.nodeType===1){if(EIe(e))return"svg";if(xIe(e))return"mathml"}},Ty=e=>e.nodeType===8;function TIe(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:f}}=e,h=(x,_)=>{if(!_.hasChildNodes()){n(null,x,_),EA(),_._vnode=x;return}p(_.firstChild,x,null,null,null),EA(),_._vnode=x},p=(x,_,A,R,M,D=!1)=>{D=D||!!_.dynamicChildren;const $=Ty(x)&&x.data==="[",L=()=>S(x,_,A,R,M,$),{type:B,ref:F,shapeFlag:U,patchFlag:z}=_;let G=x.nodeType;_.el=x,z===-2&&(D=!1,_.dynamicChildren=null);let Y=null;switch(B){case tv:G!==3?_.children===""?(c(_.el=o(""),s(x),x),Y=x):Y=L():(x.data!==_.children&&(G0(),x.data=_.children),Y=a(x));break;case ds:E(x)?(Y=a(x),C(_.el=x.content.firstChild,x,A)):G!==8||$?Y=L():Y=a(x);break;case Jm:if($&&(x=a(x),G=x.nodeType),G===1||G===3){Y=x;const re=!_.children.length;for(let te=0;te<_.staticCount;te++)re&&(_.children+=Y.nodeType===1?Y.outerHTML:Y.data),te===_.staticCount-1&&(_.anchor=Y),Y=a(Y);return $?a(Y):Y}else L();break;case Ft:$?Y=b(x,_,A,R,M,D):Y=L();break;default:if(U&1)(G!==1||_.type.toLowerCase()!==x.tagName.toLowerCase())&&!E(x)?Y=L():Y=m(x,_,A,R,M,D);else if(U&6){_.slotScopeIds=M;const re=s(x);if($?Y=k(x):Ty(x)&&x.data==="teleport start"?Y=k(x,x.data,"teleport end"):Y=a(x),t(_,re,null,A,R,HE(re),D),ev(_)&&!_.type.__asyncResolved){let te;$?(te=O(Ft),te.anchor=Y?Y.previousSibling:re.lastChild):te=x.nodeType===3?We(""):O("div"),te.el=x,_.component.subTree=te}}else U&64?G!==8?Y=L():Y=_.type.hydrate(x,_,A,R,M,D,e,g):U&128&&(Y=_.type.hydrate(x,_,A,R,HE(s(x)),M,D,e,p))}return F!=null&&Fy(F,null,R,_),Y},m=(x,_,A,R,M,D)=>{D=D||!!_.dynamicChildren;const{type:$,props:L,patchFlag:B,shapeFlag:F,dirs:U,transition:z}=_,G=$==="input"||$==="option";if(G||B!==-1){U&&Yd(_,null,A,"created");let Y=!1;if(E(x)){Y=qce(null,z)&&A&&A.vnode.props&&A.vnode.props.appear;const te=x.content.firstChild;if(Y){const X=te.getAttribute("class");X&&(te.$cls=X),z.beforeEnter(te)}C(te,x,A),_.el=x=te}if(F&16&&!(L&&(L.innerHTML||L.textContent))){let te=g(x.firstChild,_,x,A,R,M,D);for(;te;){WE(x,1)||G0();const X=te;te=te.nextSibling,l(X)}}else if(F&8){let te=_.children;te[0]===` `&&(x.tagName==="PRE"||x.tagName==="TEXTAREA")&&(te=te.slice(1)),x.textContent!==te&&(WE(x,0)||G0(),x.textContent=_.children)}if(L){if(G||!D||B&48){const te=x.tagName.includes("-");for(const X in L)(G&&(X.endsWith("value")||X==="indeterminate")||Sv(X)&&!bh(X)||X[0]==="."||te)&&r(x,X,null,L[X],void 0,A)}else if(L.onClick)r(x,"onClick",null,L.onClick,void 0,A);else if(B&4&&uf(L.style))for(const te in L.style)L.style[te]}let re;(re=L&&L.onVnodeBeforeMount)&&uu(re,A,_),U&&Yd(_,null,A,"beforeMount"),((re=L&&L.onVnodeMounted)||U||Y)&&rde(()=>{re&&uu(re,A,_),Y&&z.enter(x),U&&Yd(_,null,A,"mounted")},R)}return x.nextSibling},g=(x,_,A,R,M,D,$)=>{$=$||!!_.dynamicChildren;const L=_.children,B=L.length;for(let F=0;F{const{slotScopeIds:$}=_;$&&(M=M?M.concat($):$);const L=s(x),B=g(a(x),_,L,A,R,M,D);return B&&Ty(B)&&B.data==="]"?a(_.anchor=B):(G0(),c(_.anchor=f("]"),L,B),B)},S=(x,_,A,R,M,D)=>{if(WE(x.parentElement,1)||G0(),_.el=null,D){const B=k(x);for(;;){const F=a(x);if(F&&F!==B)l(F);else break}}const $=a(x),L=s(x);return l(x),n(null,_,L,$,A,R,HE(L),M),A&&(A.vnode.el=_.el,y3(A,_.el)),$},k=(x,_="[",A="]")=>{let R=0;for(;x;)if(x=a(x),x&&Ty(x)&&(x.data===_&&R++,x.data===A)){if(R===0)return a(x);R--}return x},C=(x,_,A)=>{const R=_.parentNode;R&&R.replaceChild(x,_);let M=A;for(;M;)M.vnode.el===_&&(M.vnode.el=M.subTree.el=x),M=M.parent},E=x=>x.nodeType===1&&x.tagName==="TEMPLATE";return[h,p]}const Uee="data-allow-mismatch",AIe={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function WE(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Uee);)e=e.parentElement;const n=e&&e.getAttribute(Uee);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(AIe[t])}}const IIe=kk().requestIdleCallback||(e=>setTimeout(e,1)),LIe=kk().cancelIdleCallback||(e=>clearTimeout(e)),PIe=(e=1e4)=>t=>{const n=IIe(t,{timeout:e});return()=>LIe(n)};function RIe(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(RIe(o))return t(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},DIe=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},OIe=(e=[])=>(t,n)=>{Er(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 $Ie(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 ev=e=>!!e.type.__asyncLoader;function $g(e){yr(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 be({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(b,S,k){let C=!1;(S.bu||(S.bu=[])).push(()=>C=!0);const E=()=>{C||k()},x=a?()=>{const _=a(E,A=>$Ie(b,A));_&&(S.bum||(S.bum=[])).push(_)}:E;h?x():g().then(()=>!S.isUnmounted&&x())},get __asyncResolved(){return h},setup(){const b=Da;if(NV(b),h)return()=>f8(h,b);const S=x=>{f=null,Dg(x,b,13,!r)};if(l&&b.suspense||f1)return g().then(x=>()=>f8(x,b)).catch(x=>(S(x),()=>r?O(r,{error:x}):null));const k=pe(!1),C=pe(),E=pe(!!o);return o&&setTimeout(()=>{E.value=!1},o),s!=null&&setTimeout(()=>{if(!k.value&&!C.value){const x=new Error(`Async component timed out after ${s}ms.`);S(x),C.value=x}},s),g().then(()=>{k.value=!0,b.parent&&Ck(b.parent.vnode)&&b.parent.update()}).catch(x=>{S(x),C.value=x}),()=>{if(k.value&&h)return f8(h,b);if(C.value&&r)return O(r,{error:C.value});if(n&&!E.value)return O(n)}}})}function f8(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 Ck=e=>e.type.__isKeepAlive,NIe={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=uo(),r=n.ctx;if(!r.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};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=(E,x,_,A,R)=>{const M=E.component;f(E,x,_,0,l),c(M.vnode,E,x,_,M,l,A,E.slotScopeIds,R),na(()=>{M.isDeactivated=!1,M.a&&qm(M.a);const D=E.props&&E.props.onVnodeMounted;D&&uu(D,M.parent,E)},l)},r.deactivate=E=>{const x=E.component;AA(x.m),AA(x.a),f(E,m,null,1,l),na(()=>{x.da&&qm(x.da);const _=E.props&&E.props.onVnodeUnmounted;_&&uu(_,x.parent,E),x.isDeactivated=!0},l)};function g(E){h8(E),h(E,n,l,!0)}function b(E){o.forEach((x,_)=>{const A=UF(x.type);A&&!E(A)&&S(_)})}function S(E){const x=o.get(E);x&&(!s||!hd(x,s))?g(x):s&&h8(s),o.delete(E),a.delete(E)}Dt(()=>[e.include,e.exclude],([E,x])=>{E&&b(_=>uS(E,_)),x&&b(_=>!uS(x,_))},{flush:"post",deep:!0});let k=null;const C=()=>{k!=null&&(IA(n.subTree.type)?na(()=>{o.set(k,GE(n.subTree))},n.subTree.suspense):o.set(k,GE(n.subTree)))};return dn(C),za(C),$o(()=>{o.forEach(E=>{const{subTree:x,suspense:_}=n,A=GE(x);if(E.type===A.type&&E.key===A.key){h8(A);const R=A.component.da;R&&na(R,_);return}g(E)})}),()=>{if(k=null,!t.default)return s=null;const E=t.default(),x=E[0];if(E.length>1)return s=null,E;if(!Di(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return s=null,x;let _=GE(x);if(_.type===ds)return s=null,_;const A=_.type,R=UF(ev(_)?_.type.__asyncResolved||{}:A),{include:M,exclude:D,max:$}=e;if(M&&(!R||!uS(M,R))||D&&R&&uS(D,R))return _.shapeFlag&=-257,s=_,x;const L=_.key==null?A:_.key,B=o.get(L);return _.el&&(_=vl(_),x.shapeFlag&128&&(x.ssContent=_)),k=L,B?(_.el=B.el,_.component=B.component,_.transition&&Mh(_,_.transition),_.shapeFlag|=512,a.delete(L),a.add(L)):(a.add(L),$&&a.size>parseInt($,10)&&S(a.values().next().value)),_.shapeFlag|=256,s=_,IA(x.type)?x:_}}},BIe=NIe;function uS(e,t){return Fn(e)?e.some(n=>uS(n,t)):Er(e)?e.split(",").includes(t):Mue(e)?(e.lastIndex=0,e.test(t)):!1}function Ece(e,t){xce(e,"a",t)}function BV(e,t){xce(e,"da",t)}function xce(e,t,n=Da){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(m3(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ck(o.parent.vnode)&&FIe(r,t,n,o),o=o.parent}}function FIe(e,t,n,r){const o=m3(t,e,r,!0);hi(()=>{r3(r[t],o)},n)}function h8(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function GE(e){return e.shapeFlag&128?e.ssContent:e}function m3(e,t,n=Da,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{Lh();const l=vg(n),c=Bc(t,n,e,s);return l(),Ph(),c});return r?o.unshift(a):o.push(a),a}}const Bh=e=>(t,n=Da)=>{(!f1||e==="sp")&&m3(e,(...r)=>t(...r),n)},Tce=Bh("bm"),dn=Bh("m"),FV=Bh("bu"),za=Bh("u"),$o=Bh("bum"),hi=Bh("um"),Ace=Bh("sp"),Ice=Bh("rtg"),Lce=Bh("rtc");function Pce(e,t=Da){m3("ec",e,t)}const jV="components",jIe="directives";function Me(e,t){return UV(jV,e,!0,t)||e}const Rce=Symbol.for("v-ndc");function $a(e){return Er(e)?UV(jV,e,!1)||e:e||Rce}function U1(e){return UV(jIe,e)}function UV(e,t,n=!0,r=!1){const o=Oa||Da;if(o){const a=o.type;if(e===jV){const l=UF(a,!1);if(l&&(l===t||l===xo(t)||l===wv(xo(t))))return a}const s=Vee(o[e]||a[e],t)||Vee(o.appContext[e],t);return!s&&r?a:s}}function Vee(e,t){return e&&(e[t]||e[xo(t)]||e[wv(xo(t))])}function fn(e,t,n,r){let o;const a=n&&n[r],s=Fn(e);if(s||Er(e)){const l=s&&uf(e);let c=!1,f=!1;l&&(c=!Qu(e),f=Rh(e),e=u3(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 ft(e,t,n={},r,o){if(Oa.ce||Oa.parent&&ev(Oa.parent)&&Oa.parent.ce){const f=Object.keys(n).length>0;return t!=="default"&&(n.name=t),H(),Xe(Ft,null,[O("slot",n,r&&r())],f?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),H();const s=a&&VV(a(n)),l=n.key||s&&s.key,c=Xe(Ft,{key:(l&&!Ul(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 VV(e){return e.some(t=>Di(t)?!(t.type===ds||t.type===Ft&&!VV(t.children)):!0)?e:null}function UIe(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Km(r)]=e[r];return n}const PF=e=>e?lde(e)?xk(e):PF(e.parent):null,PS=fi(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=>PF(e.parent),$root:e=>PF(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zV(e),$forceUpdate:e=>e.f||(e.f=()=>{DV(e.update)}),$nextTick:e=>e.n||(e.n=kn.bind(e.proxy)),$watch:e=>g3e.bind(e)}),p8=(e,t)=>e!==mi&&!e.__isScriptSetup&&$i(e,t),RF={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(p8(r,t))return s[t]=1,r[t];if(o!==mi&&$i(o,t))return s[t]=2,o[t];if((f=e.propsOptions[0])&&$i(f,t))return s[t]=3,a[t];if(n!==mi&&$i(n,t))return s[t]=4,n[t];MF&&(s[t]=0)}}const h=PS[t];let p,m;if(h)return t==="$attrs"&&ll(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==mi&&$i(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,$i(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return p8(o,t)?(o[t]=n,!0):r!==mi&&$i(r,t)?(r[t]=n,!0):$i(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!==mi&&l[0]!=="$"&&$i(e,l)||p8(t,l)||(c=a[0])&&$i(c,l)||$i(r,l)||$i(PS,l)||$i(o.config.globalProperties,l)||(f=s.__cssModules)&&f[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$i(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},VIe=fi({},RF,{get(e,t){if(t!==Symbol.unscopables)return RF.get(e,t,e)},has(e,t){return t[0]!=="_"&&!wV(t)}});function zIe(){return null}function HIe(){return null}function WIe(e){}function GIe(e){}function KIe(){return null}function qIe(){}function YIe(e,t){return null}function XIe(){return Mce().slots}function ZIe(){return Mce().attrs}function Mce(e){const t=uo();return t.setupContext||(t.setupContext=dde(t))}function D2(e){return Fn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function JIe(e,t){const n=D2(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?Fn(o)||yr(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 QIe(e,t){return!e||!t?e||t:Fn(e)&&Fn(t)?e.concat(t):fi({},D2(e),D2(t))}function e3e(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function t3e(e){const t=uo();let n=e();return BF(),i3(n)&&(n=n.catch(r=>{throw vg(t),r})),[n,()=>vg(t)]}let MF=!0;function n3e(e){const t=zV(e),n=e.proxy,r=e.ctx;MF=!1,t.beforeCreate&&zee(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:E,destroyed:x,unmounted:_,render:A,renderTracked:R,renderTriggered:M,errorCaptured:D,serverPrefetch:$,expose:L,inheritAttrs:B,components:F,directives:U,filters:z}=t;if(f&&r3e(f,r,null),s)for(const re in s){const te=s[re];yr(te)&&(r[re]=te.bind(n))}if(o){const re=o.call(n,n);Fi(re)&&(e.data=Ht(re))}if(MF=!0,a)for(const re in a){const te=a[re],X=yr(te)?te.bind(n,n):yr(te.get)?te.get.bind(n,n):pa,K=!yr(te)&&yr(te.set)?te.set.bind(n):pa,J=j({get:X,set:K});Object.defineProperty(r,re,{enumerable:!0,configurable:!0,get:()=>J.value,set:ie=>J.value=ie})}if(l)for(const re in l)Dce(l[re],r,n,re);if(c){const re=yr(c)?c.call(n):c;Reflect.ownKeys(re).forEach(te=>{Gr(te,re[te])})}h&&zee(h,e,"c");function Y(re,te){Fn(te)?te.forEach(X=>re(X.bind(n))):te&&re(te.bind(n))}if(Y(Tce,p),Y(dn,m),Y(FV,g),Y(za,b),Y(Ece,S),Y(BV,k),Y(Pce,D),Y(Lce,R),Y(Ice,M),Y($o,E),Y(hi,_),Y(Ace,$),Fn(L))if(L.length){const re=e.exposed||(e.exposed={});L.forEach(te=>{Object.defineProperty(re,te,{get:()=>n[te],set:X=>n[te]=X,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===pa&&(e.render=A),B!=null&&(e.inheritAttrs=B),F&&(e.components=F),U&&(e.directives=U),$&&NV(e)}function r3e(e,t,n=pa){Fn(e)&&(e=DF(e));for(const r in e){const o=e[r];let a;Fi(o)?"default"in o?a=xn(o.from||r,o.default,!0):a=xn(o.from||r):a=xn(o),To(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function zee(e,t,n){Bc(Fn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Dce(e,t,n,r){let o=r.includes(".")?Qce(n,r):()=>n[r];if(Er(e)){const a=t[e];yr(a)&&Dt(o,a)}else if(yr(e))Dt(o,e.bind(n));else if(Fi(e))if(Fn(e))e.forEach(a=>Dce(a,t,n,r));else{const a=yr(e.handler)?e.handler.bind(n):t[e.handler];yr(a)&&Dt(o,a,e)}}function zV(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=>TA(c,f,s,!0)),TA(c,t,s)),Fi(t)&&a.set(t,c),c}function TA(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&TA(e,a,n,!0),o&&o.forEach(s=>TA(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=i3e[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const i3e={data:Hee,props:Wee,emits:Wee,methods:cS,computed:cS,beforeCreate:Al,created:Al,beforeMount:Al,mounted:Al,beforeUpdate:Al,updated:Al,beforeDestroy:Al,beforeUnmount:Al,destroyed:Al,unmounted:Al,activated:Al,deactivated:Al,errorCaptured:Al,serverPrefetch:Al,components:cS,directives:cS,watch:s3e,provide:Hee,inject:o3e};function Hee(e,t){return t?e?function(){return fi(yr(e)?e.call(this,this):e,yr(t)?t.call(this,this):t)}:t:e}function o3e(e,t){return cS(DF(e),DF(t))}function DF(e){if(Fn(e)){const t={};for(let n=0;n1)return n&&yr(t)?t.call(r&&r.proxy):t}}function $ce(){return!!(uo()||Zm)}const Nce={},Bce=()=>Object.create(Nce),Fce=e=>Object.getPrototypeOf(e)===Nce;function u3e(e,t,n,r=!1){const o={},a=Bce();e.propsDefaults=Object.create(null),jce(e,t,o,a);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:RV(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function c3e(e,t,n,r){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,l=Ti(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]=Uce(p,t,!0);fi(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 Fi(e)&&r.set(e,Wm),Wm;if(Fn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",WV=e=>Fn(e)?e.map(cu):[cu(e)],f3e=(e,t,n)=>{if(t._n)return t;const r=de((...o)=>WV(t(...o)),n);return r._c=!1,r},Vce=(e,t,n)=>{const r=e._ctx;for(const o in e){if(HV(o))continue;const a=e[o];if(yr(a))t[o]=f3e(o,a,r);else if(a!=null){const s=WV(a);t[o]=()=>s}}},zce=(e,t)=>{const n=WV(t);e.slots.default=()=>n},Hce=(e,t,n)=>{for(const r in t)(n||!HV(r))&&(e[r]=t[r])},h3e=(e,t,n)=>{const r=e.slots=Bce();if(e.vnode.shapeFlag&32){const o=t._;o?(Hce(r,t,n),n&&kV(r,"_",o,!0)):Vce(t,r)}else t&&zce(e,t)},p3e=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=mi;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Hce(o,t,n):(a=!t.$stable,Vce(t,o)),s=t}else t&&(zce(e,t),s={default:1});if(a)for(const l in o)!HV(l)&&s[l]==null&&delete o[l]},na=rde;function Wce(e){return Kce(e)}function Gce(e){return Kce(e,TIe)}function Kce(e,t){const n=kk();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=pa,insertStaticContent:b}=e,S=(_e,ye,Re,je=null,Qe=null,rt=null,yt=void 0,ct=null,Et=!!ye.dynamicChildren)=>{if(_e===ye)return;_e&&!hd(_e,ye)&&(je=ve(_e),ie(_e,Qe,rt,!0),_e=null),ye.patchFlag===-2&&(Et=!1,ye.dynamicChildren=null);const{type:Tt,ref:Wt,shapeFlag:Gt}=ye;switch(Tt){case tv:k(_e,ye,Re,je);break;case ds:C(_e,ye,Re,je);break;case Jm:_e==null&&E(ye,Re,je,yt);break;case Ft:F(_e,ye,Re,je,Qe,rt,yt,ct,Et);break;default:Gt&1?A(_e,ye,Re,je,Qe,rt,yt,ct,Et):Gt&6?U(_e,ye,Re,je,Qe,rt,yt,ct,Et):(Gt&64||Gt&128)&&Tt.process(_e,ye,Re,je,Qe,rt,yt,ct,Et,Ye)}Wt!=null&&Qe?Fy(Wt,_e&&_e.ref,rt,ye||_e,!ye):Wt==null&&_e&&_e.ref!=null&&Fy(_e.ref,null,rt,_e,!0)},k=(_e,ye,Re,je)=>{if(_e==null)r(ye.el=l(ye.children),Re,je);else{const Qe=ye.el=_e.el;ye.children!==_e.children&&f(Qe,ye.children)}},C=(_e,ye,Re,je)=>{_e==null?r(ye.el=c(ye.children||""),Re,je):ye.el=_e.el},E=(_e,ye,Re,je)=>{[_e.el,_e.anchor]=b(_e.children,ye,Re,je,_e.el,_e.anchor)},x=({el:_e,anchor:ye},Re,je)=>{let Qe;for(;_e&&_e!==ye;)Qe=m(_e),r(_e,Re,je),_e=Qe;r(ye,Re,je)},_=({el:_e,anchor:ye})=>{let Re;for(;_e&&_e!==ye;)Re=m(_e),o(_e),_e=Re;o(ye)},A=(_e,ye,Re,je,Qe,rt,yt,ct,Et)=>{ye.type==="svg"?yt="svg":ye.type==="math"&&(yt="mathml"),_e==null?R(ye,Re,je,Qe,rt,yt,ct,Et):$(_e,ye,Qe,rt,yt,ct,Et)},R=(_e,ye,Re,je,Qe,rt,yt,ct)=>{let Et,Tt;const{props:Wt,shapeFlag:Gt,transition:Jt,dirs:rn}=_e;if(Et=_e.el=s(_e.type,rt,Wt&&Wt.is,Wt),Gt&8?h(Et,_e.children):Gt&16&&D(_e.children,Et,null,je,Qe,v8(_e,rt),yt,ct),rn&&Yd(_e,null,je,"created"),M(Et,_e,_e.scopeId,yt,je),Wt){for(const ht in Wt)ht!=="value"&&!bh(ht)&&a(Et,ht,null,Wt[ht],rt,je);"value"in Wt&&a(Et,"value",null,Wt.value,rt),(Tt=Wt.onVnodeBeforeMount)&&uu(Tt,je,_e)}rn&&Yd(_e,null,je,"beforeMount");const qe=qce(Qe,Jt);qe&&Jt.beforeEnter(Et),r(Et,ye,Re),((Tt=Wt&&Wt.onVnodeMounted)||qe||rn)&&na(()=>{Tt&&uu(Tt,je,_e),qe&&Jt.enter(Et),rn&&Yd(_e,null,je,"mounted")},Qe)},M=(_e,ye,Re,je,Qe)=>{if(Re&&g(_e,Re),je)for(let rt=0;rt{for(let Tt=Et;Tt<_e.length;Tt++){const Wt=_e[Tt]=ct?Bp(_e[Tt]):cu(_e[Tt]);S(null,Wt,ye,Re,je,Qe,rt,yt,ct)}},$=(_e,ye,Re,je,Qe,rt,yt)=>{const ct=ye.el=_e.el;let{patchFlag:Et,dynamicChildren:Tt,dirs:Wt}=ye;Et|=_e.patchFlag&16;const Gt=_e.props||mi,Jt=ye.props||mi;let rn;if(Re&&em(Re,!1),(rn=Jt.onVnodeBeforeUpdate)&&uu(rn,Re,ye,_e),Wt&&Yd(ye,_e,Re,"beforeUpdate"),Re&&em(Re,!0),(Gt.innerHTML&&Jt.innerHTML==null||Gt.textContent&&Jt.textContent==null)&&h(ct,""),Tt?L(_e.dynamicChildren,Tt,ct,Re,je,v8(ye,Qe),rt):yt||te(_e,ye,ct,null,Re,je,v8(ye,Qe),rt,!1),Et>0){if(Et&16)B(ct,Gt,Jt,Re,Qe);else if(Et&2&&Gt.class!==Jt.class&&a(ct,"class",null,Jt.class,Qe),Et&4&&a(ct,"style",Gt.style,Jt.style,Qe),Et&8){const qe=ye.dynamicProps;for(let ht=0;ht{rn&&uu(rn,Re,ye,_e),Wt&&Yd(ye,_e,Re,"updated")},je)},L=(_e,ye,Re,je,Qe,rt,yt)=>{for(let ct=0;ct{if(ye!==Re){if(ye!==mi)for(const rt in ye)!bh(rt)&&!(rt in Re)&&a(_e,rt,ye[rt],null,Qe,je);for(const rt in Re){if(bh(rt))continue;const yt=Re[rt],ct=ye[rt];yt!==ct&&rt!=="value"&&a(_e,rt,ct,yt,Qe,je)}"value"in Re&&a(_e,"value",ye.value,Re.value,Qe)}},F=(_e,ye,Re,je,Qe,rt,yt,ct,Et)=>{const Tt=ye.el=_e?_e.el:l(""),Wt=ye.anchor=_e?_e.anchor:l("");let{patchFlag:Gt,dynamicChildren:Jt,slotScopeIds:rn}=ye;rn&&(ct=ct?ct.concat(rn):rn),_e==null?(r(Tt,Re,je),r(Wt,Re,je),D(ye.children||[],Re,Wt,Qe,rt,yt,ct,Et)):Gt>0&&Gt&64&&Jt&&_e.dynamicChildren?(L(_e.dynamicChildren,Jt,Re,Qe,rt,yt,ct),(ye.key!=null||Qe&&ye===Qe.subTree)&&GV(_e,ye,!0)):te(_e,ye,Re,Wt,Qe,rt,yt,ct,Et)},U=(_e,ye,Re,je,Qe,rt,yt,ct,Et)=>{ye.slotScopeIds=ct,_e==null?ye.shapeFlag&512?Qe.ctx.activate(ye,Re,je,yt,Et):z(ye,Re,je,Qe,rt,yt,Et):G(_e,ye,Et)},z=(_e,ye,Re,je,Qe,rt,yt)=>{const ct=_e.component=ade(_e,je,Qe);if(Ck(_e)&&(ct.ctx.renderer=Ye),ude(ct,!1,yt),ct.asyncDep){if(Qe&&Qe.registerDep(ct,Y,yt),!_e.el){const Et=ct.subTree=O(ds);C(null,Et,ye,Re),_e.placeholder=Et.el}}else Y(ct,_e,ye,Re,Qe,rt,yt)},G=(_e,ye,Re)=>{const je=ye.component=_e.component;if(C3e(_e,ye,Re))if(je.asyncDep&&!je.asyncResolved){re(je,ye,Re);return}else je.next=ye,je.update();else ye.el=_e.el,je.vnode=ye},Y=(_e,ye,Re,je,Qe,rt,yt)=>{const ct=()=>{if(_e.isMounted){let{next:Gt,bu:Jt,u:rn,parent:qe,vnode:ht}=_e;{const ut=Yce(_e);if(ut){Gt&&(Gt.el=ht.el,re(_e,Gt,yt)),ut.asyncDep.then(()=>{_e.isUnmounted||ct()});return}}let ze=Gt,Fe;em(_e,!1),Gt?(Gt.el=ht.el,re(_e,Gt,yt)):Gt=ht,Jt&&qm(Jt),(Fe=Gt.props&&Gt.props.onVnodeBeforeUpdate)&&uu(Fe,qe,Gt,ht),em(_e,!0);const at=xT(_e),St=_e.subTree;_e.subTree=at,S(St,at,p(St.el),ve(St),_e,Qe,rt),Gt.el=at.el,ze===null&&y3(_e,at.el),rn&&na(rn,Qe),(Fe=Gt.props&&Gt.props.onVnodeUpdated)&&na(()=>uu(Fe,qe,Gt,ht),Qe)}else{let Gt;const{el:Jt,props:rn}=ye,{bm:qe,m:ht,parent:ze,root:Fe,type:at}=_e,St=ev(ye);if(em(_e,!1),qe&&qm(qe),!St&&(Gt=rn&&rn.onVnodeBeforeMount)&&uu(Gt,ze,ye),em(_e,!0),Jt&&Ge){const ut=()=>{_e.subTree=xT(_e),Ge(Jt,_e.subTree,_e,Qe,null)};St&&at.__asyncHydrate?at.__asyncHydrate(Jt,_e,ut):ut()}else{Fe.ce&&Fe.ce._def.shadowRoot!==!1&&Fe.ce._injectChildStyle(at);const ut=_e.subTree=xT(_e);S(null,ut,Re,je,_e,Qe,rt),ye.el=ut.el}if(ht&&na(ht,Qe),!St&&(Gt=rn&&rn.onVnodeMounted)){const ut=ye;na(()=>uu(Gt,ze,ut),Qe)}(ye.shapeFlag&256||ze&&ev(ze.vnode)&&ze.vnode.shapeFlag&256)&&_e.a&&na(_e.a,Qe),_e.isMounted=!0,ye=Re=je=null}};_e.scope.on();const Et=_e.effect=new T2(ct);_e.scope.off();const Tt=_e.update=Et.run.bind(Et),Wt=_e.job=Et.runIfDirty.bind(Et);Wt.i=_e,Wt.id=_e.uid,Et.scheduler=()=>DV(Wt),em(_e,!0),Tt()},re=(_e,ye,Re)=>{ye.component=_e;const je=_e.vnode.props;_e.vnode=ye,_e.next=null,c3e(_e,ye.props,je,Re),p3e(_e,ye.children,Re),Lh(),Dee(_e),Ph()},te=(_e,ye,Re,je,Qe,rt,yt,ct,Et=!1)=>{const Tt=_e&&_e.children,Wt=_e?_e.shapeFlag:0,Gt=ye.children,{patchFlag:Jt,shapeFlag:rn}=ye;if(Jt>0){if(Jt&128){K(Tt,Gt,Re,je,Qe,rt,yt,ct,Et);return}else if(Jt&256){X(Tt,Gt,Re,je,Qe,rt,yt,ct,Et);return}}rn&8?(Wt&16&&ke(Tt,Qe,rt),Gt!==Tt&&h(Re,Gt)):Wt&16?rn&16?K(Tt,Gt,Re,je,Qe,rt,yt,ct,Et):ke(Tt,Qe,rt,!0):(Wt&8&&h(Re,""),rn&16&&D(Gt,Re,je,Qe,rt,yt,ct,Et))},X=(_e,ye,Re,je,Qe,rt,yt,ct,Et)=>{_e=_e||Wm,ye=ye||Wm;const Tt=_e.length,Wt=ye.length,Gt=Math.min(Tt,Wt);let Jt;for(Jt=0;JtWt?ke(_e,Qe,rt,!0,!1,Gt):D(ye,Re,je,Qe,rt,yt,ct,Et,Gt)},K=(_e,ye,Re,je,Qe,rt,yt,ct,Et)=>{let Tt=0;const Wt=ye.length;let Gt=_e.length-1,Jt=Wt-1;for(;Tt<=Gt&&Tt<=Jt;){const rn=_e[Tt],qe=ye[Tt]=Et?Bp(ye[Tt]):cu(ye[Tt]);if(hd(rn,qe))S(rn,qe,Re,null,Qe,rt,yt,ct,Et);else break;Tt++}for(;Tt<=Gt&&Tt<=Jt;){const rn=_e[Gt],qe=ye[Jt]=Et?Bp(ye[Jt]):cu(ye[Jt]);if(hd(rn,qe))S(rn,qe,Re,null,Qe,rt,yt,ct,Et);else break;Gt--,Jt--}if(Tt>Gt){if(Tt<=Jt){const rn=Jt+1,qe=rnJt)for(;Tt<=Gt;)ie(_e[Tt],Qe,rt,!0),Tt++;else{const rn=Tt,qe=Tt,ht=new Map;for(Tt=qe;Tt<=Jt;Tt++){const bt=ye[Tt]=Et?Bp(ye[Tt]):cu(ye[Tt]);bt.key!=null&&ht.set(bt.key,Tt)}let ze,Fe=0;const at=Jt-qe+1;let St=!1,ut=0;const tt=new Array(at);for(Tt=0;Tt=at){ie(bt,Qe,rt,!0);continue}let Pt;if(bt.key!=null)Pt=ht.get(bt.key);else for(ze=qe;ze<=Jt;ze++)if(tt[ze-qe]===0&&hd(bt,ye[ze])){Pt=ze;break}Pt===void 0?ie(bt,Qe,rt,!0):(tt[Pt-qe]=Tt+1,Pt>=ut?ut=Pt:St=!0,S(bt,ye[Pt],Re,null,Qe,rt,yt,ct,Et),Fe++)}const Pe=St?v3e(tt):Wm;for(ze=Pe.length-1,Tt=at-1;Tt>=0;Tt--){const bt=qe+Tt,Pt=ye[bt],Ut=ye[bt+1],It=bt+1{const{el:rt,type:yt,transition:ct,children:Et,shapeFlag:Tt}=_e;if(Tt&6){J(_e.component.subTree,ye,Re,je);return}if(Tt&128){_e.suspense.move(ye,Re,je);return}if(Tt&64){yt.move(_e,ye,Re,Ye);return}if(yt===Ft){r(rt,ye,Re);for(let Gt=0;Gtct.enter(rt),Qe);else{const{leave:Gt,delayLeave:Jt,afterLeave:rn}=ct,qe=()=>{_e.ctx.isUnmounted?o(rt):r(rt,ye,Re)},ht=()=>{rt._isLeaving&&rt[uh](!0),Gt(rt,()=>{qe(),rn&&rn()})};Jt?Jt(rt,qe,ht):ht()}else r(rt,ye,Re)},ie=(_e,ye,Re,je=!1,Qe=!1)=>{const{type:rt,props:yt,ref:ct,children:Et,dynamicChildren:Tt,shapeFlag:Wt,patchFlag:Gt,dirs:Jt,cacheIndex:rn}=_e;if(Gt===-2&&(Qe=!1),ct!=null&&(Lh(),Fy(ct,null,Re,_e,!0),Ph()),rn!=null&&(ye.renderCache[rn]=void 0),Wt&256){ye.ctx.deactivate(_e);return}const qe=Wt&1&&Jt,ht=!ev(_e);let ze;if(ht&&(ze=yt&&yt.onVnodeBeforeUnmount)&&uu(ze,ye,_e),Wt&6)Ce(_e.component,Re,je);else{if(Wt&128){_e.suspense.unmount(Re,je);return}qe&&Yd(_e,null,ye,"beforeUnmount"),Wt&64?_e.type.remove(_e,ye,Re,Ye,je):Tt&&!Tt.hasOnce&&(rt!==Ft||Gt>0&&Gt&64)?ke(Tt,ye,Re,!1,!0):(rt===Ft&&Gt&384||!Qe&&Wt&16)&&ke(Et,ye,Re),je&&se(_e)}(ht&&(ze=yt&&yt.onVnodeUnmounted)||qe)&&na(()=>{ze&&uu(ze,ye,_e),qe&&Yd(_e,null,ye,"unmounted")},Re)},se=_e=>{const{type:ye,el:Re,anchor:je,transition:Qe}=_e;if(ye===Ft){ae(Re,je);return}if(ye===Jm){_(_e);return}const rt=()=>{o(Re),Qe&&!Qe.persisted&&Qe.afterLeave&&Qe.afterLeave()};if(_e.shapeFlag&1&&Qe&&!Qe.persisted){const{leave:yt,delayLeave:ct}=Qe,Et=()=>yt(Re,rt);ct?ct(_e.el,rt,Et):Et()}else rt()},ae=(_e,ye)=>{let Re;for(;_e!==ye;)Re=m(_e),o(_e),_e=Re;o(ye)},Ce=(_e,ye,Re)=>{const{bum:je,scope:Qe,job:rt,subTree:yt,um:ct,m:Et,a:Tt}=_e;AA(Et),AA(Tt),je&&qm(je),Qe.stop(),rt&&(rt.flags|=8,ie(yt,_e,ye,Re)),ct&&na(ct,ye),na(()=>{_e.isUnmounted=!0},ye)},ke=(_e,ye,Re,je=!1,Qe=!1,rt=0)=>{for(let yt=rt;yt<_e.length;yt++)ie(_e[yt],ye,Re,je,Qe)},ve=_e=>{if(_e.shapeFlag&6)return ve(_e.component.subTree);if(_e.shapeFlag&128)return _e.suspense.next();const ye=m(_e.anchor||_e.el),Re=ye&&ye[gce];return Re?m(Re):ye};let Ie=!1;const Ne=(_e,ye,Re)=>{_e==null?ye._vnode&&ie(ye._vnode,null,null,!0):S(ye._vnode||null,_e,ye,null,null,null,Re),ye._vnode=_e,Ie||(Ie=!0,Dee(),EA(),Ie=!1)},Ye={p:S,um:ie,m:J,r:se,mt:z,mc:D,pc:te,pbc:L,n:ve,o:e};let Ze,Ge;return t&&([Ze,Ge]=t(Ye)),{render:Ne,hydrate:Ze,createApp:l3e(Ne,Ze)}}function v8({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 em({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function qce(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function GV(e,t,n=!1){const r=e.children,o=t.children;if(Fn(r)&&Fn(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 Yce(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yce(t)}function AA(e){if(e)for(let t=0;txn(Xce);function Cs(e,t){return Ek(e,null,t)}function m3e(e,t){return Ek(e,null,{flush:"post"})}function Jce(e,t){return Ek(e,null,{flush:"sync"})}function Dt(e,t,n){return Ek(e,t,n)}function Ek(e,t,n=mi){const{immediate:r,deep:o,flush:a,once:s}=n,l=fi({},n),c=t&&r||!t&&a!=="post";let f;if(f1){if(a==="sync"){const g=Zce();f=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=pa,g.resume=pa,g.pause=pa,g}}const h=Da;l.call=(g,b,S)=>Bc(g,h,b,S);let p=!1;a==="post"?l.scheduler=g=>{na(g,h&&h.suspense)}:a!=="sync"&&(p=!0,l.scheduler=(g,b)=>{b?g():DV(g)}),l.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,h&&(g.id=h.uid,g.i=h))};const m=cIe(e,t,l);return f1&&(f?f.push(m):c&&m()),m}function g3e(e,t,n){const r=this.proxy,o=Er(e)?e.includes(".")?Qce(r,e):()=>r[e]:e.bind(r,r);let a;yr(t)?a=t:(a=t.handler,n=t);const s=vg(this),l=Ek(o,a.bind(r),n);return s(),l}function Qce(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let h,p=mi,m;return Jce(()=>{const g=e[o];al(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(!al(b,h)&&!(p!==mi&&al(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),al(g,b)&&al(g,p)&&!al(b,m)&&f(),p=g,m=b}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||mi:l,done:!1}:{done:!0}}}},l}const ede=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${xo(t)}Modifiers`]||e[`${ul(t)}Modifiers`];function b3e(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||mi;let o=n;const a=t.startsWith("update:"),s=a&&ede(r,t.slice(7));s&&(s.trim&&(o=n.map(h=>Er(h)?h.trim():h)),s.number&&(o=n.map(E2)));let l,c=r[l=Km(t)]||r[l=Km(xo(t))];!c&&a&&(c=r[l=Km(ul(t))]),c&&Bc(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,Bc(f,e,6,o)}}const _3e=new WeakMap;function tde(e,t,n=!1){const r=n?_3e:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const a=e.emits;let s={},l=!1;if(!yr(e)){const c=f=>{const h=tde(f,t,!0);h&&(l=!0,fi(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(Fi(e)&&r.set(e,null),null):(Fn(a)?a.forEach(c=>s[c]=null):fi(s,a),Fi(e)&&r.set(e,s),s)}function g3(e,t){return!e||!Sv(t)?!1:(t=t.slice(2).replace(/Once$/,""),$i(e,t[0].toLowerCase()+t.slice(1))||$i(e,ul(t))||$i(e,t))}function xT(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=M2(e);let C,E;try{if(n.shapeFlag&4){const _=o||r,A=_;C=cu(f.call(A,_,h,p,g,m,b)),E=l}else{const _=t;C=cu(_.length>1?_(p,{attrs:l,slots:s,emit:c}):_(p,null)),E=t.props?l:k3e(l)}}catch(_){RS.length=0,Dg(_,e,1),C=O(ds)}let x=C;if(E&&S!==!1){const _=Object.keys(E),{shapeFlag:A}=x;_.length&&A&7&&(a&&_.some(n3)&&(E=w3e(E,a)),x=vl(x,E,!1,!0))}return n.dirs&&(x=vl(x,null,!1,!0),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&Mh(x,n.transition),C=x,M2(k),C}function S3e(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||Sv(n))&&((t||(t={}))[n]=e[n]);return t},w3e=(e,t)=>{const n={};for(const r in e)(!n3(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function C3e(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?Kee(r,s,f):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let $F=0;const E3e={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,s,l,c,f){if(e==null)T3e(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}A3e(e,t,n,r,o,s,l,c,f)}},hydrate:I3e,normalize:L3e},x3e=E3e;function O2(e,t){const n=e.props&&e.props[t];yr(n)&&n()}function T3e(e,t,n,r,o,a,s,l,c){const{p:f,o:{createElement:h}}=c,p=h("div"),m=e.suspense=nde(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?(O2(e,"onPending"),O2(e,"onFallback"),f(null,e.ssFallback,t,n,r,null,a,s),jy(m,e.ssFallback)):m.resolve(!1,!0)}function A3e(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,hd(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=$F++,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&&hd(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&&hd(b,m))c(b,m,n,r,o,p,a,s,l),jy(p,m);else if(O2(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=$F++,c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0)p.resolve();else{const{timeout:E,pendingId:x}=p;E>0?setTimeout(()=>{p.pendingId===x&&p.fallback(g)},E):E===0&&p.fallback(g)}}function nde(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 E=P3e(e);E&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const x=e.props?x2(e.props.timeout):void 0,_=a,A={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:$F++,timeout:typeof x=="number"?x:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(R=!1,M=!1){const{vnode:D,activeBranch:$,pendingBranch:L,pendingId:B,effects:F,parentComponent:U,container:z}=A;let G=!1;A.isHydrating?A.isHydrating=!1:R||(G=$&&L.transition&&L.transition.mode==="out-in",G&&($.transition.afterLeave=()=>{B===A.pendingId&&(m(L,z,a===_?b($):a,0),P2(F))}),$&&(S($.el)===z&&(a=b($)),g($,U,A,!0)),G||m(L,z,a,0)),jy(A,L),A.pendingBranch=null,A.isInFallback=!1;let Y=A.parent,re=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...F),re=!0;break}Y=Y.parent}!re&&!G&&P2(F),A.effects=[],E&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!M&&t.resolve()),O2(D,"onResolve")},fallback(R){if(!A.pendingBranch)return;const{vnode:M,activeBranch:D,parentComponent:$,container:L,namespace:B}=A;O2(M,"onFallback");const F=b(D),U=()=>{A.isInFallback&&(p(null,R,L,F,$,null,B,l,c),jy(A,R))},z=R.transition&&R.transition.mode==="out-in";z&&(D.transition.afterLeave=U),A.isInFallback=!0,g(D,$,null,!0),z||U()},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 $=!!A.pendingBranch;$&&A.deps++;const L=R.vnode.el;R.asyncDep.catch(B=>{Dg(B,R,0)}).then(B=>{if(R.isUnmounted||A.isUnmounted||A.pendingId!==R.suspenseId)return;R.asyncResolved=!0;const{vnode:F}=R;FF(R,B,!1),L&&(F.el=L);const U=!L&&R.subTree.el;M(R,F,S(L||R.subTree.el),L?null:b(R.subTree),A,s,D),U&&k(U),y3(R,F.el),$&&--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 I3e(e,t,n,r,o,a,s,l,c){const f=t.suspense=nde(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 L3e(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=qee(r?n.default:n),e.ssFallback=r?qee(n.fallback):O(ds)}function qee(e){let t;if(yr(e)){const n=hg&&e._c;n&&(e._d=!1,H()),e=e(),n&&(e._d=!0,t=fl,ide())}return Fn(e)&&(e=S3e(e)),e=cu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function rde(e,t){t&&t.pendingBranch?Fn(e)?t.effects.push(...e):t.effects.push(e):P2(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,y3(r,o))}function P3e(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ft=Symbol.for("v-fgt"),tv=Symbol.for("v-txt"),ds=Symbol.for("v-cmt"),Jm=Symbol.for("v-stc"),RS=[];let fl=null;function H(e=!1){RS.push(fl=e?null:[])}function ide(){RS.pop(),fl=RS[RS.length-1]||null}let hg=1;function $2(e,t=!1){hg+=e,e<0&&fl&&t&&(fl.hasOnce=!0)}function ode(e){return e.dynamicChildren=hg>0?fl||Wm:null,ide(),hg>0&&fl&&fl.push(e),e}function Q(e,t,n,r,o,a){return ode(I(e,t,n,r,o,a,!0))}function Xe(e,t,n,r,o){return ode(O(e,t,n,r,o,!0))}function Di(e){return e?e.__v_isVNode===!0:!1}function hd(e,t){return e.type===t.type&&e.key===t.key}function R3e(e){}const sde=({key:e})=>e??null,TT=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Er(e)||To(e)||yr(e)?{i:Oa,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,o=null,a=e===Ft?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sde(t),ref:t&&TT(t),scopeId:p3,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:Oa};return l?(KV(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Er(n)?8:16),hg>0&&!s&&fl&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&fl.push(c),c}const O=M3e;function M3e(e,t=null,n=null,r=0,o=null,a=!1){if((!e||e===Rce)&&(e=ds),Di(e)){const l=vl(e,t,!0);return n&&KV(l,n),hg>0&&!a&&fl&&(l.shapeFlag&6?fl[fl.indexOf(e)]=l:fl.push(l)),l.patchFlag=-2,l}if(j3e(e)&&(e=e.__vccOpts),t){t=ha(t);let{class:l,style:c}=t;l&&!Er(l)&&(t.class=le(l)),Fi(c)&&(f3(c)&&!Fn(c)&&(c=fi({},c)),t.style=Ve(c))}const s=Er(e)?1:IA(e)?128:yce(e)?64:Fi(e)?4:yr(e)?2:0;return I(e,t,n,r,o,s,a,!0)}function ha(e){return e?f3(e)||Fce(e)?fi({},e):e:null}function vl(e,t,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:l,transition:c}=e,f=t?Nt(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&sde(f),ref:t&&t.ref?n&&a?Fn(a)?a.concat(TT(t)):[a,TT(t)]:TT(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!==Ft?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&&vl(e.ssContent),ssFallback:e.ssFallback&&vl(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Mh(h,c.clone(h)),h}function We(e=" ",t=0){return O(tv,null,e,t)}function pg(e,t){const n=O(Jm,null,e);return n.staticCount=t,n}function Oe(e="",t=!1){return t?(H(),Xe(ds,null,e)):O(ds,null,e)}function cu(e){return e==null||typeof e=="boolean"?O(ds):Fn(e)?O(Ft,null,e.slice()):Di(e)?Bp(e):O(tv,null,String(e))}function Bp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vl(e)}function KV(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Fn(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),KV(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Fce(t)?t._ctx=Oa:o===3&&Oa&&(Oa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else yr(t)?(t={default:t,_ctx:Oa},n=32):(t=String(t),r&64?(n=16,t=[We(t)]):n=8);e.children=t,e.shapeFlag|=n}function Nt(...e){const t={};for(let n=0;nDa||Oa;let LA,NF;{const e=kk(),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)}};LA=t("__VUE_INSTANCE_SETTERS__",n=>Da=n),NF=t("__VUE_SSR_SETTERS__",n=>f1=n)}const vg=e=>{const t=Da;return LA(e),e.scope.on(),()=>{e.scope.off(),LA(t)}},BF=()=>{Da&&Da.scope.off(),LA(null)};function lde(e){return e.vnode.shapeFlag&4}let f1=!1;function ude(e,t=!1,n=!1){t&&NF(t);const{props:r,children:o}=e.vnode,a=lde(e);u3e(e,r,a,t),h3e(e,o,n||t);const s=a?$3e(e,t):void 0;return t&&NF(!1),s}function $3e(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,RF);const{setup:r}=n;if(r){Lh();const o=e.setupContext=r.length>1?dde(e):null,a=vg(e),s=j1(r,e,0,[e.props,o]),l=i3(s);if(Ph(),a(),(l||e.sp)&&!ev(e)&&NV(e),l){if(s.then(BF,BF),t)return s.then(c=>{FF(e,c,t)}).catch(c=>{Dg(c,e,0)});e.asyncDep=s}else FF(e,s,t)}else cde(e,t)}function FF(e,t,n){yr(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Fi(t)&&(e.setupState=MV(t)),cde(e,n)}let PA,jF;function N3e(e){PA=e,jF=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,VIe))}}const B3e=()=>!PA;function cde(e,t,n){const r=e.type;if(!e.render){if(!t&&PA&&!r.render){const o=r.template||zV(e).template;if(o){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,f=fi(fi({isCustomElement:a,delimiters:l},s),c);r.render=PA(o,f)}}e.render=r.render||pa,jF&&jF(e)}{const o=vg(e);Lh();try{n3e(e)}finally{Ph(),o()}}}const F3e={get(e,t){return ll(e,"get",""),e[t]}};function dde(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,F3e),slots:e.slots,emit:e.emit,expose:t}}function xk(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(MV(h3(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in PS)return PS[n](e)},has(t,n){return n in t||n in PS}})):e.proxy}function UF(e,t=!0){return yr(e)?e.displayName||e.name:e.name||t&&e.__name}function j3e(e){return yr(e)&&"__vccOpts"in e}const j=(e,t)=>sIe(e,t,f1);function ia(e,t,n){try{$2(-1);const r=arguments.length;return r===2?Fi(t)&&!Fn(t)?Di(t)?O(e,null,[t]):O(e,t):O(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Di(n)&&(n=[n]),O(e,t,n))}finally{$2(1)}}function U3e(){}function V3e(e,t,n,r){const o=n[r];if(o&&fde(o,e))return o;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function fde(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&fl&&fl.push(e),!0}const hde="3.5.22",z3e=pa,H3e=vIe,W3e=_y,G3e=mce,K3e={createComponentInstance:ade,setupComponent:ude,renderComponentRoot:xT,setCurrentRenderingInstance:M2,isVNode:Di,normalizeVNode:cu,getComponentPublicInstance:xk,ensureValidVNode:VV,pushWarningContext:dIe,popWarningContext:fIe},q3e=K3e,Y3e=null,X3e=null,Z3e=null;/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let VF;const Yee=typeof window<"u"&&window.trustedTypes;if(Yee)try{VF=Yee.createPolicy("vue",{createHTML:e=>e})}catch{}const pde=VF?e=>VF.createHTML(e):e=>e,J3e="http://www.w3.org/2000/svg",Q3e="http://www.w3.org/1998/Math/MathML",ih=typeof document<"u"?document:null,Xee=ih&&ih.createElement("template"),eLe={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"?ih.createElementNS(J3e,e):t==="mathml"?ih.createElementNS(Q3e,e):n?ih.createElement(e,{is:n}):ih.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>ih.createTextNode(e),createComment:e=>ih.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ih.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{Xee.innerHTML=pde(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=Xee.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]}},vp="transition",I_="animation",h1=Symbol("_vtc"),vde={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},mde=fi({},$V,vde),tLe=e=>(e.displayName="Transition",e.props=mde,e),Es=tLe((e,{slots:t})=>ia(wce,gde(e),t)),tm=(e,t=[])=>{Fn(e)?e.forEach(n=>n(...t)):e&&e(...t)},Zee=e=>e?Fn(e)?e.some(t=>t.length>1):e.length>1:!1;function gde(e){const t={};for(const F in e)F in vde||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:f=s,appearToClass:h=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,b=nLe(o),S=b&&b[0],k=b&&b[1],{onBeforeEnter:C,onEnter:E,onEnterCancelled:x,onLeave:_,onLeaveCancelled:A,onBeforeAppear:R=C,onAppear:M=E,onAppearCancelled:D=x}=t,$=(F,U,z,G)=>{F._enterCancelled=G,Pp(F,U?h:l),Pp(F,U?f:s),z&&z()},L=(F,U)=>{F._isLeaving=!1,Pp(F,p),Pp(F,g),Pp(F,m),U&&U()},B=F=>(U,z)=>{const G=F?M:E,Y=()=>$(U,F,z);tm(G,[U,Y]),Jee(()=>{Pp(U,F?c:a),Gd(U,F?h:l),Zee(G)||Qee(U,r,S,Y)})};return fi(t,{onBeforeEnter(F){tm(C,[F]),Gd(F,a),Gd(F,s)},onBeforeAppear(F){tm(R,[F]),Gd(F,c),Gd(F,f)},onEnter:B(!1),onAppear:B(!0),onLeave(F,U){F._isLeaving=!0;const z=()=>L(F,U);Gd(F,p),F._enterCancelled?(Gd(F,m),zF(F)):(zF(F),Gd(F,m)),Jee(()=>{F._isLeaving&&(Pp(F,p),Gd(F,g),Zee(_)||Qee(F,r,k,z))}),tm(_,[F,z])},onEnterCancelled(F){$(F,!1,void 0,!0),tm(x,[F])},onAppearCancelled(F){$(F,!0,void 0,!0),tm(D,[F])},onLeaveCancelled(F){L(F),tm(A,[F])}})}function nLe(e){if(e==null)return null;if(Fi(e))return[m8(e.enter),m8(e.leave)];{const t=m8(e);return[t,t]}}function m8(e){return x2(e)}function Gd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[h1]||(e[h1]=new Set)).add(t)}function Pp(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 Jee(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rLe=0;function Qee(e,t,n,r){const o=e._endId=++rLe,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=yde(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(`${vp}Delay`),a=r(`${vp}Duration`),s=ete(o,a),l=r(`${I_}Delay`),c=r(`${I_}Duration`),f=ete(l,c);let h=null,p=0,m=0;t===vp?s>0&&(h=vp,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?vp:I_:null,m=h?h===vp?a.length:c.length:0);const g=h===vp&&/\b(?:transform|all)(?:,|$)/.test(r(`${vp}Property`).toString());return{type:h,timeout:p,propCount:m,hasTransform:g}}function ete(e,t){for(;e.lengthtte(n)+tte(e[r])))}function tte(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function zF(e){return(e?e.ownerDocument:document).body.offsetHeight}function iLe(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 RA=Symbol("_vod"),bde=Symbol("_vsh"),Qo={name:"show",beforeMount(e,{value:t},{transition:n}){e[RA]=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[RA]:"none",e[bde]=!t}function oLe(){Qo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const _de=Symbol("");function sLe(e){const t=uo();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>MA(a,o))},r=()=>{const o=e(t.proxy);t.ce?MA(t.ce,o):HF(t.subTree,o),n(o)};FV(()=>{P2(r)}),dn(()=>{Dt(r,pa,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),hi(()=>o.disconnect())})}function HF(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{HF(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)MA(e.el,t);else if(e.type===Ft)e.children.forEach(n=>HF(n,t));else if(e.type===Jm){let{el:n,anchor:r}=e;for(;n&&(MA(n,t),n!==r);)n=n.nextSibling}}function MA(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const a=Gue(t[o]);n.setProperty(`--${o}`,a),r+=`--${o}: ${a};`}n[_de]=r}}const aLe=/(?:^|;)\s*display\s*:/;function lLe(e,t,n){const r=e.style,o=Er(n);let a=!1;if(n&&!o){if(t)if(Er(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&AT(r,l,"")}else for(const s in t)n[s]==null&&AT(r,s,"");for(const s in n)s==="display"&&(a=!0),AT(r,s,n[s])}else if(o){if(t!==n){const s=r[_de];s&&(n+=";"+s),r.cssText=n,a=aLe.test(n)}}else t&&e.removeAttribute("style");RA in e&&(e[RA]=a?r.display:"",e[bde]&&(r.display="none"))}const nte=/\s*!important$/;function AT(e,t,n){if(Fn(n))n.forEach(r=>AT(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=uLe(e,t);nte.test(n)?e.setProperty(ul(r),n.replace(nte,""),"important"):e[r]=n}}const rte=["Webkit","Moz","ms"],g8={};function uLe(e,t){const n=g8[t];if(n)return n;let r=xo(t);if(r!=="filter"&&r in e)return g8[t]=r;r=wv(r);for(let o=0;oy8||(hLe.then(()=>y8=0),y8=Date.now());function vLe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Bc(mLe(r,n.value),t,5,[r])};return n.value=e,n.attached=pLe(),n}function mLe(e,t){if(Fn(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 ute=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,gLe=(e,t,n,r,o,a)=>{const s=o==="svg";t==="class"?iLe(e,r,s):t==="style"?lLe(e,n,r):Sv(t)?n3(t)||dLe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yLe(e,t,r,s))?(ste(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ote(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Er(r))?ste(e,xo(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ote(e,t,r,s))};function yLe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ute(t)&&yr(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 ute(t)&&Er(n)?!1:t in e}const cte={};function Sde(e,t,n){let r=be(e,t);Sk(r)&&(r=fi({},r,t));class o extends b3{constructor(s){super(r,s,n)}}return o.def=r,o}const bLe=((e,t)=>Sde(e,t,Lde)),_Le=typeof HTMLElement<"u"?HTMLElement:class{};class b3 extends _Le{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(fi({},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 b3){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,kn(()=>{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&&!Fn(a))for(const c in a){const f=a[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=x2(this._props[c])),(l||(l=Object.create(null)))[xo(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)$i(this,r)||Object.defineProperty(this,r,{get:()=>st(n[r])})}_resolveProps(t){const{props:n}=t,r=Fn(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(xo))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):cte;const o=xo(t);n&&this._numberProps&&this._numberProps[o]&&(r=x2(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===cte?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(ul(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ul(t),n+""):n||this.removeAttribute(ul(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Fc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=O(this._def,fi(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,Sk(s[0])?fi({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{o(a,s),ul(a)!==a&&o(ul(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 kde(e){const t=uo(),n=t&&t.ce;return n||null}function SLe(){const e=kde();return e&&e.shadowRoot}function kLe(e="$style"){{const t=uo();if(!t)return mi;const n=t.type.__cssModules;if(!n)return mi;const r=n[e];return r||mi}}const wde=new WeakMap,Cde=new WeakMap,DA=Symbol("_moveCb"),dte=Symbol("_enterCb"),wLe=e=>(delete e.props.mode,e),CLe=wLe({name:"TransitionGroup",props:fi({},mde,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=uo(),r=OV();let o,a;return za(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!ALe(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(ELe),o.forEach(xLe);const l=o.filter(TLe);zF(n.vnode.el),l.forEach(c=>{const f=c.el,h=f.style;Gd(f,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=f[DA]=m=>{m&&m.target!==f||(!m||m.propertyName.endsWith("transform"))&&(f.removeEventListener("transitionend",p),f[DA]=null,Pp(f,s))};f.addEventListener("transitionend",p)}),o=[]}),()=>{const s=Ti(e),l=gde(s);let c=s.tag||Ft;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}=yde(r);return a.removeChild(r),s}const av=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Fn(t)?n=>qm(t,n):t};function ILe(e){e.target.composing=!0}function fte(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pc=Symbol("_assign"),Vl={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Pc]=av(o);const a=r||o.props&&o.props.type==="number";hh(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),a&&(l=E2(l)),e[Pc](l)}),n&&hh(e,"change",()=>{e.value=e.value.trim()}),t||(hh(e,"compositionstart",ILe),hh(e,"compositionend",fte),hh(e,"change",fte))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[Pc]=av(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?E2(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))}},qV={deep:!0,created(e,t,n){e[Pc]=av(n),hh(e,"change",()=>{const r=e._modelValue,o=p1(e),a=e.checked,s=e[Pc];if(Fn(r)){const l=wk(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(kv(r)){const l=new Set(r);a?l.add(o):l.delete(o),s(l)}else s(Ede(e,a))})},mounted:hte,beforeUpdate(e,t,n){e[Pc]=av(n),hte(e,t,n)}};function hte(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(Fn(t))o=wk(t,r.props.value)>-1;else if(kv(t))o=t.has(r.props.value);else{if(t===n)return;o=Ih(t,Ede(e,!0))}e.checked!==o&&(e.checked=o)}const YV={created(e,{value:t},n){e.checked=Ih(t,n.props.value),e[Pc]=av(n),hh(e,"change",()=>{e[Pc](p1(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Pc]=av(r),t!==n&&(e.checked=Ih(t,r.props.value))}},XV={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=kv(t);hh(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?E2(p1(s)):p1(s));e[Pc](e.multiple?o?new Set(a):a:a[0]),e._assigning=!0,kn(()=>{e._assigning=!1})}),e[Pc]=av(r)},mounted(e,{value:t}){pte(e,t)},beforeUpdate(e,t,n){e[Pc]=av(n)},updated(e,{value:t}){e._assigning||pte(e,t)}};function pte(e,t){const n=e.multiple,r=Fn(t);if(!(n&&!r&&!kv(t))){for(let o=0,a=e.options.length;oString(f)===String(l)):s.selected=wk(t,l)>-1}else s.selected=t.has(l);else if(Ih(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 Ede(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const _3={created(e,t,n){KE(e,t,n,null,"created")},mounted(e,t,n){KE(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){KE(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){KE(e,t,n,r,"updated")}};function xde(e,t){switch(e){case"SELECT":return XV;case"TEXTAREA":return Vl;default:switch(t){case"checkbox":return qV;case"radio":return YV;default:return Vl}}}function KE(e,t,n,r,o){const s=xde(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}function LLe(){Vl.getSSRProps=({value:e})=>({value:e}),YV.getSSRProps=({value:e},t)=>{if(t.props&&Ih(t.props.value,e))return{checked:!0}},qV.getSSRProps=({value:e},t)=>{if(Fn(e)){if(t.props&&wk(e,t.props.value)>-1)return{checked:!0}}else if(kv(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},_3.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=xde(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const PLe=["ctrl","shift","alt","meta"],RLe={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)=>PLe.some(n=>e[`${n}Key`]&&!t.includes(n))},es=(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=ul(o.key);if(t.some(s=>s===a||MLe[s]===a))return e(o)}))},Tde=fi({patchProp:gLe},eLe);let MS,vte=!1;function Ade(){return MS||(MS=Wce(Tde))}function Ide(){return MS=vte?MS:Gce(Tde),vte=!0,MS}const Fc=((...e)=>{Ade().render(...e)}),DLe=((...e)=>{Ide().hydrate(...e)}),v1=((...e)=>{const t=Ade().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Rde(r);if(!o)return;const a=t._component;!yr(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,Pde(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),Lde=((...e)=>{const t=Ide().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Rde(r);if(o)return n(o,!0,Pde(o))},t});function Pde(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Rde(e){return Er(e)?document.querySelector(e):e}let mte=!1;const OLe=()=>{mte||(mte=!0,LLe(),oLe())},$Le=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:wce,BaseTransitionPropsValidators:$V,Comment:ds,DeprecationTypes:Z3e,EffectScope:xV,ErrorCodes:pIe,ErrorTypeStrings:H3e,Fragment:Ft,KeepAlive:BIe,ReactiveEffect:T2,Static:Jm,Suspense:x3e,Teleport:Og,Text:tv,TrackOpTypes:aIe,Transition:Es,TransitionGroup:V1,TriggerOpTypes:lIe,VueElement:b3,assertNumber:hIe,callWithAsyncErrorHandling:Bc,callWithErrorHandling:j1,camelize:xo,capitalize:wv,cloneVNode:vl,compatUtils:X3e,computed:j,createApp:v1,createBlock:Xe,createCommentVNode:Oe,createElementBlock:Q,createElementVNode:I,createHydrationRenderer:Gce,createPropsRestProxy:e3e,createRenderer:Wce,createSSRApp:Lde,createSlots:yo,createStaticVNode:pg,createTextVNode:We,createVNode:O,customRef:uce,defineAsyncComponent:$g,defineComponent:be,defineCustomElement:Sde,defineEmits:HIe,defineExpose:WIe,defineModel:qIe,defineOptions:GIe,defineProps:zIe,defineSSRCustomElement:bLe,defineSlots:KIe,devtools:W3e,effect:PAe,effectScope:TV,getCurrentInstance:uo,getCurrentScope:a3,getCurrentWatcher:uIe,getTransitionRawChildren:v3,guardReactiveProps:ha,h:ia,handleError:Dg,hasInjectionContext:$ce,hydrate:DLe,hydrateOnIdle:PIe,hydrateOnInteraction:OIe,hydrateOnMediaQuery:DIe,hydrateOnVisible:MIe,initCustomFormatter:U3e,initDirectivesForSSR:OLe,inject:xn,isMemoSame:fde,isProxy:f3,isReactive:uf,isReadonly:Rh,isRef:To,isRuntimeOnly:B3e,isShallow:Qu,isVNode:Di,markRaw:h3,mergeDefaults:JIe,mergeModels:QIe,mergeProps:Nt,nextTick:kn,normalizeClass:le,normalizeProps:Ni,normalizeStyle:Ve,onActivated:Ece,onBeforeMount:Tce,onBeforeUnmount:$o,onBeforeUpdate:FV,onDeactivated:BV,onErrorCaptured:Pce,onMounted:dn,onRenderTracked:Lce,onRenderTriggered:Ice,onScopeDispose:AV,onServerPrefetch:Ace,onUnmounted:hi,onUpdated:za,onWatcherCleanup:dce,openBlock:H,popScopeId:bIe,provide:Gr,proxyRefs:MV,pushScopeId:yIe,queuePostFlushCb:P2,reactive:Ht,readonly:L2,ref:pe,registerRuntimeCompiler:N3e,render:Fc,renderList:fn,renderSlot:ft,resolveComponent:Me,resolveDirective:U1,resolveDynamicComponent:$a,resolveFilter:Y3e,resolveTransitionHooks:d1,setBlockTracking:$2,setDevtoolsHook:G3e,setTransitionHooks:Mh,shallowReactive:RV,shallowReadonly:ZAe,shallowRef:Xm,ssrContextKey:Xce,ssrUtils:q3e,stop:RAe,toDisplayString:Be,toHandlerKey:Km,toHandlers:UIe,toRaw:Ti,toRef:wu,toRefs:Zt,toValue:eIe,transformVNodeArgs:R3e,triggerRef:QAe,unref:st,useAttrs:ZIe,useCssModule:kLe,useCssVars:sLe,useHost:kde,useId:wIe,useModel:y3e,useSSRContext:Zce,useShadowRoot:SLe,useSlots:XIe,useTemplateRef:CIe,useTransitionState:OV,vModelCheckbox:qV,vModelDynamic:_3,vModelRadio:YV,vModelSelect:XV,vModelText:Vl,vShow:Qo,version:hde,warn:z3e,watch:Dt,watchEffect:Cs,watchPostEffect:m3e,watchSyncEffect:Jce,withAsyncContext:t3e,withCtx:de,withDefaults:YIe,withDirectives:wi,withKeys:vh,withMemo:V3e,withModifiers:es,withScopeId:_Ie},Symbol.toStringTag,{value:"Module"}));/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const Sy=typeof document<"u";function Mde(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function NLe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Mde(e.default)}const Xi=Object.assign;function b8(e,t){const n={};for(const r in t){const o=t[r];n[r]=_d(o)?o.map(e):e(o)}return n}const DS=()=>{},_d=Array.isArray,Dde=/#/g,BLe=/&/g,FLe=/\//g,jLe=/=/g,ULe=/\?/g,Ode=/\+/g,VLe=/%5B/g,zLe=/%5D/g,$de=/%5E/g,HLe=/%60/g,Nde=/%7B/g,WLe=/%7C/g,Bde=/%7D/g,GLe=/%20/g;function ZV(e){return encodeURI(""+e).replace(WLe,"|").replace(VLe,"[").replace(zLe,"]")}function KLe(e){return ZV(e).replace(Nde,"{").replace(Bde,"}").replace($de,"^")}function WF(e){return ZV(e).replace(Ode,"%2B").replace(GLe,"+").replace(Dde,"%23").replace(BLe,"%26").replace(HLe,"`").replace(Nde,"{").replace(Bde,"}").replace($de,"^")}function qLe(e){return WF(e).replace(jLe,"%3D")}function YLe(e){return ZV(e).replace(Dde,"%23").replace(ULe,"%3F")}function XLe(e){return e==null?"":YLe(e).replace(FLe,"%2F")}function N2(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ZLe=/\/$/,JLe=e=>e.replace(ZLe,"");function _8(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=nPe(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:N2(s)}}function QLe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function gte(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ePe(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])&&Fde(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 Fde(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!tPe(e[n],t[n]))return!1;return!0}function tPe(e,t){return _d(e)?yte(e,t):_d(t)?yte(t,e):e===t}function yte(e,t){return _d(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function nPe(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 mp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var B2;(function(e){e.pop="pop",e.push="push"})(B2||(B2={}));var OS;(function(e){e.back="back",e.forward="forward",e.unknown=""})(OS||(OS={}));function rPe(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 iPe=/^[^#]+#/;function oPe(e,t){return e.replace(iPe,"#")+t}function sPe(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 S3=()=>({left:window.scrollX,top:window.scrollY});function aPe(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=sPe(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 bte(e,t){return(history.state?history.state.position-t:-1)+e}const GF=new Map;function lPe(e,t){GF.set(e,t)}function uPe(e){const t=GF.get(e);return GF.delete(e),t}let cPe=()=>location.protocol+"//"+location.host;function jde(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),gte(c,"")}return gte(n,e)+r+o}function dPe(e,t,n,r){let o=[],a=[],s=null;const l=({state:m})=>{const g=jde(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:B2.pop,direction:k?k>0?OS.forward:OS.back:OS.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(Xi({},m.state,{scroll:S3()}),"")}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 _te(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?S3():null}}function fPe(e){const{history:t,location:n}=window,r={value:jde(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:cPe()+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=Xi({},t.state,_te(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=Xi({},o.value,t.state,{forward:c,scroll:S3()});a(h.current,h,!0);const p=Xi({},_te(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 hPe(e){e=rPe(e);const t=fPe(e),n=dPe(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=Xi({location:"",base:e,go:r,createHref:oPe.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 pPe(e){return typeof e=="string"||e&&typeof e=="object"}function Ude(e){return typeof e=="string"||typeof e=="symbol"}const Vde=Symbol("");var Ste;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ste||(Ste={}));function g1(e,t){return Xi(new Error,{type:e,[Vde]:!0},t)}function Zf(e,t){return e instanceof Error&&Vde in e&&(t==null||!!(e.type&t))}const kte="[^/]+?",vPe={sensitive:!1,strict:!1,start:!0,end:!0},mPe=/[.+*?^${}()[\]/\\]/g;function gPe(e,t){const n=Xi({},vPe,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 zde(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const bPe={type:0,value:""},_Pe=/[a-zA-Z0-9_]/;function SPe(e){if(!e)return[[]];if(e==="/")return[[bPe]];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(x)}:DS}function s(p){if(Ude(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=xPe(p,n);n.splice(m,0,p),p.record.name&&!xte(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=Xi(Cte(m.params,g.keys.filter(x=>!x.optional).concat(g.parent?g.parent.keys.filter(x=>x.optional):[]).map(x=>x.name)),p.params&&Cte(p.params,g.keys.map(x=>x.name))),S=g.stringify(b)}else if(p.path!=null)S=p.path,g=n.find(x=>x.re.test(S)),g&&(b=g.parse(S),k=g.record.name);else{if(g=m.name?r.get(m.name):n.find(x=>x.re.test(m.path)),!g)throw g1(1,{location:p,currentLocation:m});k=g.record.name,b=Xi({},m.params,p.params),S=g.stringify(b)}const C=[];let E=g;for(;E;)C.unshift(E.record),E=E.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 Cte(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ete(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:CPe(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 CPe(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 xte(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function EPe(e){return e.reduce((t,n)=>Xi(t,n.meta),{})}function Tte(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function xPe(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;zde(e,t[a])<0?r=a:n=a+1}const o=TPe(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function TPe(e){let t=e;for(;t=t.parent;)if(Hde(t)&&zde(e,t)===0)return t}function Hde({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function APe(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oa&&WF(a)):[r&&WF(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function IPe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=_d(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const LPe=Symbol(""),Ite=Symbol(""),k3=Symbol(""),JV=Symbol(""),KF=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 Fp(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):pPe(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 S8(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(Mde(c)){const h=(c.__vccOpts||c)[t];h&&a.push(Fp(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=NLe(h)?h.default:h;s.mods[l]=h,s.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&Fp(g,n,r,s,l,o)()}))}}return a}function Lte(e){const t=xn(k3),n=xn(JV),r=j(()=>{const c=st(e.to);return t.resolve(c)}),o=j(()=>{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=Pte(c[f-2]);return f>1&&Pte(h)===g&&p[p.length-1].path!==g?p.findIndex(m1.bind(null,c[f-2])):m}),a=j(()=>o.value>-1&&OPe(n.params,r.value.params)),s=j(()=>o.value>-1&&o.value===n.matched.length-1&&Fde(n.params,r.value.params));function l(c={}){if(DPe(c)){const f=t[st(e.replace)?"replace":"push"](st(e.to)).catch(DS);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:j(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}function PPe(e){return e.length===1?e[0]:e}const RPe=be({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:Lte,setup(e,{slots:t}){const n=Ht(Lte(e)),{options:r}=xn(k3),o=j(()=>({[Rte(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Rte(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&PPe(t.default(n));return e.custom?a:ia("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),MPe=RPe;function DPe(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 OPe(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(!_d(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function Pte(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Rte=(e,t,n)=>e??t??n,$Pe=be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=xn(KF),o=j(()=>e.route||r.value),a=xn(Ite,0),s=j(()=>{let f=st(a);const{matched:h}=o.value;let p;for(;(p=h[f])&&!p.components;)f++;return f}),l=j(()=>o.value.matched[s.value]);Gr(Ite,j(()=>s.value+1)),Gr(LPe,l),Gr(KF,o);const c=pe();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 Mte(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=ia(m,Xi({},b,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return Mte(n.default,{Component:k,route:f})||k}}});function Mte(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const NPe=$Pe;function BPe(e){const t=wPe(e.routes,e),n=e.parseQuery||APe,r=e.stringifyQuery||Ate,o=e.history,a=P_(),s=P_(),l=P_(),c=Xm(mp);let f=mp;Sy&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=b8.bind(null,ve=>""+ve),p=b8.bind(null,XLe),m=b8.bind(null,N2);function g(ve,Ie){let Ne,Ye;return Ude(ve)?(Ne=t.getRecordMatcher(ve),Ye=Ie):Ye=ve,t.addRoute(Ye,Ne)}function b(ve){const Ie=t.getRecordMatcher(ve);Ie&&t.removeRoute(Ie)}function S(){return t.getRoutes().map(ve=>ve.record)}function k(ve){return!!t.getRecordMatcher(ve)}function C(ve,Ie){if(Ie=Xi({},Ie||c.value),typeof ve=="string"){const ye=_8(n,ve,Ie.path),Re=t.resolve({path:ye.path},Ie),je=o.createHref(ye.fullPath);return Xi(ye,Re,{params:m(Re.params),hash:N2(ye.hash),redirectedFrom:void 0,href:je})}let Ne;if(ve.path!=null)Ne=Xi({},ve,{path:_8(n,ve.path,Ie.path).path});else{const ye=Xi({},ve.params);for(const Re in ye)ye[Re]==null&&delete ye[Re];Ne=Xi({},ve,{params:p(ye)}),Ie.params=p(Ie.params)}const Ye=t.resolve(Ne,Ie),Ze=ve.hash||"";Ye.params=h(m(Ye.params));const Ge=QLe(r,Xi({},ve,{hash:KLe(Ze),path:Ye.path})),_e=o.createHref(Ge);return Xi({fullPath:Ge,hash:Ze,query:r===Ate?IPe(ve.query):ve.query||{}},Ye,{redirectedFrom:void 0,href:_e})}function E(ve){return typeof ve=="string"?_8(n,ve,c.value.path):Xi({},ve)}function x(ve,Ie){if(f!==ve)return g1(8,{from:Ie,to:ve})}function _(ve){return M(ve)}function A(ve){return _(Xi(E(ve),{replace:!0}))}function R(ve){const Ie=ve.matched[ve.matched.length-1];if(Ie&&Ie.redirect){const{redirect:Ne}=Ie;let Ye=typeof Ne=="function"?Ne(ve):Ne;return typeof Ye=="string"&&(Ye=Ye.includes("?")||Ye.includes("#")?Ye=E(Ye):{path:Ye},Ye.params={}),Xi({query:ve.query,hash:ve.hash,params:Ye.path!=null?{}:ve.params},Ye)}}function M(ve,Ie){const Ne=f=C(ve),Ye=c.value,Ze=ve.state,Ge=ve.force,_e=ve.replace===!0,ye=R(Ne);if(ye)return M(Xi(E(ye),{state:typeof ye=="object"?Xi({},Ze,ye.state):Ze,force:Ge,replace:_e}),Ie||Ne);const Re=Ne;Re.redirectedFrom=Ie;let je;return!Ge&&ePe(r,Ye,Ne)&&(je=g1(16,{to:Re,from:Ye}),J(Ye,Ye,!0,!1)),(je?Promise.resolve(je):L(Re,Ye)).catch(Qe=>Zf(Qe)?Zf(Qe,2)?Qe:K(Qe):te(Qe,Re,Ye)).then(Qe=>{if(Qe){if(Zf(Qe,2))return M(Xi({replace:_e},E(Qe.to),{state:typeof Qe.to=="object"?Xi({},Ze,Qe.to.state):Ze,force:Ge}),Ie||Re)}else Qe=F(Re,Ye,!0,_e,Ze);return B(Re,Ye,Qe),Qe})}function D(ve,Ie){const Ne=x(ve,Ie);return Ne?Promise.reject(Ne):Promise.resolve()}function $(ve){const Ie=ae.values().next().value;return Ie&&typeof Ie.runWithContext=="function"?Ie.runWithContext(ve):ve()}function L(ve,Ie){let Ne;const[Ye,Ze,Ge]=FPe(ve,Ie);Ne=S8(Ye.reverse(),"beforeRouteLeave",ve,Ie);for(const ye of Ye)ye.leaveGuards.forEach(Re=>{Ne.push(Fp(Re,ve,Ie))});const _e=D.bind(null,ve,Ie);return Ne.push(_e),ke(Ne).then(()=>{Ne=[];for(const ye of a.list())Ne.push(Fp(ye,ve,Ie));return Ne.push(_e),ke(Ne)}).then(()=>{Ne=S8(Ze,"beforeRouteUpdate",ve,Ie);for(const ye of Ze)ye.updateGuards.forEach(Re=>{Ne.push(Fp(Re,ve,Ie))});return Ne.push(_e),ke(Ne)}).then(()=>{Ne=[];for(const ye of Ge)if(ye.beforeEnter)if(_d(ye.beforeEnter))for(const Re of ye.beforeEnter)Ne.push(Fp(Re,ve,Ie));else Ne.push(Fp(ye.beforeEnter,ve,Ie));return Ne.push(_e),ke(Ne)}).then(()=>(ve.matched.forEach(ye=>ye.enterCallbacks={}),Ne=S8(Ge,"beforeRouteEnter",ve,Ie,$),Ne.push(_e),ke(Ne))).then(()=>{Ne=[];for(const ye of s.list())Ne.push(Fp(ye,ve,Ie));return Ne.push(_e),ke(Ne)}).catch(ye=>Zf(ye,8)?ye:Promise.reject(ye))}function B(ve,Ie,Ne){l.list().forEach(Ye=>$(()=>Ye(ve,Ie,Ne)))}function F(ve,Ie,Ne,Ye,Ze){const Ge=x(ve,Ie);if(Ge)return Ge;const _e=Ie===mp,ye=Sy?history.state:{};Ne&&(Ye||_e?o.replace(ve.fullPath,Xi({scroll:_e&&ye&&ye.scroll},Ze)):o.push(ve.fullPath,Ze)),c.value=ve,J(ve,Ie,Ne,_e),K()}let U;function z(){U||(U=o.listen((ve,Ie,Ne)=>{if(!Ce.listening)return;const Ye=C(ve),Ze=R(Ye);if(Ze){M(Xi(Ze,{replace:!0,force:!0}),Ye).catch(DS);return}f=Ye;const Ge=c.value;Sy&&lPe(bte(Ge.fullPath,Ne.delta),S3()),L(Ye,Ge).catch(_e=>Zf(_e,12)?_e:Zf(_e,2)?(M(Xi(E(_e.to),{force:!0}),Ye).then(ye=>{Zf(ye,20)&&!Ne.delta&&Ne.type===B2.pop&&o.go(-1,!1)}).catch(DS),Promise.reject()):(Ne.delta&&o.go(-Ne.delta,!1),te(_e,Ye,Ge))).then(_e=>{_e=_e||F(Ye,Ge,!1),_e&&(Ne.delta&&!Zf(_e,8)?o.go(-Ne.delta,!1):Ne.type===B2.pop&&Zf(_e,20)&&o.go(-1,!1)),B(Ye,Ge,_e)}).catch(DS)}))}let G=P_(),Y=P_(),re;function te(ve,Ie,Ne){K(ve);const Ye=Y.list();return Ye.length?Ye.forEach(Ze=>Ze(ve,Ie,Ne)):console.error(ve),Promise.reject(ve)}function X(){return re&&c.value!==mp?Promise.resolve():new Promise((ve,Ie)=>{G.add([ve,Ie])})}function K(ve){return re||(re=!ve,z(),G.list().forEach(([Ie,Ne])=>ve?Ne(ve):Ie()),G.reset()),ve}function J(ve,Ie,Ne,Ye){const{scrollBehavior:Ze}=e;if(!Sy||!Ze)return Promise.resolve();const Ge=!Ne&&uPe(bte(ve.fullPath,0))||(Ye||!Ne)&&history.state&&history.state.scroll||null;return kn().then(()=>Ze(ve,Ie,Ge)).then(_e=>_e&&aPe(_e)).catch(_e=>te(_e,ve,Ie))}const ie=ve=>o.go(ve);let se;const ae=new Set,Ce={currentRoute:c,listening:!0,addRoute:g,removeRoute:b,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:C,options:e,push:_,replace:A,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:Y.add,isReady:X,install(ve){const Ie=this;ve.component("RouterLink",MPe),ve.component("RouterView",NPe),ve.config.globalProperties.$router=Ie,Object.defineProperty(ve.config.globalProperties,"$route",{enumerable:!0,get:()=>st(c)}),Sy&&!se&&c.value===mp&&(se=!0,_(o.location).catch(Ze=>{}));const Ne={};for(const Ze in mp)Object.defineProperty(Ne,Ze,{get:()=>c.value[Ze],enumerable:!0});ve.provide(k3,Ie),ve.provide(JV,RV(Ne)),ve.provide(KF,c);const Ye=ve.unmount;ae.add(ve),ve.unmount=function(){ae.delete(ve),ae.size<1&&(f=mp,U&&U(),U=null,c.value=mp,se=!1,re=!1),Ye()}}};function ke(ve){return ve.reduce((Ie,Ne)=>Ie.then(()=>$(Ne)),Promise.resolve())}return Ce}function FPe(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 gl(){return xn(k3)}function w3(e){return xn(JV)}const Ng=Object.prototype.toString;function qn(e){return Ng.call(e)==="[object Array]"}function yl(e){return Ng.call(e)==="[object Null]"}function ml(e){return Ng.call(e)==="[object Boolean]"}function lr(e){return Ng.call(e)==="[object Object]"}const mg=e=>Ng.call(e)==="[object Promise]";function ts(e){return Ng.call(e)==="[object String]"}function Ke(e){return Ng.call(e)==="[object Number]"&&e===e}function mn(e){return e===void 0}function pn(e){return typeof e=="function"}function jPe(e){return lr(e)&&Object.keys(e).length===0}function Dte(e){return e||e===0}function IT(e){return e===window}const Wde=e=>e?.$!==void 0,UPe=e=>/\[Q]Q/.test(e);function Rc(e){return lr(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const Fa=Symbol("ArcoConfigProvider"),qE={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:"日"}}},VPe={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:qE,datePicker:{view:qE.view,month:qE.month,week:qE.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:"暂无"}},QV=pe("zh-CN"),OA=Ht({"zh-CN":VPe}),zPe=(e,t)=>{for(const n of Object.keys(e))(!OA[n]||t?.overwrite)&&(OA[n]=e[n])},HPe=e=>{if(!OA[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}QV.value=e},WPe=()=>QV.value,Ao=()=>{const e=xn(Fa,void 0),t=j(()=>{var o;return(o=e?.locale)!=null?o:OA[QV.value]}),n=j(()=>t.value.locale);return{i18nMessage:t,locale:n,t:(o,...a)=>{const s=o.split(".");let l=t.value;for(const c of s){if(!l[c])return o;l=l[c]}return ts(l)&&a.length>0?l.replace(/{(\d+)}/g,(c,f)=>{var h;return(h=a[f])!=null?h:c}):l}}},GPe="A",KPe="arco",qF="$arco",jn=e=>{var t;return(t=e?.componentPrefix)!=null?t:GPe},Un=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[qF]={...(n=e.config.globalProperties[qF])!=null?n:{},classPrefix:t.classPrefix})},Te=e=>{var t,n,r;const o=uo(),a=xn(Fa,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=o?.appContext.config.globalProperties[qF])==null?void 0:t.classPrefix)!=null?r:KPe;return e?`${s}-${e}`:s};var Gde=(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(){!YF||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),QPe?(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(){!YF||!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})(),Kde=(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 l5e(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 u5e(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})(),Yde=typeof WeakMap<"u"?new WeakMap:new Gde,Xde=(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=e5e.getInstance(),r=new c5e(t,n,this);Yde.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Xde.prototype[e]=function(){var t;return(t=Yde.get(this))[e].apply(t,arguments)}});var E3=(function(){return typeof $A.ResizeObserver<"u"?$A.ResizeObserver:Xde})();const x3=e=>!!(e&&e.shapeFlag&1),Tk=(e,t)=>!!(e&&e.shapeFlag&6),d5e=(e,t)=>!!(e&&e.shapeFlag&8),T3=(e,t)=>!!(e&&e.shapeFlag&16),A3=(e,t)=>!!(e&&e.shapeFlag&32),Uy=e=>{var t,n;if(e)for(const r of e){if(x3(r)||Tk(r))return r;if(T3(r,r.children)){const o=Uy(r.children);if(o)return o}else if(A3(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}}},f5e=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},Zde=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&Zde(o,t))return!0}return!1},ez=e=>{if(T3(e,e.children))return e.children;if(qn(e))return e},Jde=e=>{var t,n;if(x3(e))return e.el;if(Tk(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=Jde(e.component.subTree);if(r)return r}}else{const r=ez(e);return Qde(r)}},Qde=e=>{if(e&&e.length>0)for(const t of e){const n=Jde(t);if(n)return n}},cf=(e,t=!1)=>{var n,r;const o=[];for(const a of e??[])x3(a)||Tk(a)||t&&d5e(a,a.children)?o.push(a):T3(a,a.children)?o.push(...cf(a.children,t)):A3(a,a.children)?o.push(...cf((r=(n=a.children).default)==null?void 0:r.call(n),t)):qn(a)&&o.push(...cf(a,t));return o};function h5e(e){function t(n){const r=[];return n.forEach(o=>{var a,s;Di(o)&&o.type===Ft?A3(o,o.children)?r.push(...t(((s=(a=o.children).default)==null?void 0:s.call(a))||[])):T3(o,o.children)?r.push(...t(o.children)):ts(o.children)&&r.push(o.children):r.push(o)}),r}return t(e)}const Dl=e=>{if(e)return pn(e)?e:()=>e},efe=(e,t)=>{var n;const r=[];if(Tk(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...efe(e.component.subTree,t));else{const o=ez(e);o&&r.push(...tfe(o,t))}return r},tfe=(e,t)=>{const n=[];if(e&&e.length>0)for(const r of e)n.push(...efe(r,t));return n};var Sd=be({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const o=pe(),a=j(()=>Wde(o.value)?o.value.$el:o.value),s=c=>{c&&(r=new E3(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)}),dn(()=>{a.value&&s(a.value)}),hi(()=>{l()}),()=>{var c,f;const h=Uy((f=(c=n.default)==null?void 0:c.call(n))!=null?f:[]);return h?vl(h,{ref:o},!0):null}}});const nfe=typeof window>"u"?global:window,rfe=nfe.requestAnimationFrame,BA=nfe.cancelAnimationFrame;function gg(e){let t=0;const n=(...r)=>{t&&BA(t),t=rfe(()=>{e(...r),t=0})};return n.cancel=()=>{BA(t),t=0},n}const Vy=()=>{},ife=()=>{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)}},Ak=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),ki=Ak?Vy:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},Gi=Ak?Vy:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},p5e=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},I3=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},ofe=(e,t)=>{var n;return Ak?Vy():(n=(t??document).querySelector(e))!=null?n:void 0},Zd=(e,t)=>{if(ts(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return ofe(n,t)}return e},v5e=(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}},m5e=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,g5e=e=>e.tagName==="BODY"?window.innerWidth-ife().width:e.offsetWidth-e.clientWidth;var $e=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function y5e(e){return IT(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const b5e=be({name:"Affix",components:{ResizeObserver:Sd},props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},target:{type:[String,Object,Function]},targetContainer:{type:[String,Object,Function]}},emits:{change:e=>!0},setup(e,{emit:t}){const n=Te("affix"),{target:r,targetContainer:o}=Zt(e),a=pe(),s=pe(),l=pe(!1),c=pe({}),f=pe({}),h=j(()=>({[n]:l.value})),p=gg(()=>{if(!a.value||!s.value)return;const{offsetTop:m,offsetBottom:g}=e,b=mn(g)?"top":"bottom",S=a.value.getBoundingClientRect(),k=y5e(s.value);let C=!1,E={};const x={width:`${a.value.offsetWidth}px`,height:`${a.value.offsetHeight}px`};b==="top"?(C=S.top-k.top<(m||0),E=C?{position:"fixed",top:`${k.top+(m||0)}px`}:{}):(C=k.bottom-S.bottom<(g||0),E=C?{position:"fixed",bottom:`${window.innerHeight-k.bottom+(g||0)}px`}:{}),C!==l.value&&(l.value=C,t("change",C)),c.value=x,f.value={...E,...C?x:{}}});return dn(()=>{Cs(m=>{const g=r&&r.value!==window&&Zd(r.value)||window;s.value=g,g&&(ki(g,"scroll",p),ki(g,"resize",p),m(()=>{Gi(g,"scroll",p),Gi(g,"resize",p)}))}),Cs(m=>{if(!s.value)return;const g=o&&o.value!==window&&Zd(o.value)||window;g&&(ki(g,"scroll",p),ki(g,"resize",p),m(()=>{Gi(g,"scroll",p),Gi(g,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:f,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),_5e={ref:"wrapperRef"};function S5e(e,t,n,r,o,a){const s=Me("ResizeObserver");return H(),Xe(s,{onResize:e.updatePositionThrottle},{default:de(()=>[I("div",_5e,[e.isFixed?(H(),Q("div",{key:0,style:Ve(e.placeholderStyles)},null,4)):Oe("v-if",!0),I("div",{class:le(e.classNames),style:Ve(e.fixedStyles)},[O(s,{onResize:e.updatePositionThrottle},{default:de(()=>[ft(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var k8=$e(b5e,[["render",S5e]]);const k5e=Object.assign(k8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+k8.name,k8)}}),w5e=be({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:Te("icon-hover")}}});function C5e(e,t,n,r,o,a){return H(),Q("span",{class:le([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[ft(e.$slots,"default")],2)}var _o=$e(w5e,[["render",C5e]]);const E5e=be({name:"IconClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),x5e=["stroke-width","stroke-linecap","stroke-linejoin"];function T5e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,x5e)}var w8=$e(E5e,[["render",T5e]]);const xs=Object.assign(w8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w8.name,w8)}}),A5e=be({name:"IconInfoCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),I5e=["stroke-width","stroke-linecap","stroke-linejoin"];function L5e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,I5e)}var C8=$e(A5e,[["render",L5e]]);const z1=Object.assign(C8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C8.name,C8)}}),P5e=be({name:"IconCheckCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),R5e=["stroke-width","stroke-linecap","stroke-linejoin"];function M5e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,R5e)}var E8=$e(P5e,[["render",M5e]]);const Fh=Object.assign(E8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E8.name,E8)}}),D5e=be({name:"IconExclamationCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),O5e=["stroke-width","stroke-linecap","stroke-linejoin"];function $5e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,O5e)}var x8=$e(D5e,[["render",$5e]]);const Sf=Object.assign(x8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x8.name,x8)}}),N5e=be({name:"IconCloseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),B5e=["stroke-width","stroke-linecap","stroke-linejoin"];function F5e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,B5e)}var T8=$e(N5e,[["render",F5e]]);const Bg=Object.assign(T8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T8.name,T8)}}),j5e=be({name:"Alert",components:{IconHover:_o,IconClose:xs,IconInfoCircleFill:z1,IconCheckCircleFill:Fh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Bg},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},title:String,banner:{type:Boolean,default:!1},center:{type:Boolean,default:!1}},emits:{close:e=>!0,afterClose:()=>!0},setup(e,{slots:t,emit:n}){const r=Te("alert"),o=pe(!0),a=c=>{o.value=!1,n("close",c)},s=()=>{n("afterClose")},l=j(()=>[r,`${r}-${e.type}`,{[`${r}-with-title`]:!!(e.title||t.title),[`${r}-banner`]:e.banner,[`${r}-center`]:e.center}]);return{prefixCls:r,cls:l,visible:o,handleClose:a,handleAfterLeave:s}}});function U5e(e,t,n,r,o,a){const s=Me("icon-info-circle-fill"),l=Me("icon-check-circle-fill"),c=Me("icon-exclamation-circle-fill"),f=Me("icon-close-circle-fill"),h=Me("icon-close"),p=Me("icon-hover");return H(),Xe(Es,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:de(()=>[e.visible?(H(),Q("div",{key:0,role:"alert",class:le(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Xe(s,{key:0})):e.type==="success"?(H(),Xe(l,{key:1})):e.type==="warning"?(H(),Xe(c,{key:2})):e.type==="error"?(H(),Xe(f,{key:3})):Oe("v-if",!0)])],2)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2)],2),e.$slots.action?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-action`)},[ft(e.$slots,"action")],2)):Oe("v-if",!0),e.closable?(H(),Q("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:le(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[ft(e.$slots,"close-element",{},()=>[O(p,null,{default:de(()=>[O(h)]),_:1})])],2)):Oe("v-if",!0)],2)):Oe("v-if",!0)]),_:3},8,["onAfterLeave"])}var A8=$e(j5e,[["render",U5e]]);const sfe=Object.assign(A8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+A8.name,A8)}});function $te(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Nte(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function I8(e,t){if(e.clientHeightt||a>e&&s=t&&l>=n?a-e-r:s>t&&ln?s-t+o:0}var XF=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(ye){return ye!==s};if(!$te(e))throw new TypeError("Invalid target");for(var f,h,p=document.scrollingElement||document.documentElement,m=[],g=e;$te(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&&I8(g)&&!I8(document.documentElement)||g!=null&&I8(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,E=e.getBoundingClientRect(),x=E.height,_=E.width,A=E.top,R=E.right,M=E.bottom,D=E.left,$=o==="start"||o==="nearest"?A:o==="end"?M:A+x/2,L=a==="center"?D+_/2:a==="end"?R:D,B=[],F=0;F=0&&D>=0&&M<=S&&R<=b&&A>=re&&M<=X&&D>=K&&R<=te)return B;var J=getComputedStyle(U),ie=parseInt(J.borderLeftWidth,10),se=parseInt(J.borderTopWidth,10),ae=parseInt(J.borderRightWidth,10),Ce=parseInt(J.borderBottomWidth,10),ke=0,ve=0,Ie="offsetWidth"in U?U.offsetWidth-U.clientWidth-ie-ae:0,Ne="offsetHeight"in U?U.offsetHeight-U.clientHeight-se-Ce:0,Ye="offsetWidth"in U?U.offsetWidth===0?0:Y/U.offsetWidth:0,Ze="offsetHeight"in U?U.offsetHeight===0?0:G/U.offsetHeight:0;if(p===U)ke=o==="start"?$:o==="end"?$-S:o==="nearest"?YE(C,C+S,S,se,Ce,C+$,C+$+x,x):$-S/2,ve=a==="start"?L:a==="center"?L-b/2:a==="end"?L-b:YE(k,k+b,b,ie,ae,k+L,k+L+_,_),ke=Math.max(0,ke+C),ve=Math.max(0,ve+k);else{ke=o==="start"?$-re-se:o==="end"?$-X+Ce+Ne:o==="nearest"?YE(re,X,G,se,Ce+Ne,$,$+x,x):$-(re+G/2)+Ne/2,ve=a==="start"?L-K-ie:a==="center"?L-(K+Y/2)+Ie/2:a==="end"?L-te+ae+Ie:YE(K,te,Y,ie,ae+Ie,L,L+_,_);var Ge=U.scrollLeft,_e=U.scrollTop;$+=_e-(ke=Math.max(0,Math.min(_e+ke/Ze,U.scrollHeight-G/Ze+Ne))),L+=Ge-(ve=Math.max(0,Math.min(Ge+ve/Ye,U.scrollWidth-Y/Ye+Ie)))}B.push({el:U,top:ke,left:ve})}return B},Ik=function(e){return function(t){return Math.pow(t,e)}},Lk=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},L3=function(e){return function(t){return t<.5?Ik(e)(t*2)/2:Lk(e)(t*2-1)/2+.5}},V5e=function(e){return e},z5e=Ik(2),H5e=Lk(2),W5e=L3(2),G5e=Ik(3),K5e=Lk(3),q5e=L3(3),Y5e=Ik(4),X5e=Lk(4),Z5e=L3(4),J5e=Ik(5),Q5e=Lk(5),eRe=L3(5),tRe=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},nRe=function(e){return Math.sin(Math.PI/2*e)},rRe=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},tz=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)},afe=function(e){return 1-tz(1-e)},iRe=function(e){return e<.5?afe(e*2)*.5:tz(e*2-1)*.5+.5},oRe=Object.freeze({linear:V5e,quadIn:z5e,quadOut:H5e,quadInOut:W5e,cubicIn:G5e,cubicOut:K5e,cubicInOut:q5e,quartIn:Y5e,quartOut:X5e,quartInOut:Z5e,quintIn:J5e,quintOut:Q5e,quintInOut:eRe,sineIn:tRe,sineOut:nRe,sineInOut:rRe,bounceOut:tz,bounceIn:afe,bounceInOut:iRe}),Fg=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={}};Fg.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])*oRe[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};Fg.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()};Fg.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function sRe(e,t,n){new Fg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:o=>{e.scrollTop=o.scrollTop},onFinish:()=>{pn(n)&&n()}}).start()}const lfe=Symbol("ArcoAnchor"),aRe=["start","end","center","nearest"],lRe=be({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>Ke(e)||aRe.includes(e)},lineLess:{type:Boolean,default:!1},scrollContainer:{type:[String,Object]},changeHash:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},emits:{select:(e,t)=>!0,change:e=>!0},setup(e,{emit:t}){const n=Te("anchor"),r=pe(),o=pe(),a=Ht({}),s=pe(""),l=pe(!1),c=pe(),f=pe(),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=Zd(A);if(!R)return;let M,D=0;Ke(e.boundary)?(M="start",D=e.boundary):M=e.boundary;const $=XF(R,{block:M});if(!$.length)return;const{el:L,top:B}=$[0],F=B-D;sRe(L,F,()=>{l.value=!1}),l.value=!0}catch(R){console.error(R)}},b=gg(()=>{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=Zd(`a[data-href='${A}']`,r.value);if(!R)return;a[A]=R}A!==s.value&&(s.value=A,kn(()=>{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=Zd(M);if(D){const{top:$}=D.getBoundingClientRect(),L=IT(c.value)?$-A:$-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&&ki(c.value,"scroll",b)},E=()=>{c.value&&Gi(c.value,"scroll",b)},x=()=>{e.scrollContainer?(c.value=IT(e.scrollContainer)?window:Zd(e.scrollContainer),f.value=IT(e.scrollContainer)?document.documentElement:Zd(e.scrollContainer)):(c.value=window,f.value=document.documentElement)};dn(()=>{x();const A=decodeURIComponent(window.location.hash);A?(g(A),S(A)):b(),C()}),$o(()=>{E()}),Gr(lfe,Ht({currentLink:s,addLink:h,removeLink:p,handleClick:m}));const _=j(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:_,anchorRef:r,lineSliderRef:o}}});function uRe(e,t,n,r,o,a){return H(),Q("div",{ref:"anchorRef",class:le(e.cls)},[e.lineLess?Oe("v-if",!0):(H(),Q("div",{key:0,ref:"lineSliderRef",class:le(`${e.prefixCls}-line-slider`)},null,2)),I("ul",{class:le(`${e.prefixCls}-list`)},[ft(e.$slots,"default")],2)],2)}var L8=$e(lRe,[["render",uRe]]);const cRe=be({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=Te("anchor"),n=`${t}-link`,r=pe(),o=xn(lfe,void 0);dn(()=>{e.href&&r.value&&o?.addLink(e.href,r.value)});const a=j(()=>[`${n}-item`,{[`${n}-active`]:o?.currentLink===e.href}]);return{prefixCls:t,linkCls:n,cls:a,linkRef:r,handleClick:l=>o?.handleClick(l,e.href)}}}),dRe=["href"];function fRe(e,t,n,r,o,a){return H(),Q("li",{ref:"linkRef",class:le(e.cls)},[I("a",{class:le(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[ft(e.$slots,"default",{},()=>[We(Be(e.title),1)])],10,dRe),e.$slots.sublist?(H(),Q("ul",{key:0,class:le(`${e.prefixCls}-sublist`)},[ft(e.$slots,"sublist")],2)):Oe("v-if",!0)],2)}var LT=$e(cRe,[["render",fRe]]);const hRe=Object.assign(L8,{Link:LT,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+L8.name,L8),e.component(n+LT.name,LT)}}),P3=["info","success","warning","error"],lv=["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"],pRe=be({name:"IconLoading",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vRe=["stroke-width","stroke-linecap","stroke-linejoin"];function mRe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,vRe)}var P8=$e(pRe,[["render",mRe]]);const ja=Object.assign(P8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P8.name,P8)}}),gRe=be({name:"FeedbackIcon",components:{IconLoading:ja,IconCheckCircleFill:Fh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Bg},props:{type:{type:String}},setup(e){const t=Te("feedback-icon");return{cls:j(()=>[t,`${t}-status-${e.type}`])}}});function yRe(e,t,n,r,o,a){const s=Me("icon-loading"),l=Me("icon-check-circle-fill"),c=Me("icon-exclamation-circle-fill"),f=Me("icon-close-circle-fill");return H(),Q("span",{class:le(e.cls)},[e.type==="validating"?(H(),Xe(s,{key:0})):e.type==="success"?(H(),Xe(l,{key:1})):e.type==="warning"?(H(),Xe(c,{key:2})):e.type==="error"?(H(),Xe(f,{key:3})):Oe("v-if",!0)],2)}var Pk=$e(gRe,[["render",yRe]]);const nz={key:"Enter"},ufe={key:"Backspace",code:"Backspace"},bRe={code:"ArrowLeft"},_Re={code:"ArrowRight"},va=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function hf(e,t){const n={};return t.forEach(r=>{const o=r;r in e&&(n[o]=e[o])}),n}const ZF=Symbol("ArcoFormItemContext"),rz=Symbol("ArcoFormContext"),So=({size:e,disabled:t,error:n,uninject:r}={})=>{const o=r?{}:xn(ZF,{}),a=j(()=>{var h;return(h=e?.value)!=null?h:o.size}),s=j(()=>t?.value||o.disabled),l=j(()=>n?.value||o.error),c=wu(o,"feedback"),f=wu(o,"eventHandlers");return{formItemCtx:o,mergedSize:a,mergedDisabled:s,mergedError:l,feedback:c,eventHandlers:f}},ga=(e,{defaultValue:t="medium"}={})=>{const n=xn(Fa,void 0);return{mergedSize:j(()=>{var o,a;return(a=(o=e?.value)!=null?o:n?.size)!=null?a:t})}};function cfe(e){const t=pe();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 $S=be({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}=Zt(e),c=Te("input"),f=pe(),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g,eventHandlers:b}=So({size:o,disabled:a,error:s}),{mergedSize:S}=ga(h),[k,C]=cfe(f),E=pe(e.defaultValue),x=j(()=>{var _e;return(_e=e.modelValue)!=null?_e:E.value});let _=x.value;Dt(l,_e=>{(mn(_e)||yl(_e))&&(E.value="")}),Dt(x,(_e,ye)=>{_=ye});const A=pe(!1),R=j(()=>e.allowClear&&!e.readonly&&!p.value&&!!x.value),M=pe(!1),D=pe(""),$=_e=>{var ye;return pn(e.wordLength)?e.wordLength(_e):(ye=_e.length)!=null?ye:0},L=j(()=>$(x.value)),B=j(()=>m.value||!!(lr(e.maxLength)&&e.maxLength.errorOnly&&L.value>U.value)),F=j(()=>lr(e.maxLength)&&!!e.maxLength.errorOnly),U=j(()=>lr(e.maxLength)?e.maxLength.length:e.maxLength),z=j(()=>{const _e=$("a");return Math.floor(U.value/_e)}),G=_e=>{var ye,Re;U.value&&!F.value&&$(_e)>U.value&&(_e=(Re=(ye=e.wordSlice)==null?void 0:ye.call(e,_e,U.value))!=null?Re:_e.slice(0,z.value)),E.value=_e,t("update:modelValue",_e)},Y=_e=>{f.value&&_e.target!==f.value&&(_e.preventDefault(),f.value.focus())},re=(_e,ye)=>{var Re,je;_e!==_&&(_=_e,t("change",_e,ye),(je=(Re=b.value)==null?void 0:Re.onChange)==null||je.call(Re,ye))},te=_e=>{var ye,Re;A.value=!0,t("focus",_e),(Re=(ye=b.value)==null?void 0:ye.onFocus)==null||Re.call(ye,_e)},X=_e=>{var ye,Re;A.value=!1,re(x.value,_e),t("blur",_e),(Re=(ye=b.value)==null?void 0:ye.onBlur)==null||Re.call(ye,_e)},K=_e=>{var ye,Re,je;const{value:Qe,selectionStart:rt,selectionEnd:yt}=_e.target;if(_e.type==="compositionend"){if(M.value=!1,D.value="",U.value&&!F.value&&L.value>=U.value&&$(Qe)>U.value&&rt===yt){J();return}G(Qe),t("input",Qe,_e),(Re=(ye=b.value)==null?void 0:ye.onInput)==null||Re.call(ye,_e),J()}else M.value=!0,D.value=x.value+((je=_e.data)!=null?je:"")},J=()=>{k(),kn(()=>{f.value&&x.value!==f.value.value&&(f.value.value=x.value,C())})},ie=_e=>{var ye,Re;const{value:je}=_e.target;if(!M.value){if(U.value&&!F.value&&L.value>=U.value&&$(je)>U.value&&_e.inputType==="insertText"){J();return}G(je),t("input",je,_e),(Re=(ye=b.value)==null?void 0:ye.onInput)==null||Re.call(ye,_e),J()}},se=_e=>{G(""),re("",_e),t("clear",_e)},ae=_e=>{const ye=_e.key||_e.code;!M.value&&ye===nz.key&&(re(x.value,_e),t("pressEnter",_e))},Ce=j(()=>[`${c}-outer`,`${c}-outer-size-${S.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),ke=j(()=>[`${c}-wrapper`,{[`${c}-error`]:B.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:A.value}]),ve=j(()=>[c,`${c}-size-${S.value}`]),Ie=j(()=>va(r,lv)),Ne=j(()=>hf(r,lv)),Ye=j(()=>{const _e={...Ne.value,...e.inputAttrs};return B.value&&(_e["aria-invalid"]=!0),_e}),Ze=_e=>{var ye;return O("span",Nt({class:ke.value,onMousedown:Y},_e?void 0:Ie.value),[n.prefix&&O("span",{class:`${c}-prefix`},[n.prefix()]),O("input",Nt({ref:f,class:ve.value,value:x.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:ie,onKeydown:ae,onFocus:te,onBlur:X,onCompositionstart:K,onCompositionupdate:K,onCompositionend:K},Ye.value),null),R.value&&O(_o,{prefix:c,class:`${c}-clear-btn`,onClick:se},{default:()=>[O(xs,null,null)]}),(n.suffix||!!e.maxLength&&e.showWordLimit||!!g.value)&&O("span",{class:[`${c}-suffix`,{[`${c}-suffix-has-feedback`]:g.value}]},[!!e.maxLength&&e.showWordLimit&&O("span",{class:`${c}-word-limit`},[L.value,We("/"),U.value]),(ye=n.suffix)==null?void 0:ye.call(n),!!g.value&&O(Pk,{type:g.value},null)])])};return{inputRef:f,render:()=>n.prepend||n.append||e.prepend||e.append?O("span",Nt({class:Ce.value},Ie.value),[(n.prepend||e.prepend)&&O("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),Ze(!0),(n.append||e.append)&&O("span",{class:`${c}-append`},[n.append?n.append():e.append])]):Ze()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const SRe=be({name:"IconSearch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kRe=["stroke-width","stroke-linecap","stroke-linejoin"];function wRe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,kRe)}var R8=$e(SRe,[["render",wRe]]);const yg=Object.assign(R8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R8.name,R8)}}),dfe=Symbol("ArcoButtonGroup"),CRe=be({name:"Button",components:{IconLoading:ja},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}=Zt(e),o=Te("btn"),a=xn(dfe,void 0),s=j(()=>{var g;return(g=n.value)!=null?g:a?.size}),l=j(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:f}=So({size:s,disabled:l}),{mergedSize:h}=ga(c),p=j(()=>{var g,b,S,k,C,E;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-${(E=(C=e.status)!=null?C:a?.status)!=null?E:"normal"}`,{[`${o}-long`]:e.long,[`${o}-loading`]:e.loading,[`${o}-disabled`]:f.value,[`${o}-link`]:ts(e.href)}]});return{prefixCls:o,cls:p,mergedDisabled:f,handleClick:g=>{if(e.disabled||e.loading){g.preventDefault();return}t("click",g)}}}}),ERe=["href"],xRe=["type","disabled","autofocus"];function TRe(e,t,n,r,o,a){const s=Me("icon-loading");return e.href?(H(),Q("a",{key:0,class:le([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(),Q("span",{key:0,class:le(`${e.prefixCls}-icon`)},[e.loading?(H(),Xe(s,{key:0,spin:"true"})):ft(e.$slots,"icon",{key:1})],2)):Oe("v-if",!0),ft(e.$slots,"default")],10,ERe)):(H(),Q("button",{key:1,class:le([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(),Q("span",{key:0,class:le(`${e.prefixCls}-icon`)},[e.loading?(H(),Xe(s,{key:0,spin:!0})):ft(e.$slots,"icon",{key:1})],2)):Oe("v-if",!0),ft(e.$slots,"default")],10,xRe))}var M8=$e(CRe,[["render",TRe]]);const ARe=be({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}=Zt(e),s=Te("btn-group");return Gr(dfe,Ht({type:t,size:n,shape:a,status:r,disabled:o})),{prefixCls:s}}});function IRe(e,t,n,r,o,a){return H(),Q("div",{class:le(e.prefixCls)},[ft(e.$slots,"default")],2)}var NS=$e(ARe,[["render",IRe]]);const Uo=Object.assign(M8,{Group:NS,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+M8.name,M8),e.component(n+NS.name,NS)}});var PT=be({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}=Zt(e),o=Te("input-search"),{mergedSize:a}=ga(r),s=pe(),l=p=>{s.value.inputRef&&t("search",s.value.inputRef.value,p)},c=()=>{var p;return O(Ft,null,[e.loading?O(ja,null,null):O(_o,{onClick:l},{default:()=>[O(yg,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(yg,null,null)},O(Uo,Nt({type:"primary",class:`${o}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),m)};return{inputRef:s,render:()=>O($S,{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 LRe=be({name:"IconEye",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PRe=["stroke-width","stroke-linecap","stroke-linejoin"];function RRe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,PRe)}var D8=$e(LRe,[["render",RRe]]);const uv=Object.assign(D8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D8.name,D8)}}),MRe=be({name:"IconEyeInvisible",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DRe=["stroke-width","stroke-linecap","stroke-linejoin"];function ORe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,DRe)}var O8=$e(MRe,[["render",ORe]]);const ffe=Object.assign(O8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O8.name,O8)}});function Na(e){const t=pe(e);return[t,r=>{t.value=r}]}function oa(e,t){const{value:n}=Zt(t),[r,o]=Na(mn(n.value)?e:n.value);return Dt(n,s=>{mn(s)&&o(void 0)}),[j(()=>mn(n.value)?r.value:n.value),o,r]}const $Re=be({name:"InputPassword",components:{IconEye:uv,IconEyeInvisible:ffe,AIconHover:_o,AInput:$S},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}=Zt(e),o=pe(),a=()=>{c(!s.value)},[s,l]=oa(r.value,Ht({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 NRe(e,t,n,r,o,a){const s=Me("icon-eye"),l=Me("icon-eye-invisible"),c=Me("a-icon-hover"),f=Me("a-input");return H(),Xe(f,{ref:"inputRef",type:e.mergedVisible?"password":"text"},yo({_:2},[e.$slots.prepend?{name:"prepend",fn:de(()=>[ft(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:de(()=>[e.invisibleButton?(H(),Xe(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=es(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=es(()=>{},["prevent"]))},{default:de(()=>[e.mergedVisible?(H(),Xe(l,{key:1})):(H(),Xe(s,{key:0}))]),_:1},8,["onClick"])):Oe("v-if",!0),ft(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:de(()=>[ft(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var RT=$e($Re,[["render",NRe]]);const BRe=be({name:"InputGroup",setup(){return{prefixCls:Te("input-group")}}});function FRe(e,t,n,r,o,a){return H(),Q("div",{class:le(e.prefixCls)},[ft(e.$slots,"default")],2)}var zy=$e(BRe,[["render",FRe]]);const Cv=Object.assign($S,{Search:PT,Password:RT,Group:zy,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+$S.name,$S),e.component(n+zy.name,zy),e.component(n+PT.name,PT),e.component(n+RT.name,RT)}}),jRe=()=>{const{height:e,width:t}=ife();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},Bte=(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}},URe=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"}},XE=(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}},VRe=(e,t,{containerRect:n,triggerRect:r,popupRect:o,offset:a,translate:s})=>{const l=URe(e),c=jRe(),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=XE(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=XE(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=XE(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=XE(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}}},zRe=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}`},HRe=(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=VRe(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}},WRe=(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}},GRe=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,Fte=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)GRe(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},hfe=()=>{const e={},t=pe(),n=()=>{const r=Qde(e.value);r!==t.value&&(t.value=r)};return dn(()=>n()),za(()=>n()),{children:e,firstElement:t}};var cv=be({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:o}=hfe();let a;const s=c=>{c&&(a=new E3(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)}),$o(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function fd(e,t){const n=pe(e[t]);return za(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const jte=Symbol("ArcoTrigger"),KRe=1e3,qRe=5e3,YRe=1;class XRe{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||qRe:Array.from(this.popupStack.popup).pop()||KRe)+YRe,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 $8=new XRe;function H1(e,{visible:t,runOnMounted:n}={}){const r=pe(0),o=()=>{r.value=$8.add(e)},a=()=>{$8.delete(r.value,e)},s=()=>e==="dialog"?$8.isLastDialog(r.value):!1;return Dt(()=>t?.value,l=>{l?o():a()},{immediate:!0}),n&&(dn(()=>{o()}),$o(()=>{a()})),{zIndex:L2(r),open:o,close:a,isLastDialog:s}}const ZRe=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new E3(a=>{const s=a[0];pn(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var iz=be({name:"ClientOnly",setup(e,{slots:t}){const n=pe(!1);return dn(()=>n.value=!0),()=>{var r;return n.value?(r=t.default)==null?void 0:r.call(t):null}}});const oz=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:r})=>{const o=pe(e.value),a=pe(),s=()=>{const l=Zd(e.value),c=l?e.value:n,f=l??(r?document.documentElement:Zd(n));c!==o.value&&(o.value=c),f!==a.value&&(a.value=f)};return dn(()=>s()),Dt(t,l=>{o.value!==e.value&&l&&s()}),{teleportContainer:o,containerRef:a}},JRe=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var N8=be({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}=Zt(e),a=Te("trigger"),s=j(()=>va(r,JRe)),l=xn(Fa,void 0),c=j(()=>[].concat(e.trigger)),f=new Set,h=xn(jte,void 0),{children:p,firstElement:m}=hfe(),g=pe(),b=pe(e.defaultPopupVisible),S=pe(e.position),k=pe({}),C=pe({}),E=pe({}),x=pe(),_=pe({top:0,left:0});let A=null,R=null;const M=j(()=>{var ht;return(ht=e.popupVisible)!=null?ht:b.value}),{teleportContainer:D,containerRef:$}=oz({popupContainer:o,visible:M,documentContainer:!0}),{zIndex:L}=H1("popup",{visible:M});let B=0,F=!1,U=!1;const z=()=>{B&&(window.clearTimeout(B),B=0)},G=ht=>{if(e.alignPoint){const{pageX:ze,pageY:Fe}=ht;_.value={top:Fe,left:ze}}},Y=()=>{if(!m.value||!g.value||!$.value)return;const ht=$.value.getBoundingClientRect(),ze=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}:Bte(m.value,ht),Fe=()=>Bte(g.value,ht),at=Fe(),{style:St,position:ut}=HRe(e.position,ht,ze,at,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(C.value={transformOrigin:zRe(ut)}),e.autoFitPopupMinWidth?St.minWidth=`${ze.width}px`:e.autoFitPopupWidth&&(St.width=`${ze.width}px`),S.value!==ut&&(S.value=ut),k.value=St,e.showArrow&&kn(()=>{E.value=WRe(ut,ze,Fe(),{customStyle:e.arrowStyle})})},re=(ht,ze)=>{if(ht===M.value&&B===0)return;const Fe=()=>{b.value=ht,t("update:popupVisible",ht),t("popupVisibleChange",ht),ht&&kn(()=>{Y()})};ht||(A=null,R=null),ze?(z(),ht!==M.value&&(B=window.setTimeout(Fe,ze))):Fe()},te=ht=>{var ze;(ze=r.onClick)==null||ze.call(r,ht),!(e.disabled||M.value&&!e.clickToClose)&&(c.value.includes("click")?(G(ht),re(!M.value)):c.value.includes("contextMenu")&&M.value&&re(!1))},X=ht=>{var ze;(ze=r.onMouseenter)==null||ze.call(r,ht),!(e.disabled||!c.value.includes("hover"))&&(G(ht),re(!0,e.mouseEnterDelay))},K=ht=>{h?.onMouseenter(ht),X(ht)},J=ht=>{var ze;(ze=r.onMouseleave)==null||ze.call(r,ht),!(e.disabled||!c.value.includes("hover"))&&re(!1,e.mouseLeaveDelay)},ie=ht=>{h?.onMouseleave(ht),J(ht)},se=ht=>{var ze;(ze=r.onFocusin)==null||ze.call(r,ht),!(e.disabled||!c.value.includes("focus"))&&re(!0,e.focusDelay)},ae=ht=>{var ze;(ze=r.onFocusout)==null||ze.call(r,ht),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&re(!1)},Ce=ht=>{var ze;(ze=r.onContextmenu)==null||ze.call(r,ht),!(e.disabled||!c.value.includes("contextMenu")||M.value&&!e.clickToClose)&&(G(ht),re(!M.value),ht.preventDefault())};Gr(jte,Ht({onMouseenter:K,onMouseleave:ie,addChildRef:ht=>{f.add(ht),h?.addChildRef(ht)},removeChildRef:ht=>{f.delete(ht),h?.removeChildRef(ht)}}));const Ie=()=>{Gi(document.documentElement,"mousedown",Ze),F=!1},Ne=fd(n,"content"),Ye=j(()=>{var ht;return e.hideEmpty&&f5e((ht=Ne.value)==null?void 0:ht.call(Ne))}),Ze=ht=>{var ze,Fe,at;if(!((ze=m.value)!=null&&ze.contains(ht.target)||(Fe=g.value)!=null&&Fe.contains(ht.target))){for(const St of f)if((at=St.value)!=null&&at.contains(ht.target))return;Ie(),re(!1)}},Ge=(ht,ze)=>{const[Fe,at]=ht,{scrollTop:St,scrollLeft:ut}=ze;return Math.abs(St-Fe)>=e.scrollToCloseDistance||Math.abs(ut-at)>=e.scrollToCloseDistance},_e=gg(ht=>{if(M.value)if(e.scrollToClose||l?.scrollToClose){const ze=ht.target;A||(A=[ze.scrollTop,ze.scrollLeft]),Ge(A,ze)?re(!1):Y()}else Y()}),ye=()=>{Gi(window,"scroll",Re),U=!1},Re=gg(ht=>{const ze=ht.target.documentElement;R||(R=[ze.scrollTop,ze.scrollLeft]),Ge(R,ze)&&(re(!1),ye())}),je=()=>{M.value&&Y()},Qe=()=>{je(),t("resize")},rt=ht=>{e.preventFocus&&ht.preventDefault()};h?.addChildRef(g);const yt=j(()=>M.value?e.openedClass:void 0);let ct;Dt(M,ht=>{if(e.clickOutsideToClose&&(!ht&&F?Ie():ht&&!F&&(ki(document.documentElement,"mousedown",Ze),F=!0)),(e.scrollToClose||l?.scrollToClose)&&(ki(window,"scroll",Re),U=!0),e.updateAtScroll||l?.updateAtScroll){if(ht){ct=Fte(m.value);for(const ze of ct)ze.addEventListener("scroll",_e)}else if(ct){for(const ze of ct)ze.removeEventListener("scroll",_e);ct=void 0}}ht&&(Wt.value=!0)}),Dt(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{M.value&&Y()});const{createResizeObserver:Et,destroyResizeObserver:Tt}=ZRe({elementRef:$,onResize:je});dn(()=>{if(Et(),M.value&&(Y(),e.clickOutsideToClose&&!F&&(ki(document.documentElement,"mousedown",Ze),F=!0),e.updateAtScroll||l?.updateAtScroll)){ct=Fte(m.value);for(const ht of ct)ht.addEventListener("scroll",_e)}}),za(()=>{M.value&&Y()}),BV(()=>{re(!1)}),$o(()=>{if(h?.removeChildRef(g),Tt(),F&&Ie(),U&&ye(),ct){for(const ht of ct)ht.removeEventListener("scroll",_e);ct=void 0}});const Wt=pe(M.value),Gt=pe(!1),Jt=()=>{Gt.value=!0},rn=()=>{Gt.value=!1,M.value&&t("show")},qe=()=>{Gt.value=!1,M.value||(Wt.value=!1,t("hide"))};return()=>{var ht,ze;return p.value=(ze=(ht=n.default)==null?void 0:ht.call(n))!=null?ze:[],Zde(p.value,{class:yt.value,onClick:te,onMouseenter:X,onMouseleave:J,onFocusin:se,onFocusout:ae,onContextmenu:Ce}),O(Ft,null,[e.autoFixPosition?O(cv,{onResize:Qe},{default:()=>[p.value]}):p.value,O(iz,null,{default:()=>[O(Og,{to:D.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||M.value||Wt.value)&&!Ye.value&&O(cv,{onResize:je},{default:()=>[O("div",Nt({ref:g,class:[`${a}-popup`,`${a}-position-${S.value}`],style:{...k.value,zIndex:L.value,pointerEvents:Gt.value?"none":"auto"},"trigger-placement":S.value,onMouseenter:K,onMouseleave:ie,onMousedown:rt},s.value),[O(Es,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Jt,onAfterEnter:rn,onBeforeLeave:Jt,onAfterLeave:qe},{default:()=>{var Fe;return[wi(O("div",{class:`${a}-popup-wrapper`,style:C.value},[O("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Fe=n.content)==null?void 0:Fe.call(n)]),e.showArrow&&O("div",{ref:x,class:[`${a}-arrow`,e.arrowClass],style:E.value},null)]),[[Qo,M.value]])]}})])]})]})]})])}}});const sa=Object.assign(N8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+N8.name,N8)}}),QRe=be({name:"IconEmpty",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eMe=["stroke-width","stroke-linecap","stroke-linejoin"];function tMe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,eMe)}var B8=$e(QRe,[["render",tMe]]);const sz=Object.assign(B8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B8.name,B8)}});var MT=be({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const r=Te("empty"),{t:o}=Ao(),a=xn(Fa,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",Nt({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(sz,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 jh=Object.assign(MT,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+MT.name,MT)}}),nMe=5;var rMe=be({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=Te("dot-loading");return()=>{const n=e.size?{width:`${e.size}px`,height:`${e.size}px`}:{};return O("div",{class:t,style:{width:e.size?`${e.size*7}px`:void 0,height:e.size?`${e.size}px`:void 0}},[Array(nMe).fill(1).map((r,o)=>O("div",{class:`${t}-item`,key:o,style:n},null))])}}}),F8=be({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Te("spin"),r=xn(Fa,void 0),o=j(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=Uy(t.icon());if(l)return vl(l,{spin:!0})}return t.element?t.element():e.dot?O(rMe,{size:e.size},null):r?.slots.loading?r.slots.loading():O(ja,{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(Ft,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(Ft,null,[t.default(),e.loading&&O("div",{class:`${n}-mask`},[O("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const kd=Object.assign(F8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+F8.name,F8)}}),iMe=be({name:"Thumb",props:{data:{type:Object},direction:{type:String,default:"horizontal"},alwaysShow:{type:Boolean,default:!1},both:{type:Boolean,default:!1}},emits:["scroll"],setup(e,{emit:t}){const n=Te("scrollbar"),r=pe(!1),o=pe(),a=pe(),s=j(()=>e.direction==="horizontal"?{size:"width",direction:"left",offset:"offsetWidth",client:"clientX"}:{size:"height",direction:"top",offset:"offsetHeight",client:"clientY"}),l=pe(0),c=pe(!1),f=pe(0),h=j(()=>{var E,x;return{[s.value.size]:`${(x=(E=e.data)==null?void 0:E.thumbSize)!=null?x:0}px`,[s.value.direction]:`${l.value}px`}}),p=E=>{E.preventDefault(),a.value&&(f.value=E[s.value.client]-a.value.getBoundingClientRect()[s.value.direction],c.value=!0,ki(window,"mousemove",b),ki(window,"mouseup",S),ki(window,"contextmenu",S))},m=E=>{var x,_,A,R;if(E.preventDefault(),a.value){const M=g(E[s.value.client]>a.value.getBoundingClientRect()[s.value.direction]?l.value+((_=(x=e.data)==null?void 0:x.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=E=>E<0?0:e.data&&E>e.data.max?e.data.max:E,b=E=>{if(o.value&&a.value){const x=g(E[s.value.client]-o.value.getBoundingClientRect()[s.value.direction]-f.value);x!==l.value&&(l.value=x,t("scroll",x))}},S=()=>{c.value=!1,Gi(window,"mousemove",b),Gi(window,"mouseup",S)},k=E=>{c.value||(E=g(E),E!==l.value&&(l.value=E))},C=j(()=>[`${n}-thumb`,`${n}-thumb-direction-${e.direction}`,{[`${n}-thumb-dragging`]:c.value}]);return{visible:r,trackRef:o,thumbRef:a,prefixCls:n,thumbCls:C,thumbStyle:h,handleThumbMouseDown:p,handleTrackClick:m,setOffset:k}}});function oMe(e,t,n,r,o,a){return H(),Xe(Es,null,{default:de(()=>[I("div",{ref:"trackRef",class:le([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=es((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[I("div",{ref:"thumbRef",class:le(e.thumbCls),style:Ve(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[I("div",{class:le(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var sMe=$e(iMe,[["render",oMe]]);const Ute=20,ZE=15,aMe=be({name:"Scrollbar",components:{ResizeObserver:cv,Thumb:sMe},inheritAttrs:!1,props:{type:{type:String,default:"embed"},outerClass:[String,Object,Array],outerStyle:{type:[String,Object,Array]},hide:{type:Boolean,default:!1},disableHorizontal:{type:Boolean,default:!1},disableVertical:{type:Boolean,default:!1}},emits:{scroll:e=>!0},setup(e,{emit:t}){const n=Te("scrollbar"),r=pe(),o=pe(),a=pe(),s=pe(),l=pe(),c=pe(!1),f=pe(!1),h=j(()=>c.value&&!e.disableHorizontal),p=j(()=>f.value&&!e.disableVertical),m=pe(!1),g=()=>{var _,A,R,M,D,$;if(r.value){const{clientWidth:L,clientHeight:B,offsetWidth:F,offsetHeight:U,scrollWidth:z,scrollHeight:G,scrollTop:Y,scrollLeft:re}=r.value;c.value=z>L,f.value=G>B,m.value=h.value&&p.value;const te=e.type==="embed"&&m.value?F-ZE:F,X=e.type==="embed"&&m.value?U-ZE:U,K=Math.round(te/Math.min(z/L,te/Ute)),J=te-K,ie=(z-L)/J,se=Math.round(X/Math.min(G/B,X/Ute)),ae=X-se,Ce=(G-B)/ae;if(o.value={ratio:ie,thumbSize:K,max:J},a.value={ratio:Ce,thumbSize:se,max:ae},Y>0){const ke=Math.round(Y/((A=(_=a.value)==null?void 0:_.ratio)!=null?A:1));(R=l.value)==null||R.setOffset(ke)}if(re>0){const ke=Math.round(re/((D=(M=a.value)==null?void 0:M.ratio)!=null?D:1));($=s.value)==null||$.setOffset(ke)}}};dn(()=>{g()});const b=()=>{g()},S=_=>{var A,R,M,D,$,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/(($=(D=a.value)==null?void 0:D.ratio)!=null?$: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)})},E=j(()=>{const _={};return e.type==="track"&&(h.value&&(_.paddingBottom=`${ZE}px`),p.value&&(_.paddingRight=`${ZE}px`)),[_,e.outerStyle]}),x=j(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:m.value},e.outerClass]);return{prefixCls:n,cls:x,style:E,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;lr(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 lMe(e,t,n,r,o,a){const s=Me("ResizeObserver"),l=Me("thumb");return H(),Q("div",{class:le(e.cls),style:Ve(e.style)},[O(s,{onResize:e.handleResize},{default:de(()=>[I("div",Nt({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(()=>[ft(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(H(),Xe(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Oe("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(H(),Xe(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Oe("v-if",!0)],6)}var j8=$e(aMe,[["render",lMe]]);const wd=Object.assign(j8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+j8.name,j8)}}),Ay=e=>{const t=pe(),n=()=>Wde(t.value)?t.value.$refs[e]:t.value,r=pe();return dn(()=>{r.value=n()}),Dt([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},R3=e=>{const t=j(()=>!!e.value),n=j(()=>{if(e.value)return{type:"embed",...ml(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},uMe=be({name:"SelectDropdown",components:{ScrollbarComponent:wd,Empty:jh,Spin:kd},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}=Zt(e),l=Te("select-dropdown"),c=xn(Fa,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}=R3(s),b=k=>{const{scrollTop:C,scrollHeight:E,offsetHeight:x}=k.target;E-(C+x)<=e.bottomOffset&&t("reachBottom",k),t("scroll",k)},S=j(()=>[l,{[`${l}-has-header`]:!!n.header,[`${l}-has-footer`]:!!n.footer}]);return{prefixCls:l,SelectEmpty:f,cls:S,wrapperRef:p,wrapperComRef:h,handleScroll:b,displayScrollbar:m,scrollbarProps:g}}});function cMe(e,t,n,r,o,a){const s=Me("spin");return H(),Q("div",{class:le(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-header`)},[ft(e.$slots,"header")],2)):Oe("v-if",!0),e.loading?(H(),Xe(s,{key:1,class:le(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(H(),Q("div",{key:2,class:le(`${e.prefixCls}-empty`)},[ft(e.$slots,"empty",{},()=>[(H(),Xe($a(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Oe("v-if",!0),e.virtualList&&!e.loading&&!e.empty?ft(e.$slots,"virtual-list",{key:3}):Oe("v-if",!0),e.virtualList?Oe("v-if",!0):wi((H(),Xe($a(e.displayScrollbar?"ScrollbarComponent":"div"),Nt({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:de(()=>[I("ul",{class:le(`${e.prefixCls}-list`)},[ft(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[Qo,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(H(),Q("div",{key:5,class:le(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer")],2)):Oe("v-if",!0)],2)}var az=$e(uMe,[["render",cMe]]),Vte=be({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 pfe=Symbol("ArcoCheckboxGroup");var DT=be({name:"Checkbox",components:{IconCheck:Vte,IconHover:_o},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}=Zt(e),a=Te("checkbox"),s=pe(),l=e.uninjectGroupContext?void 0:xn(pfe,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:f,eventHandlers:h}=So({disabled:r}),p=pe(e.defaultChecked),m=j(()=>{var _;return c?l?.computedValue:(_=e.modelValue)!=null?_:p.value}),g=j(()=>{var _;return qn(m.value)?m.value.includes((_=e.value)!=null?_:!0):m.value}),b=j(()=>l?.disabled||f?.value||!g.value&&l?.isMaxed),S=_=>{_.stopPropagation()},k=_=>{var A,R,M,D;const{checked:$}=_.target;let L=$;if(qn(m.value)){const B=new Set(m.value);$?B.add((A=e.value)!=null?A:!0):B.delete((R=e.value)!=null?R:!0),L=Array.from(B)}p.value=$,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,_)),kn(()=>{s.value&&s.value.checked!==g.value&&(s.value.checked=g.value)})},C=j(()=>[a,{[`${a}-checked`]:g.value,[`${a}-indeterminate`]:e.indeterminate,[`${a}-disabled`]:b.value}]),E=_=>{var A,R;(R=(A=h.value)==null?void 0:A.onFocus)==null||R.call(A,_)},x=_=>{var A,R;(R=(A=h.value)==null?void 0:A.onBlur)==null||R.call(A,_)};return Dt(o,_=>{(mn(_)||yl(_))&&(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:E,onBlur:x},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(_o,{class:`${a}-icon-hover`,disabled:b.value||g.value},{default:()=>[O("div",{class:`${a}-icon`},[g.value&&O(Vte,{class:`${a}-icon-check`},null)])]}),n.default&&O("span",{class:`${a}-label`},[n.default()])])}}}),OT=be({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}=Zt(e),o=Te("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=So({disabled:r}),l=pe(e.defaultValue),c=j(()=>qn(e.modelValue)?e.modelValue:l.value),f=j(()=>e.max===void 0?!1:c.value.length>=e.max),h=j(()=>{var b;return((b=e.options)!=null?b:[]).map(S=>ts(S)||Ke(S)?{label:S,value:S}:S)});Gr(pfe,Ht({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=j(()=>[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(DT,{key:b.value,value:b.value,disabled:b.disabled||!S&&f.value,indeterminate:b.indeterminate,modelValue:S},{default:()=>[n.label?n.label({data:b}):pn(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 bd=Object.assign(DT,{Group:OT,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+DT.name,DT),e.component(n+OT.name,OT)}}),vfe=Symbol("ArcoSelectContext"),dMe=e=>lr(e)&&"isGroup"in e,mfe=e=>lr(e)&&"isGroup"in e,fMe=(e,t="value")=>String(lr(e)?e[t]:e),bg=(e,t="value")=>lr(e)?`__arco__option__object__${e[t]}`:e||Ke(e)||ts(e)||ml(e)?`__arco__option__${typeof e}-${e}`:"",hMe=e=>e.has("__arco__option__string-"),pMe=(e,{valueKey:t,fieldNames:n,origin:r,index:o=-1})=>{var a;if(lr(e)){const l=e[n.value];return{raw:e,index:o,key:bg(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:fMe(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:bg(e,t),origin:r,...s}},JF=(e,{valueKey:t,fieldNames:n,origin:r,optionInfoMap:o})=>{var a;const s=[];for(const l of e)if(dMe(l)){const c=JF((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=pMe(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),o.get(c.key)||o.set(c.key,c)}return s},zte=(e,{inputValue:t,filterOption:n})=>{const r=o=>{var a;const s=[];for(const l of o)if(mfe(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else M3(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},M3=(e,{inputValue:t,filterOption:n})=>pn(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,vMe=(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},mMe=(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]"?vMe(e,t):n==="[object Array]"?mMe(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},gMe=be({name:"Option",components:{Checkbox:bd},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}=Zt(e),o=Te("select-option"),a=xn(vfe,void 0),s=uo(),l=pe(),c=pe(n.value);Dt(n,(R,M)=>{W1(R,M)||(c.value=R)});const f=pe(""),h=j(()=>{var R,M;return(M=(R=e.value)!=null?R:e.label)!=null?M:f.value}),p=j(()=>{var R;return(R=e.label)!=null?R:f.value}),m=j(()=>bg(h.value,a?.valueKey)),g=j(()=>{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)}};dn(()=>b()),za(()=>b());const S=j(()=>{var R;return(R=a?.valueKeys.includes(m.value))!=null?R:!1}),k=j(()=>a?.activeKey===m.value);let C=pe(!0);if(!e.internal){const R=Ht({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=j(()=>M3(R,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,R),$o(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const E=R=>{e.disabled||a?.onSelect(m.value,R)},x=()=>{e.disabled||a?.setActiveKey(m.value)},_=()=>{e.disabled||a?.setActiveKey()},A=j(()=>[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:E,handleMouseEnter:x,handleMouseLeave:_}}});function yMe(e,t,n,r,o,a){const s=Me("checkbox");return wi((H(),Xe($a(e.component),{ref:"itemRef",class:le([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:de(()=>[e.$slots.icon?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon")],2)):Oe("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(H(),Xe(s,{key:1,class:le(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:de(()=>[ft(e.$slots,"default",{},()=>[We(Be(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(H(),Q("span",{key:2,class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"default",{},()=>[We(Be(e.label),1)])],2)),e.$slots.suffix?(H(),Q("span",{key:3,class:le(`${e.prefixCls}-suffix`)},[ft(e.$slots,"suffix")],2)):Oe("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[Qo,e.isValid]])}var Qm=$e(gMe,[["render",yMe]]);const bMe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},_Me=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:o,valueKey:a,fieldNames:s})=>{const l=j(()=>({...bMe,...s?.value})),c=Ht(new Map),f=j(()=>Array.from(c.values()).sort((x,_)=>Ke(x.index)&&Ke(_.index)?x.index-_.index:0)),h=j(()=>{var x,_;const A=new Map;return{optionInfos:JF((x=e?.value)!=null?x:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"options",optionInfoMap:A}),optionInfoMap:A}}),p=j(()=>{var x,_;const A=new Map;return{optionInfos:JF((x=t?.value)!=null?x:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"extraOptions",optionInfoMap:A}),optionInfoMap:A}}),m=Ht(new Map);Dt([f,e??pe([]),t??pe([]),a??pe("value")],()=>{m.clear(),f.value.forEach((x,_)=>{m.set(x.key,{...x,index:_})}),h.value.optionInfoMap.forEach(x=>{m.has(x.key)||(x.index=m.size,m.set(x.key,x))}),p.value.optionInfoMap.forEach(x=>{m.has(x.key)||(x.index=m.size,m.set(x.key,x))})},{immediate:!0,deep:!0});const g=j(()=>{var x;const _=zte(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((x=o?.value)==null||x)&&_.push(...zte(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),_}),b=j(()=>Array.from(m.values()).filter(x=>x.origin==="extraOptions"&&o?.value===!1?!1:M3(x,{inputValue:n?.value,filterOption:r?.value}))),S=j(()=>b.value.filter(x=>!x.disabled).map(x=>x.key));return{validOptions:g,optionInfoMap:m,validOptionInfos:b,enabledOptionKeys:S,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(x,_)=>{c.set(x,_)},removeSlotOptionInfo:x=>{c.delete(x)}}},Do={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},Hte=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),D3=e=>{const t={};return e.forEach((n,r)=>{const o=ts(r)?{key:r}:r;t[Hte(o)]=n}),n=>{const r=Hte({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),o=t[r];o&&(n.stopPropagation(),o(n))}},lz=({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:E})=>{const{validOptions:x,optionInfoMap:_,validOptionInfos:A,enabledOptionKeys:R,getNextSlotOptionIndex:M,addSlotOptionInfo:D,removeSlotOptionInfo:$}=_Me({options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,valueKey:l,fieldNames:c}),L=pe();Dt(R,G=>{(!L.value||!G.includes(L.value))&&(L.value=G[0])});const B=G=>{L.value=G},F=G=>{const Y=R.value.length;if(Y===0)return;if(!L.value)return G==="down"?R.value[0]:R.value[Y-1];const re=R.value.indexOf(L.value),te=(Y+re+(G==="up"?-1:1))%Y;return R.value[te]},U=G=>{var Y,re;b?.value&&b.value.scrollTo({key:G});const te=_.get(G),X=(Y=m?.value)==null?void 0:Y.wrapperRef,K=(re=g?.value[G])!=null?re:te?.ref;if(!X||!K||X.scrollHeight===X.offsetHeight)return;const J=v5e(K,X),ie=X.scrollTop;J.top<0?X.scrollTo(0,ie+J.top):J.bottom<0&&X.scrollTo(0,ie-J.bottom)};Dt(h,G=>{var Y;if(G){const re=p.value[p.value.length-1];let te=(Y=E?.value)==null||Y?R.value[0]:void 0;R.value.includes(re)&&(te=re),te!==L.value&&(L.value=te),kn(()=>{L.value&&U(L.value)})}});const z=D3(new Map([[Do.ENTER,G=>{!f?.value&&!G.isComposing&&(h.value?L.value&&(S(L.value,G),G.preventDefault()):C&&(k(!0),G.preventDefault()))}],[Do.ESC,G=>{h.value&&(k(!1),G.preventDefault())}],[Do.ARROW_DOWN,G=>{if(h.value){const Y=F("down");Y&&(L.value=Y,U(Y)),G.preventDefault()}}],[Do.ARROW_UP,G=>{if(h.value){const Y=F("up");Y&&(L.value=Y,U(Y)),G.preventDefault()}}]]));return Gr(vfe,Ht({multiple:e,valueKey:l,inputValue:r,filterOption:o,component:s,valueKeys:p,activeKey:L,setActiveKey:B,onSelect:S,getNextSlotOptionIndex:M,addSlotOptionInfo:D,removeSlotOptionInfo:$})),{validOptions:x,optionInfoMap:_,validOptionInfos:A,enabledOptionKeys:R,activeKey:L,setActiveKey:B,addSlotOptionInfo:D,removeSlotOptionInfo:$,getNextActiveKey:F,scrollIntoView:U,handleKeyDown:z}},SMe=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:r,buffer:o})=>{const a=pe(0),s=new Map,l=j(()=>e.value.length),c=pe(0),f=j(()=>{const M=c.value+o.value*3;return M>l.value?l.value:M}),h=j(()=>{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=pe(n.value),g=j(()=>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 $=e.value[M];return(D=s.get($))!=null?D:g.value},k=M=>s.has(M);dn(()=>{const M=Array.from(s.values()).reduce((D,$)=>D+$,0);M>0&&(a.value=M/s.size)});const C=M=>m.value?g.value*M:E(0,M),E=(M,D)=>{let $=0;for(let L=M;Lm.value?g.value*c.value:E(0,c.value)),_=M=>{const D=M>=x.value;let $=Math.abs(M-x.value);const L=D?c.value:c.value-1;let B=0;for(;$>0;)$-=S(L+B),D?B++:B--;return B},A=M=>{const D=_(M),$=c.value+D-o.value;return $<0?0:$>h.value?h.value:$},R=j(()=>m.value?g.value*(l.value-f.value):E(f.value,l.value));return{frontPadding:x,behindPadding:R,start:c,end:f,getStartByScroll:A,setItemSize:b,hasItemSize:k,setStart:p,getScrollOffset:C}};var kMe=be({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=uo())==null?void 0:n.vnode.key,o=pe(),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 dn(()=>a()),$o(()=>a()),()=>{var s;const l=Uy((s=t.default)==null?void 0:s.call(t));return l?vl(l,{ref:o},!0):null}}});const wMe=be({name:"VirtualList",components:{VirtualListItem:kMe},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}=Zt(e),c=Te("virtual-list"),f=j(()=>lr(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=pe(),p=pe(),m=j(()=>({height:Ke(l.value)?`${l.value}px`:l.value,overflow:"auto"})),g=j(()=>n.value.map((L,B)=>{var F;return(F=L[r.value])!=null?F:B})),{frontPadding:b,behindPadding:S,start:k,end:C,getStartByScroll:E,setItemSize:x,hasItemSize:_,setStart:A,getScrollOffset:R}=SMe({dataKeys:g,contentRef:p,fixedSize:o,estimatedSize:a,buffer:s}),M=j(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(k.value,C.value)),D=L=>{const{scrollTop:B,scrollHeight:F,offsetHeight:U}=L.target,z=E(B);z!==k.value&&(A(z),kn(()=>{$(B)})),t("scroll",L),Math.floor(F-(B+U))<=0&&t("reachBottom",L)},$=L=>{var B,F;if(h.value)if(Ke(L))h.value.scrollTop=L;else{const U=(F=L.index)!=null?F:g.value.indexOf((B=L.key)!=null?B:"");A(U-s.value),h.value.scrollTop=R(U),kn(()=>{if(h.value){const z=R(U);z!==h.value.scrollTop&&(h.value.scrollTop=z)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:b,currentList:M,behindPadding:S,onScroll:D,setItemSize:x,hasItemSize:_,start:k,scrollTo:$,style:m,mergedComponent:f}}});function CMe(e,t,n,r,o,a){const s=Me("VirtualListItem");return H(),Xe($a(e.mergedComponent.container),{ref:"containerRef",class:le(e.prefixCls),style:Ve(e.style),onScroll:e.onScroll},{default:de(()=>[(H(),Xe($a(e.mergedComponent.list),Nt(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(H(),Xe($a(e.mergedComponent.content),Nt({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(H(!0),Q(Ft,null,fn(e.currentList,(l,c)=>{var f;return H(),Xe(s,{key:(f=l[e.itemKey])!=null?f:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:de(()=>[ft(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=$e(wMe,[["render",CMe]]),U8=be({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}=Zt(e),a=Te("auto-complete"),{mergedDisabled:s,eventHandlers:l}=So({disabled:wu(e,"disabled")}),c=pe(e.defaultValue),f=pe(),h=j(()=>{var K;return(K=e.modelValue)!=null?K:c.value});Dt(o,K=>{(mn(K)||yl(K))&&(c.value="")});const p=j(()=>h.value?[bg(h.value)]:[]),{data:m}=Zt(e),g=pe(),b=pe({}),S=pe(!1),k=j(()=>S.value&&z.value.length>0),C=pe(),E=j(()=>e.virtualListProps?"div":"li"),x=K=>{S.value=K},_=(K,J)=>{var ie;return!!((ie=J.label)!=null&&ie.includes(K))},A=j(()=>pn(e.filterOption)?e.filterOption:e.filterOption&&e.strict?_:e.filterOption),R=K=>{var J,ie;c.value=K,t("update:modelValue",K),t("change",K),(ie=(J=l.value)==null?void 0:J.onChange)==null||ie.call(J)},M=K=>{var J,ie;c.value="",t("update:modelValue",""),t("change",""),(ie=(J=l.value)==null?void 0:J.onChange)==null||ie.call(J),t("clear",K)},D=(K,J)=>{var ie,se;const ae=(ie=U.get(K))==null?void 0:ie.value;t("select",ae),R(ae),(se=f.value)==null||se.blur()},$=K=>{t("search",K),R(K)},L=K=>{t("dropdownScroll",K)},B=K=>{t("dropdownReachBottom",K)},{validOptions:F,optionInfoMap:U,validOptionInfos:z,handleKeyDown:G}=lz({options:m,inputValue:h,filterOption:A,popupVisible:k,valueKeys:p,component:E,dropdownRef:g,optionRefs:b,onSelect:D,onPopupVisibleChange:x}),Y=K=>{if(pn(r.option)&&K.value){const J=U.get(K.key),ie=r.option;return()=>ie({data:J})}return()=>K.label},re=K=>O(Qm,{ref:J=>{J?.$el&&(b.value[K.key]=J.$el)},key:K.key,value:K.value,disabled:K.disabled,internal:!0},{default:Y(K)}),te=()=>O(az,{ref:g,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:L,onReachBottom:B},{default:()=>[...F.value.map(K=>re(K))],"virtual-list":()=>O(G1,Nt(e.virtualListProps,{ref:C,data:F.value}),{item:({item:K})=>re(K)}),footer:r.footer});return{inputRef:f,render:()=>O(sa,Nt({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:x}),{default:()=>[O(Cv,Nt({ref:f},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:$,onClear:M,onKeydown:G}),r)],content:te})}},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(U8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+U8.name,U8)}}),uz=({itemRef:e,selector:t,index:n,parentClassName:r})=>{const o=pe(-1),a=j(()=>{var f;return(f=n?.value)!=null?f:o.value}),s=pe(),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(mn(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())}),dn(()=>{e.value&&(s.value=l()),c()}),za(()=>c()),{computedIndex:a}},gfe=Symbol("ArcoAvatarGroup"),xMe=be({name:"IconImageClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 AMe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[pg('',5)]),14,TMe)}var V8=$e(xMe,[["render",AMe]]);const O3=Object.assign(V8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V8.name,V8)}}),IMe=be({name:"Avatar",components:{ResizeObserver:cv,IconImageClose:O3,IconLoading:ja},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}=Zt(e),f=Te("avatar"),h=xn(gfe,void 0),p=pe(),m=pe(),g=j(()=>{var z;return(z=h?.shape)!=null?z:o.value}),b=j(()=>{var z;return(z=h?.size)!=null?z:a.value}),S=j(()=>{var z;return(z=h?.autoFixFontSize)!=null?z:s.value}),k=pe(!1),C=pe(!1),E=pe(!0),x=pe(!1),_=h?uz({itemRef:p,selector:`.${f}`}).computedIndex:pe(-1),A=j(()=>{var z;const G=Ke(b.value)?{width:`${b.value}px`,height:`${b.value}px`,fontSize:`${b.value/2}px`}:{};return h&&(G.zIndex=h.zIndexAscend?_.value+1:h.total-_.value,G.marginLeft=_.value!==0?`-${((z=b.value)!=null?z:40)/4}px`:"0"),G}),R=LMe({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),M=()=>{!k.value&&!e.imageUrl&&kn(()=>{var z;if(!m.value||!p.value)return;const G=m.value.clientWidth,Y=(z=b.value)!=null?z:p.value.offsetWidth,re=Y/(G+8);Y&&re<1&&(m.value.style.transform=`scale(${re}) translateX(-50%)`),E.value=!0})};dn(()=>{var z;(z=m.value)!=null&&z.firstElementChild&&["IMG","PICTURE"].includes(m.value.firstElementChild.tagName)&&(k.value=!0),S.value&&M()}),Dt(a,()=>{S.value&&M()});const D=j(()=>[f,`${f}-${g.value}`]),$=j(()=>k.value||e.imageUrl?`${f}-image`:`${f}-text`);return{prefixCls:f,itemRef:p,cls:D,outerStyle:A,wrapperRef:m,wrapperCls:$,computedTriggerIconStyle:R,isImage:k,shouldLoad:E,isLoaded:x,hasError:C,onClick:z=>{n("click",z)},handleResize:()=>{S.value&&M()},handleImgLoad:()=>{x.value=!0,n("load")},handleImgError:()=>{C.value=!0,n("error")}}}}),LMe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},PMe=["src"];function RMe(e,t,n,r,o,a){const s=Me("IconImageClose"),l=Me("IconLoading"),c=Me("resize-observer");return H(),Q("div",{ref:"itemRef",style:Ve(e.outerStyle),class:le([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:le(e.wrapperCls)},[e.imageUrl?(H(),Q(Ft,{key:0},[e.hasError?ft(e.$slots,"error",{key:0},()=>[I("div",{class:le(`${e.prefixCls}-image-icon`)},[O(s)],2)]):Oe("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?ft(e.$slots,"default",{key:1},()=>[I("div",{class:le(`${e.prefixCls}-image-icon`)},[O(l)],2)]):Oe("v-if",!0),e.hasError||!e.shouldLoad?Oe("v-if",!0):(H(),Q("img",{key:2,src:e.imageUrl,style:Ve({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,PMe))],64)):ft(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:Ve(e.computedTriggerIconStyle)},[ft(e.$slots,"trigger-icon")],6)):Oe("v-if",!0)],6)}var $T=$e(IMe,[["render",RMe]]);const MMe=be({name:"Popover",components:{Trigger:sa},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},title:String,content:String,trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"top"},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Te("popover"),r=pe(e.defaultPopupVisible),o=j(()=>{var c;return(c=e.popupVisible)!=null?c:r.value}),a=c=>{r.value=c,t("update:popupVisible",c),t("popupVisibleChange",c)},s=j(()=>[`${n}-popup-content`,e.contentClass]),l=j(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:o,contentCls:s,arrowCls:l,handlePopupVisibleChange:a}}});function DMe(e,t,n,r,o,a){const s=Me("trigger");return H(),Xe(s,{class:le(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:le(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2),I("div",{class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"content",{},()=>[We(Be(e.content),1)])],2)]),default:de(()=>[ft(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var z8=$e(MMe,[["render",DMe]]);const cz=Object.assign(z8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+z8.name,z8)}}),NT=be({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}=Zt(e),s=Te("avatar-group"),l=pe(0);return Gr(gfe,Ht({shape:n,size:r,autoFixFontSize:o,zIndexAscend:a,total:l})),()=>{var c,f;const h=cf((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(cz,e.maxPopoverTriggerProps,{default:()=>[O($T,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[We("+"),m.length]})],content:()=>O("div",null,[m])})])}}}),OMe=Object.assign($T,{Group:NT,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+$T.name,$T),e.component(n+NT.name,NT)}}),$Me=be({name:"IconToTop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NMe=["stroke-width","stroke-linecap","stroke-linejoin"];function BMe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,NMe)}var H8=$e($Me,[["render",BMe]]);const yfe=Object.assign(H8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H8.name,H8)}}),FMe=be({name:"BackTop",components:{IconToTop:yfe},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=Te("back-top"),n=pe(!1),r=pe(),o=!e.targetContainer,a=gg(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:f}=r.value;n.value=f>=c}}),s=c=>ts(c)?document.querySelector(c):c;return dn(()=>{r.value=o?document?.documentElement:s(e.targetContainer),r.value&&(ki(o?window:r.value,"scroll",a),a())}),hi(()=>{a.cancel(),r.value&&Gi(o?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new Fg({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function jMe(e,t,n,r,o,a){const s=Me("icon-to-top");return H(),Xe(Es,{name:"fade-in"},{default:de(()=>[e.visible?(H(),Q("div",{key:0,class:le(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[ft(e.$slots,"default",{},()=>[I("button",{class:le(`${e.prefixCls}-btn`)},[O(s)],2)])],2)):Oe("v-if",!0)]),_:3})}var W8=$e(FMe,[["render",jMe]]);const UMe=Object.assign(W8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+W8.name,W8)}}),VMe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],zMe=["normal","processing","success","warning","danger"];var G8=be({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=>zMe.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}=Zt(e),h=Te("badge"),p=HMe(h,n?.value,t?.default),m=j(()=>{const b={...o?.value||{}},[S,k]=a?.value||[];S&&(b.marginRight=`${-S}px`),k&&(b.marginTop=`${k}px`);const C=!r?.value||VMe.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,E=Number(f?.value),x=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&&!x?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)&&E>0?O("span",{class:[`${h}-dot`,{[`${h}-color-${S}`]:S}],style:A},null):E===0?null:O("span",{class:`${h}-number`,style:A},[O("span",null,[c.value&&E>c.value?`${c.value}+`:E])])};return()=>O("span",{class:p.value},[t.default&&t.default(),g()])}});const HMe=(e,t,n)=>j(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),WMe=Object.assign(G8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+G8.name,G8)}}),bfe=Symbol("ArcoBreadcrumb"),GMe=be({name:"IconMore",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KMe=["stroke-width","stroke-linecap","stroke-linejoin"];function qMe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,KMe)}var K8=$e(GMe,[["render",qMe]]);const Ev=Object.assign(K8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K8.name,K8)}}),YMe=be({name:"IconDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XMe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZMe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,XMe)}var q8=$e(YMe,[["render",ZMe]]);const xv=Object.assign(q8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q8.name,q8)}}),JMe=be({name:"IconObliqueLine",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 e8e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,QMe)}var Y8=$e(JMe,[["render",e8e]]);const _fe=Object.assign(Y8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y8.name,Y8)}}),dz=Symbol("ArcoDropdown"),t8e=be({name:"DropdownPanel",components:{Scrollbar:wd,Empty:jh},props:{loading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},bottomOffset:{type:Number,default:0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){const r=Te("dropdown"),o=xn(dz,{}),a=pe(),s=f=>{const{scrollTop:h,scrollHeight:p,offsetHeight:m}=f.target;p-(h+m)<=e.bottomOffset&&t("reachBottom",f),t("scroll",f)},l=j(()=>{if(Ke(o.popupMaxHeight))return{maxHeight:`${o.popupMaxHeight}px`};if(!o.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),c=j(()=>[r,{[`${r}-has-footer`]:!!n.footer}]);return{prefixCls:r,cls:c,style:l,wrapperRef:a,handleScroll:s}}});function n8e(e,t,n,r,o,a){const s=Me("empty"),l=Me("Scrollbar");return H(),Q("div",{class:le(e.cls)},[e.isEmpty?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-empty`)},[ft(e.$slots,"empty",{},()=>[O(s)])],2)):Oe("v-if",!0),O(l,{ref:"wrapperRef",class:le(`${e.prefixCls}-list-wrapper`),style:Ve(e.style),onScroll:e.handleScroll},{default:de(()=>[I("ul",{class:le(`${e.prefixCls}-list`)},[ft(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer")],2)):Oe("v-if",!0)],2)}var Sfe=$e(t8e,[["render",n8e]]);const $3=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var r;const o=pe((r=t?.value)!=null?r:!1),a=j(()=>{var l;return(l=e?.value)!=null?l:o.value}),s=l=>{l!==a.value&&(o.value=l,n("update:popupVisible",l),n("popupVisibleChange",l))};return Dt(a,l=>{o.value!==l&&(o.value=l)}),{computedPopupVisible:a,handlePopupVisibleChange:s}},r8e=be({name:"Dropdown",components:{Trigger:sa,DropdownPanel:Sfe},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}=Zt(e),a=Te("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=$3({defaultPopupVisible:n,popupVisible:r,emit:t});return Gr(dz,Ht({popupMaxHeight:o,onOptionClick:(f,h)=>{t("select",f,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function i8e(e,t,n,r,o,a){const s=Me("DropdownPanel"),l=Me("Trigger");return H(),Xe(l,{"popup-visible":e.computedPopupVisible,"animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"",trigger:e.trigger,position:e.position,"popup-offset":4,"popup-container":e.popupContainer,"opened-class":`${e.prefixCls}-open`,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[O(s,null,yo({default:de(()=>[ft(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[ft(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:de(()=>[ft(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var BT=$e(r8e,[["render",i8e]]);const o8e=be({name:"Doption",props:{value:{type:[String,Number,Object]},disabled:{type:Boolean,default:!1},active:Boolean,uninjectContext:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("dropdown-option"),r=pe(),o=j(()=>{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:xn(dz,void 0),s=c=>{e.disabled||(t("click",c),a?.onOptionClick(o.value,c))},l=j(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:l,liRef:r,handleClick:s}}});function s8e(e,t,n,r,o,a){return H(),Q("li",{ref:"liRef",class:le([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.$slots.icon?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon")],2)):Oe("v-if",!0),I("span",{class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2),e.$slots.suffix?(H(),Q("span",{key:1,class:le(`${e.prefixCls}-suffix`)},[ft(e.$slots,"suffix")],2)):Oe("v-if",!0)],2)}var Hy=$e(o8e,[["render",s8e]]);const a8e=be({name:"Dgroup",props:{title:String},setup(){return{prefixCls:Te("dropdown-group")}}});function l8e(e,t,n,r,o,a){return H(),Q(Ft,null,[I("li",{class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2),ft(e.$slots,"default")],64)}var FT=$e(a8e,[["render",l8e]]);const u8e=be({name:"IconRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),c8e=["stroke-width","stroke-linecap","stroke-linejoin"];function d8e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,c8e)}var X8=$e(u8e,[["render",d8e]]);const Mi=Object.assign(X8,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X8.name,X8)}}),f8e=be({name:"Dsubmenu",components:{Trigger:sa,DropdownPanel:Sfe,DropdownOption:Hy,IconRight:Mi},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}=Zt(e),o=Te("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=$3({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handlePopupVisibleChange:s}}});function h8e(e,t,n,r,o,a){const s=Me("IconRight"),l=Me("dropdown-option"),c=Me("dropdown-panel"),f=Me("Trigger");return H(),Xe(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:le(`${e.prefixCls}-submenu`)},yo({default:de(()=>[ft(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[ft(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:de(()=>[O(l,Nt(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),yo({suffix:de(()=>[ft(e.$slots,"suffix",{},()=>[O(s)])]),default:de(()=>[ft(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:de(()=>[ft(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var jT=$e(f8e,[["render",h8e]]);const p8e=be({name:"DropdownButton",components:{IconMore:Ev,Button:Uo,ButtonGroup:NS,Dropdown:BT},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}=Zt(e),o=Te("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=$3({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 v8e(e,t,n,r,o,a){const s=Me("Button"),l=Me("IconMore"),c=Me("Dropdown"),f=Me("ButtonGroup");return H(),Xe(f,null,{default:de(()=>[O(s,Nt({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:de(()=>[ft(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(()=>[ft(e.$slots,"content")]),default:de(()=>[O(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:de(()=>[ft(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 UT=$e(p8e,[["render",v8e]]);const kfe=Object.assign(BT,{Option:Hy,Group:FT,Submenu:jT,Button:UT,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+BT.name,BT),e.component(n+Hy.name,Hy),e.component(n+FT.name,FT),e.component(n+jT.name,jT),e.component(n+UT.name,UT)}});var BS=be({name:"BreadcrumbItem",inheritAttrs:!1,props:{separator:{type:[String,Number]},droplist:{type:Array},dropdownProps:{type:Object},index:{type:Number,default:0}},setup(e,{slots:t,attrs:n}){const r=Te("breadcrumb-item"),o=xn(bfe,void 0),a=pe(!1),s=j(()=>!(o&&o.needHide&&e.index>1&&e.index<=o.total-o.maxCount)),l=j(()=>o&&o.needHide?e.index===1:!1),c=j(()=>o?e.index{a.value=b},h=()=>{var b,S,k,C,E,x,_;if(!c.value)return null;const A=(_=(x=(E=(S=(b=t.separator)==null?void 0:b.call(t))!=null?S:e.separator)!=null?E:(C=o==null?void 0:(k=o.slots).separator)==null?void 0:C.call(k))!=null?x:o?.separator)!=null?_:O(_fe,null,null);return O("div",{"aria-hidden":"true",class:`${r}-separator`},[A])},p=()=>{var b,S,k,C;return O("div",Nt({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(Ev,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(xv,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(kfe,Nt({popupVisible:a.value,onPopupVisibleChange:f},e.dropdownProps),{default:()=>[p()],content:m});return()=>s.value?O(Ft,null,[t.droplist||e.droplist?g():p(),h()]):null}}),Z8=be({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}=Zt(e),a=Te("breadcrumb"),s=pe(0),l=j(()=>n.value>0&&s.value>n.value+1);Gr(bfe,Ht({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(BS,{key:g.path||g.label,index:b,droplist:g.children},{default:()=>{var C,E;return[(E=(C=t["item-render"])==null?void 0:C.call(t,{route:g,routes:S,paths:k}))!=null?E:c(g,S,k)]}})})},h=()=>{var p,m;const g=cf((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=Nt((k=b.props)!=null?k:{},{index:S}),b})};return()=>O("div",{role:"list",class:a},[t.default?h():f()])}});const m8e=Object.assign(Z8,{Item:BS,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+Z8.name,Z8),e.component(n+BS.name,BS)}});var g8e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N3(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 VT={exports:{}},y8e=VT.exports,Wte;function wfe(){return Wte||(Wte=1,(function(e,t){(function(n,r){e.exports=r()})(y8e,(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,E={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(z){var G=["th","st","nd","rd"],Y=z%100;return"["+z+(G[(Y-20)%10]||G[Y]||G[0])+"]"}},x=function(z,G,Y){var re=String(z);return!re||re.length>=G?z:""+Array(G+1-re.length).join(Y)+z},_={s:x,z:function(z){var G=-z.utcOffset(),Y=Math.abs(G),re=Math.floor(Y/60),te=Y%60;return(G<=0?"+":"-")+x(re,2,"0")+":"+x(te,2,"0")},m:function z(G,Y){if(G.date()1)return z(K[0])}else{var J=G.name;R[J]=G,te=J}return!re&&te&&(A=te),te||!re&&A},L=function(z,G){if(D(z))return z.clone();var Y=typeof G=="object"?G:{};return Y.date=z,Y.args=arguments,new F(Y)},B=_;B.l=$,B.i=D,B.w=function(z,G){return L(z,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var F=(function(){function z(Y){this.$L=$(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[M]=!0}var G=z.prototype;return G.parse=function(Y){this.$d=(function(re){var te=re.date,X=re.utc;if(te===null)return new Date(NaN);if(B.u(te))return new Date;if(te instanceof Date)return new Date(te);if(typeof te=="string"&&!/Z$/i.test(te)){var K=te.match(k);if(K){var J=K[2]-1||0,ie=(K[7]||"0").substring(0,3);return X?new Date(Date.UTC(K[1],J,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ie)):new Date(K[1],J,K[3]||1,K[4]||0,K[5]||0,K[6]||0,ie)}}return new Date(te)})(Y),this.init()},G.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()},G.$utils=function(){return B},G.isValid=function(){return this.$d.toString()!==S},G.isSame=function(Y,re){var te=L(Y);return this.startOf(re)<=te&&te<=this.endOf(re)},G.isAfter=function(Y,re){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 E=C.match(/([+-]|\d\d)/g),x=60*E[1]+(+E[2]||0);return x===0?0:E[0]==="+"?-x:x})(k)}],m=function(k){var C=c[k];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(k,C){var E,x=c.meridiem;if(x){for(var _=1;_<=24;_+=1)if(k.indexOf(x(_,0,C))>-1){E=_>12;break}}else E=k===(C?"pm":"PM");return E},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,E=k.match(/\d+/);if(this.day=E[0],C)for(var x=1;x<=31;x+=1)C(x).replace(/\[|\]/g,"")===k&&(this.day=x)}],w:[s,h("week")],ww:[a,h("week")],M:[s,h("month")],MM:[a,h("month")],MMM:[l,function(k){var C=m("months"),E=(m("monthsShort")||C.map((function(x){return x.slice(0,3)}))).indexOf(k)+1;if(E<1)throw new Error;this.month=E%12||E}],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,E;C=k,E=c&&c.formats;for(var x=(k=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(L,B,F){var U=F&&F.toUpperCase();return B||E[F]||n[F]||E[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(z,G,Y){return G||Y.slice(1)}))}))).match(r),_=x.length,A=0;A<_;A+=1){var R=x[A],M=b[R],D=M&&M[0],$=M&&M[1];x[A]=$?{regex:D,parser:$}:R.replace(/^\[|\]$/g,"")}return function(L){for(var B={},F=0,U=0;F<_;F+=1){var z=x[F];if(typeof z=="string")U+=z.length;else{var G=z.regex,Y=z.parser,re=L.slice(U),te=G.exec(re)[0];Y.call(B,te),L=L.replace(te,"")}}return(function(X){var K=X.afternoon;if(K!==void 0){var J=X.hours;K?J<12&&(X.hours+=12):J===12&&(X.hours=0),delete X.afternoon}})(B),B}}return function(k,C,E){E.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(f=k.parseTwoDigitYear);var x=C.prototype,_=x.parse;x.parse=function(A){var R=A.date,M=A.utc,D=A.args;this.$u=M;var $=D[1];if(typeof $=="string"){var L=D[2]===!0,B=D[3]===!0,F=L||B,U=D[2];B&&(U=D[2]),c=this.$locale(),!L&&U&&(c=E.Ls[U]),this.$d=(function(re,te,X,K){try{if(["x","X"].indexOf(te)>-1)return new Date((te==="X"?1e3:1)*re);var J=S(te)(re),ie=J.year,se=J.month,ae=J.day,Ce=J.hours,ke=J.minutes,ve=J.seconds,Ie=J.milliseconds,Ne=J.zone,Ye=J.week,Ze=new Date,Ge=ae||(ie||se?1:Ze.getDate()),_e=ie||Ze.getFullYear(),ye=0;ie&&!se||(ye=se>0?se-1:Ze.getMonth());var Re,je=Ce||0,Qe=ke||0,rt=ve||0,yt=Ie||0;return Ne?new Date(Date.UTC(_e,ye,Ge,je,Qe,rt,yt+60*Ne.offset*1e3)):X?new Date(Date.UTC(_e,ye,Ge,je,Qe,rt,yt)):(Re=new Date(_e,ye,Ge,je,Qe,rt,yt),Ye&&(Re=K(Re).week(Ye).toDate()),Re)}catch{return new Date("")}})(R,$,M,E),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),F&&R!=this.format($)&&(this.$d=new Date("")),c={}}else if($ instanceof Array)for(var z=$.length,G=1;G<=z;G+=1){D[1]=$[G-1];var Y=E.apply(this,D);if(Y.isValid()){this.$d=Y.$d,this.$L=Y.$L,this.init();break}G===z&&(this.$d=new Date(""))}else _.call(this,A)}}}))})(zT)),zT.exports}var k8e=S8e();const w8e=xd(k8e);var HT={exports:{}},C8e=HT.exports,Kte;function E8e(){return Kte||(Kte=1,(function(e,t){(function(n,r){e.exports=r()})(C8e,(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))}}}))})(HT)),HT.exports}var x8e=E8e();const T8e=xd(x8e);var WT={exports:{}},A8e=WT.exports,qte;function I8e(){return qte||(qte=1,(function(e,t){(function(n,r){e.exports=r()})(A8e,(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)}}}))})(WT)),WT.exports}var L8e=I8e();const P8e=xd(L8e);var GT={exports:{}},R8e=GT.exports,Yte;function M8e(){return Yte||(Yte=1,(function(e,t){(function(n,r){e.exports=r()})(R8e,(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)}}}))})(GT)),GT.exports}var D8e=M8e();const O8e=xd(D8e);var KT={exports:{}},$8e=KT.exports,Xte;function N8e(){return Xte||(Xte=1,(function(e,t){(function(n,r){e.exports=r()})($8e,(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}}}))})(KT)),KT.exports}var B8e=N8e();const F8e=xd(B8e);var qT={exports:{}},j8e=qT.exports,Zte;function U8e(){return Zte||(Zte=1,(function(e,t){(function(n,r){e.exports=r()})(j8e,(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 V8e=U8e();const z8e=xd(V8e);var YT={exports:{}},H8e=YT.exports,Jte;function W8e(){return Jte||(Jte=1,(function(e,t){(function(n,r){e.exports=r(wfe())})(H8e,(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}))})(YT)),YT.exports}W8e();const G8e=(e,t,n)=>{n=function(a,s){if(Rc(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=Rc,a},n.isDayjs=Rc};ol.extend(G8e);ol.extend(w8e);ol.extend(T8e);ol.extend(P8e);ol.extend(O8e);ol.extend(F8e);ol.extend(z8e);const ks=ol,Us={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 fz(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 nc(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(UPe(t))return ks(n(o),t.replace(/\[Q]Q/,"MM"));if(ks(o,t).isValid())return ks(o,t)}return ks(o)}};return qn(e)?e.map(r):r(e)}function mu(e){const t=n=>n?n.toDate():void 0;return qn(e)?e.map(t):t(e)}function Cfe(e,t){ks.locale({...ks.Ls[e.toLocaleLowerCase()],weekStart:t})}function K8e(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 eg(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 JE(e,t){if(e&&qn(e))return e[t]}function Efe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:o,isSameTime:a,innerMode:s}){return function(c,f){const h=JE(n,0),p=JE(n,1),m=JE(r,0),g=JE(r,1),b=!c.isPrev&&!c.isNext,S=b&&o,k=S,C=S;m&&h&&m.isBefore(h);const x=p&&g&&g.isAfter(p)&&C;let _=a(c.time,Ba());return s==="year"&&(_=Ba().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`]:x,[`${e}-cell-hover-range-start`]:S,[`${e}-cell-hover-range-end`]:S,[`${e}-cell-hover-in-range`]:S,[`${e}-cell-disabled`]:f}]}}const Qte=42,FA=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),Y8e=e=>({start:FA(Us.startOf(e,"month")),end:FA(Us.endOf(e,"month")),days:e.daysInMonth()});function xfe(e,{dayStartOfWeek:t=0,isWeek:n}){const r=Y8e(e),o=Array(Qte).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 Tfe=be({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}=Zt(e),r=Te("calendar"),o=e.pageShowDate.year(),a=j(()=>Efe({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",Nt({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",Nt({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=xfe(ks(`${o}-${eg(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>O("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[O(q8e,{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 Afe=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),Ife=Array(3);for(let e=0;e<3;e++)Ife[e]=Afe.slice(e*4,4*(e+1));const Lfe=Array(4);for(let e=0;e<4;e++)Lfe[e]=Afe.slice(e*3,3*(e+1));var X8e=be({name:"Year",props:{mode:{type:String,required:!0},dayStartOfWeek:{type:Number,required:!0},value:{type:Object,required:!0},isWeek:{type:Boolean},panel:{type:Boolean,default:!1},pageShowData:{type:Object,required:!0},pageData:{type:Array},selectHandler:{type:Function,required:!0}},setup(e){const t=Te("calendar"),n=j(()=>Efe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=Ao(),o=j(()=>e.pageShowData.year()),a=e.panel?Lfe:Ife;return()=>O("div",{class:`${t}-year`},[a.map((s,l)=>O("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const f=ks(`${o.value}-${eg(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",Nt({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(Tfe,{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 Z8e=({defaultValue:e,modelValue:t,emit:n,eventName:r="input",updateEventName:o="update:modelValue",eventHandlers:a})=>{var s;const l=pe(),c=pe((s=e?.value)!=null?s:""),f=pe(!1),h=pe(!1),p=pe("");let m;const g=j(()=>{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),kn(()=>{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),kn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)})):(h.value=!0,p.value=g.value+((M=R.data)!=null?M:""))},E=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)},x=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===nz.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:E,handleBlur:x,handleKeyDown:_,handleMousedown:A}};var J8e=be({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}=Zt(e),h=(o=e.baseCls)!=null?o:Te("input-label"),{mergedSize:p,mergedDisabled:m,mergedError:g,eventHandlers:b}=So({size:a,disabled:s,error:l,uninject:f?.value}),{mergedSize:S}=ga(p),{inputRef:k,_focused:C,computedValue:E,handleInput:x,handleComposition:_,handleFocus:A,handleBlur:R,handleMousedown:M}=Z8e({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:b}),D=j(()=>{var re;return(re=e.focused)!=null?re:C.value}),$=j(()=>e.enabledInput&&C.value||!e.modelValue),L=()=>{var re,te;return e.modelValue?(te=(re=e.formatLabel)==null?void 0:re.call(e,e.modelValue))!=null?te:e.modelValue.label:""},B=j(()=>e.enabledInput&&e.modelValue?L():e.placeholder),F=()=>{var re,te;return e.modelValue?(te=(re=r.default)==null?void 0:re.call(r,{data:e.modelValue}))!=null?te:L():null},U=j(()=>[h,`${h}-size-${S.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:D.value,[`${h}-disabled`]:m.value,[`${h}-error`]:g.value}]),z=j(()=>va(t,lv)),G=j(()=>hf(t,lv));return{inputRef:k,render:()=>O("span",Nt(z.value,{class:U.value,title:L(),onMousedown:M}),[r.prefix&&O("span",{class:`${h}-prefix`},[r.prefix()]),O("input",Nt(G.value,{ref:k,class:[`${h}-input`,{[`${h}-input-hidden`]:!$.value}],value:E.value,readonly:!e.enabledInput,placeholder:B.value,disabled:m.value,onInput:x,onFocus:A,onBlur:R,onCompositionstart:_,onCompositionupdate:_,onCompositionend:_}),null),O("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:$.value}]},[F()]),r.suffix&&O("span",{class:`${h}-suffix`},[r.suffix()])])}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Q8e=(e,t)=>{const n=[];for(const r of e)if(lr(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},ene=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],eDe=be({name:"Tag",components:{IconHover:_o,IconClose:xs,IconLoading:ja},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}=Zt(e),r=Te("tag"),o=j(()=>e.color&&ene.includes(e.color)),a=j(()=>e.color&&!ene.includes(e.color)),s=pe(e.defaultVisible),l=pe(e.defaultChecked),c=j(()=>{var k;return(k=e.visible)!=null?k:s.value}),f=j(()=>{var k;return e.checkable?(k=e.checked)!=null?k:l.value:!0}),{mergedSize:h}=ga(n),p=j(()=>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=j(()=>[r,`${r}-size-${p.value}`,{[`${r}-loading`]:e.loading,[`${r}-hide`]:!c.value,[`${r}-${e.color}`]:o.value,[`${r}-bordered`]:e.bordered,[`${r}-checkable`]:e.checkable,[`${r}-checked`]:f.value,[`${r}-custom-color`]:a.value}]),S=j(()=>{if(a.value)return{backgroundColor:e.color}});return{prefixCls:r,cls:b,style:S,computedVisible:c,computedChecked:f,handleClick:g,handleClose:m}}});function tDe(e,t,n,r,o,a){const s=Me("icon-close"),l=Me("icon-hover"),c=Me("icon-loading");return e.computedVisible?(H(),Q("span",{key:0,class:le(e.cls),style:Ve(e.style),onClick:t[0]||(t[0]=(...f)=>e.handleClick&&e.handleClick(...f))},[e.$slots.icon?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon")],2)):Oe("v-if",!0),e.nowrap?(H(),Q("span",{key:1,class:le(`${e.prefixCls}-text`)},[ft(e.$slots,"default")],2)):ft(e.$slots,"default",{key:2}),e.closable?(H(),Xe(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:le(`${e.prefixCls}-close-btn`),onClick:es(e.handleClose,["stop"])},{default:de(()=>[ft(e.$slots,"close-icon",{},()=>[O(s)])]),_:3},8,["prefix","class","onClick"])):Oe("v-if",!0),e.loading?(H(),Q("span",{key:4,class:le(`${e.prefixCls}-loading-icon`)},[O(c)],2)):Oe("v-if",!0)],6)):Oe("v-if",!0)}var J8=$e(eDe,[["render",tDe]]);const hz=Object.assign(J8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+J8.name,J8)}}),nDe={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var Q8=be({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}=Zt(e),f=e.baseCls||Te("input-tag"),h=pe(),p=pe(),{mergedSize:m,mergedDisabled:g,mergedError:b,feedback:S,eventHandlers:k}=So({size:o,disabled:a,error:s,uninject:l?.value}),{mergedSize:C}=ga(m),E=j(()=>({...nDe,...e.fieldNames})),x=pe(!1),_=pe(e.defaultValue),A=pe(e.defaultInputValue),R=pe(!1),M=pe(""),D=j(()=>lr(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),$=Ht({width:"12px"}),L=j(()=>e.focused||x.value),B=(ye,Re)=>{A.value=ye,t("update:inputValue",ye),t("inputValueChange",ye,Re)},F=ye=>{var Re;const{value:je}=ye.target;ye.type==="compositionend"?(R.value=!1,M.value="",B(je,ye),kn(()=>{h.value&&z.value!==h.value.value&&(h.value.value=z.value)})):(R.value=!0,M.value=z.value+((Re=ye.data)!=null?Re:""))},U=j(()=>{var ye;return(ye=e.modelValue)!=null?ye:_.value}),z=j(()=>{var ye;return(ye=e.inputValue)!=null?ye:A.value});Dt(c,ye=>{(mn(ye)||yl(ye))&&(_.value=[])});const G=ye=>{h.value&&ye.target!==h.value&&(ye.preventDefault(),h.value.focus())},Y=ye=>{const{value:Re}=ye.target;R.value||(B(Re,ye),kn(()=>{h.value&&z.value!==h.value.value&&(h.value.value=z.value)}))},re=j(()=>Q8e(U.value,E.value)),te=j(()=>{if(e.maxTagCount>0){const ye=re.value.length-e.maxTagCount;if(ye>0){const Re=re.value.slice(0,e.maxTagCount),je={value:"__arco__more",label:`+${ye}...`,closable:!1};return Re.push({raw:je,...je}),Re}}return re.value}),X=(ye,Re)=>{var je,Qe;_.value=ye,t("update:modelValue",ye),t("change",ye,Re),(Qe=(je=k.value)==null?void 0:je.onChange)==null||Qe.call(je,Re)},K=(ye,Re,je)=>{var Qe;const rt=(Qe=U.value)==null?void 0:Qe.filter((yt,ct)=>ct!==Re);X(rt,je),t("remove",ye,je)},J=ye=>{X([],ye),t("clear",ye)},ie=j(()=>!g.value&&!e.readonly&&e.allowClear&&!!U.value.length),se=ye=>{var Re;if(z.value){if(ye.preventDefault(),e.uniqueValue&&((Re=U.value)!=null&&Re.includes(z.value))){t("pressEnter",z.value,ye);return}const je=U.value.concat(z.value);X(je,ye),t("pressEnter",z.value,ye),D.value.create||B("",ye)}},ae=ye=>{var Re,je;x.value=!0,t("focus",ye),(je=(Re=k.value)==null?void 0:Re.onFocus)==null||je.call(Re,ye)},Ce=ye=>{var Re,je;x.value=!1,!D.value.blur&&z.value&&B("",ye),t("blur",ye),(je=(Re=k.value)==null?void 0:Re.onBlur)==null||je.call(Re,ye)},ke=()=>{for(let ye=re.value.length-1;ye>=0;ye--)if(re.value[ye].closable)return ye;return-1},ve=ye=>{if(g.value||e.readonly)return;const Re=ye.key||ye.code;if(!R.value&&z.value&&Re===nz.key&&se(ye),!R.value&&te.value.length>0&&!z.value&&Re===ufe.key){const je=ke();je>=0&&K(re.value[je].value,je,ye)}},Ie=ye=>{ye>12?$.width=`${ye}px`:$.width="12px"};dn(()=>{p.value&&Ie(p.value.offsetWidth)});const Ne=()=>{p.value&&Ie(p.value.offsetWidth)};Dt(z,ye=>{h.value&&!R.value&&ye!==h.value.value&&(h.value.value=ye)});const Ye=j(()=>[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`]:te.value.length>0,[`${f}-has-prefix`]:!!n.prefix,[`${f}-has-suffix`]:!!n.suffix||ie.value||S.value,[`${f}-has-placeholder`]:!U.value.length}]),Ze=j(()=>va(r,lv)),Ge=j(()=>hf(r,lv));return{inputRef:h,render:()=>{var ye;return O("span",Nt({class:Ye.value,onMousedown:G},Ze.value),[O(Sd,{onResize:Ne},{default:()=>[O("span",{ref:p,class:`${f}-mirror`},[te.value.length>0?M.value||z.value:M.value||z.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:()=>[te.value.map((Re,je)=>O(hz,Nt({key:`tag-${Re.value}`,class:`${f}-tag`,closable:!g.value&&!e.readonly&&Re.closable,visible:!0,nowrap:e.tagNowrap},Re.tagProps,{onClose:Qe=>K(Re.value,je,Qe)}),{default:()=>{var Qe,rt,yt,ct;return[(ct=(yt=(Qe=n.tag)==null?void 0:Qe.call(n,{data:Re.raw}))!=null?yt:(rt=e.formatTag)==null?void 0:rt.call(e,Re.raw))!=null?ct:Re.label]}})),O("input",Nt(Ge.value,{ref:h,key:"input-tag-input",class:`${f}-input`,style:$,placeholder:te.value.length===0?e.placeholder:void 0,disabled:g.value,readonly:e.readonly||e.disabledInput,onInput:Y,onKeydown:ve,onFocus:ae,onBlur:Ce,onCompositionstart:F,onCompositionupdate:F,onCompositionend:F}),null)]}),ie.value&&O(_o,{class:`${f}-clear-btn`,onClick:J,onMousedown:Re=>Re.stopPropagation()},{default:()=>[O(xs,null,null)]}),(n.suffix||!!S.value)&&O("span",{class:`${f}-suffix`},[(ye=n.suffix)==null?void 0:ye.call(n),!!S.value&&O(Pk,{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 Pfe=Object.assign(Q8,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+Q8.name,Q8)}});var jA=be({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}=Zt(e),s=Te("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:f,mergedSize:h,mergedError:p}=So({size:r,disabled:o,error:a}),{mergedSize:m}=ga(h),{opened:g}=Zt(e),b=pe(),S=j(()=>{var B;return(B=b.value)==null?void 0:B.inputRef}),k=j(()=>e.modelValue.length===0),C=j(()=>e.allowSearch||e.allowCreate),E=j(()=>e.allowClear&&!e.disabled&&!k.value),x=B=>{var F,U;t("focus",B),(U=(F=c.value)==null?void 0:F.onFocus)==null||U.call(F,B)},_=B=>{var F,U;t("blur",B),(U=(F=c.value)==null?void 0:F.onBlur)==null||U.call(F,B)},A=B=>{t("remove",B)},R=B=>{t("clear",B)},M=()=>{var B,F,U,z;return e.loading?(F=(B=n["loading-icon"])==null?void 0:B.call(n))!=null?F:O(ja,null,null):e.allowSearch&&e.opened?(z=(U=n["search-icon"])==null?void 0:U.call(n))!=null?z:O(yg,null,null):n["arrow-icon"]?n["arrow-icon"]():O(xv,{class:`${s}-arrow-icon`},null)},D=()=>O(Ft,null,[E.value&&O(_o,{class:`${s}-clear-btn`,onClick:R,onMousedown:B=>B.stopPropagation()},{default:()=>[O(xs,null,null)]}),O("span",{class:`${s}-icon`},[M()]),!!l.value&&O(Pk,{type:l.value},null)]);Dt(g,B=>{!B&&S.value&&S.value.isSameNode(document.activeElement)&&S.value.blur()});const $=j(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:S,handleFocus:x,handleBlur:_,render:()=>e.multiple?O(Pfe,{ref:b,baseCls:s,class:$.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:x,onBlur:_},{prefix:n.prefix,suffix:D,tag:n.label}):O(J8e,{ref:b,baseCls:s,class:$.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:x,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 rDe=be({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:Te("select-group")}}});function iDe(e,t,n,r,o,a){return H(),Q(Ft,null,[I("li",{class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"label",{},()=>[We(Be(e.label),1)])],2),ft(e.$slots,"default")],64)}var FS=$e(rDe,[["render",iDe]]);const tne=typeof window>"u"?global:window;function j2(e,t){let n=0;return(...r)=>{n&&tne.clearTimeout(n),n=tne.setTimeout(()=>{n=0,e(...r)},t)}}function oDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}const sDe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var eD=be({name:"Select",components:{Trigger:sa,SelectView:jA},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=>mn(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}=Zt(e),E=Te("select"),{mergedSize:x,mergedDisabled:_,mergedError:A,eventHandlers:R}=So({size:o,disabled:a,error:s}),M=j(()=>e.virtualListProps?"div":"li"),D=j(()=>lr(e.allowSearch)&&!!e.allowSearch.retainInputValue);j(()=>{if(pn(e.formatLabel))return qe=>{const ht=rt.get(qe.value);return e.formatLabel(ht)}});const $=pe(),L=pe({}),B=pe(),{computedPopupVisible:F,handlePopupVisibleChange:U}=$3({popupVisible:p,defaultPopupVisible:m,emit:n}),z=pe(e.defaultValue),G=j(()=>{var qe;const ht=(qe=e.modelValue)!=null?qe:z.value;return(qn(ht)?ht:ht||Ke(ht)||ts(ht)||ml(ht)?[ht]:[]).map(Fe=>({value:Fe,key:bg(Fe,e.valueKey)}))});Dt(b,qe=>{(mn(qe)||yl(qe))&&(z.value=h.value?[]:qe)});const Y=j(()=>G.value.map(qe=>qe.key)),re=j(()=>({...sDe,...S?.value})),te=pe(),X=qe=>{const ht={};return qe.forEach(ze=>{ht[ze]=rt.get(ze)}),ht},K=qe=>{te.value=X(qe)},J=qe=>pn(e.fallbackOption)?e.fallbackOption(qe):{[re.value.value]:qe,[re.value.label]:String(lr(qe)?qe[f?.value]:qe)},ie=()=>{const qe=[],ht=[];if(e.allowCreate||e.fallbackOption){for(const ze of G.value)if(!ht.includes(ze.key)&&ze.value!==""){const Fe=rt.get(ze.key);(!Fe||Fe.origin==="extraOptions")&&(qe.push(ze),ht.push(ze.key))}}if(e.allowCreate&&ke.value){const ze=bg(ke.value);if(!ht.includes(ze)){const Fe=rt.get(ze);(!Fe||Fe.origin==="extraOptions")&&qe.push({value:ke.value,key:ze})}}return qe},se=pe([]),ae=j(()=>se.value.map(qe=>{var ht;let ze=J(qe.value);const Fe=(ht=te.value)==null?void 0:ht[qe.key];return!mn(Fe)&&!jPe(Fe)&&(ze={...ze,...Fe}),ze}));kn(()=>{Cs(()=>{var qe;const ht=ie();if(ht.length!==se.value.length)se.value=ht;else if(ht.length>0){for(let ze=0;ze{var qe;return(qe=e.inputValue)!=null?qe:Ce.value});Dt(F,qe=>{!qe&&!D.value&&ke.value&&Ne("")});const ve=qe=>{var ht,ze;return e.multiple?qe.map(Fe=>{var at,St;return(St=(at=rt.get(Fe))==null?void 0:at.value)!=null?St:""}):(ze=(ht=rt.get(qe[0]))==null?void 0:ht.value)!=null?ze:hMe(rt)?void 0:""},Ie=qe=>{var ht,ze;const Fe=ve(qe);z.value=Fe,n("update:modelValue",Fe),n("change",Fe),(ze=(ht=R.value)==null?void 0:ht.onChange)==null||ze.call(ht),K(qe)},Ne=qe=>{Ce.value=qe,n("update:inputValue",qe),n("inputValueChange",qe)},Ye=(qe,ht)=>{if(e.multiple){if(Y.value.includes(qe)){const ze=Y.value.filter(Fe=>Fe!==qe);Ie(ze)}else if(ct.value.includes(qe))if(e.limit>0&&Y.value.length>=e.limit){const ze=rt.get(qe);n("exceedLimit",ze?.value,ht)}else{const ze=Y.value.concat(qe);Ie(ze)}D.value||Ne("")}else{if(qe!==Y.value[0]&&Ie([qe]),D.value){const ze=rt.get(qe);ze&&Ne(ze.label)}U(!1)}},Ze=j2(qe=>{n("search",qe)},e.searchDelay),Ge=qe=>{qe!==ke.value&&(F.value||U(!0),Ne(qe),e.allowSearch&&Ze(qe))},_e=qe=>{const ht=rt.get(qe),ze=Y.value.filter(Fe=>Fe!==qe);Ie(ze),n("remove",ht?.value)},ye=qe=>{qe?.stopPropagation();const ht=Y.value.filter(ze=>{var Fe;return(Fe=rt.get(ze))==null?void 0:Fe.disabled});Ie(ht),Ne(""),n("clear",qe)},Re=qe=>{n("dropdownScroll",qe)},je=qe=>{n("dropdownReachBottom",qe)},{validOptions:Qe,optionInfoMap:rt,validOptionInfos:yt,enabledOptionKeys:ct,handleKeyDown:Et}=lz({multiple:h,options:l,extraOptions:ae,inputValue:ke,filterOption:c,showExtraOptions:g,component:M,valueKey:f,fieldNames:S,loading:k,popupVisible:F,valueKeys:Y,dropdownRef:$,optionRefs:L,virtualListRef:B,defaultActiveFirstOption:C,onSelect:Ye,onPopupVisibleChange:U}),Tt=j(()=>{var qe;const ht=[];for(const ze of G.value){const Fe=rt.get(ze.key);Fe&&ht.push({...Fe,value:ze.key,label:(qe=Fe?.label)!=null?qe:String(lr(ze.value)?ze.value[f?.value]:ze.value),closable:!Fe?.disabled,tagProps:Fe?.tagProps})}return ht}),Wt=qe=>{if(pn(t.option)){const ht=t.option;return()=>ht({data:qe.raw})}return pn(qe.render)?qe.render:()=>qe.label},Gt=qe=>{if(mfe(qe)){let ht;return O(FS,{key:qe.key,label:qe.label},oDe(ht=qe.options.map(ze=>Gt(ze)))?ht:{default:()=>[ht]})}return M3(qe,{inputValue:ke.value,filterOption:c?.value})?O(Qm,{ref:ht=>{ht?.$el&&(L.value[qe.key]=ht.$el)},key:qe.key,value:qe.value,label:qe.label,disabled:qe.disabled,internal:!0},{default:Wt(qe)}):null},Jt=()=>O(az,{ref:$,loading:e.loading,empty:yt.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Re,onReachBottom:je},{default:()=>{var qe,ht;return[...(ht=(qe=t.default)==null?void 0:qe.call(t))!=null?ht:[],...Qe.value.map(Gt)]},"virtual-list":()=>O(G1,Nt(e.virtualListProps,{ref:B,data:Qe.value}),{item:({item:qe})=>Gt(qe)}),empty:t.empty,header:t.header,footer:t.footer}),rn=({data:qe})=>{var ht,ze,Fe,at;if((t.label||pn(e.formatLabel))&&qe){const St=rt.get(qe.value);if(St?.raw)return(Fe=(ht=t.label)==null?void 0:ht.call(t,{data:St.raw}))!=null?Fe:(ze=e.formatLabel)==null?void 0:ze.call(e,St.raw)}return(at=qe?.label)!=null?at:""};return()=>O(sa,Nt({trigger:"click",position:"bl",popupOffset:4,animationName:"slide-dynamic-origin",hideEmpty:!0,preventFocus:!0,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:_.value,popupVisible:F.value,unmountOnClose:e.unmountOnClose,clickToClose:!(e.allowSearch||e.allowCreate),popupContainer:e.popupContainer,onPopupVisibleChange:U},e.triggerProps),{default:()=>{var qe,ht;return[(ht=(qe=t.trigger)==null?void 0:qe.call(t))!=null?ht:O(jA,Nt({class:E,modelValue:Tt.value,inputValue:ke.value,multiple:e.multiple,disabled:_.value,error:A.value,loading:e.loading,allowClear:e.allowClear,allowCreate:e.allowCreate,allowSearch:!!e.allowSearch,opened:F.value,maxTagCount:e.maxTagCount,placeholder:e.placeholder,bordered:e.bordered,size:x.value,tagNowrap:e.tagNowrap,onInputValueChange:Ge,onRemove:_e,onClear:ye,onKeydown:Et},r),{label:rn,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Jt})}});const U2=Object.assign(eD,{Option:Qm,OptGroup:FS,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+eD.name,eD),e.component(n+Qm.name,Qm),e.component(n+FS.name,FS)}}),Rfe=Symbol("RadioGroup");var XT=be({name:"Radio",components:{IconHover:_o},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!0},type:{type:String,default:"radio"},disabled:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Te("radio"),{modelValue:o}=Zt(e),a=e.uninjectGroupContext?void 0:xn(Rfe,void 0),{mergedDisabled:s,eventHandlers:l}=So({disabled:wu(e,"disabled")}),c=pe(null),f=pe(e.defaultChecked),h=j(()=>a?.name==="ArcoRadioGroup"),p=j(()=>{var _;return(_=a?.type)!=null?_:e.type}),m=j(()=>a?.disabled||s.value),g=j(()=>{var _,A;return h.value?a?.value===((_=e.value)!=null?_:!0):mn(e.modelValue)?f.value:e.modelValue===((A=e.value)!=null?A:!0)});Dt(o,_=>{(mn(_)||yl(_))&&(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,$;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,_),($=(D=l.value)==null?void 0:D.onChange)==null||$.call(D,_)),kn(()=>{c.value&&c.value.checked!==g.value&&(c.value.checked=g.value)})},E=j(()=>[`${p.value==="button"?`${r}-button`:r}`,{[`${r}-checked`]:g.value,[`${r}-disabled`]:m.value}]),x=()=>O(Ft,null,[O(Me("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:E.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:x():O("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),ZT=be({name:"RadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean],default:""},type:{type:String,default:"radio"},size:{type:String},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Te("radio-group"),{size:o,type:a,disabled:s,modelValue:l}=Zt(e),{mergedDisabled:c,mergedSize:f,eventHandlers:h}=So({size:o,disabled:s}),{mergedSize:p}=ga(f),m=pe(e.defaultValue),g=j(()=>{var E;return(E=e.modelValue)!=null?E:m.value}),b=j(()=>{var E;return((E=e.options)!=null?E:[]).map(x=>ts(x)||Ke(x)?{label:x,value:x}:x)});Gr(Rfe,Ht({name:"ArcoRadioGroup",value:g,size:p,type:a,disabled:c,slots:n,handleChange:(E,x)=>{var _,A;m.value=E,t("update:modelValue",E),t("change",E,x),(A=(_=h.value)==null?void 0:_.onChange)==null||A.call(_,x)}})),Dt(g,E=>{m.value!==E&&(m.value=E)}),Dt(l,E=>{(mn(E)||yl(E))&&(m.value="")});const k=j(()=>[`${r}${e.type==="button"?"-button":""}`,`${r}-size-${p.value}`,`${r}-direction-${e.direction}`,{[`${r}-disabled`]:c.value}]),C=()=>b.value.map(E=>O(XT,{key:E.value,value:E.value,disabled:E.disabled,modelValue:g.value===E.value},{default:()=>[n.label?n.label({data:E}):pn(E.label)?E.label():E.label]}));return()=>{var E;return O("span",{class:k.value},[b.value.length>0?C():(E=n.default)==null?void 0:E.call(n)])}}});const b1=Object.assign(XT,{Group:ZT,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+XT.name,XT),e.component(n+ZT.name,ZT)}}),aDe=be({name:"IconLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lDe=["stroke-width","stroke-linecap","stroke-linejoin"];function uDe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,lDe)}var tD=$e(aDe,[["render",uDe]]);const Hl=Object.assign(tD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tD.name,tD)}});function cDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}function nne(e){return e.parentElement}var dDe=be({name:"Header",props:{mode:{type:String},dayStartOfWeek:{type:Number},isWeek:{type:Boolean},panel:{type:Boolean},modes:{type:Array},headerType:{type:String},pageShowData:{type:Object,required:!0},move:{type:Function,required:!0},onYearChange:{type:Function,required:!0},onMonthChange:{type:Function,required:!0},changePageShowDate:{type:Function,required:!0},onModeChange:{type:Function,required:!0},headerValueFormat:{type:String,required:!0}},emits:["yearChange","monthChange"],setup(e,{slots:t}){const n=Te("calendar"),{t:r}=Ao(),o=qn(e.modes)?e.modes.map(h=>({label:r(`datePicker.view.${h}`),value:h})):[],a=e.headerType==="select",s=j(()=>e.pageShowData.year()),l=j(()=>e.pageShowData.month()+1),c=j(()=>{const h=[s.value];for(let p=1;p<=10;p++)h.unshift(s.value-p);for(let p=1;p<10;p++)h.push(s.value+p);return h}),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(Ft,null,[O(U2,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:nne},null),e.mode==="month"&&O(U2,{size:"small",class:`${n}-header-value-month`,value:l,options:f,onChange:e.onMonthChange,getPopupContainer:nne},null)]):O(Ft,null,[O("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[O(Hl,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(Mi,null,null)])]),O(Uo,{size:"small",onClick:()=>e.move(Ba())},cDe(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 fDe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var nD=be({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}=Zt(e),a=Te("calendar"),s=pe(e.defaultMode),{t:l}=Ao(),c=j(()=>e.mode?e.mode:s.value),f=fDe(c.value,e.panel),h=pe(nc(e.defaultValue||Date.now(),f)),p=j(()=>e.modelValue?nc(e.modelValue,f):h.value),m=pe(p.value||Ba()),g=j(()=>xfe(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,$=!1){$||S(D)}let C="";c.value==="month"?C=l("calendar.formatMonth"):c.value==="year"&&(C=l("calendar.formatYear"));function E(D,$){D==="prev"&&(m.value=Us.subtract(m.value,1,$)),D==="next"&&(m.value=Us.add(m.value,1,$)),t("panelChange",m.value.toDate())}function x(D){const $=Us.set(m.value,"year",D);m.value=$,t("panelChange",$.toDate())}function _(D){const $=Us.set(m.value,"month",D-1);m.value=$,t("panelChange",$.toDate())}function A(D){s.value=D}const R=j(()=>[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",Nt({class:R.value,style:M},K8e(e)),[O(dDe,{move:S,headerValueFormat:C,modes:e.modes,mode:c.value,pageShowData:m.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:A,onYearChange:x,onMonthChange:_,changePageShowDate:E},{default:n.header}),c.value==="month"&&O("div",{class:`${a}-body`},[O(Tfe,{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(X8e,{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 Mfe=Object.assign(nD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+nD.name,nD)}}),pz=Symbol("ArcoCard");var rD=be({name:"Card",components:{Spin:kd},props:{bordered:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},size:{type:String},headerStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({})},title:{type:String},extra:{type:String}},setup(e,{slots:t}){const n=Te("card"),{size:r}=Zt(e),{mergedSize:o}=ga(r),a=j(()=>o.value==="small"||o.value==="mini"?"small":"medium"),s=f=>{const h=cf(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=Ht({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});Gr(pz,l);const c=j(()=>[n,`${n}-size-${a.value}`,{[`${n}-loading`]:e.loading,[`${n}-bordered`]:e.bordered,[`${n}-hoverable`]:e.hoverable,[`${n}-contain-grid`]:l.hasGrid}]);return()=>{var 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(kd,null,null):(S=t.default)==null?void 0:S.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),JT=be({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=Te("card-meta"),r=xn(pz);return dn(()=>{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 hDe=be({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=Te("card-grid"),n=xn(pz);return dn(()=>{n&&(n.hasGrid=!0)}),{cls:j(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function pDe(e,t,n,r,o,a){return H(),Q("div",{class:le(e.cls)},[ft(e.$slots,"default")],2)}var QT=$e(hDe,[["render",pDe]]);const vDe=Object.assign(rD,{Meta:JT,Grid:QT,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+rD.name,rD),e.component(n+JT.name,JT),e.component(n+QT.name,QT)}}),mDe=be({name:"Indicator",props:{count:{type:Number,default:2},activeIndex:{type:Number,default:0},type:{type:String,default:"line"},position:{type:String,default:"bottom"},trigger:{type:String,default:"click"}},emits:["select"],setup(e,{emit:t}){const n=Te("carousel-indicator"),r=l=>{var c;if(l.preventDefault(),e.type==="slider"){const 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=j(()=>e.trigger==="click"?{onClick:r}:{onMouseover:r}),a=j(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),s=j(()=>{const l=100/e.count;return{width:`${l}%`,left:`${e.activeIndex*l}%`}});return{prefixCls:n,eventHandlers:o,cls:a,sliderStyle:s}}}),gDe=["data-index"];function yDe(e,t,n,r,o,a){return H(),Q("div",Nt({class:e.cls},e.eventHandlers),[e.type==="slider"?(H(),Q("span",{key:0,style:Ve(e.sliderStyle),class:le([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(H(!0),Q(Ft,{key:1},fn(Array(e.count),(s,l)=>(H(),Q("span",{key:l,"data-index":l,class:le([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,gDe))),128))],16)}var bDe=$e(mDe,[["render",yDe]]);const _De=be({name:"IconUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SDe=["stroke-width","stroke-linecap","stroke-linejoin"];function kDe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,SDe)}var iD=$e(_De,[["render",kDe]]);const Rk=Object.assign(iD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iD.name,iD)}}),wDe=be({name:"Arrow",components:{IconUp:Rk,IconDown:xv,IconLeft:Hl,IconRight:Mi},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=Te("carousel"),r=s=>{t("previousClick",s)},o=s=>{t("nextClick",s)},a=j(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:a,onPreviousClick:r,onNextClick:o}}});function CDe(e,t,n,r,o,a){const s=Me("IconLeft"),l=Me("IconUp"),c=Me("IconRight"),f=Me("IconDown");return H(),Q("div",{class:le(e.cls)},[I("div",{class:le(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...h)=>e.onPreviousClick&&e.onPreviousClick(...h))},[e.direction==="horizontal"?(H(),Xe(s,{key:0})):(H(),Xe(l,{key:1}))],2),I("div",{class:le(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...h)=>e.onNextClick&&e.onNextClick(...h))},[e.direction==="horizontal"?(H(),Xe(c,{key:0})):(H(),Xe(f,{key:1}))],2)],2)}var EDe=$e(wDe,[["render",CDe]]);const Dfe=Symbol("ArcoCarousel"),Mk=e=>{const t={},n=pe([]),r=()=>{if(t.value){const o=tfe(t.value,e);(o.length!==n.value.length||o.toString()!==n.value.toString())&&(n.value=o)}};return dn(()=>r()),za(()=>r()),{children:t,components:n}},rne={interval:3e3,hoverToPause:!0};function oD(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var sD=be({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}=Zt(e),l=Te("carousel"),c=pe(!1),f=pe(),h=pe(),p=j(()=>lr(e.autoPlay)?{...rne,...e.autoPlay}:e.autoPlay?rne:{});let m=0,g=0;const{children:b,components:S}=Mk("CarouselItem"),k=pe(e.defaultCurrent-1),C=j(()=>{const z=S.value.length,G=Ke(r.value)?oD(r.value-1,z):k.value,Y=oD(G-1,z),re=oD(G+1,z);return{mergedIndex:G,mergedPrevIndex:Y,mergedNextIndex:re}}),E=Ht({items:S,slideTo:_,mergedIndexes:C,previousIndex:f,animationName:o,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});Gr(Dfe,E);const x=()=>{m&&window.clearInterval(m)};Cs(()=>{var z;const{interval:G}=p.value||{},{mergedNextIndex:Y}=C.value,re=((z=S.value)==null?void 0:z.length)>1&&!c.value&&!!G;x(),re&&(m=window.setInterval(()=>{_({targetIndex:Y})},G))}),$o(()=>{x()});function _({targetIndex:z,isNegative:G=!1,isManual:Y=!1}){!g&&z!==C.value.mergedIndex&&(f.value=k.value,k.value=z,h.value=G?"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=z=>_({targetIndex:z,isNegative:zp.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),$=j(()=>e.indicatorType!=="never"&&S.value.length>1),L=j(()=>e.showArrow!=="never"&&S.value.length>1),B=j(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),F=j(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),U=j(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var z;return b.value=(z=n.default)==null?void 0:z.call(n),O("div",Nt({class:B.value},D.value),[O("div",{class:F.value},[b.value]),$.value&&O("div",{class:U.value},[O(bDe,{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 xDe=be({name:"CarouselItem",setup(){const e=Te("carousel-item"),t=uo(),n=xn(Dfe,{}),r=j(()=>{var l,c,f;return(f=(c=n.items)==null?void 0:c.indexOf((l=t?.uid)!=null?l:-1))!=null?f:-1}),o=j(()=>{var l;return((l=n.mergedIndexes)==null?void 0:l.mergedIndex)===r.value}),a=j(()=>{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=j(()=>{const{transitionTimingFunction:l,moveSpeed:c}=n;return{transitionTimingFunction:l,transitionDuration:`${c}ms`,animationTimingFunction:l,animationDuration:`${c}ms`}});return{cls:a,animationStyle:s,isCurrent:o}}}),TDe=["aria-hidden"];function ADe(e,t,n,r,o,a){return H(),Q("div",{"aria-hidden":!e.isCurrent,class:le(e.cls),style:Ve(e.animationStyle)},[ft(e.$slots,"default")],14,TDe)}var e4=$e(xDe,[["render",ADe]]);const IDe=Object.assign(sD,{Item:e4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+sD.name,sD),e.component(n+e4.name,e4)}}),Ofe=(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 E=(C=S?.path)!=null?C:[];return p=Math.max(p,k??1),b.map((x,_)=>{var A;const R=x[h.value],M={raw:x,value:R,label:(A=x[h.label])!=null?A:String(R),disabled:!!x[h.disabled],selectionDisabled:!1,render:x[h.render],tagProps:x[h.tagProps],isLeaf:x[h.isLeaf],level:E.length,index:_,key:"",valueKey:String(lr(R)?R[f.value]:R),parent:S,path:[],pathValue:[]},D=E.concat(M),$=[],L=D.map(B=>($.push(B.value),B.valueKey)).join("-");return M.path=D,M.pathValue=$,M.key=L,x[h.children]?(M.isLeaf=!1,M.children=m(x[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,F)=>Ke(F.totalLeafOptions)?B+F.totalLeafOptions:F.disabled||F.selectionDisabled?B:B+(F.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},vz=(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}},mz=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...mz(n));return t},gz=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(...gz(n));return t},$fe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(qn(e))return e.map(a=>lr(a)?a[t]:a).join("-");const o=lr(e)?e[t]:e;return(r=n.get(String(o)))!=null?r:String(o)},Nfe=(e,{multiple:t,pathMode:n})=>qn(e)?n&&!t&&e.length>0&&!qn(e[0])?[e]:e:mn(e)||yl(e)||e===""?[]:[e],Bfe=e=>e.path.map(t=>t.label).join(" / "),yz=Symbol("ArcoCascader");var QF=be({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=Te("cascader-option"),n=xn(yz,{}),r=pe(!1),o={},a=h=>{var p;if(pn(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=j(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),l=j(()=>{var h;return e.checkStrictly?{checked:(h=n.valueMap)==null?void 0:h.has(e.option.key),indeterminate:!1}:vz(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:Bfe(e.option):(m=n.slots)!=null&&m.option?n.slots.option({data:e.option}):pn(e.option.render)?e.option.render():e.option.label},f=()=>r.value?O(ja,null,null):!e.searchOption&&!e.option.isLeaf?O(Mi,null,null):null;return()=>{var h;return O("li",Nt({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(bd,{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()])])}}}),LDe=be({name:"CascaderColumn",props:{column:{type:Array,required:!0},level:{type:Number,default:0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Te("cascader"),r=xn(Fa,void 0),o=pe(),a=pe(!!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(jh,null,null)};return()=>{var l;return O("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?O(wd,{class:`${n}-column-content`},{default:()=>[O("div",{class:`${n}-list-empty`},[s()])]}):a.value?O(G1,Nt({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:o,data:e.column}),{item:({item:c})=>O(QF,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):O(wd,{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(QF,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function PDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var Ffe=be({name:"BaseCascaderPanel",props:{displayColumns:{type:Array,required:!0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,loading:Boolean,dropdown:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Te("cascader"),r=xn(Fa,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(jh,null,null)},a=()=>e.loading?O("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[O(kd,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(LDe,{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}]},PDe(s=a())?s:{default:()=>[s]})}}});function RDe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var MDe=be({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=Te("cascader"),r=xn(Fa,void 0),o=()=>{var a,s,l,c,f;return e.loading?O(kd,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(jh,null,null)]):O("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>O(QF,{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(wd,{class:[`${n}-panel`,`${n}-search-panel`]},RDe(a=o())?a:{default:()=>[a]})}}});const jfe=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:r,expandChild:o})=>{const a=pe(),s=j(()=>{if(a.value)return t.get(a.value)}),l=pe([]),c=j(()=>{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=j(()=>{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,E,x,_,A;const R=(k=(S=p.value)==null?void 0:S.length)!=null?k:0;if(a.value){const M=(E=(C=p.value)==null?void 0:C.findIndex(D=>D.key===a.value))!=null?E:0;return b==="next"?(x=p.value)==null?void 0:x[(R+M+1)%R]:(_=p.value)==null?void 0:_[(R+M-1)%R]}return(A=p.value)==null?void 0:A[0]}}},DDe=be({name:"Cascader",components:{Trigger:sa,SelectView:jA,BaseCascaderPanel:Ffe,CascaderSearchPanel:MDe},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}=Zt(e),b=pe(e.defaultValue),S=pe(e.defaultInputValue),k=pe(e.defaultPopupVisible),{mergedDisabled:C,eventHandlers:E}=So({disabled:c});Dt(l,yt=>{(mn(yt)||yl(yt))&&(b.value=e.multiple?[]:void 0)});const x=pe([]),_=pe(1),A=Ht(new Map),R=Ht(new Map),M=Ht(new Map),D=Ht(new Set),$=Ht({}),L=(yt,ct)=>{$[ct]=yt},B={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},F=j(()=>({...B,...e.fieldNames}));Dt([r,$,F],([yt,ct,Et])=>{A.clear(),R.clear(),M.clear(),D.clear(),x.value=Ofe(yt??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:$,optionMap:A,leafOptionSet:D,leafOptionMap:R,leafOptionValueMap:M,totalLevel:_,checkStrictly:o,valueKey:f,fieldNames:Et})},{immediate:!0,deep:!0});const U=j(()=>{var yt;const ct=Nfe((yt=e.modelValue)!=null?yt:b.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(ct.map(Et=>[$fe(Et,{valueKey:e.valueKey,leafOptionValueMap:M}),Et]))}),z=j(()=>{var yt;return(yt=e.inputValue)!=null?yt:S.value}),G=j(()=>{var yt;return(yt=e.popupVisible)!=null?yt:k.value}),Y=yt=>{var ct;return yt?.toLocaleLowerCase().includes((ct=z.value)==null?void 0:ct.toLocaleLowerCase())},re=j(()=>(e.checkStrictly?Array.from(A.values()):Array.from(D)).filter(ct=>{var Et;return pn(e.filterOption)?e.filterOption(z.value,ct.raw):e.checkStrictly?Y(ct.label):(Et=ct.path)==null?void 0:Et.find(Tt=>Y(Tt.label))})),te=yt=>{var ct,Et,Tt;const Wt=e.multiple?yt:(ct=yt[0])!=null?ct:"";yt.length===0&&(Re(),ye()),b.value=Wt,t("update:modelValue",Wt),t("change",Wt),(Tt=(Et=E.value)==null?void 0:Et.onChange)==null||Tt.call(Et)};Dt([g,m],()=>{const yt=[];U.value.forEach((ct,Et)=>{const Tt=R.get(Et);Tt&&yt.push(m.value?Tt.pathValue:Tt.value)}),te(yt)});const X=yt=>{G.value!==yt&&(k.value=yt,t("popupVisibleChange",yt))},K=yt=>{if(e.multiple){const ct=R.get(yt);if(ct)ie(ct,!1);else{const Et=[];U.value.forEach((Tt,Wt)=>{Wt!==yt&&Et.push(Tt)}),te(Et)}}},J=yt=>{te([e.pathMode?yt.pathValue:yt.value]),X(!1)},ie=(yt,ct)=>{if(ct){const Et=e.checkStrictly?[yt]:gz(yt);te([...U.value.values(),...Et.filter(Tt=>!U.value.has(Tt.key)).map(Tt=>e.pathMode?Tt.pathValue:Tt.value)])}else{const Et=e.checkStrictly?[yt.key]:mz(yt),Tt=[];U.value.forEach((Wt,Gt)=>{Et.includes(Gt)||Tt.push(Wt)}),te(Tt)}Ce("","optionChecked")},se=(yt,ct)=>{e.multiple?ie(yt,ct??!0):J(yt)},ae=j2(yt=>{t("search",yt)},e.searchDelay),Ce=(yt,ct)=>{yt!==z.value&&(ct==="manual"&&!G.value&&(k.value=!0,t("popupVisibleChange",!0)),S.value=yt,t("inputValueChange",yt),e.allowSearch&&ae(yt))};Dt(G,yt=>{if(yt){if(U.value.size>0){const ct=Array.from(U.value.keys()),Et=ct[ct.length-1],Tt=R.get(Et);Tt&&Tt.key!==Ye.value&&(Re(Tt.key),ye(Tt.key))}}else U.value.size===0&&(Re(),ye()),Ce("","optionListHide")});const ke=yt=>{if(yt.stopPropagation(),e.multiple){const ct=[];U.value.forEach((Et,Tt)=>{const Wt=R.get(Tt);Wt?.disabled&&ct.push(e.pathMode?Wt.pathValue:Wt.value)}),te(ct)}else te([]);Ce("","manual"),t("clear")},ve=j(()=>e.allowSearch&&z.value.length>0),Ie=yt=>{t("focus",yt)},Ne=yt=>{t("blur",yt)},{activeKey:Ye,activeOption:Ze,selectedPath:Ge,displayColumns:_e,setActiveKey:ye,setSelectedPath:Re,getNextActiveNode:je}=jfe(x,{optionMap:A,filteredLeafOptions:re,showSearchPanel:ve,expandChild:p});Gr(yz,Ht({onClickOption:se,setActiveKey:ye,setSelectedPath:Re,loadMore:a,expandTrigger:h,addLazyLoadOptions:L,formatLabel:s,slots:n,valueMap:U}));const Qe=D3(new Map([[Do.ENTER,yt=>{if(G.value){if(Ze.value){let ct;e.checkStrictly||Ze.value.isLeaf?ct=!U.value.has(Ze.value.key):ct=!vz(Ze.value,U.value).checked,Re(Ze.value.key),se(Ze.value,ct)}}else X(!0)}],[Do.ESC,yt=>{X(!1)}],[Do.ARROW_DOWN,yt=>{yt.preventDefault();const ct=je("next");ye(ct?.key)}],[Do.ARROW_UP,yt=>{yt.preventDefault();const ct=je("preview");ye(ct?.key)}],[Do.ARROW_RIGHT,yt=>{var ct,Et;ve.value||(yt.preventDefault(),(ct=Ze.value)!=null&&ct.children&&(Re(Ze.value.key),ye((Et=Ze.value.children[0])==null?void 0:Et.key)))}],[Do.ARROW_LEFT,yt=>{var ct;ve.value||(yt.preventDefault(),(ct=Ze.value)!=null&&ct.parent&&(Re(Ze.value.parent.key),ye(Ze.value.parent.key)))}]])),rt=j(()=>{const yt=[];return U.value.forEach((ct,Et)=>{var Tt,Wt;const Gt=R.get(Et);if(Gt)yt.push({value:Et,label:(Wt=(Tt=e.formatLabel)==null?void 0:Tt.call(e,Gt.path.map(Jt=>Jt.raw)))!=null?Wt:Bfe(Gt),closable:!Gt.disabled,tagProps:Gt.tagProps});else if(e.fallback){const Jt=pn(e.fallback)?e.fallback(ct):qn(ct)?ct.join(" / "):String(ct);yt.push({value:Et,label:Jt,closable:!0})}}),yt});return{optionInfos:x,filteredLeafOptions:re,selectedPath:Ge,activeKey:Ye,displayColumns:_e,computedInputValue:z,computedPopupVisible:G,handleClear:ke,selectViewValue:rt,handleInputValueChange:Ce,showSearchPanel:ve,handlePopupVisibleChange:X,handleFocus:Ie,handleBlur:Ne,handleRemove:K,mergedDisabled:C,handleKeyDown:Qe,totalLevel:_}}});function ODe(e,t,n,r,o,a){const s=Me("select-view"),l=Me("cascader-search-panel"),c=Me("base-cascader-panel"),f=Me("trigger");return H(),Xe(f,Nt(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(),Xe(l,{key:0,options:e.filteredLeafOptions,"active-key":e.activeKey,multiple:e.multiple,"check-strictly":e.checkStrictly,loading:e.loading,"path-label":!e.searchOptionOnlyLabel},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[ft(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(H(),Xe(c,{key:1,"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,loading:e.loading,"virtual-list-props":e.virtualListProps,dropdown:""},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[ft(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,Nt({"model-value":e.selectViewValue,"input-value":e.computedInputValue,disabled:e.mergedDisabled,error:e.error,multiple:e.multiple,"allow-clear":e.allowClear,"allow-search":e.allowSearch,size:e.size,opened:e.computedPopupVisible,placeholder:e.placeholder,loading:e.loading,"max-tag-count":e.maxTagCount,"tag-nowrap":e.tagNowrap},e.$attrs,{onInputValueChange:e.handleInputValueChange,onClear:e.handleClear,onFocus:e.handleFocus,onBlur:e.handleBlur,onRemove:e.handleRemove,onKeydown:e.handleKeyDown}),yo({_:2},[e.$slots.label?{name:"label",fn:de(h=>[ft(e.$slots,"label",Ni(ha(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:de(()=>[ft(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[ft(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:de(()=>[ft(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 aD=$e(DDe,[["render",ODe]]);const $De=be({name:"CascaderPanel",components:{BaseCascaderPanel:Ffe},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}=Zt(e),h=pe(e.defaultValue);Dt(s,X=>{(mn(X)||yl(X))&&(h.value=e.multiple?[]:void 0)});const p=pe([]),m=pe(1),g=Ht(new Map),b=Ht(new Map),S=Ht(new Map),k=Ht(new Set),C=Ht({}),E=(X,K)=>{C[K]=X},x={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},_=j(()=>({...x,...e.fieldNames}));Dt([r,C,_],([X,K,J])=>{g.clear(),b.clear(),S.clear(),k.clear(),p.value=Ofe(X??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:K,optionMap:g,leafOptionSet:k,leafOptionMap:b,leafOptionValueMap:S,totalLevel:m,checkStrictly:o,fieldNames:J,valueKey:l})},{immediate:!0});const A=j(()=>{var X;const K=Nfe((X=e.modelValue)!=null?X:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(K.map(J=>[$fe(J,{valueKey:e.valueKey,leafOptionValueMap:S}),J]))}),R=j(()=>e.checkStrictly?Array.from(g.values()):Array.from(k)),M=X=>{var K;const J=e.multiple?X:(K=X[0])!=null?K:"";X.length===0&&(Y(),G()),h.value=J,t("update:modelValue",J),t("change",J)},D=X=>{M([e.pathMode?X.pathValue:X.value])},$=(X,K)=>{if(K){const J=e.checkStrictly?[X]:gz(X);M([...A.value.values(),...J.filter(ie=>!A.value.has(ie.key)).map(ie=>e.pathMode?ie.pathValue:ie.value)])}else{const J=e.checkStrictly?[X.key]:mz(X),ie=[];A.value.forEach((se,ae)=>{J.includes(ae)||ie.push(se)}),M(ie)}},L=(X,K)=>{e.multiple?$(X,K??!0):D(X)},{activeKey:B,activeOption:F,selectedPath:U,displayColumns:z,setActiveKey:G,setSelectedPath:Y,getNextActiveNode:re}=jfe(p,{optionMap:g,filteredLeafOptions:R,expandChild:c});Gr(yz,Ht({onClickOption:L,setActiveKey:G,setSelectedPath:Y,loadMore:a,addLazyLoadOptions:E,slots:n,valueMap:A,expandTrigger:f}));const te=D3(new Map([[Do.ENTER,X=>{if(F.value){let K;e.checkStrictly||F.value.isLeaf?K=!A.value.has(F.value.key):K=!vz(F.value,A.value).checked,Y(F.value.key),L(F.value,K)}}],[Do.ARROW_DOWN,X=>{X.preventDefault();const K=re("next");G(K?.key)}],[Do.ARROW_UP,X=>{X.preventDefault();const K=re("preview");G(K?.key)}],[Do.ARROW_RIGHT,X=>{var K,J;X.preventDefault(),(K=F.value)!=null&&K.children&&(Y(F.value.key),G((J=F.value.children[0])==null?void 0:J.key))}],[Do.ARROW_LEFT,X=>{var K;X.preventDefault(),(K=F.value)!=null&&K.parent&&(Y(F.value.parent.key),G(F.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:R,selectedPath:U,activeKey:B,displayColumns:z,handleKeyDown:te,totalLevel:m}}});function NDe(e,t,n,r,o,a){const s=Me("base-cascader-panel");return H(),Xe(s,{"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,onKeydown:e.handleKeyDown},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[ft(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var t4=$e($De,[["render",NDe]]);const BDe=Object.assign(aD,{CascaderPanel:t4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+aD.name,aD),e.component(n+t4.name,t4)}}),Ufe=Symbol("collapseCtx"),FDe=be({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}=Zt(e),s=Te("collapse"),l=pe(e.defaultActiveKey),c=j(()=>{var p;const m=(p=e.activeKey)!=null?p:l.value;return qn(m)?m:[m]});Gr(Ufe,Ht({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=j(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function jDe(e,t,n,r,o,a){return H(),Q("div",{class:le(e.cls)},[ft(e.$slots,"default")],2)}var lD=$e(FDe,[["render",jDe]]);const UDe=be({name:"IconCaretRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VDe=["stroke-width","stroke-linecap","stroke-linejoin"];function zDe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,VDe)}var uD=$e(UDe,[["render",zDe]]);const bz=Object.assign(uD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uD.name,uD)}}),HDe=be({name:"IconCaretLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WDe=["stroke-width","stroke-linecap","stroke-linejoin"];function GDe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,WDe)}var cD=$e(HDe,[["render",GDe]]);const _z=Object.assign(cD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cD.name,cD)}});var n4=be({name:"CollapseItem",components:{IconHover:_o,IconCaretRight:bz,IconCaretLeft:_z},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=uo(),o=Te("collapse-item"),a=xn(Ufe,{}),s=r&&Ke(r?.vnode.key)?r.vnode.key:String((n=r?.vnode.key)!=null?n:""),l=j(()=>{var _;return(_=a.activeKeys)==null?void 0:_.includes(s)}),c=j(()=>a.destroyOnHide||e.destroyOnHide),f=j(()=>{var _;return(_=a?.showExpandIcon)!=null?_:e.showExpandIcon}),h=pe(c.value?l.value:!0),p=j(()=>{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=j(()=>[o,{[`${o}-active`]:l.value}]),S=j(()=>[`${o}-header`,`${o}-header-${a?.expandIconPosition}`,{[`${o}-header-disabled`]:e.disabled}]),k=j(()=>[{[`${o}-icon-right`]:a?.expandIconPosition==="right"}]),C=j(()=>[`${o}-content`,{[`${o}-content-expend`]:l.value}]),E=()=>p.value==="right"?O(Me("icon-caret-left"),{class:`${o}-expand-icon`},null):O(Me("icon-caret-right"),{class:`${o}-expand-icon`},null),x=()=>f.value&&O(Me("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:E()]}});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},[x(),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(Es,Nt({name:"collapse-slider"},g),{default:()=>{var M;return[wi(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)])]),[[Qo,l.value]])]}})])}}});const KDe=Object.assign(lD,{Item:n4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+lD.name,lD),e.component(n+n4.name,n4)}}),qDe=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],Vfe=(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)}},B3=(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),ine=e=>ea(e)/255,QDe=e=>{let t=jp.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=jp.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=jp.hex8.exec(e),t?{r:ea(t[1]),g:ea(t[2]),b:ea(t[3]),a:ine(t[4])}:(t=jp.hex6.exec(e),t?{r:ea(t[1]),g:ea(t[2]),b:ea(t[3])}:(t=jp.hex4.exec(e),t?{r:ea(t[1]+t[1]),g:ea(t[2]+t[2]),b:ea(t[3]+t[3]),a:ine(t[4]+t[4])}:(t=jp.hex3.exec(e),t?{r:ea(t[1]+t[1]),g:ea(t[2]+t[2]),b:ea(t[3]+t[3])}:!1)))))},e6e=e=>{var t;const n=QDe(e);return n?{...B3(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},zfe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=jp.hex6.exec(e);return t?{r:ea(t[1]),g:ea(t[2]),b:ea(t[3])}:(t=jp.hex3.exec(e),t?{r:ea(t[1]+t[1]),g:ea(t[2]+t[2]),b:ea(t[3]+t[3])}:!1)},one=(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(),t6e=(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(),Hfe=({value:e,onChange:t})=>{const n=pe(!1),r=pe(),o=pe(),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 sne=be({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=Te("color-picker"),n=j(()=>e.color.rgb),{blockRef:r,handlerRef:o,onMouseDown:a}=Hfe({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()])}}),n6e=be({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=Te("color-picker"),n=j(()=>e.color.hsv),{blockRef:r,handlerRef:o,onMouseDown:a}=Hfe({value:[n.value.s,1-n.value.v],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0],1-l[1])}}),s=j(()=>{const l=Vfe(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 Sz(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function pf(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function V2(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=pf(e);return t>0?Sz(Number(e)*Math.pow(10,t)):Number(e)}function ej(e){Gfe&&(e>Number.MAX_SAFE_INTEGER||e["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),l6e=["stroke-width","stroke-linecap","stroke-linejoin"];function u6e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,l6e)}var dD=$e(a6e,[["render",u6e]]);const vf=Object.assign(dD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dD.name,dD)}}),c6e=be({name:"IconMinus",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),d6e=["stroke-width","stroke-linecap","stroke-linejoin"];function f6e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,d6e)}var fD=$e(c6e,[["render",f6e]]);const _g=Object.assign(fD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fD.name,fD)}}),h6e=800,p6e=150;Fl.enableBoundaryChecking(!1);var hD=be({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}=Zt(e),s=Te("input-number"),l=pe(),{mergedSize:c,mergedDisabled:f,eventHandlers:h}=So({size:o,disabled:a}),{mergedSize:p}=ga(c),m=j(()=>{if(Ke(e.precision)){const J=`${e.step}`.split(".")[1],ie=J&&J.length||0;return Math.max(ie,e.precision)}}),g=J=>{var ie,se;if(!Ke(J))return"";const ae=m.value?J.toFixed(m.value):String(J);return(se=(ie=e.formatter)==null?void 0:ie.call(e,ae))!=null?se:ae},b=pe(g((r=e.modelValue)!=null?r:e.defaultValue)),S=j(()=>{var J,ie;if(!b.value)return;const se=Number((ie=(J=e.parser)==null?void 0:J.call(e,b.value))!=null?ie:b.value);return Number.isNaN(se)?void 0:se}),k=pe(Ke(S.value)&&S.value<=e.min),C=pe(Ke(S.value)&&S.value>=e.max);let E=0;const x=()=>{E&&(window.clearTimeout(E),E=0)},_=J=>{if(!mn(J))return Ke(e.min)&&Je.max&&(J=e.max),Ke(m.value)?Fl.round(J,m.value):J},A=J=>{let ie=!1,se=!1;Ke(J)&&(J<=e.min&&(ie=!0),J>=e.max&&(se=!0)),C.value!==se&&(C.value=se),k.value!==ie&&(k.value=ie)},R=()=>{const J=_(S.value),ie=g(J);(J!==S.value||b.value!==ie)&&(b.value=ie),t("update:modelValue",J)};Dt(()=>[e.max,e.min],()=>{R(),A(S.value)});const M=(J,ie)=>{if(f.value||J==="plus"&&C.value||J==="minus"&&k.value)return;let se;Ke(S.value)?se=_(Fl[J](S.value,e.step)):se=e.min===-1/0?0:e.min,b.value=g(se),A(se),t("update:modelValue",se),t("change",se,ie)},D=(J,ie,se=!1)=>{var ae;J.preventDefault(),!e.readOnly&&((ae=l.value)==null||ae.focus(),M(ie,J),se&&(E=window.setTimeout(()=>J.target.dispatchEvent(J),E?p6e:h6e)))},$=(J,ie)=>{var se,ae,Ce,ke;J=J.trim().replace(/。/g,"."),J=(ae=(se=e.parser)==null?void 0:se.call(e,J))!=null?ae:J,(Ke(Number(J))||/^(\.|-)$/.test(J))&&(b.value=(ke=(Ce=e.formatter)==null?void 0:Ce.call(e,J))!=null?ke:J,A(S.value),t("input",S.value,b.value,ie),e.modelEvent==="input"&&(t("update:modelValue",S.value),t("change",S.value,ie)))},L=J=>{t("focus",J)},B=(J,ie)=>{ie instanceof MouseEvent&&!J||(R(),t("change",S.value,ie))},F=J=>{t("blur",J)},U=J=>{var ie,se;b.value="",t("update:modelValue",void 0),t("change",void 0,J),(se=(ie=h.value)==null?void 0:ie.onChange)==null||se.call(ie,J),t("clear",J)},z=D3(new Map([[Do.ARROW_UP,J=>{J.preventDefault(),!e.readOnly&&M("plus",J)}],[Do.ARROW_DOWN,J=>{J.preventDefault(),!e.readOnly&&M("minus",J)}]])),G=J=>{t("keydown",J),J.defaultPrevented||z(J)};Dt(()=>e.modelValue,J=>{J!==S.value&&(b.value=g(J),A(J))});const Y=()=>{var J,ie,se;return e.readOnly?null:O(Ft,null,[n.suffix&&O("div",{class:`${s}-suffix`},[(J=n.suffix)==null?void 0:J.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:ae=>D(ae,"plus",!0),onMouseup:x,onMouseleave:x},[n.plus?(ie=n.plus)==null?void 0:ie.call(n):O(Rk,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:ae=>D(ae,"minus",!0),onMouseup:x,onMouseleave:x},[n.minus?(se=n.minus)==null?void 0:se.call(n):O(xv,null,null)])])])},re=j(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),te=()=>O(Uo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:f.value||k.value,onMousedown:J=>D(J,"minus",!0),onMouseup:x,onMouseleave:x},{icon:()=>O(_g,null,null)}),X=()=>O(Uo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:f.value||C.value,onMousedown:J=>D(J,"plus",!0),onMouseup:x,onMouseleave:x},{icon:()=>O(vf,null,null)});return{inputRef:l,render:()=>{const J=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:Y,append:n.append}:{prepend:e.hideButton?n.prepend:te,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:X};return O(Cv,{key:`__arco__${e.mode}`,ref:l,class:re.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:$,onFocus:L,onBlur:F,onClear:U,onChange:B,onKeydown:G},J)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Dk=Object.assign(hD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+hD.name,hD)}});var Kfe=be({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=Te("color-picker");return()=>O(Dk,{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:()=>"%"})}}),v6e=be({name:"InputRgb",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Te("color-picker"),{color:n}=Zt(e),r=o=>{var a;const s={...n.value.rgb,...o},l=B3(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(Dk,{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(Kfe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),m6e=be({name:"InputHex",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Te("color-picker"),{color:n}=Zt(e),[r,o]=Na(n.value.hex),a=c=>{var f;const h=zfe(c)||{r:255,g:0,b:0},p=B3(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(Cv,{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(Kfe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),g6e=be({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}=Ao(),n=Te("color-picker"),r=j(()=>e.color.hsv),[o,a]=Na(e.format||"hex"),s=m=>{a(m)};pe(!1);const l=m=>{var g;const b=zfe(m)||{r:255,g:0,b:0},S=B3(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(v6e,m,null):O(m6e,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(n6e,{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(sne,{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(sne,{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(U2,{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()])}}),pD=be({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:()=>qDe}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Te("color-picker"),o=j(()=>{var E;return(E=e.modelValue)!=null?E:e.defaultValue}),a=j(()=>e6e(o.value||"")),[s,l]=Na(a.value.a),[c,f]=Na({h:a.value.h,s:a.value.s,v:a.value.v});Dt(()=>a.value,E=>{o.value!==m.value&&(l(E.a),f({h:E.h,s:E.s,v:E.v}))});const h=j(()=>{const E=Vfe(c.value.h,c.value.s,c.value.v),x=one(E.r,E.g,E.b);return{hsv:c.value,rgb:E,hex:x}}),p=j(()=>{const{r:E,g:x,b:_}=h.value.rgb;return`rgba(${E}, ${x}, ${_}, ${s.value.toFixed(2)})`}),m=j(()=>{const{r:E,g:x,b:_}=h.value.rgb;return e.format==="rgb"?s.value<1&&!e.disabledAlpha?`rgba(${E}, ${x}, ${_}, ${s.value.toFixed(2)})`:`rgb(${E}, ${x}, ${_})`:s.value<1&&!e.disabledAlpha?`#${t6e(E,x,_,s.value)}`:`#${one(E,x,_)}`});Dt(m,E=>{t("update:modelValue",E),t("change",E)});const g=E=>{!e.disabled&&f(E)},b=E=>{!e.disabled&&l(E)},S=E=>{t("popup-visible-change",E,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(g6e,{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(sa,Nt({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 y6e=Object.assign(pD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+pD.name,pD)}});function qfe(e,t,n){return j(()=>!!(e[n]||t[n]))}const b6e=be({name:"Comment",props:{author:{type:String},avatar:{type:String},content:{type:String},datetime:{type:String},align:{type:[String,Object],default:"left"}},setup(e,{slots:t}){const n=Te("comment"),[r,o,a,s]=["author","avatar","content","datetime"].map(c=>qfe(e,t,c)),l=j(()=>{const{align:c}=e;return{...ts(c)?{datetime:c,actions:c}:c}});return{prefixCls:n,hasAuthor:r,hasAvatar:o,hasContent:a,hasDatetime:s,computedAlign:l}}}),_6e=["src"],S6e={key:0},k6e={key:0},w6e={key:0};function C6e(e,t,n,r,o,a){return H(),Q("div",{class:le(e.prefixCls)},[e.hasAvatar?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-avatar`)},[e.avatar?(H(),Q("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,_6e)):ft(e.$slots,"avatar",{key:1})],2)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-inner`)},[I("div",{class:le(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-author`)},[e.author?(H(),Q("span",S6e,Be(e.author),1)):ft(e.$slots,"author",{key:1})],2)):Oe("v-if",!0),e.hasDatetime?(H(),Q("span",{key:1,class:le(`${e.prefixCls}-datetime`)},[e.datetime?(H(),Q("span",k6e,Be(e.datetime),1)):ft(e.$slots,"datetime",{key:1})],2)):Oe("v-if",!0)],2)):Oe("v-if",!0),e.hasContent?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-content`)},[e.content?(H(),Q("span",w6e,Be(e.content),1)):ft(e.$slots,"content",{key:1})],2)):Oe("v-if",!0),e.$slots.actions?(H(),Q("div",{key:2,class:le(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[ft(e.$slots,"actions")],2)):Oe("v-if",!0)],2),e.$slots.default?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-inner-comment`)},[ft(e.$slots,"default")],2)):Oe("v-if",!0)],2)],2)}var vD=$e(b6e,[["render",C6e]]);const E6e=Object.assign(vD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+vD.name,vD)}}),x6e=be({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}=Zt(e),c=Ht({slots:t,prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const f=uo();f&&f.appContext.app.provide(Fa,c)}else Gr(Fa,c)}});function T6e(e,t,n,r,o,a){return ft(e.$slots,"default")}var mD=$e(x6e,[["render",T6e]]);const A6e=Object.assign(mD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+mD.name,mD)}});function I6e(e){const{modelValue:t,defaultValue:n,format:r}=Zt(e),o=j(()=>nc(t.value,r.value)),a=j(()=>nc(n.value,r.value)),[s,l]=Na(mn(o.value)?mn(a.value)?void 0:a.value:o.value);return Dt(o,()=>{mn(o.value)&&l(void 0)}),{value:j(()=>o.value||s.value),setValue:l}}const L6e=be({name:"DateInput",components:{IconHover:_o,IconClose:xs,FeedbackIcon:Pk},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}=Zt(e),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g}=So({size:s,disabled:a,error:r}),{mergedSize:b}=ga(h),S=Te("picker"),k=j(()=>[S,`${S}-size-${b.value}`,{[`${S}-focused`]:o.value,[`${S}-disabled`]:p.value,[`${S}-error`]:m.value,[`${S}-has-prefix`]:n.prefix}]),C=j(()=>{if(f?.value)return f?.value;if(l?.value&&Rc(l.value))return pn(c.value)?c.value(l.value):l.value.format(c.value)}),E=pe();return{feedback:g,prefixCls:S,classNames:k,displayValue:C,mergedDisabled:p,refInput:E,onPressEnter(){t("press-enter")},onChange(x){t("change",x)},onClear(x){t("clear",x)},onBlur(x){t("blur",x)}}},methods:{focus(){this.refInput&&this.refInput.focus&&this.refInput.focus()},blur(){this.refInput&&this.refInput.blur&&this.refInput.blur()}}}),P6e=["disabled","placeholder","value"];function R6e(e,t,n,r,o,a){const s=Me("IconClose"),l=Me("IconHover"),c=Me("FeedbackIcon");return H(),Q("div",{class:le(e.classNames)},[e.$slots.prefix?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-prefix`)},[ft(e.$slots,"prefix")],2)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-input`)},[I("input",Nt({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]=vh((...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,P6e)],2),I("div",{class:le(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(H(),Xe(l,{key:0,prefix:e.prefixCls,class:le(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Oe("v-if",!0),I("span",{class:le(`${e.prefixCls}-suffix-icon`)},[ft(e.$slots,"suffix-icon")],2),e.feedback?(H(),Xe(c,{key:1,type:e.feedback},null,8,["type"])):Oe("v-if",!0)],2)],2)}var Yfe=$e(L6e,[["render",R6e]]);function tj(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 ane=new Map;function M6e(e,t,n){const r=ane.get(e);mn(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),ane.set(e,requestAnimationFrame(()=>{new Fg({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function tf(e,t){const n=r=>{if(qn(r))return r.map(o=>n(o));if(!mn(r))return r.format(t)};return n(e)}function fS(e){return mn(e)?!0:qn(e)?e.length===0||e.length===2&&Rc(e[0])&&Rc(e[1]):!1}function UA(e,t){return e?typeof e=="string"&&ks(e,t).format(t)===e:!1}function D6e(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)=>!mn(p)&&m.includes(p);return h(o,l)||h(a,c)||h(s,f)}var Uh=be({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const Xfe=Symbol("PickerInjectionKey");function Ok(){const{datePickerT:e}=xn(Xfe)||{};return e||((t,...n)=>t)}const O6e=be({name:"PanelShortcuts",components:{Button:Uo,RenderFunction:Uh},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:Ok(),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:pn}}});function $6e(e,t,n,r,o,a){const s=Me("Button"),l=Me("RenderFunction");return H(),Q("div",{class:le(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(H(),Xe(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:de(()=>[We(Be(e.datePickerT("datePicker.now")),1)]),_:1})):Oe("v-if",!0),(H(!0),Q(Ft,null,fn(e.shortcuts,(c,f)=>(H(),Xe(s,{key:f,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:de(()=>[e.isFunction(c.label)?(H(),Xe(l,{key:0,"render-func":c.label},null,8,["render-func"])):(H(),Q(Ft,{key:1},[We(Be(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var Zfe=$e(O6e,[["render",$6e]]);function _1(e){return[...Array(e)]}function nj(e){if(!mn(e))return qn(e)?e:[e,void 0]}function Rp(e){return!!e&&Rc(e[0])&&Rc(e[1])}function N6e(e){return mn(e)||e.length===0||Rp(e)}function Jfe(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const B6e=be({name:"IconDoubleLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 j6e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,F6e)}var gD=$e(B6e,[["render",j6e]]);const Qfe=Object.assign(gD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gD.name,gD)}}),U6e=be({name:"IconDoubleRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),V6e=["stroke-width","stroke-linecap","stroke-linejoin"];function z6e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,V6e)}var yD=$e(U6e,[["render",z6e]]);const ehe=Object.assign(yD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yD.name,yD)}}),H6e=be({name:"PanelHeader",components:{IconLeft:Hl,IconRight:Mi,IconDoubleLeft:Qfe,IconDoubleRight:ehe,RenderFunction:Uh},props:{prefixCls:{type:String,required:!0},title:{type:String,required:!0},mode:{type:String,default:"date"},value:{type:Object},icons:{type:Object},onPrev:{type:Function},onSuperPrev:{type:Function},onNext:{type:Function},onSuperNext:{type:Function},onLabelClick:{type:Function}},emits:["label-click"],setup(e){return{showPrev:j(()=>pn(e.onPrev)),showSuperPrev:j(()=>pn(e.onSuperPrev)),showNext:j(()=>pn(e.onNext)),showSuperNext:j(()=>pn(e.onSuperNext)),year:j(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:j(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),W6e={key:1};function G6e(e,t,n,r,o,a){const s=Me("RenderFunction"),l=Me("IconDoubleLeft"),c=Me("IconLeft"),f=Me("IconRight"),h=Me("IconDoubleRight");return H(),Q("div",{class:le(`${e.prefixCls}-header`)},[I("div",{class:le(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(H(),Q(Ft,{key:0},[e.icons&&e.icons.prevDouble?(H(),Xe(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(H(),Xe(l,{key:1}))],64)):Oe("v-if",!0)],2),I("div",{class:le(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(H(),Q(Ft,{key:0},[e.icons&&e.icons.prev?(H(),Xe(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(H(),Xe(c,{key:1}))],64)):Oe("v-if",!0)],2),I("div",{class:le(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(H(),Q(Ft,{key:0},[e.year?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},Be(e.year),3)):Oe("v-if",!0),e.year&&e.month?(H(),Q("span",W6e,"-")):Oe("v-if",!0),e.month?(H(),Q("span",{key:2,class:le(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},Be(e.month),3)):Oe("v-if",!0)],64)):(H(),Q(Ft,{key:1},[We(Be(e.title),1)],64))],2),I("div",{class:le(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(H(),Q(Ft,{key:0},[e.icons&&e.icons.next?(H(),Xe(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(H(),Xe(f,{key:1}))],64)):Oe("v-if",!0)],2),I("div",{class:le(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(H(),Q(Ft,{key:0},[e.icons&&e.icons.nextDouble?(H(),Xe(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(H(),Xe(h,{key:1}))],64)):Oe("v-if",!0)],2)],2)}var j3=$e(H6e,[["render",G6e]]);function K6e(e){const{rangeValues:t}=Zt(e),n=j(()=>t?.value&&t.value.every(Rc)?F2(t.value):t?.value),r=j(()=>{var a;return(a=n.value)==null?void 0:a[0]}),o=j(()=>{var a;return(a=n.value)==null?void 0:a[1]});return{getCellClassName:(a,s)=>{const{value:l,isSameTime:c,mode:f,prefixCls:h}=e,p=!a.isPrev&&!a.isNext,m=l&&c(a.value,l);let g=c(a.value,Ba());f==="week"&&(g=Ba().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 q6e=be({name:"PanelBody",components:{RenderFunction:Uh},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}=Zt(e),{getCellClassName:c}=K6e(Ht({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),f=h=>!!(pn(o?.value)&&o?.value(mu(h.value)));return{isWeek:j(()=>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:mu}}}),Y6e=["onMouseenter","onMouseleave","onClick"];function X6e(e,t,n,r,o,a){const s=Me("RenderFunction");return H(),Q("div",{class:le(`${e.prefixCls}-body`)},[(H(!0),Q(Ft,null,fn(e.rows,(l,c)=>(H(),Q("div",{key:c,class:le([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(H(!0),Q(Ft,null,fn(l,(f,h)=>(H(),Q(Ft,null,[Oe(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(H(),Q("div",{key:h,class:le([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[I("div",{class:le(`${e.prefixCls}-date`)},[I("div",{class:le(`${e.prefixCls}-date-value`)},Be(f.label),3)],2)],2)):(H(),Q("div",{key:h,class:le(e.getCellClassName(f)),onMouseenter:()=>{e.onCellMouseEnter(f)},onMouseleave:()=>{e.onCellMouseLeave(f)},onClick:()=>{e.onCellClick(f)}},[e.dateRender?(H(),Xe(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(f.value)},null,8,["render-func","date"])):(H(),Q("div",{key:1,class:le(`${e.prefixCls}-date`)},[I("div",{class:le(`${e.prefixCls}-date-value`)},Be(f.label),3)],2))],42,Y6e))],64))),256))],2))),128))],2)}var U3=$e(q6e,[["render",X6e]]);const Z6e=be({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=Ok();return{labelList:j(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function J6e(e,t,n,r,o,a){return H(),Q("div",{class:le(`${e.prefixCls}-week-list`)},[(H(!0),Q(Ft,null,fn(e.weekList,s=>(H(),Q("div",{key:s,class:le(`${e.prefixCls}-week-list-item`)},Be(e.labelList[s]||""),3))),128))],2)}var Q6e=$e(Z6e,[["render",J6e]]);const eOe=be({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}=Zt(e),o=pe(new Map),a=pe();function s(l=!1){if(!a.value||mn(r?.value)||!n?.value)return;const c=o.value.get(r.value);c&&M6e(a.value,c.offsetTop,l?100:0)}return Dt([r,n],(l,[,c])=>{n.value!==c?kn(()=>{s()}):s(!0)}),dn(()=>{s()}),{refWrapper:a,refMap:o,onItemRef(l,c){o.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),tOe=["onClick"];function nOe(e,t,n,r,o,a){return H(),Q("div",{ref:"refWrapper",class:le(`${e.prefixCls}-column`)},[I("ul",null,[(H(!0),Q(Ft,null,fn(e.list,s=>(H(),Q("li",{key:s.value,ref_for:!0,ref:l=>{e.onItemRef(l,s)},class:le([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:s.disabled,[`${e.prefixCls}-cell-selected`]:s.selected}]),onClick:()=>{e.onItemClick(s)}},[I("div",{class:le(`${e.prefixCls}-cell-inner`)},Be(s.label),3)],10,tOe))),128))])],2)}var rOe=$e(eOe,[["render",nOe]]);function iOe(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}=Zt(e),g=j(()=>{var E;const{hour:x=1}=n?.value||{},_=((E=a?.value)==null?void 0:E.call(a))||[];let A=[];for(let R=0;R<(r.value?12:24);R+=x)A.push(R);return r.value&&(A[0]=12),o.value&&_.length&&(A=A.filter(R=>_.indexOf(R)<0)),A.map(R=>({label:eg(R,2,"0"),value:R,selected:c.value===R,disabled:m?.value||_.includes(R)}))}),b=j(()=>{var E;const{minute:x=1}=n?.value||{},_=((E=s?.value)==null?void 0:E.call(s,c.value))||[];let A=[];for(let R=0;R<60;R+=x)A.push(R);return o.value&&_.length&&(A=A.filter(R=>_.indexOf(R)<0)),A.map(R=>({label:eg(R,2,"0"),value:R,selected:f.value===R,disabled:m?.value||_.includes(R)}))}),S=j(()=>{var E;const{second:x=1}=n?.value||{},_=((E=l?.value)==null?void 0:E.call(l,c.value,f.value))||[];let A=[];for(let R=0;R<60;R+=x)A.push(R);return o.value&&_.length&&(A=A.filter(R=>_.indexOf(R)<0)),A.map(R=>({label:eg(R,2,"0"),value:R,selected:h.value===R,disabled:m?.value||_.includes(R)}))}),k=["am","pm"],C=j(()=>{const E=tj(t.value).list.includes("A");return k.map(x=>({label:E?x.toUpperCase():x,value:x,selected:p.value===x,disabled:m?.value}))});return{hours:g,minutes:b,seconds:S,ampmList:C}}function kz(e){const{format:t,use12Hours:n,defaultFormat:r}=Zt(e),o=j(()=>{let f=t?.value||r?.value;return(!f||!tj(f).list.length)&&(f=n?.value?"hh:mm:ss a":"HH:mm:ss"),f}),a=j(()=>tj(o.value)),s=j(()=>a.value.list),l=j(()=>a.value.use12Hours),c=j(()=>!!(n?.value||l.value));return{columns:s,use12Hours:c,format:o}}function the(e){const t=n=>D6e(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>qn(n)?n.some(r=>t(r)):t(n)}const oOe=be({name:"TimePickerPanel",components:{TimeColumn:rOe,Button:Uo},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=>Rc(e),confirm:e=>Rc(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}=Zt(e),m=Te("timepicker"),{t:g}=Ao(),{columns:b,use12Hours:S,format:k}=kz(Ht({format:o,use12Hours:s})),C=pe(n?.value),E=Y=>{C.value=Y};Dt([r,n],()=>{r.value&&E(n?.value)});const x=j(()=>{var Y;const re=(Y=C.value)==null?void 0:Y.hour();return mn(re)||!S.value?re:re>12?re-12:re===0?12:re}),_=j(()=>{var Y;return(Y=C.value)==null?void 0:Y.minute()}),A=j(()=>{var Y;return(Y=C.value)==null?void 0:Y.second()}),R=j(()=>{var Y;const re=(Y=C.value)==null?void 0:Y.hour();return!mn(re)&&re>=12?"pm":"am"}),{hours:M,minutes:D,seconds:$,ampmList:L}=iOe(Ht({format:k,step:a,use12Hours:S,hideDisabledOptions:l,disabledHours:c,disabledMinutes:f,disabledSeconds:h,selectedHour:x,selectedMinute:_,selectedSecond:A,selectedAmpm:R,disabled:p})),B=the(Ht({disabledHours:c,disabledMinutes:f,disabledSeconds:h})),F=j(()=>B(C.value));function U(Y){mn(Y)||t("confirm",Y)}function z(Y){E(Y),t("select",Y)}function G(Y,re="hour"){let te;const X=x.value||"00",K=_.value||"00",J=A.value||"00",ie=R.value||"am";switch(re){case"hour":te=`${Y}:${K}:${J}`;break;case"minute":te=`${X}:${Y}:${J}`;break;case"second":te=`${X}:${K}:${Y}`;break;case"ampm":te=`${X}:${K}:${J} ${Y}`;break;default:te="00:00:00"}let se="HH:mm:ss";S.value&&(se="HH:mm:ss a",re!=="ampm"&&(te=`${te} ${ie}`)),te=ks(te,se),z(te)}return{prefixCls:m,t:g,hours:M,minutes:D,seconds:$,ampmList:L,selectedValue:C,selectedHour:x,selectedMinute:_,selectedSecond:A,selectedAmpm:R,computedUse12Hours:S,confirmBtnDisabled:F,columns:b,onSelect:G,onSelectNow(){const Y=ks(new Date);z(Y)},onConfirm(){U(C.value)}}}});function sOe(e,t,n,r,o,a){const s=Me("TimeColumn"),l=Me("Button");return H(),Q(Ft,null,[I("div",{class:le(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(H(),Xe(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"])):Oe("v-if",!0),e.columns.includes("m")?(H(),Xe(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"])):Oe("v-if",!0),e.columns.includes("s")?(H(),Xe(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"])):Oe("v-if",!0),e.computedUse12Hours?(H(),Xe(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"])):Oe("v-if",!0)],2),e.$slots["extra-footer"]?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-footer-extra-wrapper`)},[ft(e.$slots,"extra-footer")],2)):Oe("v-if",!0),e.hideFooter?Oe("v-if",!0):(H(),Q("div",{key:1,class:le(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Oe("v-if",!0):(H(),Xe(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:de(()=>[We(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(()=>[We(Be(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var VA=$e(oOe,[["render",sOe]]);const aOe=be({name:"IconCalendar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lOe=["stroke-width","stroke-linecap","stroke-linejoin"];function uOe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,lOe)}var bD=$e(aOe,[["render",uOe]]);const $k=Object.assign(bD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bD.name,bD)}}),cOe=be({name:"IconClockCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dOe=["stroke-width","stroke-linecap","stroke-linejoin"];function fOe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,dOe)}var _D=$e(cOe,[["render",fOe]]);const V3=Object.assign(_D,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_D.name,_D)}}),nhe=6,rj=7,hOe=nhe*rj;function pOe(e){return{label:e.date(),value:e}}const vOe=be({name:"DatePanel",components:{PanelHeader:j3,PanelBody:U3,PanelWeekList:Q6e,TimePanel:VA,IconCalendar:$k,IconClockCircle:V3},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}=Zt(e),p=Ok(),m=j(()=>l?.value==="week"),g=j(()=>Te(m.value?"panel-week":"panel-date")),b=Te("picker"),[S,k]=oa("date",Ht({value:f})),C=j(()=>c.value&&n.value),E=j(()=>!c.value||!C.value||S.value==="date"),x=j(()=>c.value&&(!C.value||S.value==="time")),_=j(()=>[g.value,{[`${g.value}-with-view-tabs`]:C.value}]),A=j(()=>r.value.format("YYYY-MM")),R=j(()=>{var U;return c.value&&((U=h?.value)==null?void 0:U.call(h,mu(o?.value||Ba())))||{}}),M=j(()=>{const U=[0,1,2,3,4,5,6],z=Math.max(a.value%7,0);return[...U.slice(z),...U.slice(0,z)]}),D=j(()=>{const U=Us.startOf(r.value,"month"),z=U.day(),G=U.daysInMonth(),Y=M.value.indexOf(z),re=_1(hOe);for(let X=0;XY+G-1};return _1(nhe).map((X,K)=>{const J=re.slice(K*rj,(K+1)*rj);if(m.value){const ie=J[0].value;J.unshift({label:ie.week(),value:ie})}return J})}),$=j(()=>s?.value||((U,z)=>U.isSame(z,"day")));function L(U){t("select",U.value)}function B(U){t("time-picker-select",U)}function F(U){t("cell-mouse-enter",U.value)}return{prefixCls:g,classNames:_,pickerPrefixCls:b,headerTitle:A,rows:D,weekList:j(()=>m.value?[-1,...M.value]:M.value),mergedIsSameTime:$,disabledTimeProps:R,onCellClick:L,onCellMouseEnter:F,onTimePanelSelect:B,showViewTabs:C,showDateView:E,showTimeView:x,changeViewTo:U=>{t("current-view-change",U),t("update:currentView",U),k(U)},datePickerT:p}}});function mOe(e,t,n,r,o,a){const s=Me("PanelHeader"),l=Me("PanelWeekList"),c=Me("PanelBody"),f=Me("TimePanel"),h=Me("IconCalendar"),p=Me("IconClockCircle");return H(),Q("div",{class:le(e.classNames)},[e.showDateView?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-inner`)},[O(s,Nt({...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)):Oe("v-if",!0),e.showTimeView?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-timepicker`)},[I("header",{class:le(`${e.prefixCls}-timepicker-title`)},Be(e.datePickerT("datePicker.selectTime")),3),O(f,Nt({...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)):Oe("v-if",!0),e.showViewTabs?(H(),Q("div",{key:2,class:le(`${e.prefixCls}-footer`)},[I("div",{class:le(`${e.prefixCls}-view-tabs`)},[I("div",{class:le([`${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:le(`${e.prefixCls}-view-tab-pane-text`)},Be(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),I("div",{class:le([`${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:le(`${e.prefixCls}-view-tab-pane-text`)},Be(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Oe("v-if",!0)],2)}var wz=$e(vOe,[["render",mOe]]);const gOe=be({name:"WeekPanel",components:{DatePanel:wz},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return Ao(),{isSameTime:(r,o)=>Us.isSameWeek(r,o,e.dayStartOfWeek),onSelect:r=>{const o=Us.startOfWeek(r,e.dayStartOfWeek);t("select",o)},onCellMouseEnter:r=>{const o=Us.startOfWeek(r,e.dayStartOfWeek);t("cell-mouse-enter",o)}}}});function yOe(e,t,n,r,o,a){const s=Me("DatePanel");return H(),Xe(s,Nt(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 rhe=$e(gOe,[["render",yOe]]);const bOe=["January","February","March","April","May","June","July","August","September","October","November","December"],_Oe=12,SOe=4,lne=3,kOe=be({name:"MonthPanel",components:{PanelHeader:j3,PanelBody:U3},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=Ok(),{headerValue:r}=Zt(e),o=j(()=>Te("panel-month")),a=Te("picker"),s=j(()=>r.value.format("YYYY")),l=j(()=>{const p=r.value.year(),m=e.abbreviation?"short":"long",g=_1(_Oe).map((S,k)=>({label:n(`datePicker.month.${m}.${bOe[k]}`),value:ks(`${p}-${k+1}`,"YYYY-M")}));return _1(SOe).map((S,k)=>g.slice(k*lne,(k+1)*lne))}),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 wOe(e,t,n,r,o,a){const s=Me("PanelHeader"),l=Me("PanelBody");return H(),Q("div",{class:le(e.prefixCls)},[I("div",{class:le(`${e.prefixCls}-inner`)},[O(s,Nt({...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 ihe=$e(kOe,[["render",wOe]]);const ij=4,r4=3,COe=ij*r4,SD=10,EOe=be({name:"YearPanel",components:{PanelHeader:j3,PanelBody:U3},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}=Zt(e),r=j(()=>Te("panel-year")),o=Te("picker"),a=j(()=>{const h=Math.floor(n.value.year()/SD)*SD-1,p=_1(COe).map((g,b)=>({label:h+b,value:ks(`${h+b}`,"YYYY"),isPrev:b<1,isNext:b>SD}));return _1(ij).map((g,b)=>p.slice(b*r4,(b+1)*r4))}),s=j(()=>`${a.value[0][1].label}-${a.value[ij-1][r4-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 xOe(e,t,n,r,o,a){const s=Me("PanelHeader"),l=Me("PanelBody");return H(),Q("div",{class:le(e.prefixCls)},[I("div",{class:le(`${e.prefixCls}-inner`)},[O(s,Nt({...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 ohe=$e(EOe,[["render",xOe]]);const TOe=be({name:"QuarterPanel",components:{PanelHeader:j3,PanelBody:U3},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}=Zt(e),r=j(()=>Te("panel-quarter")),o=Te("picker"),a=j(()=>n.value.format("YYYY")),s=j(()=>{const h=n.value.year();return[[1,2,3,4].map(p=>({label:`Q${p}`,value:ks(`${h}-${eg((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 AOe(e,t,n,r,o,a){const s=Me("PanelHeader"),l=Me("PanelBody");return H(),Q("div",{class:le(e.prefixCls)},[I("div",{class:le(`${e.prefixCls}-inner`)},[O(s,Nt({...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 she=$e(TOe,[["render",AOe]]);const IOe=be({name:"IconLink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LOe=["stroke-width","stroke-linecap","stroke-linejoin"];function POe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,LOe)}var kD=$e(IOe,[["render",POe]]);const cd=Object.assign(kD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kD.name,kD)}}),ROe=be({name:"Link",components:{IconLink:cd,IconLoading:ja},props:{href:String,status:{type:String,default:"normal"},hoverable:{type:Boolean,default:!0},icon:Boolean,loading:Boolean,disabled:Boolean},emits:{click:e=>!0},setup(e,{slots:t,emit:n}){const r=Te("link"),o=qfe(e,t,"icon"),a=l=>{if(e.disabled||e.loading){l.preventDefault();return}n("click",l)};return{cls:j(()=>[r,`${r}-status-${e.status}`,{[`${r}-disabled`]:e.disabled,[`${r}-loading`]:e.loading,[`${r}-hoverless`]:!e.hoverable,[`${r}-with-icon`]:e.loading||o.value}]),prefixCls:r,showIcon:o,handleClick:a}}}),MOe=["href"];function DOe(e,t,n,r,o,a){const s=Me("icon-loading"),l=Me("icon-link");return H(),Q("a",{href:e.disabled?void 0:e.href,class:le(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.loading||e.showIcon?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-icon`)},[e.loading?(H(),Xe(s,{key:0})):ft(e.$slots,"icon",{key:1},()=>[O(l)])],2)):Oe("v-if",!0),ft(e.$slots,"default")],10,MOe)}var wD=$e(ROe,[["render",DOe]]);const ahe=Object.assign(wD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+wD.name,wD)}}),OOe=be({name:"PanelFooter",components:{Link:ahe,Button:Uo},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:Ok(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function $Oe(e,t,n,r,o,a){const s=Me("Link"),l=Me("Button");return H(),Q("div",{class:le(`${e.prefixCls}-footer`)},[e.$slots.extra?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-footer-extra-wrapper`)},[ft(e.$slots,"extra")],2)):Oe("v-if",!0),e.showTodayBtn?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-footer-now-wrapper`)},[O(s,{onClick:e.onTodayClick},{default:de(()=>[We(Be(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Oe("v-if",!0),e.$slots.btn||e.showConfirmBtn?(H(),Q("div",{key:2,class:le(`${e.prefixCls}-footer-btn-wrapper`)},[ft(e.$slots,"btn"),e.showConfirmBtn?(H(),Xe(l,{key:0,class:le(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:de(()=>[We(Be(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Oe("v-if",!0)],2)):Oe("v-if",!0)],2)}var lhe=$e(OOe,[["render",$Oe]]);function uhe(e){const{mode:t}=Zt(e),n=j(()=>({date:1,week:1,year:120,quarter:12,month:12})[t.value]),r=j(()=>["year"].includes(t.value)?120:12);return{span:n,superSpan:r}}function zA(e){const{mode:t,value:n,defaultValue:r,selectedValue:o,format:a,onChange:s}=Zt(e),l=j(()=>t?.value||"date"),{span:c,superSpan:f}=uhe(Ht({mode:l})),h=(A,R)=>{const M=l.value==="date"||l.value==="week"?"M":"y";return A.isSame(R,M)},p=j(()=>nc(n?.value,a.value)),m=j(()=>nc(r?.value,a.value)),g=pe(m.value||Ba()),b=j(()=>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||Ba()}function E(A=!0){const R=C();A?k(R):S(R)}const x=j(()=>c.value!==f.value),_=j(()=>({onSuperPrev:()=>{k(Us.subtract(b.value,f.value,"M"))},onPrev:x.value?()=>{k(Us.subtract(b.value,c.value,"M"))}:void 0,onNext:x.value?()=>{k(Us.add(b.value,c.value,"M"))}:void 0,onSuperNext:()=>{k(Us.add(b.value,f.value,"M"))}}));return{headerValue:b,setHeaderValue:k,headerOperations:_,resetHeaderValue:E,getDefaultLocalValue:C}}const NOe=be({name:"DatePikerPanel",components:{DatePanel:wz,PanelShortcuts:Zfe,PanelFooter:lhe,WeekPanel:rhe,MonthPanel:ihe,YearPanel:ohe,QuarterPanel:she,RenderFunction:Uh},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}=Zt(e),k=j(()=>!!(r.value&&r.value.length)),C=j(()=>f.value&&p.value&&!k.value),E=j(()=>C.value||k.value),x=j(()=>E.value&&o.value==="left"),_=j(()=>E.value&&o.value==="right"),A=j(()=>E.value&&o.value==="bottom"),R=j(()=>[`${n.value}-container`,{[`${n.value}-container-panel-only`]:c.value,[`${n.value}-container-shortcuts-placement-left`]:x.value,[`${n.value}-container-shortcuts-placement-right`]:_.value}]),M=j(()=>s?.value||Ba()),{headerValue:D,setHeaderValue:$,headerOperations:L}=zA(Ht({mode:S,format:a}));Dt(m,ae=>{$(ae)});function B(ae){const{value:Ce}=ae;return nc(pn(Ce)?Ce():Ce,ae.format||a.value)}function F(ae){t("shortcut-click",B(ae),ae)}function U(ae){t("shortcut-mouse-enter",B(ae))}function z(ae){t("shortcut-mouse-leave",B(ae))}function G(ae){t("cell-click",ae)}function Y(ae){t("time-picker-select",ae)}function re(){t("today-btn-click",Ba())}function te(){t("confirm")}function X(ae){t("header-label-click",ae)}function K(ae){t("header-select",ae)}function J(){t("month-header-click")}const ie=Ht({prefixCls:n,shortcuts:r,showNowBtn:C,onItemClick:F,onItemMouseEnter:U,onItemMouseLeave:z,onNowClick:re}),se=Ht({value:s,headerValue:m,headerIcons:g,headerOperations:b,disabledDate:l,dateRender:h,onSelect:G,onHeaderLabelClick:X});return{classNames:R,showShortcutsInLeft:x,showShortcutsInRight:_,showShortcutsInBottom:A,shortcutsProps:ie,commonPanelProps:se,footerValue:M,onTodayBtnClick:re,onConfirmBtnClick:te,onTimePickerSelect:Y,onHeaderPanelSelect:K,headerPanelHeaderValue:D,headerPanelHeaderOperations:L,onMonthHeaderLabelClick:J}}});function BOe(e,t,n,r,o,a){const s=Me("PanelShortcuts"),l=Me("YearPanel"),c=Me("MonthPanel"),f=Me("WeekPanel"),h=Me("QuarterPanel"),p=Me("DatePanel"),m=Me("RenderFunction"),g=Me("PanelFooter");return H(),Q("div",{class:le(e.classNames)},[e.showShortcutsInLeft?(H(),Xe(s,Ni(Nt({key:0},e.shortcutsProps)),null,16)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(H(),Q(Ft,{key:0},[e.headerMode==="year"?(H(),Xe(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(),Xe(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"])):Oe("v-if",!0)],64)):(H(),Q(Ft,{key:1},[e.mode==="week"?(H(),Xe(f,Nt({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(H(),Xe(c,Nt({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(H(),Xe(l,Ni(Nt({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(H(),Xe(h,Ni(Nt({key:3},e.commonPanelProps)),null,16)):(H(),Xe(p,Nt({key:4},e.commonPanelProps,{mode:"date","show-time":e.showTime,"time-picker-props":e.timePickerProps,"day-start-of-week":e.dayStartOfWeek,"footer-value":e.footerValue,"time-picker-value":e.timePickerValue,"disabled-time":e.disabledTime,onTimePickerSelect:e.onTimePickerSelect}),null,16,["show-time","time-picker-props","day-start-of-week","footer-value","time-picker-value","disabled-time","onTimePickerSelect"])),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":e.showNowBtn&&!(e.showConfirmBtn||e.showShortcutsInBottom),"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onTodayBtnClick:e.onTodayBtnClick,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra?{name:"extra",fn:de(()=>[e.extra?(H(),Xe(m,{key:0,"render-func":e.extra},null,8,["render-func"])):Oe("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:de(()=>[O(s,Ni(ha(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(),Xe(s,Ni(Nt({key:1},e.shortcutsProps)),null,16)):Oe("v-if",!0)],2)}var FOe=$e(NOe,[["render",BOe]]);function jOe(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 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"YYYY-MM-DD";case"quarter":return"YYYY-MM";default:return"YYYY-MM-DD"}}function che(e){const{format:t,mode:n,showTime:r,valueFormat:o}=Zt(e),a=j(()=>!pn(t?.value)&&t?.value||jOe(n?.value,r?.value)),s=j(()=>o?.value||UOe(n?.value,r?.value)),l=j(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function dhe(e){const{mode:t,showTime:n,disabledDate:r,disabledTime:o,isRange:a}=Zt(e),s=j(()=>t?.value==="date"&&n?.value),l=j(()=>(h,p)=>{if(!r?.value)return!1;const m=mu(h);return a?.value?r.value(m,p):r.value(m)}),c=(h,p)=>(p?.()||[]).includes(h),f=j(()=>(h,p)=>{if(!s.value||!o?.value)return!1;const m=mu(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 tg=(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 tg(t?.value||{},l)||r(a,...s)};return Gr(Xfe,{datePickerT:o}),o}function oj(e){const{timePickerProps:t,selectedValue:n}=Zt(e),r=j(()=>{var p;return(p=t?.value)==null?void 0:p.format}),o=j(()=>{var p;return!!((p=t?.value)!=null&&p.use12Hours)}),{format:a}=kz(Ht({format:r,use12Hours:o})),s=j(()=>{var p;return nc((p=t?.value)==null?void 0:p.defaultValue,a.value)}),l=()=>n?.value||s.value||Ba(),c=pe(l());function f(p){p&&(c.value=p)}function h(){c.value=l()}return Dt(n,p=>{f(p)}),[c,f,h]}function hhe(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function VOe(e){const{format:t}=Zt(e);return n=>hhe(n,t.value)}function CD(e,t){return e.map(n=>n?hhe(n,t):void 0)}const zOe=be({name:"Picker",components:{DateInput:Yfe,Trigger:sa,PickerPanel:FOe,IconCalendar:$k},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:E,defaultPickerValue:x,dayStartOfWeek:_,previewShortcut:A,showConfirmBtn:R}=Zt(e),{locale:M}=Ao();Cs(()=>{Cfe(M.value,_.value)});const{mergedDisabled:D,eventHandlers:$}=So({disabled:p}),L=fhe(Ht({locale:C})),B=Te("picker"),F=pe(),U=j(()=>c?.value||{date:L("datePicker.placeholder.date"),month:L("datePicker.placeholder.month"),year:L("datePicker.placeholder.year"),week:L("datePicker.placeholder.week"),quarter:L("datePicker.placeholder.quarter")}[r.value]||L("datePicker.placeholder.date")),{format:z,valueFormat:G,parseValueFormat:Y}=che(Ht({format:s,mode:r,showTime:m,valueFormat:l})),re=j(()=>s&&pn(s.value)?wn=>{var hr;return(hr=s.value)==null?void 0:hr.call(s,mu(wn))}:z.value),te=VOe(Ht({format:G})),X=dhe(Ht({mode:r,disabledDate:b,disabledTime:S,showTime:m})),K=j(()=>m.value||R.value),J=j(()=>K.value&&(!Ne.value||X(Ne.value))),ie=j(()=>r.value==="date"&&m.value),{value:se,setValue:ae}=I6e(Ht({modelValue:o,defaultValue:a,format:Y})),[Ce,ke]=Na(),[ve,Ie]=Na(),Ne=j(()=>{var wn;return(wn=Ce.value)!=null?wn:se.value}),Ye=j(()=>{var wn,hr;return(hr=(wn=ve.value)!=null?wn:Ce.value)!=null?hr:se.value}),[Ze,Ge]=Na(),[_e,ye]=oa(h.value,Ht({value:f})),Re=wn=>{_e.value!==wn&&(ye(wn),t("popup-visible-change",wn),t("update:popupVisible",wn))},{headerValue:je,setHeaderValue:Qe,headerOperations:rt,resetHeaderValue:yt}=zA(Ht({mode:r,value:E,defaultValue:x,selectedValue:Ye,format:Y,onChange:wn=>{const hr=te(wn),Ci=tf(wn,Y.value),Ws=mu(wn);t("picker-value-change",hr,Ws,Ci),t("update:pickerValue",hr)}})),[ct,,Et]=oj(Ht({timePickerProps:g,selectedValue:Ye})),Tt=j(()=>!k.value&&!pn(re.value)),Wt=pe();Dt(_e,wn=>{ke(void 0),Ie(void 0),Wt.value=void 0,wn&&(yt(),Et()),wn||Ge(void 0)});function Gt(wn,hr){var Ci,Ws;const hs=wn?te(wn):void 0,Gl=tf(wn,Y.value),Gc=mu(wn);fz(wn,se.value)&&(t("update:modelValue",hs),t("change",hs,Gc,Gl),(Ws=(Ci=$.value)==null?void 0:Ci.onChange)==null||Ws.call(Ci)),hr&&t("ok",hs,Gc,Gl)}function Jt(wn,hr,Ci){X(wn)||(Gt(wn,Ci),ae(wn),ke(void 0),Ie(void 0),Ge(void 0),Wt.value=void 0,ml(hr)&&Re(hr))}function rn(wn,hr){if(ke(wn),Ie(void 0),Ge(void 0),Wt.value=void 0,hr){const Ci=wn?te(wn):void 0,Ws=tf(wn,Y.value),hs=mu(wn);t("select",Ci,hs,Ws)}}function qe(wn){F.value&&F.value.focus&&F.value.focus(wn)}function ht(wn,hr){return!ie.value&&!g.value?wn:Jfe(Ba(),wn,hr)}function ze(wn){D.value||Re(wn)}function Fe(wn){wn.stopPropagation(),Jt(void 0),t("clear")}function at(){var wn,hr;(hr=(wn=$.value)==null?void 0:wn.onBlur)==null||hr.call(wn)}function St(wn){Re(!0);const hr=wn.target.value;if(Ge(hr),!UA(hr,z.value))return;const Ci=ks(hr,z.value);X(Ci)||(K.value?rn(Ci):Jt(Ci,!0))}function ut(){Jt(Ye.value,!1)}function tt(wn){K.value?rn(wn,!0):Jt(wn,!1)}function Pe(wn){const hr=ht(wn,ct.value);tt(hr)}function bt(wn){const hr=ht(Ye.value||Ba(),wn);tt(hr)}function Pt(){Jt(Ye.value,!1,!0)}function Ut(){e.disabledInput&&qe()}let It;hi(()=>{clearTimeout(It)});function qt(wn){clearTimeout(It),Ie(wn),Ge(void 0)}function En(){clearTimeout(It),It=setTimeout(()=>{Ie(void 0)},100)}function tr(wn,hr){t("select-shortcut",hr),Jt(wn,!1)}function ji(wn){Wt.value=wn}function Wl(){Wt.value="year"}function Yr(wn){let hr=je.value;if(hr=hr.set("year",wn.year()),Wt.value==="month"&&(hr=hr.set("month",wn.month())),Qe(hr),r.value==="quarter"||r.value==="month"){Wt.value=void 0;return}Wt.value=Wt.value==="year"?"month":void 0}const io=j(()=>({format:z.value,...va(g?.value||{},["defaultValue"]),visible:_e.value})),Hs=j(()=>({...hf(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:B,format:Y.value,value:Ye.value,visible:_e.value,showConfirmBtn:K.value,confirmBtnDisabled:J.value,timePickerProps:io.value,extra:n.extra,dateRender:n.cell,headerValue:je.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:rt.value,timePickerValue:ct.value,headerMode:Wt.value,onCellClick:Pe,onTimePickerSelect:bt,onConfirm:Pt,onShortcutClick:tr,onShortcutMouseEnter:A.value?qt:void 0,onShortcutMouseLeave:A.value?En:void 0,onTodayBtnClick:tt,onHeaderLabelClick:ji,onHeaderSelect:Yr,onMonthHeaderClick:Wl}));return{prefixCls:B,refInput:F,panelProps:Hs,panelValue:Ye,inputValue:Ze,selectedValue:se,inputFormat:re,computedPlaceholder:U,panelVisible:_e,inputEditable:Tt,needConfirm:K,mergedDisabled:D,onPanelVisibleChange:ze,onInputClear:Fe,onInputChange:St,onInputPressEnter:ut,onInputBlur:at,onPanelClick:Ut}}});function HOe(e,t,n,r,o,a){const s=Me("IconCalendar"),l=Me("DateInput"),c=Me("PickerPanel"),f=Me("Trigger");return e.hideTrigger?(H(),Xe(c,Ni(Nt({key:1},{...e.$attrs,...e.panelProps})),null,16)):(H(),Xe(f,Nt({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,Nt(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:de(()=>[ft(e.$slots,"default",{},()=>[O(l,Nt(e.$attrs,{ref:"refInput",size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.mergedDisabled,readonly:!e.inputEditable||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.needConfirm?e.panelValue:e.selectedValue,format:e.inputFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter,onBlur:e.onInputBlur}),yo({"suffix-icon":de(()=>[ft(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(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 Nk=$e(zOe,[["render",HOe]]),ED=be({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(Nk,Nt(e,t,{mode:"date"}),n)}}),i4=be({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(Nk,Nt(e,t,{mode:"week"}),n)}}),o4=be({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(Nk,Nt(e,t,{mode:"month"}),n)}}),s4=be({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(Nk,Nt(e,t,{mode:"year"}),n)}}),a4=be({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(Nk,Nt(e,t,{mode:"quarter"}),n)}});function WOe(e){const{modelValue:t,defaultValue:n,format:r}=Zt(e),o=j(()=>nc(nj(t.value),r.value)),a=j(()=>nc(nj(n.value),r.value)),[s,l]=Na(mn(o.value)?mn(a.value)?[]:a.value:o.value);return Dt(o,()=>{mn(o.value)&&l([])}),{value:j(()=>o.value||s.value),setValue:l}}function GOe(e){const{startHeaderMode:t,endHeaderMode:n,mode:r,value:o,defaultValue:a,selectedValue:s,format:l,onChange:c}=Zt(e),f=j(()=>["date","week"].includes(r.value)),h=j(()=>f.value?"M":"y"),p=(Ce,ke)=>Ce.isSame(ke,h.value),{span:m,superSpan:g}=uhe(Ht({mode:r})),b=j(()=>t?.value||r.value),S=j(()=>n?.value||r.value),k=j(()=>{var Ce;return(Ce=o.value)==null?void 0:Ce[0]}),C=j(()=>{var Ce;return(Ce=o.value)==null?void 0:Ce[1]}),E=j(()=>{var Ce;return(Ce=a.value)==null?void 0:Ce[0]}),x=j(()=>{var Ce;return(Ce=a.value)==null?void 0:Ce[1]}),_=Ce=>{c?.value&&c.value(Ce)},{headerValue:A,setHeaderValue:R,headerOperations:M,getDefaultLocalValue:D}=zA(Ht({mode:b,value:k,defaultValue:E,selectedValue:void 0,format:l,onChange:Ce=>{_([Ce,$.value])}})),{headerValue:$,setHeaderValue:L,headerOperations:B,getDefaultLocalValue:F}=zA(Ht({mode:S,value:C,defaultValue:x,selectedValue:void 0,format:l,onChange:Ce=>{_([A.value,Ce])}})),U=Ce=>{const ke=p(A.value,Ce[0]),ve=p($.value,Ce[1]);R(Ce[0],!1),L(Ce[1],!1),(!ke||!ve)&&c?.value&&c?.value(Ce)};function z(Ce){let[ke,ve]=F2(Ce);const Ie=Us.add(ke,m.value,"M");return ve.isBefore(Ie,h.value)&&(ve=Ie),[ke,ve]}function G(){var Ce,ke;let ve=(Ce=s.value)==null?void 0:Ce[0],Ie=(ke=s.value)==null?void 0:ke[1];return ve&&Ie&&([ve,Ie]=F2([ve,Ie])),[ve,Ie]}const[Y,re]=G(),[te,X]=z([Y||A.value,re||$.value]);R(te,!1),L(X,!1);const K=()=>{const Ce=D(),ke=F();kn(()=>{const[ve,Ie]=G(),[Ne,Ye]=z([ve||Ce,Ie||ke]);U([Ne,Ye])})},J=j(()=>Us.add(A.value,m.value,"M").isBefore($.value,h.value)),ie=j(()=>Us.add(A.value,g.value,"M").isBefore($.value,h.value)),se=j(()=>{const Ce=["onSuperPrev"];return f.value&&Ce.push("onPrev"),J.value&&f&&Ce.push("onNext"),ie.value&&Ce.push("onSuperNext"),hf(M.value,Ce)}),ae=j(()=>{const Ce=["onSuperNext"];return f.value&&Ce.push("onNext"),J.value&&f.value&&Ce.push("onPrev"),ie.value&&Ce.push("onSuperPrev"),hf(B.value,Ce)});return{startHeaderValue:A,endHeaderValue:$,startHeaderOperations:se,endHeaderOperations:ae,setHeaderValue:U,resetHeaderValue:K}}const KOe=be({name:"DateInputRange",components:{IconHover:_o,IconClose:xs,FeedbackIcon:Pk},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}=Zt(e),{mergedSize:p,mergedDisabled:m,mergedError:g,feedback:b}=So({size:s,error:r}),{mergedSize:S}=ga(p),k=pe(),C=pe(),E=Y=>m.value?m.value:qn(a.value)?a.value[Y]:a.value,x=j(()=>E(0)),_=j(()=>E(1)),A=Te("picker"),R=j(()=>[A,`${A}-range`,`${A}-size-${S.value}`,{[`${A}-focused`]:o.value,[`${A}-disabled`]:x.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 re,te;if(h?.value)return(re=h?.value)==null?void 0:re[Y];const X=(te=l?.value)==null?void 0:te[Y];if(X&&Rc(X))return pn(c.value)?c.value(X):X.format(c.value)}const $=j(()=>D(0)),L=j(()=>D(1));function B(Y){t("focused-index-change",Y),t("update:focusedIndex",Y)}function F(Y){Y.stopPropagation(),t("change",Y)}function U(){t("press-enter")}function z(Y){Y.preventDefault()}function G(Y){t("clear",Y)}return{prefixCls:A,classNames:R,refInput0:k,refInput1:C,disabled0:x,disabled1:_,mergedDisabled:m,getDisabled:E,getInputWrapClassName:M,displayValue0:$,displayValue1:L,changeFocusedInput:B,onChange:F,onPressEnter:U,onPressTab:z,onClear:G,feedback:b}},methods:{focus(e){const t=Ke(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!mn(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),qOe=["disabled","placeholder","value"],YOe=["disabled","placeholder","value"];function XOe(e,t,n,r,o,a){const s=Me("IconClose"),l=Me("IconHover"),c=Me("FeedbackIcon");return H(),Q("div",{class:le(e.classNames)},[e.$slots.prefix?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-prefix`)},[ft(e.$slots,"prefix")],2)):Oe("v-if",!0),I("div",{class:le(e.getInputWrapClassName(0))},[I("input",Nt({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]=vh((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),t[2]||(t[2]=vh((...f)=>e.onPressTab&&e.onPressTab(...f),["tab"]))],onClick:t[3]||(t[3]=()=>e.changeFocusedInput(0))}),null,16,qOe)],2),I("span",{class:le(`${e.prefixCls}-separator`)},[ft(e.$slots,"separator",{},()=>[t[8]||(t[8]=We(" - "))])],2),I("div",{class:le(e.getInputWrapClassName(1))},[I("input",Nt({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]=vh((...f)=>e.onPressEnter&&e.onPressEnter(...f),["enter"])),t[6]||(t[6]=vh((...f)=>e.onPressTab&&e.onPressTab(...f),["tab"]))],onClick:t[7]||(t[7]=()=>e.changeFocusedInput(1))}),null,16,YOe)],2),I("div",{class:le(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(H(),Xe(l,{key:0,prefix:e.prefixCls,class:le(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Oe("v-if",!0),I("span",{class:le(`${e.prefixCls}-suffix-icon`)},[ft(e.$slots,"suffix-icon")],2),e.feedback?(H(),Xe(c,{key:1,type:e.feedback},null,8,["type"])):Oe("v-if",!0)],2)],2)}var phe=$e(KOe,[["render",XOe]]);const ZOe=be({name:"DateRangePikerPanel",components:{PanelShortcuts:Zfe,PanelFooter:lhe,RenderFunction:Uh,DatePanel:wz,WeekPanel:rhe,MonthPanel:ihe,YearPanel:ohe,QuarterPanel:she},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}=Zt(e),k=j(()=>qn(r.value)&&r.value.length),C=j(()=>[`${n.value}-range-container`,{[`${n.value}-range-container-panel-only`]:s.value,[`${n.value}-range-container-shortcuts-placement-left`]:k.value&&o.value==="left",[`${n.value}-range-container-shortcuts-placement-right`]:k.value&&o.value==="right"}]),E=pe("date");Dt(g,(ie,se)=>{ie&&!se&&(E.value="date")});function x(ie){return nc(nj(pn(ie.value)?ie.value():ie.value),ie.format||a.value)}function _(ie){t("shortcut-click",x(ie),ie)}function A(ie){t("shortcut-mouse-enter",x(ie))}function R(ie){t("shortcut-mouse-leave",x(ie))}function M(ie){t("cell-click",ie)}function D(ie){t("cell-mouse-enter",ie)}function $(){t("confirm")}function L(ie){t("time-picker-select",ie,"start")}function B(ie){t("time-picker-select",ie,"end")}function F(ie){t("start-header-label-click",ie)}function U(ie){t("end-header-label-click",ie)}function z(ie){t("start-header-select",ie)}function G(ie){t("end-header-select",ie)}function Y(ie){return pn(c?.value)?se=>{var ae;return((ae=c?.value)==null?void 0:ae.call(c,se,ie===0?"start":"end"))||!1}:void 0}function re(ie){return pn(f?.value)?se=>{var ae;return((ae=f?.value)==null?void 0:ae.call(f,se,ie===0?"start":"end"))||!1}:void 0}function te(ie){return pn(m?.value)?se=>{var ae;const Ce={...se,type:ie===0?"start":"end"};return(ae=m?.value)==null?void 0:ae.call(m,Ce)}:void 0}const X=Ht({prefixCls:n,shortcuts:r,onItemClick:_,onItemMouseEnter:A,onItemMouseLeave:R}),K=j(()=>({...h.value,rangeValues:l.value,disabledDate:Y(0),dateRender:te(0),onSelect:b.value?z:M,onCellMouseEnter:D,onHeaderLabelClick:F})),J=j(()=>({...p.value,rangeValues:l.value,disabledDate:Y(1),dateRender:te(1),onSelect:S.value?G:M,onCellMouseEnter:D,onHeaderLabelClick:U}));return{pick:hf,classNames:C,showShortcuts:k,shortcutsProps:X,startPanelProps:K,endPanelProps:J,getDisabledTimeFunc:re,onConfirmBtnClick:$,currentDateView:E,onStartTimePickerSelect:L,onEndTimePickerSelect:B,onStartHeaderPanelSelect:z,onEndHeaderPanelSelect:G}}});function JOe(e,t,n,r,o,a){const s=Me("PanelShortcuts"),l=Me("YearPanel"),c=Me("MonthPanel"),f=Me("WeekPanel"),h=Me("QuarterPanel"),p=Me("DatePanel"),m=Me("RenderFunction"),g=Me("PanelFooter");return H(),Q("div",{class:le(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(H(),Xe(s,Ni(Nt({key:0},e.shortcutsProps)),null,16)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-range-panel-wrapper`)},[Oe(" panel "),I("div",{class:le(`${e.prefixCls}-range`)},[I("div",{class:le(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(H(),Q(Ft,{key:0},[e.startHeaderMode==="year"?(H(),Xe(l,Ni(Nt({key:0},e.startPanelProps)),null,16)):Oe("v-if",!0),e.endHeaderMode==="year"?(H(),Xe(l,Ni(Nt({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(H(),Xe(c,Nt({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(H(),Xe(c,Nt({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Oe("v-if",!0)],64)):(H(),Q(Ft,{key:1},[Oe(" week "),e.mode==="week"?(H(),Q(Ft,{key:0},[O(f,Nt(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),O(f,Nt(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(H(),Q(Ft,{key:1},[Oe(" month "),O(c,Nt(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),O(c,Nt(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(H(),Q(Ft,{key:2},[Oe(" year "),O(l,Ni(ha(e.startPanelProps)),null,16),O(l,Ni(ha(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(H(),Q(Ft,{key:3},[Oe(" quarter "),O(h,Ni(ha(e.startPanelProps)),null,16),O(h,Ni(ha(e.endPanelProps)),null,16)],64)):(H(),Q(Ft,{key:4},[Oe(" date "),O(p,Nt({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,Nt({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),Oe(" footer "),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:de(()=>[e.$slots.extra?ft(e.$slots,"extra",{key:0}):(H(),Xe(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,Ni(ha(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(),Xe(s,Ni(Nt({key:1},e.shortcutsProps)),null,16)):Oe("v-if",!0)],2)}var QOe=$e(ZOe,[["render",JOe]]);function e$e(e){const{timePickerProps:t,selectedValue:n}=Zt(e),r=j(()=>{var C;return(C=n?.value)==null?void 0:C[0]}),o=j(()=>{var C;return(C=n?.value)==null?void 0:C[1]}),a=j(()=>{var C;return(C=t?.value)==null?void 0:C.defaultValue}),s=j(()=>qn(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=j(()=>qn(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,f,h]=oj(Ht({timePickerProps:s,selectedValue:r})),[p,m,g]=oj(Ht({timePickerProps:l,selectedValue:o})),b=j(()=>[c.value,p.value]);function S(C){C&&(f(C[0]),m(C[1]))}function k(){h(),g()}return[b,S,k]}const t$e=be({name:"RangePicker",components:{RangePickerPanel:QOe,DateRangeInput:phe,Trigger:sa,IconCalendar:$k},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:E,size:x,error:_,dayStartOfWeek:A,exchangeTime:R,previewShortcut:M,showConfirmBtn:D}=Zt(e),{locale:$}=Ao(),L=xn(Fa,void 0);Cs(()=>{Cfe($.value,A.value)});const B=j(()=>{var et;return!(!R.value||!((et=L?.exchangeTime)==null||et))}),{mergedSize:F,mergedDisabled:U,mergedError:z,eventHandlers:G}=So({size:x,error:_}),Y=fhe(Ht({locale:S})),re=Te("picker"),te=j(()=>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:J}=che(Ht({mode:r,format:a,showTime:o,valueFormat:E})),ie=j(()=>{const et=m.value===!0||U.value||qn(m.value)&&m.value[0]===!0,ot=m.value===!0||U.value||qn(m.value)&&m.value[1]===!0;return[et,ot]}),se=j(()=>ie.value[0]&&ie.value[1]);function ae(et=0){return ie.value[et]?et^1:et}const Ce=pe(),ke=pe(ae()),ve=j(()=>{const et=ke.value,ot=et^1;return ie.value[ot]?et:ot}),Ie=j(()=>ie.value[ke.value^1]),{value:Ne,setValue:Ye}=WOe(Ht({modelValue:s,defaultValue:l,format:J})),[Ze,Ge]=Na(),[_e,ye]=Na(),Re=j(()=>{var et;return(et=Ze.value)!=null?et:Ne.value}),je=j(()=>{var et,ot;return(ot=(et=_e.value)!=null?et:Ze.value)!=null?ot:Ne.value}),[Qe,rt]=Na(),yt=pe(),ct=pe(),[Et,Tt]=oa(f.value,Ht({value:c})),Wt=et=>{Et.value!==et&&(Tt(et),t("popup-visible-change",et),t("update:popupVisible",et))},{startHeaderValue:Gt,endHeaderValue:Jt,startHeaderOperations:rn,endHeaderOperations:qe,resetHeaderValue:ht,setHeaderValue:ze}=GOe(Ht({mode:r,startHeaderMode:yt,endHeaderMode:ct,value:k,defaultValue:C,selectedValue:je,format:J,onChange:et=>{const ot=CD(et,K.value),Rt=tf(et,J.value),Yt=mu(et);t("picker-value-change",ot,Yt,Rt),t("update:pickerValue",ot)}}));function Fe(et){yt.value=et}function at(et){ct.value=et}function St(et){let ot=Gt.value;ot=ot.set("year",et.year()),yt.value==="month"&&(ot=ot.set("month",et.month())),ze([ot,Jt.value]),yt.value=void 0}function ut(et){let ot=Jt.value;ot=ot.set("year",et.year()),ct.value==="month"&&(ot=ot.set("month",et.month())),ze([Gt.value,ot]),ct.value=void 0}const tt=pe([je.value[0]||Ba(),je.value[1]||Ba()]);Dt(je,()=>{const[et,ot]=je.value;tt.value[0]=et||tt.value[0],tt.value[1]=ot||tt.value[1]});const[Pe,bt,Pt]=e$e(Ht({timePickerProps:p,selectedValue:je})),Ut=j(()=>r.value==="date"&&o.value),It=j(()=>Ut.value||p.value),qt=dhe(Ht({mode:r,isRange:!0,showTime:o,disabledDate:g,disabledTime:b})),En=j(()=>Ut.value||D.value),tr=j(()=>En.value&&(!Rp(Re.value)||qt(Re.value[0],"start")||qt(Re.value[1],"end")));Dt(Et,et=>{yt.value=void 0,ct.value=void 0,Ge(void 0),ye(void 0),et&&(ht(),Pt(),ke.value=ae(ke.value),kn(()=>hr(ke.value))),et||rt(void 0)}),Dt(ke,()=>{e.disabledInput&&(hr(ke.value),rt(void 0))});function ji(et,ot){var Rt,Yt;const Vt=et?CD(et,K.value):void 0,sn=tf(et,J.value),ln=mu(et);fz(et,Ne.value)&&(t("update:modelValue",Vt),t("change",Vt,ln,sn),(Yt=(Rt=G.value)==null?void 0:Rt.onChange)==null||Yt.call(Rt)),ot&&t("ok",Vt,ln,sn)}function Wl(et){let ot=F2(et);return It.value&&!B.value&&(ot=[Ci(ot[0],et[0]),Ci(ot[1],et[1])]),ot}function Yr(et,ot,Rt){if(qt(et?.[0],"start")||qt(et?.[1],"end"))return;let Yt=et?[...et]:void 0;Rp(Yt)&&(Yt=Wl(Yt)),ji(Yt,Rt),Ye(Yt||[]),Ge(void 0),ye(void 0),rt(void 0),yt.value=void 0,ct.value=void 0,ml(ot)&&Wt(ot)}function io(et){const ot=CD(et,K.value),Rt=tf(et,J.value),Yt=mu(et);t("select",ot,Yt,Rt)}function Hs(et,ot){const{emitSelect:Rt=!1,updateHeader:Yt=!1}=ot||{};let Vt=[...et];Rp(Vt)&&(Vt=Wl(Vt)),Ge(Vt),ye(void 0),rt(void 0),yt.value=void 0,ct.value=void 0,Rt&&io(Vt),Yt&&ht()}function wn(et,ot){const{updateHeader:Rt=!1}=ot||{};ye(et),rt(void 0),Rt&&ht()}function hr(et){Ce.value&&Ce.value.focus&&Ce.value.focus(et)}function Ci(et,ot){return It.value?Jfe(Ba(),et,ot):et}function Ws(et){Wt(et)}function hs(et){if(Ze.value&&je.value[ve.value]&&(!En.value||!Rp(Ze.value))){const ot=[...je.value],Rt=Ci(et,Pe.value[ke.value]);ot[ke.value]=Rt,wn(ot)}}function Gl(et=!1){return Ie.value?[...Ne.value]:Ze.value?et||!Rp(Ze.value)?[...Ze.value]:[]:et?[...Ne.value]:[]}function Gc(et){const ot=Gl(),Rt=Ci(et,Pe.value[ke.value]);ot[ke.value]=Rt,io(ot),!En.value&&Rp(ot)?Yr(ot,!1):(Hs(ot),Rp(ot)?ke.value=0:ke.value=ve.value)}function Ki(et,ot){const Rt=ot==="start"?0:1,Yt=Ci(Pe.value[Rt],et),Vt=[...Pe.value];Vt[Rt]=Yt,bt(Vt);const sn=Gl(!0);sn[Rt]&&(sn[Rt]=Yt,Hs(sn,{emitSelect:!0}))}let Kl;hi(()=>{clearTimeout(Kl)});function ce(et){clearTimeout(Kl),wn(et,{updateHeader:!0})}function oe(){clearTimeout(Kl),Kl=setTimeout(()=>{ye(void 0),rt(void 0),ht()},100)}function ee(et,ot){t("select-shortcut",ot),Yr(et,!1)}function Z(){Yr(je.value,!1,!0)}function he(et){et.stopPropagation(),Yr(void 0),t("clear")}function we(et){Wt(!0);const ot=et.target.value;if(!ot){rt(void 0);return}const Rt=tf(je.value,X.value),Yt=qn(Qe.value)?[...Qe.value]:Rt||[];if(Yt[ke.value]=ot,rt(Yt),!UA(ot,X.value))return;const Vt=ks(ot,X.value);if(qt(Vt,ke.value===0?"start":"end"))return;const sn=qn(je.value)?[...je.value]:[];sn[ke.value]=Vt,Hs(sn,{updateHeader:!0})}function Se(){N6e(je.value)?Yr(je.value,!1):ke.value=ve.value}const Le=j(()=>({format:X.value,...va(p?.value||{},["defaultValue"]),visible:Et.value})),lt=j(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),nt=Ht({headerValue:Gt,headerOperations:rn,headerIcons:lt}),vt=Ht({headerValue:Jt,headerOperations:qe,headerIcons:lt}),Ee=j(()=>({...hf(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:re,format:J.value,value:je.value,showConfirmBtn:En.value,confirmBtnDisabled:tr.value,timePickerValue:Pe.value,timePickerProps:Le.value,extra:n.extra,dateRender:n.cell,startHeaderProps:nt,endHeaderProps:vt,footerValue:tt.value,disabled:ie.value,visible:Et.value,onCellClick:Gc,onCellMouseEnter:hs,onShortcutClick:ee,onShortcutMouseEnter:M.value?ce:void 0,onShortcutMouseLeave:M.value?oe:void 0,onConfirm:Z,onTimePickerSelect:Ki,startHeaderMode:yt.value,endHeaderMode:ct.value,onStartHeaderLabelClick:Fe,onEndHeaderLabelClick:at,onStartHeaderSelect:St,onEndHeaderSelect:ut}));return{prefixCls:re,refInput:Ce,computedFormat:X,computedPlaceholder:te,panelVisible:Et,panelValue:je,inputValue:Qe,focusedIndex:ke,triggerDisabled:se,mergedSize:F,mergedError:z,onPanelVisibleChange:Ws,onInputClear:he,onInputChange:we,onInputPressEnter:Se,rangePanelProps:Ee}}});function n$e(e,t,n,r,o,a){const s=Me("IconCalendar"),l=Me("DateRangeInput"),c=Me("RangePickerPanel"),f=Me("Trigger");return e.hideTrigger?(H(),Xe(c,Ni(Nt({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(H(),Xe(f,Nt({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,Ni(ha(e.rangePanelProps)),null,16)]),default:de(()=>[ft(e.$slots,"default",{},()=>[O(l,Nt({ref:"refInput"},e.$attrs,{focusedIndex:e.focusedIndex,"onUpdate:focusedIndex":t[0]||(t[0]=h=>e.focusedIndex=h),size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.disabled,readonly:e.readonly||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.panelValue,format:e.computedFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter}),yo({"suffix-icon":de(()=>[ft(e.$slots,"suffix-icon",{},()=>[O(s)])]),separator:de(()=>[ft(e.$slots,"separator",{},()=>[We(Be(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(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 l4=$e(t$e,[["render",n$e]]);const r$e=Object.assign(ED,{WeekPicker:i4,MonthPicker:o4,YearPicker:s4,QuarterPicker:a4,RangePicker:l4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+ED.name,ED),e.component(n+s4.name,s4),e.component(n+a4.name,a4),e.component(n+o4.name,o4),e.component(n+i4.name,i4),e.component(n+l4.name,l4)}}),WA=["xxl","xl","lg","md","sm","xs"],QE={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 nm=[],i$e=-1,ex={};const GA={matchHandlers:{},dispatch(e,t){return ex=e,nm.length<1?!1:(nm.forEach(n=>{n.func(ex,t)}),!0)},subscribe(e){nm.length===0&&this.register();const t=(++i$e).toString();return nm.push({token:t,func:e}),e(ex,null),t},unsubscribe(e){nm=nm.filter(t=>t.token!==e),nm.length===0&&this.unregister()},unregister(){Object.keys(QE).forEach(e=>{const t=QE[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(QE).forEach(e=>{const t=QE[e];if(!t)return;const n=({matches:o})=>{this.dispatch({...ex,[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 une(e){return lr(e)}function _h(e,t,n=!1){const r=pe({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),o=j(()=>{let s=t;if(une(e.value))for(let l=0;l{a=GA.subscribe(s=>{une(e.value)&&(r.value=s)})}),hi(()=>{a&&GA.unsubscribe(a)}),o}var xD=be({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}=Zt(e),o=Te("descriptions"),{mergedSize:a}=ga(r),s=_h(n,3,!0),l=j(()=>{var A;return(A=lr(e.align)?e.align.label:e.align)!=null?A:"left"}),c=j(()=>{var A;return(A=lr(e.align)?e.align.value:e.align)!=null?A:"left"}),f=j(()=>({textAlign:l.value,...e.labelStyle})),h=j(()=>({textAlign:c.value,...e.valueStyle})),p=A=>{const R=[];let M=[],D=0;const $=()=>{if(M.length){const L=s.value-D;M[M.length-1].span+=L,R.push(M)}};return A.forEach(L=>{var B,F;const U=Math.min((F=Di(L)?(B=L.props)==null?void 0:B.span:L.span)!=null?F:1,s.value);D+U>s.value&&($(),M=[],D=0),M.push({data:L,span:U}),D+=U}),$(),R},m=j(()=>{var A;return p((A=e.data)!=null?A:[])}),g=(A,R)=>{var M,D,$,L,B;return Di(A)?A3(A,A.children)&&((D=(M=A.children).label)==null?void 0:D.call(M))||(($=A.props)==null?void 0:$.label):(B=(L=t.label)==null?void 0:L.call(t,{label:A.label,index:R,data:A}))!=null?B:pn(A.label)?A.label():A.label},b=(A,R)=>{var M,D;return Di(A)?A:(D=(M=t.value)==null?void 0:M.call(t,{value:A.value,index:R,data:A}))!=null?D:pn(A.value)?A.value():A.value},S=A=>O(Ft,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(Ft,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)])]))]),E=(A,R)=>["inline-horizontal","inline-vertical"].includes(e.layout)?C(A,R):e.layout==="vertical"?S(A):k(A,R),x=j(()=>[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(cf(t.default())):m.value;return O("div",{class:x.value},[_(),O("div",{class:`${o}-body`},[O("table",{class:`${o}-table`},[O("tbody",null,[A.map((R,M)=>E(R,M))])])])])}}});const o$e=be({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:Te("descriptions")}}});function s$e(e,t,n,r,o,a){return ft(e.$slots,"default")}var u4=$e(o$e,[["render",s$e]]);const a$e=Object.assign(xD,{DescriptionsItem:u4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+xD.name,xD),e.component(n+u4.name,u4)}});var TD=be({name:"Divider",props:{direction:{type:String,default:"horizontal"},orientation:{type:String,default:"center"},type:{type:String},size:{type:Number},margin:{type:[Number,String]}},setup(e,{slots:t}){const n=Te("divider"),r=j(()=>e.direction==="horizontal"),o=j(()=>{const a={};if(e.size&&(a[r.value?"border-bottom-width":"border-left-width"]=Ke(e.size)?`${e.size}px`:e.size),e.type&&(a[r.value?"border-bottom-style":"border-left-style"]=e.type),!mn(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 l$e=Object.assign(TD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+TD.name,TD)}}),vhe=e=>{const t=pe(!1),n={overflow:"",width:"",boxSizing:""};return{setOverflowHidden:()=>{if(e.value){const a=e.value;if(!t.value&&a.style.overflow!=="hidden"){const s=g5e(a);(s>0||m5e(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}}}},u$e=["top","right","bottom","left"],c$e=be({name:"Drawer",components:{ClientOnly:iz,ArcoButton:Uo,IconHover:_o,IconClose:xs},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>u$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}=Zt(e),r=Te("drawer"),{t:o}=Ao(),a=pe(e.defaultVisible),s=j(()=>{var U;return(U=e.visible)!=null?U:a.value}),l=pe(!1),c=j(()=>e.okLoading||l.value),{teleportContainer:f,containerRef:h}=oz({popupContainer:n,visible:s}),p=pe(s.value);let m=!1;const g=U=>{e.escToClose&&U.key===Do.ESC&&C()&&R(U)},b=()=>{e.escToClose&&!m&&(m=!0,ki(document.documentElement,"keydown",g))},S=()=>{m&&(m=!1,Gi(document.documentElement,"keydown",g))},{zIndex:k,isLastDialog:C}=H1("dialog",{visible:s}),E=j(()=>h?.value===document.body);let x=0;const _=()=>{x++,l.value&&(l.value=!1),a.value=!1,t("update:visible",!1)},A=async U=>{const z=x,G=await new Promise(async Y=>{var re;if(pn(e.onBeforeOk)){let te=e.onBeforeOk((X=!0)=>Y(X));if((mg(te)||!ml(te))&&(l.value=!0),mg(te))try{te=(re=await te)!=null?re:!0}catch(X){throw te=!1,X}ml(te)&&Y(te)}else Y(!0)});z===x&&(G?(t("ok",U),_()):l.value&&(l.value=!1))},R=U=>{var z;let G=!0;pn(e.onBeforeCancel)&&(G=(z=e.onBeforeCancel())!=null?z:!1),G&&(t("cancel",U),_())},M=U=>{e.maskClosable&&R(U)},D=()=>{s.value&&t("open")},$=()=>{s.value||(p.value=!1,B(),t("close"))},{setOverflowHidden:L,resetOverflow:B}=vhe(h);dn(()=>{s.value&&(p.value=!0,L(),b())}),$o(()=>{B(),S()}),Dt(s,U=>{a.value!==U&&(a.value=U),U?(t("beforeOpen"),p.value=!0,L(),b()):(t("beforeClose"),S())});const F=j(()=>{var U;const z={[e.placement]:0,...(U=e.drawerStyle)!=null?U:{}};return["right","left"].includes(e.placement)?z.width=Ke(e.width)?`${e.width}px`:e.width:z.height=Ke(e.height)?`${e.height}px`:e.height,z});return{prefixCls:r,style:F,t:o,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:k,handleOk:A,handleCancel:R,handleOpen:D,handleClose:$,handleMask:M,isFixed:E,teleportContainer:f}}});function d$e(e,t,n,r,o,a){const s=Me("icon-close"),l=Me("icon-hover"),c=Me("arco-button"),f=Me("client-only");return H(),Xe(f,null,{default:de(()=>[(H(),Xe(Og,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?wi((H(),Q("div",Nt({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[O(Es,{name:"fade-drawer",appear:""},{default:de(()=>[e.mask?wi((H(),Q("div",{key:0,class:le(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[Qo,e.computedVisible]]):Oe("v-if",!0)]),_:1}),O(Es,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[wi(I("div",{class:le(e.prefixCls),style:Ve(e.style)},[e.header?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-header`)},[ft(e.$slots,"header",{},()=>[e.$slots.title||e.title?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2)):Oe("v-if",!0),e.closable?(H(),Q("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:le(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...h)=>e.handleCancel&&e.handleCancel(...h))},[O(l,null,{default:de(()=>[O(s)]),_:1})],2)):Oe("v-if",!0)])],2)):Oe("v-if",!0),I("div",{class:le([`${e.prefixCls}-body`,e.bodyClass]),style:Ve(e.bodyStyle)},[ft(e.$slots,"default")],6),e.footer?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer",{},()=>[e.hideCancel?Oe("v-if",!0):(H(),Xe(c,Nt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(Be(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),O(c,Nt({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:de(()=>[We(Be(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Oe("v-if",!0)],6),[[Qo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[Qo,e.computedVisible||e.mounted]]):Oe("v-if",!0)],8,["to","disabled"]))]),_:3})}var c4=$e(c$e,[["render",d$e]]);const cne=(e,t)=>{let n=I3("drawer");const r=()=>{f.component&&(f.component.props.visible=!1),pn(e.onOk)&&e.onOk()},o=()=>{f.component&&(f.component.props.visible=!1),pn(e.onCancel)&&e.onCancel()},a=async()=>{await kn(),n&&(Fc(null,n),document.body.removeChild(n)),n=null,pn(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(c4,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...va(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:Dl(e.content),header:typeof e.header!="boolean"?Dl(e.header):void 0,title:Dl(e.title),footer:typeof e.footer!="boolean"?Dl(e.footer):void 0});return(t??sj._context)&&(f.appContext=t??sj._context),Fc(f,n),document.body.appendChild(n),{close:s,update:l}},sj=Object.assign(c4,{open:cne,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+c4.name,c4);const r={open:(o,a=e._context)=>cne(o,a)};e.config.globalProperties.$drawer=r},_context:null});function mhe(e){return e===Object(e)&&Object.keys(e).length!==0}function f$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 h$e(e){return e===!1?{block:"end",inline:"nearest"}:mhe(e)?e:{block:"start",inline:"nearest"}}function ghe(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(mhe(t)&&typeof t.behavior=="function")return t.behavior(n?XF(e,t):[]);if(n){var r=h$e(t);return f$e(XF(e,r),r.behavior)}}const dne=["success","warning","error","validating"],p$e=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||dne.indexOf(r)>dne.indexOf(t))&&(t=e[n])}return t},v$e=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},yhe=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},m$e=be({name:"Form",props:{model:{type:Object,required:!0},layout:{type:String,default:"horizontal"},size:{type:String},labelColProps:{type:Object,default:()=>({span:5,offset:0})},wrapperColProps:{type:Object,default:()=>({span:19,offset:0})},labelColStyle:Object,wrapperColStyle:Object,labelAlign:{type:String,default:"right"},disabled:{type:Boolean,default:void 0},rules:{type:Object},autoLabelWidth:{type:Boolean,default:!1},id:{type:String},scrollToFirstError:{type:Boolean,default:!1}},emits:{submit:(e,t)=>!0,submitSuccess:(e,t)=>!0,submitFailed:(e,t)=>!0},setup(e,{emit:t}){const n=Te("form"),r=pe(),{id:o,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:f,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,size:g,rules:b}=Zt(e),{mergedSize:S}=ga(g),k=j(()=>e.layout==="horizontal"&&e.autoLabelWidth),C=[],E=[],x=Ht({}),_=j(()=>Math.max(...Object.values(x))),A=te=>{te&&te.field&&C.push(te)},R=te=>{te&&te.field&&C.splice(C.indexOf(te),1)},M=te=>{C.forEach(X=>{te[X.field]&&X.setField(te[X.field])})},D=(te,X)=>{X&&x[X]!==te&&(x[X]=te)},$=te=>{te&&delete x[te]},L=te=>{const X=te?[].concat(te):[];C.forEach(K=>{(X.length===0||X.includes(K.field))&&K.resetField()})},B=te=>{const X=te?[].concat(te):[];C.forEach(K=>{(X.length===0||X.includes(K.field))&&K.clearValidate()})},F=(te,X)=>{const J=(r.value||document.body).querySelector(`#${yhe(e.id,te)}`);J&&ghe(J,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...X})},U=te=>{const X=ml(e.scrollToFirstError)?void 0:e.scrollToFirstError;F(te,X)},z=te=>{const X=[];return C.forEach(K=>{X.push(K.validate())}),Promise.all(X).then(K=>{const J={};let ie=!1;return K.forEach(se=>{se&&(ie=!0,J[se.field]=se)}),ie&&e.scrollToFirstError&&U(Object.keys(J)[0]),pn(te)&&te(ie?J:void 0),ie?J:void 0})},G=(te,X)=>{const K=[];for(const J of C)(qn(te)&&te.includes(J.field)||te===J.field)&&K.push(J.validate());return Promise.all(K).then(J=>{const ie={};let se=!1;return J.forEach(ae=>{ae&&(se=!0,ie[ae.field]=ae)}),se&&e.scrollToFirstError&&U(Object.keys(ie)[0]),pn(X)&&X(se?ie:void 0),se?ie:void 0})},Y=te=>{const X=[];C.forEach(K=>{X.push(K.validate())}),Promise.all(X).then(K=>{const J={};let ie=!1;K.forEach(se=>{se&&(ie=!0,J[se.field]=se)}),ie?(e.scrollToFirstError&&U(Object.keys(J)[0]),t("submitFailed",{values:a.value,errors:J},te)):t("submitSuccess",a.value,te),t("submit",{values:a.value,errors:ie?J:void 0},te)})};return Gr(rz,Ht({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:E,addField:A,removeField:R,validateField:G,setLabelWidth:D,removeLabelWidth:$,maxLabelWidth:_,autoLabelWidth:k})),{cls:j(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${S.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:Y,innerValidate:z,innerValidateField:G,innerResetFields:L,innerClearValidate:B,innerSetFields:M,innerScrollToField:F}},methods:{validate(e){return this.innerValidate(e)},validateField(e,t){return this.innerValidateField(e,t)},resetFields(e){return this.innerResetFields(e)},clearValidate(e){return this.innerClearValidate(e)},setFields(e){return this.innerSetFields(e)},scrollToField(e){return this.innerScrollToField(e)}}}),g$e=["id"];function y$e(e,t,n,r,o,a){return H(),Q("form",{id:e.id,ref:"formRef",class:le(e.cls),onSubmit:t[0]||(t[0]=es((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[ft(e.$slots,"default")],42,g$e)}var AD=$e(m$e,[["render",y$e]]),K1=Object.prototype.toString;function z3(e){return K1.call(e)==="[object Array]"}function Sh(e){return K1.call(e)==="[object Object]"}function aj(e){return K1.call(e)==="[object String]"}function b$e(e){return K1.call(e)==="[object Number]"&&e===e}function _$e(e){return K1.call(e)==="[object Boolean]"}function lj(e){return K1.call(e)==="[object Function]"}function S$e(e){return Sh(e)&&Object.keys(e).length===0}function Im(e){return e==null||e===""}function bhe(e){return z3(e)&&!e.length}var Cz=function(e,t){if(typeof e!="object"||typeof t!="object")return e===t;if(lj(e)&&lj(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=Cz(e[n],t[n]);if(!r)return!1}return!0},Ez=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(r){var o=n[r],a=t?.[r];n[r]=Sh(o)?Object.assign(Object.assign({},o),a):a||o}),n},k$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})(Td),E$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"number"})),this.validate(o&&o.strict?b$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 Im(this.obj)?this:this.validate(this.obj>=o,this.getValidateMsg("number.min",{min:o}))},t.prototype.max=function(o){return Im(this.obj)?this:this.validate(this.obj<=o,this.getValidateMsg("number.max",{max:o}))},t.prototype.equal=function(o){return Im(this.obj)?this:this.validate(this.obj===o,this.getValidateMsg("number.equal",{equal:o}))},t.prototype.range=function(o,a){return Im(this.obj)?this:this.validate(this.obj>=o&&this.obj<=a,this.getValidateMsg("number.range",{min:o,max:a}))},n.positive.get=function(){return Im(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return Im(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t})(Td),x$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"array"})),this.validate(o&&o.strict?z3(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(Cz(this.obj,o),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:o})):this},n.empty.get=function(){return this.validate(bhe(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})(Td),T$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"object"})),this.validate(o&&o.strict?Sh(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(Cz(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(S$e(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t})(Td),A$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"boolean"})),this.validate(o&&o.strict?_$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})(Td),I$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,}))$/,L$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"),P$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}$/,R$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||I$e.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||L$e.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||P$e.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})(Td),M$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})(Td),KA=function(e,t){return new _he(e,Object.assign({field:"value"},t))};KA.globalConfig={};KA.setGlobalConfig=function(e){KA.globalConfig=e||{}};var _he=function(t,n){var r=KA.globalConfig,o=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:Ez(r.validateMessages,n.validateMessages)});this.string=new C$e(t,o),this.number=new E$e(t,o),this.array=new x$e(t,o),this.object=new T$e(t,o),this.boolean=new A$e(t,o),this.type=new R$e(t,o),this.custom=new M$e(t,o)},xz=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};xz.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:Ez(this.options.validateMessages,t)})};xz.prototype.validate=function(t,n){var r=this;if(!Sh(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(z3(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 _he(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(E){m.required&&(C=C.isRequired),E!=="message"&&C[E]&&m[E]&&typeof C[E]=="object"&&(C=C[E]),C[E]&&m[E]!==void 0&&typeof C[E]=="function"&&(C=C[E](m[E]))}),C.collect(function(E){E&&s(l,E)}),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 She=Symbol("RowContextInjectionKey"),khe=Symbol("GridContextInjectionKey"),whe=Symbol("GridDataCollectorInjectionKey"),D$e=be({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}=Zt(e),s=Te("row"),l=j(()=>({[`${s}`]:!o.value,[`${s}-nowrap`]:!a.value,[`${s}-align-${n.value}`]:n.value,[`${s}-justify-${r.value}`]:r.value})),c=j(()=>Array.isArray(t.value)?t.value[0]:t.value),f=j(()=>Array.isArray(t.value)?t.value[1]:0),h=_h(c,0),p=_h(f,0),m=j(()=>{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=j(()=>[h.value,p.value]);return Gr(She,Ht({gutter:g,div:o})),{classNames:l,styles:m}}});function O$e(e,t,n,r,o,a){return H(),Q("div",{class:le(e.classNames),style:Ve(e.styles)},[ft(e.$slots,"default")],6)}var jS=$e(D$e,[["render",O$e]]);function $$e(e){return j(()=>{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 WA.forEach(p=>{const m=e.value[p];Ke(m)?h[p]=m:lr(m)&&Ke(m[r])&&(h[p]=m[r])}),h})}function N$e(e){if(ts(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||Ke(e))return e;if(ts(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const B$e=be({name:"Col",props:{span:{type:Number,default:24},offset:{type:Number},order:{type:Number},xs:{type:[Number,Object]},sm:{type:[Number,Object]},md:{type:[Number,Object]},lg:{type:[Number,Object]},xl:{type:[Number,Object]},xxl:{type:[Number,Object]},flex:{type:[Number,String]}},setup(e){const t=Te("col"),n=xn(She,{}),r=j(()=>N$e(e.flex)),o=j(()=>{const{div:p}=n,{span:m,offset:g,order:b,xs:S,sm:k,md:C,lg:E,xl:x,xxl:_}=e,A={[`${t}`]:!p,[`${t}-order-${b}`]:b,[`${t}-${m}`]:!p&&!S&&!k&&!C&&!E&&!x&&!_,[`${t}-offset-${g}`]:g&&g>0},R={xs:S,sm:k,md:C,lg:E,xl:x,xxl:_};return Object.keys(R).forEach(M=>{const D=R[M];D&&Ke(D)?A[`${t}-${M}-${D}`]=!0:D&&lr(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=j(()=>r.value?t:o.value),s=j(()=>{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=j(()=>r.value?{flex:r.value}:{}),c=j(()=>hf(e,WA)),f=$$e(j(()=>({val:e.span,key:"span",...c.value}))),h=_h(f,24,!0);return{visible:j(()=>!!h.value),classNames:a,styles:j(()=>({...s.value,...l.value}))}}});function F$e(e,t,n,r,o,a){return e.visible?(H(),Q("div",{key:0,class:le(e.classNames),style:Ve(e.styles)},[ft(e.$slots,"default")],6)):Oe("v-if",!0)}var US=$e(B$e,[["render",F$e]]);function j$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 U$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 V$e=be({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}=Zt(e),s=_h(t,24),l=_h(r,0),c=_h(n,0),f=Te("grid"),h=j(()=>[f]),p=j(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),m=Ht(new Map),g=j(()=>{const S=[];for(const[k,C]of m.entries())S[k]=C;return S}),b=Ht({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return Cs(()=>{b.cols=s.value,b.colGap=l.value}),Cs(()=>{const S=U$e({cols:s.value,collapsed:a.value,collapsedRows:o.value,itemDataList:g.value});b.overflow=S.overflow,b.displayIndexList=S.displayIndexList}),Gr(khe,b),Gr(whe,{collectItemData(S,k){m.set(S,k)},removeItemData(S){m.delete(S)}}),{classNames:h,style:p}}});function z$e(e,t,n,r,o,a){return H(),Q("div",{class:le(e.classNames),style:Ve(e.style)},[ft(e.$slots,"default")],6)}var ID=$e(V$e,[["render",z$e]]);const H$e=be({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=Te("grid-item"),n=pe(),{computedIndex:r}=uz({itemRef:n,selector:`.${t}`}),o=xn(khe,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=xn(whe),s=j(()=>{var k;return(k=o?.displayIndexList)==null?void 0:k.includes(r.value)}),{span:l,offset:c}=Zt(e),f=_h(l,1),h=_h(c,0),p=j(()=>j$e(o.cols,{...e,span:f.value,offset:h.value})),m=j(()=>[t]),g=j(()=>{const{offset:k,span:C}=p.value,{colGap:E}=o;return k>0?{"margin-left":`calc((${`(100% - ${E*(C-1)}px) / ${C}`} * ${k}) + ${E*k}px)`}:{}}),b=j(()=>{const{suffix:k,span:C}=p.value,{cols:E}=o;return k?`${E-C+1}`:`span ${C}`}),S=j(()=>{const{span:k}=p.value;return n.value?[{"grid-column":`${b.value} / span ${k}`},g.value,!s.value||k===0?{display:"none"}:{}]:[]});return Cs(()=>{r.value!==-1&&a?.collectItemData(r.value,p.value)}),hi(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:m,style:S,domRef:n,overflow:j(()=>o.overflow)}}});function W$e(e,t,n,r,o,a){return H(),Q("div",{ref:"domRef",class:le(e.classNames),style:Ve(e.style)},[ft(e.$slots,"default",{overflow:e.overflow})],6)}var d4=$e(H$e,[["render",W$e]]);const hS=Object.assign(ID,{Row:jS,Col:US,Item:d4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+jS.name,jS),e.component(n+US.name,US),e.component(n+ID.name,ID),e.component(n+d4.name,d4)}}),G$e=be({name:"Tooltip",components:{Trigger:sa},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},content:String,position:{type:String,default:"top"},mini:{type:Boolean,default:!1},backgroundColor:{type:String},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Te("tooltip"),r=pe(e.defaultPopupVisible),o=j(()=>{var h;return(h=e.popupVisible)!=null?h:r.value}),a=h=>{r.value=h,t("update:popupVisible",h),t("popupVisibleChange",h)},s=j(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),l=j(()=>{if(e.backgroundColor||e.contentStyle)return{backgroundColor:e.backgroundColor,...e.contentStyle}}),c=j(()=>[`${n}-popup-arrow`,e.arrowClass]),f=j(()=>{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 K$e(e,t,n,r,o,a){const s=Me("Trigger");return H(),Xe(s,{class:le(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(()=>[ft(e.$slots,"content",{},()=>[We(Be(e.content),1)])]),default:de(()=>[ft(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var LD=$e(G$e,[["render",K$e]]);const jc=Object.assign(LD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+LD.name,LD)}}),q$e=be({name:"IconQuestionCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Y$e=["stroke-width","stroke-linecap","stroke-linejoin"];function X$e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Y$e)}var PD=$e(q$e,[["render",X$e]]);const Che=Object.assign(PD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PD.name,PD)}}),Z$e=be({name:"FormItemLabel",components:{ResizeObserver:cv,Tooltip:jc,IconQuestionCircle:Che},props:{required:{type:Boolean,default:!1},showColon:{type:Boolean,default:!1},component:{type:String,default:"label"},asteriskPosition:{type:String,default:"start"},tooltip:{type:String},attrs:Object},setup(){const e=Te("form-item-label"),t=xn(rz,void 0),n=uo(),r=pe(),o=()=>{r.value&&Ke(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return dn(()=>{r.value&&Ke(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),$o(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:o}}});function J$e(e,t,n,r,o,a){const s=Me("icon-question-circle"),l=Me("Tooltip"),c=Me("ResizeObserver");return H(),Xe(c,{onResize:e.handleResize},{default:de(()=>[(H(),Xe($a(e.component),Nt({ref:"labelRef",class:e.prefixCls},e.attrs),{default:de(()=>[e.required&&e.asteriskPosition==="start"?(H(),Q("strong",{key:0,class:le(`${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)):Oe("v-if",!0),ft(e.$slots,"default"),e.tooltip?(H(),Xe(l,{key:1,content:e.tooltip},{default:de(()=>[O(s,{class:le(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Oe("v-if",!0),e.required&&e.asteriskPosition==="end"?(H(),Q("strong",{key:2,class:le(`${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)):Oe("v-if",!0),We(" "+Be(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var Q$e=$e(Z$e,[["render",J$e]]);const eNe=be({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:Te("form-item-message")}}});function tNe(e,t,n,r,o,a){return e.error.length>0?(H(!0),Q(Ft,{key:0},fn(e.error,s=>(H(),Xe(Es,{key:s,name:"form-blink",appear:""},{default:de(()=>[I("div",{role:"alert",class:le([e.prefixCls])},Be(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(H(),Xe(Es,{key:1,name:"form-blink",appear:""},{default:de(()=>[I("div",{class:le([e.prefixCls,`${e.prefixCls}-help`])},[ft(e.$slots,"help",{},()=>[We(Be(e.help),1)])],2)]),_:3})):Oe("v-if",!0)}var nNe=$e(eNe,[["render",tNe]]);const rNe=be({name:"FormItem",components:{ArcoRow:jS,ArcoCol:US,FormItemLabel:Q$e,FormItemMessage:nNe},props:{field:{type:String,default:""},label:String,tooltip:{type:String},showColon:{type:Boolean,default:!1},noStyle:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},help:String,extra:String,required:{type:Boolean,default:!1},asteriskPosition:{type:String,default:"start"},rules:{type:[Object,Array]},validateStatus:{type:String},validateTrigger:{type:[String,Array],default:"change"},labelColProps:Object,wrapperColProps:Object,hideLabel:{type:Boolean,default:!1},hideAsterisk:{type:Boolean,default:!1},labelColStyle:Object,wrapperColStyle:Object,rowProps:Object,rowClass:[String,Array,Object],contentClass:[String,Array,Object],contentFlex:{type:Boolean,default:!0},mergeProps:{type:[Boolean,Function],default:!0},labelColFlex:{type:[Number,String]},feedback:{type:Boolean,default:!1},labelComponent:{type:String,default:"label"},labelAttrs:Object},setup(e){const t=Te("form-item"),{field:n}=Zt(e),r=xn(rz,{}),{autoLabelWidth:o,layout:a}=Zt(r),{i18nMessage:s}=Ao(),l=j(()=>{var K;const J={...(K=e.labelColProps)!=null?K:r.labelColProps};return e.labelColFlex?J.flex=e.labelColFlex:r.autoLabelWidth&&(J.flex=`${r.maxLabelWidth}px`),J}),c=j(()=>{var K;const J={...(K=e.wrapperColProps)!=null?K:r.wrapperColProps};return n.value&&(J.id=yhe(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(J.flex="auto"),J}),f=j(()=>{var K;return(K=e.labelColStyle)!=null?K:r.labelColStyle}),h=j(()=>{var K;return(K=e.wrapperColStyle)!=null?K:r.wrapperColStyle}),p=tg(r.model,e.field),m=Ht({}),g=Ht({}),b=j(()=>p$e(m)),S=j(()=>v$e(g)),k=pe(!1),C=j(()=>tg(r.model,e.field)),E=j(()=>{var K;return!!((K=e.disabled)!=null?K:r?.disabled)}),x=j(()=>{var K;return(K=e.validateStatus)!=null?K:b.value}),_=j(()=>x.value==="error"),A=j(()=>{var K,J,ie;const se=[].concat((ie=(J=e.rules)!=null?J:(K=r?.rules)==null?void 0:K[e.field])!=null?ie:[]),ae=se.some(Ce=>Ce.required);return e.required&&!ae?[{required:!0}].concat(se):se}),R=j(()=>A.value.some(K=>K.required)),M=e.noStyle?xn(ZF,void 0):void 0,D=(K,{status:J,message:ie})=>{m[K]=J,g[K]=ie,e.noStyle&&M?.updateValidateState(K,{status:J,message:ie})},$=j(()=>e.feedback&&x.value?x.value:void 0),L=()=>{var K;if(k.value)return Promise.resolve();const J=A.value;if(!n.value||J.length===0)return b.value&&U(),Promise.resolve();const ie=n.value,se=C.value;D(ie,{status:"",message:""});const ae=new xz({[ie]:J.map(({...Ce})=>(!Ce.type&&!Ce.validator&&(Ce.type="string"),Ce))},{ignoreEmptyString:!0,validateMessages:(K=s.value.form)==null?void 0:K.validateMessages});return new Promise(Ce=>{ae.validate({[ie]:se},ke=>{var ve;const Ie=!!ke?.[ie];D(ie,{status:Ie?"error":"",message:(ve=ke?.[ie].message)!=null?ve:""});const Ne=Ie?{label:e.label,field:n.value,value:ke[ie].value,type:ke[ie].type,isRequiredError:!!ke[ie].requiredError,message:ke[ie].message}:void 0;Ce(Ne)})})},B=j(()=>[].concat(e.validateTrigger)),F=j(()=>B.value.reduce((K,J)=>{switch(J){case"change":return K.onChange=()=>{L()},K;case"input":return K.onInput=()=>{kn(()=>{L()})},K;case"focus":return K.onFocus=()=>{L()},K;case"blur":return K.onBlur=()=>{L()},K;default:return K}},{}));Gr(ZF,Ht({eventHandlers:F,size:r&&wu(r,"size"),disabled:E,error:_,feedback:$,updateValidateState:D}));const U=()=>{n.value&&D(n.value,{status:"",message:""})},Y=Ht({field:n,disabled:E,error:_,validate:L,clearValidate:U,resetField:()=>{U(),k.value=!0,r?.model&&n.value&&HA(r.model,n.value,p),kn(()=>{k.value=!1})},setField:K=>{var J,ie;n.value&&(k.value=!0,"value"in K&&r?.model&&n.value&&HA(r.model,n.value,K.value),(K.status||K.message)&&D(n.value,{status:(J=K.status)!=null?J:"",message:(ie=K.message)!=null?ie:""}),kn(()=>{k.value=!1}))}});dn(()=>{var K;Y.field&&((K=r.addField)==null||K.call(r,Y))}),$o(()=>{var K;Y.field&&((K=r.removeField)==null||K.call(r,Y))});const re=j(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:_.value,[`${t}-status-${x.value}`]:!!x.value},e.rowClass]),te=j(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),X=j(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:re,isRequired:R,isError:_,finalMessage:S,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:te,autoLabelWidth:o,layout:a,mergedLabelStyle:f,wrapperColCls:X,mergedWrapperStyle:h}}});function iNe(e,t,n,r,o,a){var s;const l=Me("FormItemLabel"),c=Me("ArcoCol"),f=Me("FormItemMessage"),h=Me("ArcoRow");return e.noStyle?ft(e.$slots,"default",{key:0}):(H(),Xe(h,Nt({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?Oe("v-if",!0):(H(),Xe(c,Nt({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?ft(e.$slots,"label",{key:0},()=>[We(Be(e.label),1)]):Oe("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),O(c,Nt({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:de(()=>[I("div",{class:le(`${e.prefixCls}-content-wrapper`)},[I("div",{class:le([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[ft(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(H(),Xe(f,{key:0,error:e.finalMessage,help:e.help},yo({_:2},[e.$slots.help?{name:"help",fn:de(()=>[ft(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):Oe("v-if",!0),e.$slots.extra||e.extra?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra",{},()=>[We(Be(e.extra),1)])],2)):Oe("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var f4=$e(rNe,[["render",iNe]]);const oNe=Object.assign(AD,{Item:f4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+AD.name,AD),e.component(n+f4.name,f4)}}),sNe=be({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=Te("icon"),n=j(()=>{const o={};return e.size&&(o.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(o.transform=`rotate(${e.rotate}deg)`),o});return{cls:j(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function aNe(e,t,n,r,o,a){return H(),Q("svg",{class:le(e.cls),style:Ve(e.innerStyle),fill:"currentColor"},[ft(e.$slots,"default")],6)}var h4=$e(sNe,[["render",aNe]]);function lNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}const fne=[],uNe=e=>{const{src:t,extraProps:n={}}=e;if(!Ak&&t?.length&&!fne.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),fne.push(t),document.body.appendChild(r)}return be({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(h4,Nt(r,n),lNe(s)?s:{default:()=>[s]})}}})},Ehe=Object.assign(h4,{addFromIconFontCn:uNe,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+h4.name,h4)}}),cNe=be({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:Te("image-footer")}}}),dNe=["title"],fNe=["title"];function hNe(e,t,n,r,o,a){return H(),Q("div",{class:le(e.prefixCls)},[e.title||e.description?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-caption`)},[e.title?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-caption-title`),title:e.title},Be(e.title),11,dNe)):Oe("v-if",!0),e.description?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-caption-description`),title:e.description},Be(e.description),11,fNe)):Oe("v-if",!0)],2)):Oe("v-if",!0),e.$slots.extra?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra")],2)):Oe("v-if",!0)],2)}var pNe=$e(cNe,[["render",hNe]]);const vNe=be({name:"ImagePreviewArrow",components:{IconLeft:Hl,IconRight:Mi},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:Te("image-preview-arrow")}}});function mNe(e,t,n,r,o,a){const s=Me("icon-left"),l=Me("icon-right");return H(),Q("div",{class:le(e.prefixCls)},[I("div",{class:le([`${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:le([`${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 gNe=$e(vNe,[["render",mNe]]);function yNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var qA=be({name:"ImagePreviewAction",components:{Tooltip:jc},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const r=Te("image-preview-toolbar-action");return()=>{var o;const{name:a,disabled:s}=e,l=(o=t.default)==null?void 0:o.call(t);if(!l||!l.length)return null;const c=O("div",Nt({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:f=>{f.preventDefault()}},n),[O("span",{class:`${r}-content`},[l])]);return a?O(jc,{class:`${r}-tooltip`,content:a},yNe(c)?c:{default:()=>[c]}):c}}}),bNe=be({name:"ImagePreviewToolbar",components:{RenderFunction:Uh,PreviewAction:qA},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=Zt(e),r=Te("image-preview-toolbar"),o=j(()=>{const a=new Set(n.value),s=c=>a.has(c.key);return t.value.filter(s).sort((c,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 _Ne(e,t,n,r,o,a){const s=Me("RenderFunction"),l=Me("PreviewAction");return H(),Q("div",{class:le(e.prefixCls)},[(H(!0),Q(Ft,null,fn(e.resultActions,c=>(H(),Xe(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)),ft(e.$slots,"default")],2)}var SNe=$e(bNe,[["render",_Ne]]);function xhe(e){const t=pe("beforeLoad"),n=j(()=>t.value==="beforeLoad"),r=j(()=>t.value==="loading"),o=j(()=>t.value==="error"),a=j(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:r,isError:o,isLoaded:a,setLoadStatus:s=>{t.value=s}}}function kNe(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]=kNe(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],ki(window,"mousemove",h,!1),ki(window,"mouseup",p,!1))};function g(){Gi(window,"mousemove",h,!1),Gi(window,"mouseup",p,!1)}return Cs(b=>{n.value&&ki(n.value,"mousedown",m),b(()=>{n.value&&Gi(n.value,"mousedown",m),g()})}),Dt([r],()=>{kn(()=>f())}),{translate:o,moving:a,resetTranslate(){o.value=[0,0]}}}const CNe=be({name:"IconZoomOut",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 xNe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 RD=$e(CNe,[["render",xNe]]);const The=Object.assign(RD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RD.name,RD)}}),TNe=be({name:"IconZoomIn",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ANe=["stroke-width","stroke-linecap","stroke-linejoin"];function INe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ANe)}var MD=$e(TNe,[["render",INe]]);const Ahe=Object.assign(MD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MD.name,MD)}}),LNe=be({name:"IconFullscreen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PNe=["stroke-width","stroke-linecap","stroke-linejoin"];function RNe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,PNe)}var DD=$e(LNe,[["render",RNe]]);const W3=Object.assign(DD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DD.name,DD)}}),MNe=be({name:"IconRotateLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DNe=["stroke-width","stroke-linecap","stroke-linejoin"];function ONe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,DNe)}var OD=$e(MNe,[["render",ONe]]);const Ihe=Object.assign(OD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OD.name,OD)}}),$Ne=be({name:"IconRotateRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NNe=["stroke-width","stroke-linecap","stroke-linejoin"];function BNe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,NNe)}var $D=$e($Ne,[["render",BNe]]);const Lhe=Object.assign($D,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$D.name,$D)}}),FNe=be({name:"IconOriginalSize",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jNe=["stroke-width","stroke-linecap","stroke-linejoin"];function UNe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,jNe)}var ND=$e(FNe,[["render",UNe]]);const Phe=Object.assign(ND,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ND.name,ND)}});function VNe(e){const{container:t,hidden:n}=Zt(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 Cs(c=>{n.value?s():l(),c(()=>{l()})}),[l,s]}function zNe(e,t){const{popupContainer:n}=Zt(t);return j(()=>(ts(n.value)?ofe(n.value):n.value)||e)}const pd=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),Rhe=pd[0],Mhe=pd[pd.length-1];function HNe(e=1,t="zoomIn"){let n=pd.indexOf(e);return n===-1&&(n=GNe(e)),t==="zoomIn"?n===pd.length-1?e:pd[n+1]:n===0?e:pd[n-1]}function WNe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,o=Number.parseFloat((e*r).toFixed(3));return Math.min(Mhe,Math.max(Rhe,o))}function GNe(e){let t=pd.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}=Ao(),{src:r,popupContainer:o,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:f,zoomRate:h}=Zt(e),p=pe(),m=pe(),g=Te("image-preview"),[b,S]=oa(s.value,Ht({value:a})),k=j(()=>[g,{[`${g}-hide`]:!b.value}]),C=zNe(document.body,Ht({popupContainer:o})),E=j(()=>C.value===document.body),{zIndex:x}=H1("dialog",{visible:b}),_=j(()=>({...E.value?{zIndex:x.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:A,isLoaded:R,setLoadStatus:M}=xhe(),D=pe(0),$=pe(f.value),{translate:L,moving:B,resetTranslate:F}=wNe(Ht({wrapperEl:p,imageEl:m,visible:b,scale:$})),U=pe(!1);let z=null;const G=()=>{!U.value&&(U.value=!0),z&&clearTimeout(z),z=setTimeout(()=>{U.value=!1},1e3)};VNe(Ht({container:C,hidden:b}));function Y(){D.value=0,$.value=f.value,F()}const re=Ne=>c.value.includes(Ne),te=Ne=>{switch(Ne.stopPropagation(),Ne.preventDefault(),Ne.key){case Do.ESC:e.escToClose&&se();break;case Do.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case Do.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case Do.ARROW_UP:re("zoomIn")&&Ie("zoomIn");break;case Do.ARROW_DOWN:re("zoomOut")&&Ie("zoomOut");break;case Do.SPACE:re("originalSize")&&Ce(1);break}},X=gg(Ne=>{if(Ne.preventDefault(),Ne.stopPropagation(),!e.wheelZoom)return;const Ze=(Ne.deltaY||Ne.deltaX)>0?"zoomOut":"zoomIn",Ge=WNe($.value,h.value,Ze);Ce(Ge)});let K=!1;const J=()=>{kn(()=>{var Ne;(Ne=p?.value)==null||Ne.focus()}),e.keyboard&&!K&&(K=!0,ki(C.value,"keydown",te))},ie=()=>{K&&(K=!1,Gi(C.value,"keydown",te))};Dt([r,b],()=>{b.value?(Y(),M("loading"),J()):ie()});function se(){b.value&&(t("close"),t("update:visible",!1),S(!1))}function ae(Ne){var Ye;(Ye=p?.value)==null||Ye.focus(),l.value&&Ne.target===Ne.currentTarget&&se()}function Ce(Ne){$.value!==Ne&&($.value=Ne,G())}function ke(){const Ne=p.value.getBoundingClientRect(),Ye=m.value.getBoundingClientRect(),Ze=Ne.height/(Ye.height/$.value),Ge=Ne.width/(Ye.width/$.value),_e=Math.max(Ze,Ge);Ce(_e)}function ve(Ne){const Ze=Ne==="clockwise"?(D.value+BD)%360:D.value===0?360-BD:D.value-BD;D.value=Ze}function Ie(Ne){const Ye=HNe($.value,Ne);Ce(Ye)}return $o(()=>{ie()}),{prefixCls:g,classNames:k,container:C,wrapperStyles:_,scale:$,translate:L,rotate:D,moving:B,mergedVisible:b,isLoading:A,isLoaded:R,scaleValueVisible:U,refWrapper:p,refImage:m,onWheel:X,onMaskClick:ae,onCloseClick:se,onImgLoad(){M("loaded")},onImgError(){M("error")},actions:j(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>ia(W3),onClick:()=>ke()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>ia(Lhe),onClick:()=>ve("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>ia(Ihe),onClick:()=>ve("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>ia(Ahe),onClick:()=>Ie("zoomIn"),disabled:$.value===Mhe},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>ia(The),onClick:()=>Ie("zoomOut"),disabled:$.value===Rhe},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>ia(Phe),onClick:()=>Ce(1)}])}}});const qNe=["src"];function YNe(e,t,n,r,o,a){const s=Me("IconLoading"),l=Me("PreviewToolbar"),c=Me("IconClose"),f=Me("PreviewArrow");return H(),Xe(Og,{to:e.container,disabled:!e.renderToBody},[I("div",{class:le(e.classNames),style:Ve(e.wrapperStyles)},[O(Es,{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(()=>[wi(I("div",{class:le(`${e.prefixCls}-mask`)},null,2),[[Qo,e.mergedVisible]])]),_:1}),e.mergedVisible?(H(),Q("div",{key:0,ref:"refWrapper",tabindex:"0",class:le(`${e.prefixCls}-wrapper`),onClick:t[6]||(t[6]=(...h)=>e.onMaskClick&&e.onMaskClick(...h)),onWheel:t[7]||(t[7]=es((...h)=>e.onWheel&&e.onWheel(...h),["prevent","stop"]))},[Oe(" img "),I("div",{class:le(`${e.prefixCls}-img-container`),style:Ve({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(H(),Q("img",{ref:"refImage",key:e.src,src:e.src,class:le([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:Ve({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,qNe))],6),Oe(" loading "),e.isLoading?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-loading`)},[O(s)],2)):Oe("v-if",!0),Oe(" scale value "),O(Es,{name:"image-fade"},{default:de(()=>[e.scaleValueVisible?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-scale-value`)},Be((e.scale*100).toFixed(0))+"% ",3)):Oe("v-if",!0)]),_:1}),Oe(" toolbar "),e.isLoaded&&e.actionsLayout.length?(H(),Xe(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:de(()=>[ft(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Oe("v-if",!0),Oe(" close btn "),e.closable?(H(),Q("div",{key:2,class:le(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[O(c)],2)):Oe("v-if",!0),Oe(" group arrow "),e.inGroup?(H(),Xe(f,Ni(Nt({key:3},e.groupArrowProps)),null,16)):Oe("v-if",!0)],34)):Oe("v-if",!0)],6)],8,["to","disabled"])}var Wy=$e(KNe,[["render",YNe]]);function hne(e){if(mn(e))return;if(!Ke(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return Ke(t)?`${t}px`:void 0}const Dhe=Symbol("PreviewGroupInjectionKey");let XNe=0;const ZNe=be({name:"Image",components:{IconImageClose:O3,IconLoading:ja,ImageFooter:pNe,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}=Ao(),{height:a,width:s,hideFooter:l,title:c,description:f,src:h,footerPosition:p,defaultPreviewVisible:m,previewVisible:g,preview:b,previewProps:S}=Zt(e),k=xn(Dhe,void 0),C=Te("image"),E=pe(),{isLoaded:x,isError:_,isLoading:A,setLoadStatus:R}=xhe(),M=j(()=>({width:hne(s?.value),height:hne(a?.value)})),D=j(()=>e.fit?{objectFit:e.fit}:{}),$=j(()=>[`${C}`,{[`${C}-loading`]:A.value,[`${C}-loading-error`]:_.value,[`${C}-with-footer-inner`]:x&&B&&p.value==="inner",[`${C}-with-footer-outer`]:x&&B&&p.value==="outer"},t.class]),L=j(()=>[M.value,t.style]),B=j(()=>c?.value||f?.value||n.extra?ml(l.value)?!l.value&&x.value:l.value==="never":!1),F=j(()=>va(t,["class","style"])),[U,z]=oa(m.value,Ht({value:g})),G=j(()=>!k?.preview&&b.value);Cs(()=>{Ak||!E.value||(E.value.src=h?.value,R("loading"))});const Y=XNe++;Cs(J=>{var ie,se,ae;const Ce=(ae=k?.registerImageUrl)==null?void 0:ae.call(k,Y,((se=(ie=S?.value)==null?void 0:ie.src)!=null?se:h?.value)||"",b.value);J(()=>{Ce?.()})});function re(){R("loaded")}function te(){R("error")}function X(){b.value&&(k?.preview?k.preview(Y):(r("preview-visible-change",!0),z(!0)))}function K(){r("preview-visible-change",!1),z(!1)}return{t:o,refImg:E,prefixCls:C,wrapperClassNames:$,wrapperStyles:L,showFooter:B,imgProps:F,imgStyle:M,isLoaded:x,isError:_,isLoading:A,mergedPreviewVisible:U,mergePreview:G,onImgLoaded:re,onImgLoadError:te,onImgClick:X,onPreviewClose:K,fitStyle:D}}}),JNe=["title","alt"];function QNe(e,t,n,r,o,a){const s=Me("IconImageClose"),l=Me("IconLoading"),c=Me("ImageFooter"),f=Me("ImagePreview");return H(),Q("div",{class:le(e.wrapperClassNames),style:Ve(e.wrapperStyles)},[I("img",Nt({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?Oe("v-if",!0):(H(),Q("div",{key:0,class:le(`${e.prefixCls}-overlay`)},[e.isError?ft(e.$slots,"error",{key:0},()=>[I("div",{class:le(`${e.prefixCls}-error`)},[I("div",{class:le(`${e.prefixCls}-error-icon`)},[ft(e.$slots,"error-icon",{},()=>[O(s)])],2),e.alt||e.description?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-error-alt`)},Be(e.alt||e.description),3)):Oe("v-if",!0)],2)]):Oe("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?ft(e.$slots,"loader",{key:1},()=>[I("div",{class:le([`${e.prefixCls}-loader`])},[I("div",{class:le(`${e.prefixCls}-loader-spin`)},[O(l),I("div",{class:le(`${e.prefixCls}-loader-spin-text`)},Be(e.t("image.loading")),3)],2)],2)]):Oe("v-if",!0)],2)),e.showFooter?(H(),Xe(c,{key:1,class:le(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},yo({_:2},[e.$slots.extra?{name:"extra",fn:de(()=>[ft(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):Oe("v-if",!0),e.isLoaded&&e.mergePreview?(H(),Xe(f,Nt({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:de(()=>[ft(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Oe("v-if",!0)],6)}var FD=$e(ZNe,[["render",QNe]]),eBe=be({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}=Zt(e),[c,f]=oa(o.value,Ht({value:r})),h=L=>{L!==c.value&&(t("visible-change",L),t("update:visible",L),f(L))},p=j(()=>new Map(qn(n?.value)?n?.value.map((L,B)=>[B,{url:L,canPreview:!0}]):[])),m=pe(new Map(p.value||[])),g=j(()=>Array.from(m.value.keys())),b=j(()=>g.value.length);function S(L,B,F){return p.value.has(L)||m.value.set(L,{url:B,canPreview:F}),function(){p.value.has(L)||m.value.delete(L)}}Dt(p,()=>{m.value=new Map(p.value||[])});const[k,C]=oa(s.value,Ht({value:a})),E=L=>{L!==k.value&&(t("change",L),t("update:current",L),C(L))},x=j(()=>g.value[k.value]),_=L=>{const B=g.value.indexOf(L);B!==k.value&&E(B)},A=j(()=>{var L;return(L=m.value.get(x.value))==null?void 0:L.url});Gr(Dhe,Ht({registerImageUrl:S,preview:L=>{h(!0),_(L)}}));const R=j(()=>{const L=(F,U)=>{var z;for(let G=F;G<=U;G++){const Y=g.value[G];if((z=m.value.get(Y))!=null&&z.canPreview)return G}},B=L(k.value+1,b.value-1);return mn(B)&&l.value?L(0,k.value-1):B}),M=j(()=>{const L=(F,U)=>{var z;for(let G=F;G>=U;G--){const Y=g.value[G];if((z=m.value.get(Y))!=null&&z.canPreview)return G}},B=L(k.value-1,0);return mn(B)&&l.value?L(b.value-1,k.value+1):B}),D=j(()=>mn(M.value)?void 0:()=>{!mn(M.value)&&E(M.value)}),$=j(()=>mn(R.value)?void 0:()=>{!mn(R.value)&&E(R.value)});return{mergedVisible:c,currentUrl:A,prevIndex:M,nextIndex:R,onClose(){h(!1)},groupArrowProps:Ht({onPrev:D,onNext:$})}}});function tBe(e,t,n,r,o,a){const s=Me("ImagePreview");return H(),Q(Ft,null,[ft(e.$slots,"default"),O(s,Nt({...e.$attrs,groupArrowProps:e.groupArrowProps},{"in-group":"",src:e.currentUrl,visible:e.mergedVisible,"mask-closable":e.maskClosable,closable:e.closable,"actions-layout":e.actionsLayout,"popup-container":e.popupContainer,"render-to-body":e.renderToBody,onClose:e.onClose}),yo({_:2},[e.$slots.actions?{name:"actions",fn:de(()=>[ft(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 VS=$e(eBe,[["render",tBe]]);const nBe=Object.assign(FD,{Preview:Wy,PreviewGroup:VS,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+FD.name,FD),e.component(n+Wy.name,Wy),e.component(n+VS.name,VS),e.component(n+qA.name,qA)}}),Ohe=Symbol("LayoutSiderInjectionKey"),$he=Symbol("SiderInjectionKey");var rBe=be({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=pe([]),n=Te("layout"),r=j(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return Gr(Ohe,{onSiderMount:o=>t.value.push(o),onSiderUnMount:o=>{t.value=t.value.filter(a=>a!==o)}}),{classNames:r}}});function iBe(e,t,n,r,o,a){return H(),Q("section",{class:le(e.classNames)},[ft(e.$slots,"default")],2)}var jD=$e(rBe,[["render",iBe]]);const oBe=be({name:"LayoutHeader",setup(){return{classNames:[Te("layout-header")]}}});function sBe(e,t,n,r,o,a){return H(),Q("header",{class:le(e.classNames)},[ft(e.$slots,"default")],2)}var p4=$e(oBe,[["render",sBe]]);const aBe=be({name:"LayoutContent",setup(){return{classNames:[Te("layout-content")]}}});function lBe(e,t,n,r,o,a){return H(),Q("main",{class:le(e.classNames)},[ft(e.$slots,"default")],2)}var v4=$e(aBe,[["render",lBe]]);const uBe=be({name:"LayoutFooter",setup(){return{classNames:[Te("layout-footer")]}}});function cBe(e,t,n,r,o,a){return H(),Q("footer",{class:le(e.classNames)},[ft(e.$slots,"default")],2)}var m4=$e(uBe,[["render",cBe]]);const dBe=be({name:"IconDragDot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fBe=["stroke-width","stroke-linecap","stroke-linejoin"];function hBe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,fBe)}var UD=$e(dBe,[["render",hBe]]);const Nhe=Object.assign(UD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UD.name,UD)}}),pBe=be({name:"IconDragDotVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vBe=["stroke-width","stroke-linecap","stroke-linejoin"];function mBe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,vBe)}var VD=$e(pBe,[["render",mBe]]);const G3=Object.assign(VD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VD.name,VD)}});var gBe=be({name:"ResizeTrigger",components:{ResizeObserver:Sd,IconDragDot:Nhe,IconDragDotVertical:G3},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:r}=Zt(e),o=j(()=>n?.value==="horizontal");return{classNames:j(()=>[r.value,{[`${r.value}-horizontal`]:o.value,[`${r.value}-vertical`]:!o.value}]),onResize:l=>{t("resize",l)},isHorizontal:o}}});function yBe(e,t,n,r,o,a){const s=Me("IconDragDot"),l=Me("IconDragDotVertical"),c=Me("ResizeObserver");return H(),Xe(c,{onResize:e.onResize},{default:de(()=>[I("div",{class:le(e.classNames)},[Oe(" @slot 自定义内容 "),ft(e.$slots,"default",{},()=>[I("div",{class:le(`${e.prefixCls}-icon-wrapper`)},[Oe(" @slot 自定义 icon "),ft(e.$slots,"icon",{},()=>[e.isHorizontal?(H(),Xe(s,{key:0,class:le(`${e.prefixCls}-icon`)},null,8,["class"])):(H(),Xe(l,{key:1,class:le(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var Bhe=$e(gBe,[["render",yBe]]);const Fhe="left",jhe="right",Tz="top",Az="bottom",bBe=[Fhe,jhe,Tz,Az];function pne(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function zD(e){return[Tz,Az].indexOf(e)>-1}const _Be=be({name:"ResizeBox",components:{ResizeTrigger:Bhe},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}=Zt(e),[a,s]=oa(null,Ht({value:r})),[l,c]=oa(null,Ht({value:n})),f=pe(),h=Ht({}),p=Te("resizebox"),m=j(()=>[p]),g=j(()=>({...Ke(a.value)?{width:`${a.value}px`}:{},...Ke(l.value)?{height:`${l.value}px`}:{},...h})),b=j(()=>o.value.filter(_=>bBe.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:$}=S;let L=M,B=D;const F=_.pageX-A,U=_.pageY-R;switch($){case Fhe:L=M-F,s(L),t("update:width",L);break;case jhe:L=M+F,s(L),t("update:width",L);break;case Tz:B=D-U,c(B),t("update:height",B);break;case Az:B=D+U,c(B),t("update:height",B);break}t("moving",{width:L,height:B},_)}function C(_){S.moving=!1,Gi(window,"mousemove",k),Gi(window,"mouseup",C),Gi(window,"contextmenu",C),document.body.style.cursor="default",t("movingEnd",_)}function E(_,A){var R,M;t("movingStart",A),S.moving=!0,S.startPageX=A.pageX,S.startPageY=A.pageY,S.direction=_;const{top:D,left:$,right:L,bottom:B}=S.padding;S.startWidth=pne(((R=f.value)==null?void 0:R.clientWidth)||0,$+L),S.startHeight=pne(((M=f.value)==null?void 0:M.clientHeight)||0,D+B),ki(window,"mousemove",k),ki(window,"mouseup",C),ki(window,"contextmenu",C),document.body.style.cursor=zD(_)?"row-resize":"col-resize"}function x(_,A){const{width:R,height:M}=A.contentRect,D=zD(_)?M:R;S.padding[_]=D,h[`padding-${_}`]=`${D}px`}return{prefixCls:p,classNames:m,styles:g,wrapperRef:f,onMoveStart:E,isHorizontal:zD,allowDirections:b,onTiggerResize:x}}});function SBe(e,t,n,r,o,a){const s=Me("ResizeTrigger");return H(),Xe($a(e.component),Nt({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:de(()=>[ft(e.$slots,"default"),(H(!0),Q(Ft,null,fn(e.allowDirections,l=>(H(),Xe(s,{key:l,"prefix-cls":`${e.prefixCls}-trigger`,class:le(`${e.prefixCls}-direction-${l}`),direction:e.isHorizontal(l)?"horizontal":"vertical",onMousedown:c=>{e.onMoveStart(l,c)},onResize:c=>{e.onTiggerResize(l,c)}},yo({default:de(()=>[e.$slots["resize-trigger"]?ft(e.$slots,"resize-trigger",{key:0,direction:l}):Oe("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:de(()=>[ft(e.$slots,"resize-trigger-icon",{direction:l})]),key:"0"}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var HD=$e(_Be,[["render",SBe]]);const Uhe=Object.assign(HD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+HD.name,HD)}});function Vhe(e,t){const n=j(()=>To(e)?e.value:e);let r="";dn(()=>{r=GA.subscribe((o,a)=>{n.value&&(!a||a===n.value)&&t(!!o[n.value])})}),hi(()=>{r&&GA.unsubscribe(r)})}const kBe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var wBe=be({name:"LayoutSider",components:{IconLeft:Hl,IconRight:Mi,ResizeBox:Uhe},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}=Zt(e),[h,p]=oa(o.value,Ht({value:r})),m=j(()=>f.value?"ResizeBox":"div"),g=j(()=>a.value&&!s.value),b=Te("layout-sider"),S=j(()=>[b,{[`${b}-light`]:n.value==="light",[`${b}-has-trigger`]:g.value,[`${b}-collapsed`]:r.value}]),k=j(()=>{const{width:A,collapsedWidth:R}=e,M=h.value?R:A;return Ke(M)?`${M}px`:String(M)}),C=j(()=>[`${b}-trigger`,{[`${b}-trigger-light`]:n.value==="light"}]),E=()=>{const A=!h.value;p(A),t("update:collapsed",A),t("collapse",A,"clickTrigger")};Vhe(l,A=>{const R=!A;R!==h.value&&(p(R),t("update:collapsed",R),t("collapse",R,"responsive"),t("breakpoint",R))});const x=kBe("__arco_layout_sider"),_=xn(Ohe,void 0);return dn(()=>{var A;(A=_?.onSiderMount)==null||A.call(_,x)}),hi(()=>{var A;(A=_?.onSiderUnMount)==null||A.call(_,x)}),Gr($he,Ht({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:m,prefixCls:b,classNames:S,triggerClassNames:C,localCollapsed:h,siderWidth:k,showTrigger:g,toggleTrigger:E}}});const CBe={key:0},EBe={key:1};function xBe(e,t,n,r,o,a){const s=Me("IconLeft"),l=Me("IconRight");return H(),Xe($a(e.componentTag),Nt({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:de(()=>[I("div",{class:le(`${e.prefixCls}-children`)},[ft(e.$slots,"default")],2),e.showTrigger?(H(),Q("div",{key:0,class:le(e.triggerClassNames),style:Ve({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[ft(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(H(),Q("div",EBe,[e.localCollapsed?(H(),Xe(s,{key:0})):(H(),Xe(l,{key:1}))])):(H(),Q("div",CBe,[e.localCollapsed?(H(),Xe(l,{key:1})):(H(),Xe(s,{key:0}))]))])],6)):Oe("v-if",!0)]),_:3},16,["class","style"])}var g4=$e(wBe,[["render",xBe]]);const TBe=Object.assign(jD,{Header:p4,Content:v4,Footer:m4,Sider:g4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+jD.name,jD),e.component(n+p4.name,p4),e.component(n+v4.name,v4),e.component(n+m4.name,m4),e.component(n+g4.name,g4)}}),ABe=be({name:"Pager",props:{pageNumber:{type:Number},current:{type:Number},disabled:{type:Boolean,default:!1},style:{type:Object},activeStyle:{type:Object}},emits:["click"],setup(e,{emit:t}){const n=Te("pagination-item"),r=j(()=>e.current===e.pageNumber),o=l=>{e.disabled||t("click",e.pageNumber,l)},a=j(()=>[n,{[`${n}-active`]:r.value}]),s=j(()=>r.value?e.activeStyle:e.style);return{prefixCls:n,cls:a,mergedStyle:s,handleClick:o}}});function IBe(e,t,n,r,o,a){return H(),Q("li",{class:le(e.cls),style:Ve(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[ft(e.$slots,"default",{page:e.pageNumber},()=>[We(Be(e.pageNumber),1)])],6)}var LBe=$e(ABe,[["render",IBe]]);const zhe=(e,{min:t,max:n})=>en?n:e,PBe=be({name:"StepPager",components:{IconLeft:Hl,IconRight:Mi},props:{pages:{type:Number,required:!0},current:{type:Number,required:!0},type:{type:String,required:!0},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=Te("pagination-item"),r=e.type==="next",o=j(()=>e.disabled?e.disabled:!e.pages||r&&e.current===e.pages?!0:!r&&e.current<=1),a=j(()=>zhe(e.current+(r?1:-1),{min:1,max:e.pages})),s=c=>{o.value||t("click",a.value)},l=j(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:o.value}]);return{prefixCls:n,cls:l,isNext:r,handleClick:s}}});function RBe(e,t,n,r,o,a){const s=Me("icon-right"),l=Me("icon-left");return H(),Xe($a(e.simple?"span":"li"),{class:le(e.cls),onClick:e.handleClick},{default:de(()=>[ft(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(H(),Xe(s,{key:0})):(H(),Xe(l,{key:1}))])]),_:3},8,["class","onClick"])}var vne=$e(PBe,[["render",RBe]]);const MBe=be({name:"EllipsisPager",components:{IconMore:Ev},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=Te("pagination-item"),r=j(()=>zhe(e.current+e.step,{min:1,max:e.pages})),o=s=>{t("click",r.value)},a=j(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:a,handleClick:o}}});function DBe(e,t,n,r,o,a){const s=Me("icon-more");return H(),Q("li",{class:le(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[ft(e.$slots,"default",{},()=>[O(s)])],2)}var OBe=$e(MBe,[["render",DBe]]);const $Be=be({name:"PageJumper",components:{InputNumber:Dk},props:{current:{type:Number,required:!0},simple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},pages:{type:Number,required:!0},size:{type:String},onChange:{type:Function}},emits:["change"],setup(e,{emit:t}){const n=Te("pagination-jumper"),{t:r}=Ao(),o=pe(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),kn(()=>{e.simple||(o.value=void 0)})};Dt(()=>e.current,c=>{e.simple&&c!==o.value&&(o.value=c)});const l=j(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:l,t:r,inputValue:o,handleChange:s,handleFormatter:a}}});function NBe(e,t,n,r,o,a){const s=Me("input-number");return H(),Q("span",{class:le(e.cls)},[e.simple?Oe("v-if",!0):(H(),Q("span",{key:0,class:le([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[ft(e.$slots,"jumper-prepend",{},()=>[We(Be(e.t("pagination.goto")),1)])],2)),O(s,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:le(`${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(),Q("span",{key:1,class:le(`${e.prefixCls}-append`)},[ft(e.$slots,"jumper-append")],2)):Oe("v-if",!0),e.simple?(H(),Q(Ft,{key:2},[I("span",{class:le(`${e.prefixCls}-separator`)},"/",2),I("span",{class:le(`${e.prefixCls}-total-page`)},Be(e.pages),3)],64)):Oe("v-if",!0)],2)}var mne=$e($Be,[["render",NBe]]);const BBe=be({name:"PageOptions",components:{ArcoSelect:U2},props:{sizeOptions:{type:Array,required:!0},pageSize:Number,disabled:Boolean,size:{type:String},onChange:{type:Function},selectProps:{type:Object}},emits:["change"],setup(e,{emit:t}){const n=Te("pagination-options"),{t:r}=Ao(),o=j(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:o,handleChange:s=>{t("change",s)}}}});function FBe(e,t,n,r,o,a){const s=Me("arco-select");return H(),Q("span",{class:le(e.prefixCls)},[O(s,Nt({"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 jBe=$e(BBe,[["render",FBe]]),WD=be({name:"Pagination",props:{total:{type:Number,required:!0},current:Number,defaultCurrent:{type:Number,default:1},pageSize:Number,defaultPageSize:{type:Number,default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{type:Array,default:()=>[10,20,30,40,50]},pageSizeProps:{type:Object},size:{type:String},pageItemStyle:{type:Object},activePageItemStyle:{type:Object},baseSize:{type:Number,default:6},bufferSize:{type:Number,default:2},autoAdjust:{type:Boolean,default:!0}},emits:{"update:current":e=>!0,"update:pageSize":e=>!0,change:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const r=Te("pagination"),{t:o}=Ao(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=Zt(e),{mergedSize:f}=ga(c),h=pe(e.defaultCurrent),p=pe(e.defaultPageSize),m=j(()=>{var R;return(R=e.current)!=null?R:h.value}),g=j(()=>{var R;return(R=e.pageSize)!=null?R:p.value}),b=j(()=>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=Ht({current:m,pages:b,disabled:a,style:s,activeStyle:l,onClick:S}),E=(R,M={})=>R==="more"?O(OBe,Nt(M,C),{default:n["page-item-ellipsis"]}):R==="previous"?O(vne,Nt({type:"previous"},M,C),{default:n["page-item-step"]}):R==="next"?O(vne,Nt({type:"next"},M,C),{default:n["page-item-step"]}):O(LBe,Nt(M,C),{default:n["page-item"]}),x=j(()=>{const R=[];if(b.value2+e.bufferSize&&($=!0,M=Math.min(m.value-e.bufferSize,b.value-2*e.bufferSize)),m.valuee.simple?O("span",{class:`${r}-simple`},[E("previous",{simple:!0}),O(mne,{disabled:e.disabled,current:m.value,size:f.value,pages:b.value,simple:!0,onChange:S},null),E("next",{simple:!0})]):O("ul",{class:`${r}-list`},[E("previous",{simple:!0}),x.value,e.showMore&&E("more",{key:"more",step:e.bufferSize*2+1}),E("next",{simple:!0})]);Dt(g,(R,M)=>{if(e.autoAdjust&&R!==M&&m.value>1){const D=M*(m.value-1)+1,$=Math.ceil(D/R);$!==m.value&&(h.value=$,t("update:current",$),t("change",$))}}),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=j(()=>[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(jBe,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:g.value,size:f.value,onChange:k,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&O(mne,{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 Iz=Object.assign(WD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+WD.name,WD)}}),UBe=(e,{emit:t})=>{var n,r;const o=pe(lr(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=pe(lr(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=j(()=>{var h;return lr(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:o.value}),l=j(()=>{var h;return lr(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 gne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var GD=be({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}=Zt(e),o=Te("list"),a=xn(Fa,void 0),{componentRef:s,elementRef:l}=Ay("containerRef"),c=j(()=>e.virtualListProps),{displayScrollbar:f,scrollbarProps:h}=R3(r);let p=0;const m=z=>{const{scrollTop:G,scrollHeight:Y,offsetHeight:re}=z.target,te=Math.floor(Y-(G+re));G>p&&te<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=G};dn(()=>{if(l.value){const{scrollTop:z,scrollHeight:G,offsetHeight:Y}=l.value;G<=z+Y&&t("reachBottom")}});const{current:g,pageSize:b,handlePageChange:S,handlePageSizeChange:k}=UBe(e,{emit:t}),C=z=>{if(!e.paginationProps)return z;if(e.paginationProps&&z.length>b.value){const G=(g.value-1)*b.value;return z.slice(G,G+b.value)}return z},E=z=>{let G;if(!e.gridProps)return null;const Y=C(z);if(e.gridProps.span){const re=[],te=24/e.gridProps.span;for(let X=0;X{var Ce;return O(hS.Col,{key:`${ie}-${ae}`,class:`${o}-col`,span:(Ce=e.gridProps)==null?void 0:Ce.span},{default:()=>{var ke;return[Di(se)?se:(ke=n.item)==null?void 0:ke.call(n,{item:se,index:ae})]}})}))?K:{default:()=>[K]}))}return re}return O(hS.Row,{class:`${o}-row`,gutter:e.gridProps.gutter},gne(G=Y.map((re,te)=>O(hS.Col,Nt({key:te,class:`${o}-col`},va(e.gridProps,["gutter"])),{default:()=>{var X;return[Di(re)?re:(X=n.item)==null?void 0:X.call(n,{item:re,index:te})]}})))?G:{default:()=>[G]})},x=z=>C(z).map((Y,re)=>{var te;return Di(Y)?Y:(te=n.item)==null?void 0:te.call(n,{item:Y,index:re})}),_=()=>{const z=n.default?cf(n.default()):e.data;return z&&z.length>0?e.gridProps?E(z):x(z):F()},A=()=>{if(!e.paginationProps)return null;const z=va(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return O(Iz,Nt({class:`${o}-pagination`},z,{current:g.value,pageSize:b.value,onChange:S,onPageSizeChange:k}),null)},R=j(()=>[o,`${o}-${e.size}`,{[`${o}-bordered`]:e.bordered,[`${o}-split`]:e.split,[`${o}-hover`]:e.hoverable}]),M=j(()=>{if(e.maxHeight)return{maxHeight:Ke(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),D=j(()=>[`${o}-content`,{[`${o}-virtual`]:c.value}]),$=pe(),L=()=>{var z;const G=C((z=e.data)!=null?z:[]);return G.length?O(G1,Nt({ref:$,class:D.value,data:G},e.virtualListProps,{onScroll:m}),{item:({item:Y,index:re})=>{var te;return(te=n.item)==null?void 0:te.call(n,{item:Y,index:re})}}):F()},B=()=>n["scroll-loading"]?O("div",{class:[`${o}-item`,`${o}-scroll-loading`]},[n["scroll-loading"]()]):null,F=()=>{var z,G,Y,re,te;return n["scroll-loading"]?null:(te=(re=(z=n.empty)==null?void 0:z.call(n))!=null?re:(Y=a==null?void 0:(G=a.slots).empty)==null?void 0:Y.call(G,{component:"list"}))!=null?te:O(jh,null,null)};return{virtualListRef:$,render:()=>{const z=f.value?wd:"div";return O("div",{class:`${o}-wrapper`},[O(kd,{class:`${o}-spin`,loading:e.loading},{default:()=>[O(z,Nt({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(Ft,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()}}),y4=be({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=Te("list-item"),r=()=>{var o;const a=(o=t.actions)==null?void 0:o.call(t);return!a||!a.length?null:O("ul",{class:`${n}-action`},[a.map((s,l)=>O("li",{key:`${n}-action-${l}`},[s]))])};return()=>{var o,a;return O("div",{role:"listitem",class:n},[O("div",{class:`${n}-main`},[(o=t.meta)==null?void 0:o.call(t),O("div",{class:`${n}-content`},[(a=t.default)==null?void 0:a.call(t)]),e.actionLayout==="vertical"&&r()]),e.actionLayout==="horizontal"&&r(),t.extra&&O("div",{class:`${n}-extra`},[t.extra()])])}}});const VBe=be({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=Te("list-item-meta"),r=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:r}}});function zBe(e,t,n,r,o,a){return H(),Q("div",{class:le(e.prefixCls)},[e.$slots.avatar?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-avatar`)},[ft(e.$slots,"avatar")],2)):Oe("v-if",!0),e.hasContent?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2)):Oe("v-if",!0),e.$slots.description||e.description?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-description`)},[ft(e.$slots,"description",{},()=>[We(Be(e.description),1)])],2)):Oe("v-if",!0)],2)):Oe("v-if",!0)],2)}var b4=$e(VBe,[["render",zBe]]);const Hhe=Object.assign(GD,{Item:Object.assign(y4,{Meta:b4}),install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+GD.name,GD),e.component(n+y4.name,y4),e.component(n+b4.name,b4)}}),HBe=["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"],uj=e=>{const t={};return HBe.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},WBe=be({name:"Textarea",components:{ResizeObserver:Sd,IconHover:_o,IconClose:xs},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}=Zt(e),s=Te("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:f}=So({disabled:r,error:o}),h=pe(),p=pe(),m=pe(),g=pe(),b=pe(e.defaultValue),S=j(()=>{var Re;return(Re=a.value)!=null?Re:b.value}),[k,C]=cfe(h);Dt(a,Re=>{(mn(Re)||yl(Re))&&(b.value="")});const E=j(()=>lr(e.maxLength)&&!!e.maxLength.errorOnly),x=j(()=>lr(e.maxLength)?e.maxLength.length:e.maxLength),_=Re=>{var je;return pn(e.wordLength)?e.wordLength(Re):(je=Re.length)!=null?je:0},A=j(()=>_(S.value)),R=j(()=>c.value||!!(x.value&&E.value&&A.value>x.value)),M=pe(!1),D=pe(!1),$=j(()=>e.allowClear&&!l.value&&S.value),L=pe(!1),B=pe(""),F=()=>{k(),kn(()=>{h.value&&S.value!==h.value.value&&(h.value.value=S.value,C())})},U=(Re,je=!0)=>{var Qe,rt;x.value&&!E.value&&_(Re)>x.value&&(Re=(rt=(Qe=e.wordSlice)==null?void 0:Qe.call(e,Re,x.value))!=null?rt:Re.slice(0,x.value)),b.value=Re,je&&t("update:modelValue",Re),F()};let z=S.value;const G=(Re,je)=>{var Qe,rt;Re!==z&&(z=Re,t("change",Re,je),(rt=(Qe=f.value)==null?void 0:Qe.onChange)==null||rt.call(Qe,je))},Y=Re=>{var je,Qe;D.value=!0,z=S.value,t("focus",Re),(Qe=(je=f.value)==null?void 0:je.onFocus)==null||Qe.call(je,Re)},re=Re=>{var je,Qe;D.value=!1,t("blur",Re),(Qe=(je=f.value)==null?void 0:je.onBlur)==null||Qe.call(je,Re),G(S.value,Re)},te=Re=>{var je,Qe;const{value:rt}=Re.target;if(Re.type==="compositionend"){if(L.value=!1,B.value="",x.value&&!E.value&&S.value.length>=x.value&&_(rt)>x.value){F();return}t("input",rt,Re),U(rt),(Qe=(je=f.value)==null?void 0:je.onInput)==null||Qe.call(je,Re)}else L.value=!0},X=Re=>{var je,Qe;const{value:rt}=Re.target;if(L.value)B.value=rt;else{if(x.value&&!E.value&&S.value.length>=x.value&&_(rt)>x.value&&Re.inputType==="insertText"){F();return}t("input",rt,Re),U(rt),(Qe=(je=f.value)==null?void 0:je.onInput)==null||Qe.call(je,Re)}},K=Re=>{U(""),G("",Re),t("clear",Re)};Dt(a,Re=>{Re!==S.value&&U(Re??"",!1)});const J=Re=>va(n,lv),ie=Re=>hf(n,lv),se=ie(),ae=j(()=>{const Re={...se,...e.textareaAttrs};return R.value&&(Re["aria-invalid"]=!0),Re}),Ce=j(()=>[`${s}-wrapper`,{[`${s}-focus`]:D.value,[`${s}-disabled`]:l.value,[`${s}-error`]:R.value,[`${s}-scroll`]:M.value}]);let ke;const ve=pe(0),Ie=pe(0),Ne=j(()=>!lr(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*ve.value+Ie.value),Ye=j(()=>!lr(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*ve.value+Ie.value),Ze=()=>{const Re=uj(ke);ve.value=Number.parseInt(Re["line-height"]||0,10),Ie.value=Number.parseInt(Re["border-width"]||0,10)*2+Number.parseInt(Re["padding-top"]||0,10)+Number.parseInt(Re["padding-bottom"]||0,10),g.value=Re,kn(()=>{var je;const Qe=(je=m.value)==null?void 0:je.offsetHeight;let rt=Qe??0,yt="hidden";Ne.value&&rtYe.value&&(rt=Ye.value,yt="auto"),p.value={height:`${rt}px`,resize:"none",overflow:yt}})};dn(()=>{h.value&&(ke=window.getComputedStyle(h.value),e.autoSize&&Ze()),ye()});const Ge=()=>{e.autoSize&&m.value&&Ze(),ye()},_e=Re=>{h.value&&Re.target!==h.value&&(Re.preventDefault(),h.value.focus())},ye=()=>{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&&Ze(),ye()}),{prefixCls:s,wrapperCls:Ce,textareaRef:h,textareaStyle:p,mirrorRef:m,mirrorStyle:g,computedValue:S,showClearBtn:$,valueLength:A,computedMaxLength:x,mergedDisabled:l,mergeTextareaAttrs:ae,getWrapperAttrs:J,getTextareaAttrs:ie,handleInput:X,handleFocus:Y,handleBlur:re,handleComposition:te,handleClear:K,handleResize:Ge,handleMousedown:_e}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),GBe=["disabled","value","placeholder"];function KBe(e,t,n,r,o,a){const s=Me("resize-observer"),l=Me("icon-close"),c=Me("icon-hover");return H(),Q("div",Nt(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...f)=>e.handleMousedown&&e.handleMousedown(...f))}),[e.autoSize?(H(),Q("div",{key:0,ref:"mirrorRef",class:le(`${e.prefixCls}-mirror`),style:Ve(e.mirrorStyle)},Be(`${e.computedValue} `),7)):Oe("v-if",!0),O(s,{onResize:e.handleResize},{default:de(()=>[I("textarea",Nt({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,GBe)]),_:1},8,["onResize"]),ft(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-word-limit`)},Be(e.valueLength)+"/"+Be(e.computedMaxLength),3)):Oe("v-if",!0),e.showClearBtn?(H(),Q("div",{key:2,class:le(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...f)=>e.handleClear&&e.handleClear(...f))},[O(c,null,{default:de(()=>[O(l)]),_:1})],2)):Oe("v-if",!0)],16)}var KD=$e(WBe,[["render",KBe]]);const Whe=Object.assign(KD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+KD.name,KD)}}),qBe=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},YBe=(e,t)=>[].concat(t).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""}),XBe=(e,t)=>!t||!e.includes(t);function ZBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var qD=be({name:"Mention",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},data:{type:Array,default:()=>[]},prefix:{type:[String,Array],default:"@"},split:{type:String,default:" "},type:{type:String,default:"input"},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:(e,t)=>!0,select:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const o=Te("mention");let a;const{mergedDisabled:s,eventHandlers:l}=So({disabled:wu(e,"disabled")}),{data:c,modelValue:f}=Zt(e),h=pe(),p=pe({}),m=pe(e.defaultValue),g=j(()=>{var se;return(se=e.modelValue)!=null?se:m.value});Dt(f,se=>{(mn(se)||yl(se))&&(m.value="")});const b=j(()=>g.value?[bg(g.value)]:[]),S=pe({measuring:!1,location:-1,prefix:"",text:""}),k=()=>{S.value={measuring:!1,location:-1,prefix:"",text:""}},C=pe(),E=j(()=>S.value.text),x=pe(!0),_=(se,ae)=>{var Ce,ke;const ve=qBe(ae.target),Ie=YBe(ve,e.prefix);if(Ie.location>-1){const Ne=ve.slice(Ie.location+Ie.prefix.length);XBe(Ne,e.split)?(R.value=!0,S.value={measuring:!0,text:Ne,...Ie},t("search",Ne,Ie.prefix)):S.value.location>-1&&k()}else S.value.location>-1&&k();m.value=se,t("update:modelValue",se),t("change",se),(ke=(Ce=l.value)==null?void 0:Ce.onChange)==null||ke.call(Ce)},A=se=>{var ae,Ce;m.value="",t("update:modelValue",""),t("change",""),(Ce=(ae=l.value)==null?void 0:ae.onChange)==null||Ce.call(ae),t("clear",se)},R=pe(!1),M=j(()=>R.value&&S.value.measuring&&U.value.length>0),D=()=>{G.value=uj(a)},$=se=>{R.value=se},L=(se,ae)=>{var Ce,ke,ve;const{value:Ie}=(Ce=F.get(se))!=null?Ce:{},Ne=S.value.location,Ye=S.value.location+S.value.text.length;let Ze=m.value.slice(0,Ne),Ge=m.value.slice(Ye+1);Ze+=!Ze||Ze.endsWith(e.split)||Ze.endsWith(` `)?"":e.split,Ge=(!Ge||Ge.startsWith(e.split)||Ge.startsWith(` `)?"":e.split)+Ge;const _e=`${S.value.prefix}${Ie}`,ye=`${Ze}${_e}${Ge}`;m.value=ye,t("select",Ie),t("update:modelValue",ye),t("change",ye),k(),(ve=(ke=l.value)==null?void 0:ke.onChange)==null||ve.call(ke)},{validOptions:B,optionInfoMap:F,validOptionInfos:U,handleKeyDown:z}=lz({options:c,inputValue:E,filterOption:x,popupVisible:M,valueKeys:b,dropdownRef:h,optionRefs:p,onSelect:L,onPopupVisibleChange:$,enterToOpen:!1}),G=pe();dn(()=>{var se;e.type==="textarea"&&((se=C.value)!=null&&se.textareaRef)&&(a=window.getComputedStyle(C.value.textareaRef),G.value=uj(a))});const Y=se=>{if(pn(r.option)&&se.value){const ae=F.get(se.key),Ce=r.option;return()=>Ce({data:ae})}return()=>se.label},re=se=>O(Qm,{ref:ae=>{ae?.$el&&(p.value[se.key]=ae.$el)},key:se.key,value:se.value,disabled:se.disabled,internal:!0},{default:Y(se)}),te=()=>{let se;return O(az,{ref:h},ZBe(se=B.value.map(ae=>re(ae)))?se:{default:()=>[se]})},X=pe();Dt(M,se=>{e.type==="textarea"&&se&&kn(()=>{var ae,Ce;(ae=C.value)!=null&&ae.textareaRef&&C.value.textareaRef.scrollTop>0&&((Ce=X.value)==null||Ce.scrollTo(0,C.value.textareaRef.scrollTop))})});const K=se=>{t("focus",se)},J=se=>{t("blur",se)};return{inputRef:C,render:()=>{var se;return e.type==="textarea"?O("div",{class:o},[O(Sd,{onResize:D},{default:()=>[O(Whe,Nt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:A,onFocus:K,onBlur:J,onKeydown:z}),null)]}),S.value.measuring&&U.value.length>0&&O("div",{ref:X,style:G.value,class:`${o}-measure`},[(se=g.value)==null?void 0:se.slice(0,S.value.location),O(sa,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:M.value,clickToClose:!1,onPopupVisibleChange:$},{default:()=>[O("span",null,[We("@")])],content:te})])]):O(sa,{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:$},{default:()=>[O(Cv,Nt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:A,onFocus:K,onBlur:J,onKeydown:z}),r)],content:te})}}},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(qD,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+qD.name,qD)}}),Lz=Symbol("MenuInjectionKey"),Pz=Symbol("LevelInjectionKey"),Ghe=Symbol("DataCollectorInjectionKey"),QBe=be({name:"IconMenuFold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),e7e=["stroke-width","stroke-linecap","stroke-linejoin"];function t7e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,e7e)}var YD=$e(QBe,[["render",t7e]]);const Khe=Object.assign(YD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YD.name,YD)}}),n7e=be({name:"IconMenuUnfold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),r7e=["stroke-width","stroke-linecap","stroke-linejoin"];function i7e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,r7e)}var XD=$e(n7e,[["render",i7e]]);const qhe=Object.assign(XD,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XD.name,XD)}});function Rz(e){const t=j(()=>To(e)?e.value:e);Gr(Pz,Ht({level:t}))}function Bk(e){const{provideNextLevel:t}=e||{},n=xn(Pz),r=j(()=>n?.level||1);if(t){const o=j(()=>r.value+1);Rz(o)}return{level:r}}function yne(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 Yhe(e=!1){return e?void 0:xn(Ghe)}function Xhe(e){const{key:t,type:n}=e,r=pe([]),o=Yhe(n==="menu");return Gr(Ghe,{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"&&!mn(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"&&!mn(t)&&o?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!mn(t)?(dn(()=>{o?.collectSubMenu(t,r.value)}),hi(()=>{o?.removeSubMenu(t)})):n==="popupMenu"&&dn(()=>{o?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:j(()=>yne(r.value,s=>!!s.children)),menuItemKeys:j(()=>yne(r.value,s=>!s.children))}}function o7e(e,t){const n=[],r=o=>{for(let a=0;a{f.value=b};Dt(t,()=>{mn(t.value)&&h([])});let p=[];dn(()=>{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=>o7e(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||!s7e(b,p)){const k=g.value.filter(C=>b.includes(C));if(r.value){const C=b.filter(E=>!S.includes(E));k.push(...C)}h(c.value?k.slice(0,1):k)}m=!0});const g=j(()=>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 l7e=be({name:"BaseMenu",components:{IconMenuFold:Khe,IconMenuUnfold:qhe},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:E,triggerProps:x,tooltipProps:_,autoOpenSelected:A,breakpoint:R,popupMaxHeight:M,prefixCls:D,inTrigger:$,siderCollapsed:L,isRoot:B}=Zt(e),{subMenuKeys:F,menuData:U}=Xhe({type:B.value?"menu":"popupMenu"}),[z,G]=oa(k.value,Ht({value:S})),{openKeys:Y,setOpenKeys:re,open:te}=a7e(Ht({modelValue:C,defaultValue:E,autoOpen:m,autoOpenSelected:A,selectedKeys:z,subMenuKeys:F,menuData:U,accordion:l})),[X,K]=oa(b.value,Ht({value:g})),J=j(()=>L.value||X.value||o.value==="popButton"),ie=j(()=>["horizontal","popButton"].indexOf(o.value)<0&&!$.value&&c.value),se=(Ze,Ge)=>{Ze!==X.value&&(K(Ze),t("update:collapsed",Ze),t("collapse",Ze,Ge))},ae=()=>{se(!X.value,"clickTrigger")};Vhe(R,Ze=>{se(!Ze,"responsive")});const Ce=j(()=>D?.value||Te("menu")),ke=j(()=>[Ce.value,`${Ce.value}-${a?.value}`,{[`${Ce.value}-horizontal`]:o.value==="horizontal",[`${Ce.value}-vertical`]:o.value!=="horizontal",[`${Ce.value}-collapsed`]:J.value,[`${Ce.value}-pop`]:o.value==="pop"||J.value,[`${Ce.value}-pop-button`]:o.value==="popButton"}]),ve=j(()=>{const Ze=Ke(p.value)?`${p.value}px`:void 0,Ge=lr(r.value)?r.value:void 0,_e=J.value?Ze:Ge?.width;return[Ge?va(Ge,["width"]):r.value,{width:_e}]}),Ie=fd(n,"expand-icon-down"),Ne=fd(n,"expand-icon-right"),Ye=Ht({theme:a,mode:o,levelIndent:s,autoScrollIntoView:h,selectedKeys:z,openKeys:Y,prefixCls:Ce,scrollConfig:f,inTrigger:$,collapsed:J,triggerProps:x,tooltipProps:_,popupMaxHeight:M,expandIconDown:Ie,expandIconRight:Ne,onMenuItemClick:Ze=>{G([Ze]),t("update:selectedKeys",[Ze]),t("menu-item-click",Ze)},onSubMenuClick:(Ze,Ge)=>{const _e=te(Ze,Ge);re(_e),t("update:openKeys",_e),t("sub-menu-click",Ze,_e)}});return Gr(Lz,Ye),Rz(1),{computedPrefixCls:Ce,classNames:ke,computedStyle:ve,computedCollapsed:J,computedHasCollapseButton:ie,onCollapseBtnClick:ae}}});function u7e(e,t,n,r,o,a){const s=Me("IconMenuUnfold"),l=Me("IconMenuFold");return H(),Q("div",Nt({class:e.classNames},e.$attrs,{style:e.computedStyle}),[I("div",{class:le(`${e.computedPrefixCls}-inner`)},[ft(e.$slots,"default")],2),e.computedHasCollapseButton?(H(),Q("div",{key:0,class:le(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[ft(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(H(),Xe(s,{key:0})):(H(),Xe(l,{key:1}))])],2)):Oe("v-if",!0)],16)}var cj=$e(l7e,[["render",u7e]]);function bne(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 jg(){return xn(Lz)||{}}const c7e=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function K3(){const e=uo();return{key:j(()=>e?.vnode.key||c7e("__arco_menu"))}}const d7e=be({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=Te("menu"),t=jg();return{prefixCls:e,levelIndent:wu(t,"levelIndent")}}});function f7e(e,t,n,r,o,a){return e.level>1?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-indent-list`)},[(H(!0),Q(Ft,null,fn(e.level-1,s=>(H(),Q("span",{key:s,class:le(`${e.prefixCls}-indent`),style:Ve(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Oe("v-if",!0)}var q3=$e(d7e,[["render",f7e]]);const h7e=be({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 p7e(e,t,n,r,o,a){return H(),Xe(Es,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:de(()=>[ft(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var v7e=$e(h7e,[["render",p7e]]);const m7e=be({name:"SubMenuInline",components:{MenuIndent:q3,ExpandTransition:v7e},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=K3(),{level:n}=Bk({provideNextLevel:!0}),r=jg(),o=j(()=>r.prefixCls),a=j(()=>`${o.value}-inline`),s=j(()=>[a.value]),l=j(()=>e.isChildrenSelected),c=j(()=>(r.openKeys||[]).indexOf(t.value)>-1);return{prefixCls:a,menuPrefixCls:o,classNames:s,level:n,isSelected:l,isOpen:c,onHeaderClick:()=>{r.onSubMenuClick&&r.onSubMenuClick(t.value,n.value)}}}});function g7e(e,t,n,r,o,a){const s=Me("MenuIndent"),l=Me("ExpandTransition");return H(),Q("div",{class:le(e.classNames)},[I("div",{class:le([`${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(),Q(Ft,{key:0},[I("span",{class:le(`${e.menuPrefixCls}-icon`)},[ft(e.$slots,"icon")],2),I("span",{class:le(`${e.menuPrefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2)],64)):ft(e.$slots,"title",{key:1},()=>[We(Be(e.title),1)]),I("span",{class:le([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[ft(e.$slots,"expand-icon-down")],2)],2),O(l,null,{default:de(()=>[wi(I("div",{class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2),[[Qo,e.isOpen]])]),_:3})],2)}var y7e=$e(m7e,[["render",g7e]]);const b7e=be({name:"SubMenuPop",components:{Menu:cj,Trigger:sa,MenuIndent:q3,RenderFunction:Uh},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=K3(),{level:n}=Bk(),{selectable:r,isChildrenSelected:o,popupMaxHeight:a}=Zt(e),s=jg(),{onSubMenuClick:l,onMenuItemClick:c}=s,f=j(()=>s.prefixCls),h=j(()=>s.mode),p=j(()=>s.selectedKeys||[]),m=j(()=>`${f.value}-pop`),g=j(()=>r.value&&p.value.includes(t.value)||o.value),b=j(()=>[`${m.value}`,`${m.value}-header`,{[`${f.value}-selected`]:g.value}]),S=j(()=>h.value==="horizontal"&&!s.inTrigger),k=pe(!1),C=A=>{k.value=A},E=Te("trigger"),x=j(()=>{var A;return[`${m.value}-trigger`,{[`${m.value}-trigger-dark`]:s.theme==="dark"},(A=s.triggerProps)==null?void 0:A.class]}),_=j(()=>va(s.triggerProps||{},["class"]));return{menuPrefixCls:f,mode:h,level:n,classNames:b,isSelected:g,selectedKeys:p,needPopOnBottom:S,popVisible:k,triggerPrefixCls:E,triggerClassNames:x,triggerProps:_,menuContext:s,popupMenuStyles:j(()=>{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 _7e(e,t,n,r,o,a){const s=Me("MenuIndent"),l=Me("RenderFunction"),c=Me("Menu"),f=Me("Trigger");return H(),Xe(f,Nt({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:Ve(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},yo({default:de(()=>[ft(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",Nt({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))}),[Oe(" header "),O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(H(),Q(Ft,{key:0},[I("span",{class:le(`${e.menuPrefixCls}-icon`)},[ft(e.$slots,"icon")],2),I("span",{class:le(`${e.menuPrefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2)],64)):ft(e.$slots,"title",{key:1},()=>[We(Be(e.title),1)]),Oe(" suffix "),I("span",{class:le(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?ft(e.$slots,"expand-icon-down",{key:0}):ft(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(H(),Q("div",{key:2,class:le(`${e.menuPrefixCls}-selected-label`)},null,2)):Oe("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var S7e=$e(b7e,[["render",_7e]]),zS=be({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}=K3(),{level:r}=Bk(),{popup:o}=Zt(e),a=jg(),s=j(()=>{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}=Xhe({key:n.value,type:"subMenu"}),f=j(()=>{const h=a.selectedKeys||[],p=m=>{for(let g=0;g[O(xv,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[O(Mi,null,null)])};return r?O(S7e,Nt({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):O(y7e,Nt({key:n,title:e.title,isChildrenSelected:s},t),l)}});const k7e=10;function _ne(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function Sne(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var w7e=be({name:"MenuOverflowWrap",setup(e,{slots:t}){const r=`${jg().prefixCls}-overflow`,o=`${r}-sub-menu`,a=`${r}-hidden-menu-item`,s=`${r}-sub-menu-mirror`,l=pe(),c=pe(null),f=pe();function h(){const p=l.value,m=_ne(p),g=[].slice.call(p.children);let b=0,S=0,k=0;for(let C=0;C-1,A=x.indexOf(s)>-1;if(_)continue;const R=_ne(E)+Sne(bne(E,"marginLeft"))+Sne(bne(E,"marginRight"));if(A){k=R;continue}if(S+=R,S+k+k7e>m){c.value=b-1;return}b++}c.value=null}return dn(()=>{h(),f.value=new E3(p=>{p.forEach(h)}),l.value&&f.value.observe(l.value)}),hi(()=>{f.value&&f.value.disconnect()}),()=>{const p=(g,b)=>{const{isMirror:S=!1,props:k={}}=b||{};return O(zS,Nt({key:`__arco-menu-overflow-sub-menu${S?"-mirror":""}`,class:S?s:o},k),{title:()=>O("span",null,[We("...")]),default:()=>g})},m=()=>{var g;const b=((g=t.default)==null?void 0:g.call(t))||[],S=h5e(b);let k=null;const C=p(null,{isMirror:!0}),E=S.map((x,_)=>{const A=vl(x,c.value!==null&&_>c.value?{class:a}:{class:""});if(c.value!==null&&_===c.value+1){const R=S.slice(_).map(M=>vl(M));k=p(R)}return A});return[C,...E,k]};return O("div",{class:`${r}-wrap`,ref:l},[m()])}}}),ZD=be({name:"Menu",components:{BaseMenu:cj},inheritAttrs:!1,props:{theme:{type:String},mode:{type:String,default:"vertical"}},setup(e,{attrs:t,slots:n}){const{theme:r,mode:o}=Zt(e),a=xn($he,void 0),s=j(()=>a?.collapsed||!1),l=j(()=>r?.value||a?.theme||"light");return Gr(Lz,void 0),Gr(Pz,void 0),()=>O(cj,Nt(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:o.value==="horizontal"&&n.default?()=>O(w7e,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),_4=be({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=K3(),{level:r}=Bk(),o=jg(),a=pe(),s=j(()=>(o.selectedKeys||[]).indexOf(n.value)>-1),l=Yhe();dn(()=>{l?.collectMenuItem(n.value)}),hi(()=>{l?.removeMenuItem(n.value)});function c(){o.autoScrollIntoView&&a.value&&s.value&&ghe(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...o.scrollConfig||{}})}let f;return dn(()=>{f=setTimeout(()=>{c()},500)}),hi(()=>{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(q3,{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),E=O("div",Nt({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 x=[`${l}-item-tooltip`,p?.class];return O(jc,Nt({trigger:"hover",position:"right",class:x},va(p||{},["class"])),{default:()=>E,content:()=>b})}return E}});const C7e=be({name:"MenuItemGroup",components:{MenuIndent:q3},props:{title:{type:String}},setup(){const{level:e}=Bk(),t=j(()=>e.value===1?e.value+1:e.value);Rz(t);const n=jg(),r=j(()=>n.prefixCls),o=j(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:o,level:e}}});function E7e(e,t,n,r,o,a){const s=Me("MenuIndent");return H(),Q("div",{class:le(e.classNames)},[I("div",{class:le(`${e.prefixCls}-group-title`)},[O(s,{level:e.level},null,8,["level"]),ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2),ft(e.$slots,"default")],2)}var S4=$e(C7e,[["render",E7e]]);const x7e=Object.assign(ZD,{Item:_4,ItemGroup:S4,SubMenu:zS,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+ZD.name,ZD),e.component(n+_4.name,_4),e.component(n+S4.name,S4),e.component(n+zS.name,zS)}}),T7e=be({name:"Message",components:{AIconHover:_o,IconInfoCircleFill:z1,IconCheckCircleFill:Fh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Bg,IconClose:xs,IconLoading:ja},props:{type:{type:String,default:"info"},closable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1},resetOnHover:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=Te("message");let r=0;const o=()=>{t("close")},a=()=>{e.duration>0&&(r=window.setTimeout(o,e.duration))},s=()=>{r&&(window.clearTimeout(r),r=0)};return dn(()=>{a()}),za(()=>{e.resetOnUpdate&&(s(),a())}),hi(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:o}}});function A7e(e,t,n,r,o,a){const s=Me("icon-info-circle-fill"),l=Me("icon-check-circle-fill"),c=Me("icon-exclamation-circle-fill"),f=Me("icon-close-circle-fill"),h=Me("icon-loading"),p=Me("icon-close"),m=Me("a-icon-hover");return H(),Q("li",{role:"alert",class:le([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(),Q("span",{key:0,class:le(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Xe(s,{key:0})):e.type==="success"?(H(),Xe(l,{key:1})):e.type==="warning"?(H(),Xe(c,{key:2})):e.type==="error"?(H(),Xe(f,{key:3})):e.type==="loading"?(H(),Xe(h,{key:4})):Oe("v-if",!0)])],2)):Oe("v-if",!0),I("span",{class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2),e.closable?(H(),Q("span",{key:1,class:le(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[O(m,null,{default:de(()=>[O(p)]),_:1})],2)):Oe("v-if",!0)],34)}var I7e=$e(T7e,[["render",A7e]]);function L7e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var P7e=be({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=Te("message-list"),{zIndex:r}=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")},L7e(o=e.messages.map(a=>{const s={default:Dl(a.content),icon:Dl(a.icon)};return O(I7e,{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 R7e{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=Ht({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&&(Fc(null,this.container),document.body.removeChild(this.container),this.container=null,Gy[this.position]=void 0)};const{position:r="top"}=t;this.container=I3("message"),this.messageIds=new Set,this.messages=pe([]),this.position=r;const o=O(P7e,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??Lt._context)&&(o.appContext=n??Lt._context),Fc(o,this.container),document.body.appendChild(this.container)}}const Gy={},Zhe=[...P3,"loading","normal"],k4=Zhe.reduce((e,t)=>(e[t]=(n,r)=>{ts(n)&&(n={content:n});const o={type:t,...n},{position:a="top"}=o;return Gy[a]||(Gy[a]=new R7e(o,r)),Gy[a].add(o)},e),{});k4.clear=e=>{var t;e?(t=Gy[e])==null||t.clear():Object.values(Gy).forEach(n=>n?.clear())};const Lt={...k4,install:e=>{const t={clear:k4.clear};for(const n of Zhe)t[n]=(r,o=e._context)=>k4[n](r,o);e.config.globalProperties.$message=t},_context:null},M7e=({modalRef:e,wrapperRef:t,draggable:n,alignCenter:r})=>{const o=pe(!1),a=pe([0,0]),s=pe([0,0]),l=pe(),c=pe([0,0]),f=pe([0,0]),h=()=>{var b,S,k;if(t.value&&e.value){const{top:C,left:E}=t.value.getBoundingClientRect(),{clientWidth:x,clientHeight:_}=t.value,{top:A,left:R,width:M,height:D}=e.value.getBoundingClientRect(),$=r.value?0:(b=e.value)==null?void 0:b.offsetTop,L=R-E,B=A-C-$;(L!==((S=s.value)==null?void 0:S[0])||B!==((k=s.value)==null?void 0:k[1]))&&(s.value=[L,B]);const F=x>M?x-M:0,U=_>D?_-D-$:0;(F!==f.value[0]||U!==f.value[1])&&(f.value=[F,U]),$&&(c.value=[0,0-$])}},p=b=>{n.value&&(b.preventDefault(),o.value=!0,h(),a.value=[b.x,b.y],ki(window,"mousemove",m),ki(window,"mouseup",g),ki(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,E=s.value[1]+k;Cf.value[0]&&(C=f.value[0]),Ef.value[1]&&(E=f.value[1]),l.value=[C,E]}},g=()=>{o.value=!1,Gi(window,"mousemove",m),Gi(window,"mouseup",g)};return{position:l,handleMoveDown:p}};var D7e=be({name:"Modal",components:{ClientOnly:iz,ArcoButton:Uo,IconHover:_o,IconClose:xs,IconInfoCircleFill:z1,IconCheckCircleFill:Fh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Bg},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}=Zt(e),a=Te("modal"),{t:s}=Ao(),l=pe(),c=pe(),f=pe(e.defaultVisible),h=j(()=>{var Ce;return(Ce=e.visible)!=null?Ce:f.value}),p=pe(!1),m=j(()=>e.okLoading||p.value),g=j(()=>e.draggable&&!e.fullscreen),{teleportContainer:b,containerRef:S}=oz({popupContainer:r,visible:h}),k=pe(h.value),C=j(()=>e.okText||s("modal.okText")),E=j(()=>e.cancelText||s("modal.cancelText")),{zIndex:x,isLastDialog:_}=H1("dialog",{visible:h});let A=!1;const R=Ce=>{e.escToClose&&Ce.key===Do.ESC&&_()&&z(Ce)},M=()=>{e.escToClose&&!A&&(A=!0,ki(document.documentElement,"keydown",R))},D=()=>{A=!1,Gi(document.documentElement,"keydown",R)};let $=0;const{position:L,handleMoveDown:B}=M7e({wrapperRef:l,modalRef:c,draggable:g,alignCenter:o}),F=()=>{$++,p.value&&(p.value=!1),f.value=!1,t("update:visible",!1)},U=async Ce=>{const ke=$,ve=await new Promise(async Ie=>{var Ne;if(pn(e.onBeforeOk)){let Ye=e.onBeforeOk((Ze=!0)=>Ie(Ze));if((mg(Ye)||!ml(Ye))&&(p.value=!0),mg(Ye))try{Ye=(Ne=await Ye)!=null?Ne:!0}catch(Ze){throw Ye=!1,Ze}ml(Ye)&&Ie(Ye)}else Ie(!0)});ke===$&&(ve?(t("ok",Ce),F()):p.value&&(p.value=!1))},z=Ce=>{var ke;let ve=!0;pn(e.onBeforeCancel)&&(ve=(ke=e.onBeforeCancel())!=null?ke:!1),ve&&(t("cancel",Ce),F())},G=pe(!1),Y=Ce=>{Ce.target===l.value&&(G.value=!0)},re=Ce=>{e.mask&&e.maskClosable&&G.value&&z(Ce)},te=()=>{h.value&&(!p5e(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,J(),t("close"))},{setOverflowHidden:K,resetOverflow:J}=vhe(S);dn(()=>{S.value=Zd(e.popupContainer),h.value&&(K(),e.escToClose&&M())}),$o(()=>{J(),D()}),Dt(h,Ce=>{f.value!==Ce&&(f.value=Ce),Ce?(t("beforeOpen"),k.value=!0,G.value=!1,K(),M()):(t("beforeClose"),D())}),Dt(n,()=>{L.value&&(L.value=void 0)});const ie=j(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!L.value}]),se=j(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:g.value,[`${a}-fullscreen`]:e.fullscreen}]),ae=j(()=>{var Ce;const ke={...(Ce=e.modalStyle)!=null?Ce:{}};return e.width&&!e.fullscreen&&(ke.width=Ke(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&(ke.top=Ke(e.top)?`${e.top}px`:e.top),L.value&&(ke.transform=`translate(${L.value[0]}px, ${L.value[1]}px)`),ke});return{prefixCls:a,mounted:k,computedVisible:h,containerRef:S,wrapperRef:l,mergedModalStyle:ae,okDisplayText:C,cancelDisplayText:E,zIndex:x,handleOk:U,handleCancel:z,handleMaskClick:re,handleMaskMouseDown:Y,handleOpen:te,handleClose:X,mergedOkLoading:m,modalRef:c,wrapperCls:ie,modalCls:se,teleportContainer:b,handleMoveDown:B}}});function O7e(e,t,n,r,o,a){const s=Me("icon-info-circle-fill"),l=Me("icon-check-circle-fill"),c=Me("icon-exclamation-circle-fill"),f=Me("icon-close-circle-fill"),h=Me("icon-close"),p=Me("icon-hover"),m=Me("arco-button"),g=Me("client-only");return H(),Xe(g,null,{default:de(()=>[(H(),Xe(Og,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?wi((H(),Q("div",Nt({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[O(Es,{name:e.maskAnimationName,appear:""},{default:de(()=>[e.mask?wi((H(),Q("div",{key:0,ref:"maskRef",class:le(`${e.prefixCls}-mask`),style:Ve(e.maskStyle)},null,6)),[[Qo,e.computedVisible]]):Oe("v-if",!0)]),_:1},8,["name"]),I("div",{ref:"wrapperRef",class:le(e.wrapperCls),onClick:t[2]||(t[2]=es((...b)=>e.handleMaskClick&&e.handleMaskClick(...b),["self"])),onMousedown:t[3]||(t[3]=es((...b)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(...b),["self"]))},[O(Es,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[wi(I("div",{ref:"modalRef",class:le(e.modalCls),style:Ve(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(...b)=>e.handleMoveDown&&e.handleMoveDown(...b))},[e.$slots.title||e.title?(H(),Q("div",{key:0,class:le([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(H(),Xe(s,{key:0})):Oe("v-if",!0),e.messageType==="success"?(H(),Xe(l,{key:1})):Oe("v-if",!0),e.messageType==="warning"?(H(),Xe(c,{key:2})):Oe("v-if",!0),e.messageType==="error"?(H(),Xe(f,{key:3})):Oe("v-if",!0)],2)):Oe("v-if",!0),ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2)):Oe("v-if",!0),!e.simple&&e.closable?(H(),Q("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:le(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...b)=>e.handleCancel&&e.handleCancel(...b))},[O(p,null,{default:de(()=>[O(h)]),_:1})],2)):Oe("v-if",!0)],34)):Oe("v-if",!0),I("div",{class:le([`${e.prefixCls}-body`,e.bodyClass]),style:Ve(e.bodyStyle)},[ft(e.$slots,"default")],6),e.footer?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer",{},()=>[e.hideCancel?Oe("v-if",!0):(H(),Xe(m,Nt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(Be(e.cancelDisplayText),1)]),_:1},16,["onClick"])),O(m,Nt({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[We(Be(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Oe("v-if",!0)],6),[[Qo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[Qo,e.computedVisible||e.mounted]]):Oe("v-if",!0)],8,["to","disabled"]))]),_:3})}var w4=$e(D7e,[["render",O7e]]);const JD=(e,t)=>{let n=I3("modal");const r=()=>{f.component&&(f.component.props.visible=!1),pn(e.onOk)&&e.onOk()},o=()=>{f.component&&(f.component.props.visible=!1),pn(e.onCancel)&&e.onCancel()},a=async()=>{await kn(),n&&(Fc(null,n),document.body.removeChild(n)),n=null,pn(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(w4,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...va(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Dl(e.content),title:Dl(e.title),footer:typeof e.footer!="boolean"?Dl(e.footer):void 0});return(t??mf._context)&&(f.appContext=t??mf._context),Fc(f,n),document.body.appendChild(n),{close:s,update:l}},QD={open:JD,confirm:(e,t)=>{const n={simple:!0,messageType:"warning",...e};return JD(n,t)},...P3.reduce((e,t)=>(e[t]=(n,r)=>{const o={simple:!0,hideCancel:!0,messageType:t,...n};return JD(o,r)},e),{})},mf=Object.assign(w4,{...QD,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+w4.name,w4);const r={};for(const o of Object.keys(QD))r[o]=(a,s=e._context)=>QD[o](a,s);e.config.globalProperties.$modal=r},_context:null}),$7e=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),N7e=be({name:"Notification",components:{AIconHover:_o,IconInfoCircleFill:z1,IconCheckCircleFill:Fh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Bg,IconClose:xs},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1}},emits:["close"],setup(e,t){const n=Te("notification");let r=0;const o=()=>{t.emit("close")};return dn(()=>{e.duration>0&&(r=window.setTimeout(o,e.duration))}),za(()=>{e.resetOnUpdate&&(r&&(window.clearTimeout(r),r=0),e.duration>0&&(r=window.setTimeout(o,e.duration)))}),hi(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:o}}});function B7e(e,t,n,r,o,a){const s=Me("icon-info-circle-fill"),l=Me("icon-check-circle-fill"),c=Me("icon-exclamation-circle-fill"),f=Me("icon-close-circle-fill"),h=Me("icon-close"),p=Me("a-icon-hover");return H(),Q("li",{role:"alert",class:le([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-left`)},[I("div",{class:le(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Xe(s,{key:0})):e.type==="success"?(H(),Xe(l,{key:1})):e.type==="warning"?(H(),Xe(c,{key:2})):e.type==="error"?(H(),Xe(f,{key:3})):Oe("v-if",!0)])],2)],2)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-right`)},[e.$slots.default?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"default")],2)):Oe("v-if",!0),e.$slots.content?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"content")],2)):Oe("v-if",!0),e.$slots.footer?(H(),Q("div",{key:2,class:le(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer")],2)):Oe("v-if",!0)],2),e.closable?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[ft(e.$slots,"closeIconElement",{},()=>[O(p,null,{default:de(()=>[ft(e.$slots,"closeIcon",{},()=>[O(h)])]),_:3})])],2)):Oe("v-if",!0)],2)}var F7e=$e(N7e,[["render",B7e]]);const j7e=["topLeft","topRight","bottomLeft","bottomRight"];function U7e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var V7e=be({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>j7e.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=Te("notification-list"),r=$7e(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"},U7e(s=e.notifications.map(l=>{const c={default:Dl(l.title),content:Dl(l.content),icon:Dl(l.icon),footer:Dl(l.footer),closeIcon:Dl(l.closeIcon),closeIconElement:Dl(l.closeIconElement)};return O(F7e,{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 z7e{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=Ht({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&&(Fc(null,this.container),document.body.removeChild(this.container),this.container=null,ng[this.position]=void 0)};const{position:r="topRight"}=t;this.container=I3("notification"),this.notificationIds=new Set,this.notifications=pe([]),this.position=r;const o=O(V7e,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??dj._context)&&(o.appContext=n??dj._context),Fc(o,this.container),document.body.appendChild(this.container)}}const ng={},HS=P3.reduce((e,t)=>(e[t]=(n,r)=>{ts(n)&&(n={content:n});const o={type:t,...n},{position:a="topRight"}=o;return ng[a]||(ng[a]=new z7e(o,r)),ng[a].add(o)},e),{});HS.remove=e=>{e&&Object.values(ng).forEach(t=>t?.remove(e))};HS.clear=e=>{var t;e?(t=ng[e])==null||t.clear():Object.values(ng).forEach(n=>n?.clear())};const dj={...HS,install:e=>{const t={clear:HS.clear};for(const n of P3)t[n]=(r,o=e._context)=>HS[n](r,o);e.config.globalProperties.$notification=t},_context:null},H7e=be({name:"PageHeader",components:{AIconHover:_o,IconLeft:Hl},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const r=Te("page-header"),o=s=>{t("back",s)},a=j(()=>[r,{[`${r}-with-breadcrumb`]:!!n.breadcrumb,[`${r}-with-content`]:!!n.default}]);return{prefixCls:r,cls:a,handleBack:o}}});function W7e(e,t,n,r,o,a){const s=Me("icon-left"),l=Me("a-icon-hover");return H(),Q("div",{class:le(e.cls)},[I("div",{class:le(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-breadcrumb`)},[ft(e.$slots,"breadcrumb")],2)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-header`)},[I("span",{class:le(`${e.prefixCls}-main`)},[e.showBack?(H(),Xe(l,{key:0,class:le(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:de(()=>[ft(e.$slots,"back-icon",{},()=>[O(s)])]),_:3},8,["class","prefix","onClick"])):Oe("v-if",!0),I("span",{class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(H(),Q("span",{key:1,class:le(`${e.prefixCls}-divider`)},null,2)):Oe("v-if",!0),e.$slots.subtitle||e.subtitle?(H(),Q("span",{key:2,class:le(`${e.prefixCls}-subtitle`)},[ft(e.$slots,"subtitle",{},()=>[We(Be(e.subtitle),1)])],2)):Oe("v-if",!0)],2),e.$slots.extra?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra")],2)):Oe("v-if",!0)],2)],2),e.$slots.default?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2)):Oe("v-if",!0)],2)}var e6=$e(H7e,[["render",W7e]]);const G7e=Object.assign(e6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+e6.name,e6)}}),K7e=be({name:"Popconfirm",components:{ArcoButton:Uo,Trigger:sa,IconInfoCircleFill:z1,IconCheckCircleFill:Fh,IconExclamationCircleFill:Sf,IconCloseCircleFill:Bg},props:{content:String,position:{type:String,default:"top"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},type:{type:String,default:"info"},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,ok:()=>!0,cancel:()=>!0},setup(e,{emit:t}){const n=Te("popconfirm"),{t:r}=Ao(),o=pe(e.defaultPopupVisible),a=j(()=>{var S;return(S=e.popupVisible)!=null?S:o.value}),s=pe(!1),l=j(()=>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 E;if(pn(e.onBeforeOk)){let x=e.onBeforeOk((_=!0)=>C(_));if((mg(x)||!ml(x))&&(s.value=!0),mg(x))try{x=(E=await x)!=null?E:!0}catch(_){throw x=!1,_}ml(x)&&C(x)}else C(!0)});S===c&&(k?(t("ok"),f()):s.value&&(s.value=!1))},m=()=>{var S;let k=!0;pn(e.onBeforeCancel)&&(k=(S=e.onBeforeCancel())!=null?S:!1),k&&(t("cancel"),f())},g=j(()=>[`${n}-popup-content`,e.contentClass]),b=j(()=>[`${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 q7e(e,t,n,r,o,a){const s=Me("icon-info-circle-fill"),l=Me("icon-check-circle-fill"),c=Me("icon-exclamation-circle-fill"),f=Me("icon-close-circle-fill"),h=Me("arco-button"),p=Me("trigger");return H(),Xe(p,{class:le(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:le(`${e.prefixCls}-body`)},[I("span",{class:le(`${e.prefixCls}-icon`)},[ft(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Xe(s,{key:0})):e.type==="success"?(H(),Xe(l,{key:1})):e.type==="warning"?(H(),Xe(c,{key:2})):e.type==="error"?(H(),Xe(f,{key:3})):Oe("v-if",!0)])],2),I("span",{class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"content",{},()=>[We(Be(e.content),1)])],2)],2),I("div",{class:le(`${e.prefixCls}-footer`)},[O(h,Nt({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(Be(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),O(h,Nt({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[We(Be(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:de(()=>[ft(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var t6=$e(K7e,[["render",q7e]]);const Y7e=Object.assign(t6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+t6.name,t6)}}),X7e={small:3,medium:4,large:8},Z7e=e=>{if(e)return lr(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},J7e=be({name:"ProgressLine",components:{IconExclamationCircleFill:Sf},props:{percent:{type:Number,default:0},animation:{type:Boolean,default:!1},size:{type:String,default:"medium"},strokeWidth:{type:Number,default:4},width:{type:[Number,String],default:"100%"},color:{type:[String,Object],default:void 0},trackColor:String,formatText:{type:Function,default:void 0},status:{type:String},showText:Boolean},setup(e){const t=Te("progress-line"),n=j(()=>e.strokeWidth!==4?e.strokeWidth:X7e[e.size]),r=j(()=>`${Fl.times(e.percent,100)}%`),o=j(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=j(()=>({width:`${e.percent*100}%`,...Z7e(e.color)}));return{prefixCls:t,style:o,barStyle:a,text:r}}}),Q7e=["aria-valuenow"];function e9e(e,t,n,r,o,a){const s=Me("icon-exclamation-circle-fill");return H(),Q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:le(`${e.prefixCls}-wrapper`)},[I("div",{class:le(e.prefixCls),style:Ve(e.style)},[I("div",{class:le(`${e.prefixCls}-bar-buffer`)},null,2),I("div",{class:le([`${e.prefixCls}-bar`]),style:Ve(e.barStyle)},null,6)],6),e.showText?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-text`)},[ft(e.$slots,"text",{percent:e.percent},()=>[We(Be(e.text)+" ",1),e.status==="danger"?(H(),Xe(s,{key:0})):Oe("v-if",!0)])],2)):Oe("v-if",!0)],10,Q7e)}var t9e=$e(J7e,[["render",e9e]]);const n9e=be({name:"IconExclamation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),r9e=["stroke-width","stroke-linecap","stroke-linejoin"];function i9e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,r9e)}var n6=$e(n9e,[["render",i9e]]);const Mz=Object.assign(n6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n6.name,n6)}}),o9e=be({name:"IconCheck",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),s9e=["stroke-width","stroke-linecap","stroke-linejoin"];function a9e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,s9e)}var r6=$e(o9e,[["render",a9e]]);const Ug=Object.assign(r6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r6.name,r6)}});let kne=0;const l9e={mini:16,small:48,medium:64,large:80},u9e={mini:4,small:3,medium:4,large:4},c9e=be({name:"ProgressCircle",components:{IconExclamation:Mz,IconCheck:Ug},props:{percent:{type:Number,default:0},type:{type:String},size:{type:String,default:"medium"},strokeWidth:{type:Number},width:{type:Number,default:void 0},color:{type:[String,Object],default:void 0},trackColor:String,status:{type:String,default:void 0},showText:{type:Boolean,default:!0},pathStrokeWidth:{type:Number}},setup(e){const t=Te("progress-circle"),n=lr(e.color),r=j(()=>{var p;return(p=e.width)!=null?p:l9e[e.size]}),o=j(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:u9e[e.size]}),a=j(()=>{var p;return(p=e.pathStrokeWidth)!=null?p:e.size==="mini"?o.value:Math.max(2,o.value-2)}),s=j(()=>(r.value-o.value)/2),l=j(()=>Math.PI*2*s.value),c=j(()=>r.value/2),f=j(()=>(kne+=1,`${t}-linear-gradient-${kne}`)),h=j(()=>`${Fl.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}}}),d9e=["aria-valuenow"],f9e=["viewBox"],h9e={key:0},p9e=["id"],v9e=["offset","stop-color"],m9e=["cx","cy","r","stroke-width"],g9e=["cx","cy","r","stroke-width"];function y9e(e,t,n,r,o,a){const s=Me("icon-check"),l=Me("icon-exclamation");return H(),Q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:le(`${e.prefixCls}-wrapper`),style:Ve({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(H(),Xe(s,{key:0,style:Ve({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(H(),Q("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:le(`${e.prefixCls}-svg`)},[e.isLinearGradient?(H(),Q("defs",h9e,[I("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(H(!0),Q(Ft,null,fn(Object.keys(e.color),c=>(H(),Q("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,v9e))),128))],8,p9e)])):Oe("v-if",!0),I("circle",{class:le(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:Ve({stroke:e.trackColor})},null,14,m9e),I("circle",{class:le(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:Ve({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,g9e)],10,f9e)),e.showText&&e.size!=="mini"?(H(),Q("div",{key:2,class:le(`${e.prefixCls}-text`)},[ft(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(H(),Xe(l,{key:0})):e.status==="success"?(H(),Xe(s,{key:1})):(H(),Q(Ft,{key:2},[We(Be(e.text),1)],64))])],2)):Oe("v-if",!0)],14,d9e)}var b9e=$e(c9e,[["render",y9e]]);const _9e=be({name:"ProgressSteps",components:{IconExclamationCircleFill:Sf},props:{steps:{type:Number,default:0},percent:{type:Number,default:0},size:{type:String},color:{type:[String,Object],default:void 0},trackColor:String,strokeWidth:{type:Number},status:{type:String,default:void 0},showText:{type:Boolean,default:!0}},setup(e){const t=Te("progress-steps"),n=j(()=>{var a;return((a=e.strokeWidth)!=null?a:e.size==="small")?8:4}),r=j(()=>[...Array(e.steps)].map((a,s)=>e.percent>0&&e.percent>1/e.steps*s)),o=j(()=>`${Fl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:o}}}),S9e=["aria-valuenow"];function k9e(e,t,n,r,o,a){const s=Me("icon-exclamation-circle-fill");return H(),Q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:le(`${e.prefixCls}-wrapper`)},[I("div",{class:le(e.prefixCls),style:Ve({height:`${e.mergedStrokeWidth}px`})},[(H(!0),Q(Ft,null,fn(e.stepList,(l,c)=>(H(),Q("div",{key:c,class:le([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:Ve({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-text`)},[ft(e.$slots,"text",{percent:e.percent},()=>[We(Be(e.text)+" ",1),e.status==="danger"?(H(),Xe(s,{key:0})):Oe("v-if",!0)])],2)):Oe("v-if",!0)],10,S9e)}var w9e=$e(_9e,[["render",k9e]]);const C9e=be({name:"Progress",components:{ProgressLine:t9e,ProgressCircle:b9e,ProgressSteps:w9e},props:{type:{type:String,default:"line"},size:{type:String},percent:{type:Number,default:0},steps:{type:Number,default:0},animation:{type:Boolean,default:!1},strokeWidth:{type:Number},width:{type:[Number,String]},color:{type:[String,Object]},trackColor:String,bufferColor:{type:[String,Object]},showText:{type:Boolean,default:!0},status:{type:String}},setup(e){const t=Te("progress"),{size:n}=Zt(e),r=j(()=>e.steps>0?"steps":e.type),o=j(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:a}=ga(n);return{cls:j(()=>[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=Me("progress-steps"),l=Me("progress-line"),c=Me("progress-circle");return H(),Q("div",{class:le(e.cls)},[e.steps>0?(H(),Xe(s,{key:0,"stroke-width":e.strokeWidth,percent:e.percent,color:e.color,"track-color":e.trackColor,width:e.width,steps:e.steps,size:e.mergedSize,"show-text":e.showText},yo({_:2},[e.$slots.text?{name:"text",fn:de(f=>[ft(e.$slots,"text",Ni(ha(f)))]),key:"0"}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(H(),Xe(l,{key:1,"stroke-width":e.strokeWidth,animation:e.animation,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"buffer-color":e.bufferColor,width:e.width,"show-text":e.showText,status:e.computedStatus},yo({_:2},[e.$slots.text?{name:"text",fn:de(f=>[ft(e.$slots,"text",Ni(ha(f)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(H(),Xe(c,{key:2,type:e.type,"stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,"path-stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,width:e.width,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"show-text":e.showText,status:e.computedStatus},yo({_:2},[e.$slots.text?{name:"text",fn:de(f=>[ft(e.$slots,"text",Ni(ha(f)))]),key:"0"}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var i6=$e(C9e,[["render",E9e]]);const Jhe=Object.assign(i6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+i6.name,i6)}}),x9e=be({name:"IconStarFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),T9e=["stroke-width","stroke-linecap","stroke-linejoin"];function A9e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,T9e)}var o6=$e(x9e,[["render",A9e]]);const Dz=Object.assign(o6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o6.name,o6)}}),I9e=be({name:"IconFaceMehFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),L9e=["stroke-width","stroke-linecap","stroke-linejoin"];function P9e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,L9e)}var s6=$e(I9e,[["render",P9e]]);const fj=Object.assign(s6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s6.name,s6)}}),R9e=be({name:"IconFaceSmileFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),M9e=["stroke-width","stroke-linecap","stroke-linejoin"];function D9e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,M9e)}var a6=$e(R9e,[["render",D9e]]);const Qhe=Object.assign(a6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a6.name,a6)}}),O9e=be({name:"IconFaceFrownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$9e=["stroke-width","stroke-linecap","stroke-linejoin"];function N9e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,$9e)}var l6=$e(O9e,[["render",N9e]]);const epe=Object.assign(l6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l6.name,l6)}});var u6=be({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}=Zt(e),o=Te("rate"),{mergedDisabled:a,eventHandlers:s}=So({disabled:wu(e,"disabled")}),l=pe(e.defaultValue),c=pe(!1);Dt(r,D=>{(mn(D)||yl(D))&&(l.value=0)});const f=pe(0),h=j(()=>{var D;return(D=e.modelValue)!=null?D:l.value}),p=j(()=>{const D=e.allowHalf?Fl.times(Fl.round(Fl.divide(h.value,.5),0),.5):Math.round(h.value);return f.value||D}),m=j(()=>a.value||e.readonly),g=j(()=>[...Array(e.grading?5:e.count)]),b=j(()=>{var D;if(ts(e.color))return g.value.map(()=>e.color);if(lr(e.color)){const $=Object.keys(e.color).map(B=>Number(B)).sort((B,F)=>F-B);let L=(D=$.pop())!=null?D:g.value.length;return g.value.map((B,F)=>{var U;return F+1>L&&(L=(U=$.pop())!=null?U:L),e.color[String(L)]})}}),S=()=>{f.value&&(f.value=0,t("hoverChange",0))},k=(D,$)=>{const L=$&&e.allowHalf?D+.5:D+1;L!==f.value&&(f.value=L,t("hoverChange",L))},C=(D,$)=>{var L,B,F,U;const z=$&&e.allowHalf?D+.5:D+1;c.value=!0,z!==h.value?(l.value=z,t("update:modelValue",z),t("change",z),(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),(U=(F=s.value)==null?void 0:F.onChange)==null||U.call(F))},E=D=>{c.value&&D+1>=h.value-1&&(c.value=!1)},x=(D,$)=>D>$?O(fj,null,null):$<=2?O(epe,null,null):$<=3?O(fj,null,null):O(Qhe,null,null),_=(D,$=!1)=>({role:"radio","aria-checked":D+($?.5:1)<=h.value,"aria-setsize":g.value.length,"aria-posinset":D+($?.5:1)}),A=D=>e.grading?x(D,p.value):n.character?n.character({index:D}):O(Dz,null,null),R=D=>{const $=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,F=Math.ceil(p.value)-1,U=b.value&&e.allowHalf&&D+.5===p.value?{color:b.value[F]}:void 0,z=b.value&&D+1<=p.value?{color:b.value[F]}:void 0,G=[`${o}-character`,{[`${o}-character-half`]:e.allowHalf&&D+.5===p.value,[`${o}-character-full`]:D+1<=p.value,[`${o}-character-scale`]:c.value&&D+1E(D)}),[O("div",Nt({class:`${o}-character-left`,style:U},$,e.allowHalf?_(D,!0):void 0),[A(D)]),O("div",Nt({class:`${o}-character-right`,style:z},L,e.allowHalf?_(D):void 0),[A(D)])])},M=j(()=>[o,{[`${o}-readonly`]:e.readonly,[`${o}-disabled`]:a.value}]);return()=>O("div",{class:M.value,onMouseleave:S},[g.value.map((D,$)=>R($))])}});const B9e=Object.assign(u6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+u6.name,u6)}}),F9e=be({name:"IconInfo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),j9e=["stroke-width","stroke-linecap","stroke-linejoin"];function U9e(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,j9e)}var c6=$e(F9e,[["render",U9e]]);const tpe=Object.assign(c6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c6.name,c6)}});var V9e=be({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)])])])}}),z9e=be({name:"ResultNotFound",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-1241.95,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,295.2,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(0.38223,0,0,0.38223,1126.12,238.549)"},[O("g",{transform:"matrix(0.566536,0.327089,-1.28774,0.74348,763.4,317.171)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.29595,0.170867,-0.91077,0.525833,873.797,588.624)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(1,0,0,1,275,-15)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,183.952,-67.5665)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,414,-95.2517)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,322.952,-147.818)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",null,[O("g",{transform:"matrix(1.42334,-0.821763,1.11271,0.642426,-1439.64,459.621)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.40786,-0.812831,6.60237e-16,1.99081,-2052.17,-84.7286)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.26159,-0.728382,5.91642e-16,1.78397,-1774.67,11.2303)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.2198,-0.704254,5.72043e-16,1.72488,-1697.6,37.2103)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.707187,0.408295,9.06119e-17,1.54833,-733.949,683.612)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.74666,0.431085,2.3583e-17,0.135259,-816.63,57.1397)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,354.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,309.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,263.931)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("path",{d:"M555.753,832.474L555.753,921.408L630.693,878.141L630.693,789.207L555.753,832.474Z",style:{fillOpacity:.1}},null),O("g",{transform:"matrix(0.750082,0,0,0.750082,236.431,272.852)"},[O("g",{transform:"matrix(1.64553,-0.950049,1.14552,0.661368,-1606.78,467.933)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.54477,-0.891873,1.05847,0.611108,-1456.84,490.734)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.27607,-0.736739,0.751435,0.433841,-970.952,617.519)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.728038,0.420333,3.52595e-17,0.377589,-790.978,151.274)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2726.83,1873.38)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",null,[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])])]),O("g",{transform:"matrix(1.62765,-0.939723,4.80984e-17,0.173913,-2468.81,2307.87)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)])]),O("g",null,[O("g",{transform:"matrix(0.479077,0.276595,-0.564376,0.325843,598.357,-129.986)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.15,1317.28 1767.24,1317.28L1684.37,1317.28C1679.46,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.46,1404.46 1684.37,1404.46L1767.24,1404.46C1772.15,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(2.61622,0,0,2.61622,-2305.73,162.161)"},[O("g",{transform:"matrix(1.09915,-0.634597,1.26919,0.73277,-299.167,-62.4615)"},[O("ellipse",{cx:"412.719",cy:"770.575",rx:"6.303",ry:"5.459",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.238212,-0.137532,0.178659,0.103149,875.064,207.93)"},[O("text",{x:"413.474px",y:"892.067px",style:{fontFamily:"NunitoSans-Bold, Nunito Sans",fontWeight:700,fontSize:41.569,fill:"white"}},[We("?")])])])])])])])])}}),H9e=be({name:"ResultServerError",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;"},[O("g",{transform:"matrix(1,0,0,1,-483.054,-445.448)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-463.699,-87.5516)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:"fill: rgb(235, 238, 246);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,260.021)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill-opacity: 0.1;"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,218.845)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,238.807)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,257.804)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,329.956)"},[O("clipPath",{id:"_clip1"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip1)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,269.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"112.301",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,265.448)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,268.45)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,271.452)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,124.262)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,420.796)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,419.062)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,417.329)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,415.595)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,413.862)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,196.542)"},[O("clipPath",{id:"_clip3"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip3)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,68.2716,1030.07)"},[O("use",{href:"#_Image4",x:"50.54",y:"56.312",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,216.764)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,235.762)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,307.652)"},[O("clipPath",{id:"_clip5"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip5)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,321.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"89.692",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,243.144)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,246.146)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,249.149)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,101.958)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,398.492)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,396.759)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,395.025)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,393.292)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,391.558)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,171.832)"},[O("clipPath",{id:"_clip6"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip6)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,12.6215,1078.27)"},[O("use",{href:"#_Image7",x:"50.54",y:"31.563",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,192.055)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,211.052)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,282.943)"},[O("clipPath",{id:"_clip8"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip8)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,378.876)"},[O("use",{href:"#_Image2",x:"50.54",y:"64.644",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,218.434)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,221.437)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,224.439)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,77.2484)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,373.782)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,372.049)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,370.316)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,368.582)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,366.849)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,185.45)"},[O("clipPath",{id:"_clip9"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip9)"},[O("g",{transform:"matrix(1.36821,1.1849,-2.36981,2.05231,5.46929,1071.93)"},[O("use",{href:"#_Image10",x:"53.151",y:"30.14",width:"106.825px",height:"61.676px",transform:"matrix(0.998367,0,0,0.994768,0,0)"},null)])])]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,183.729)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:'fill: url("#_Linear11");'},null)]),O("g",{transform:"matrix(0.407622,0,0,0.407622,47.38,278)"},[O("clipPath",{id:"_clip12"},[O("path",{d:"M1461.07,554.317C1461.07,556.747 1459.6,559.067 1456.6,560.8L1342.04,626.943C1335.41,630.767 1323.83,630.287 1316.18,625.871L1205.33,561.871C1201.14,559.456 1199,556.361 1199,553.426L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,554.317Z"},null)]),O("g",{"clip-path":"url(#_clip12)"},[O("g",{transform:"matrix(2.45325,-0,-0,2.45325,1068.82,410.793)"},[O("use",{href:"#_Image13",x:"53.151",y:"58.978",width:"106.825px",height:"33.517px",transform:"matrix(0.998367,0,0,0.985808,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-19.3677,248.256)"},[O("clipPath",{id:"_clip14"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z"},null)]),O("g",{"clip-path":"url(#_clip14)"},[O("g",{transform:"matrix(2.69214,1.16573,-1.29422e-16,2.0191,1352.59,983.841)"},[O("use",{href:"#_Image15",x:"121.882",y:"76.034",width:"37.393px",height:"61.803px",transform:"matrix(0.984021,0,0,0.996825,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-15.0786,249.972)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:"fill: white; stop-opacity: 0.9;"},null)]),O("g",{transform:"matrix(0.220199,-0.127132,1.41145e-17,0.293599,339.708,327.53)"},[O("path",{d:"M1306.5,1286.73C1307.09,1285.72 1308.6,1285.48 1310.36,1286.12C1312.13,1286.76 1313.84,1288.16 1314.73,1289.7C1326.44,1309.98 1355.4,1360.15 1363.73,1374.57C1364.33,1375.61 1364.49,1376.61 1364.18,1377.35C1363.87,1378.09 1363.11,1378.5 1362.07,1378.5C1346.41,1378.5 1288.17,1378.5 1264.07,1378.5C1262.42,1378.5 1260.37,1377.48 1258.9,1375.94C1257.44,1374.41 1256.88,1372.67 1257.5,1371.6C1268.1,1353.25 1296.8,1303.53 1306.5,1286.73Z"},null)]),O("g",{transform:"matrix(0.254264,-0.1468,1.22235e-17,0.254264,329.57,364.144)"},[O("text",{x:"1170.88px",y:"1451.42px",style:'font-family: NunitoSans-Bold, "Nunito Sans"; font-weight: 700; font-size: 41.569px; fill: white; fill-opacity: 0.9;'},[We("!")])])])]),O("defs",null,[O("image",{id:"_Image2",width:"113px",height:"47px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAAvCAYAAADU+iVXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABVUlEQVR4nO2aQRKCMAxFxUN4O+9/DNw4CoiTliZN8vPfQlm00ykvP3aQ5fFc11sjy/L+/nx8r3ffm7Fn845jz+aJa23XOJvfs9Zh7NBawv3YrSGtdbj+x10egkFzpRrNt+SSxMgbqkiZJCJDiQDoSmSfdYFJ3JD18GMmcXhDTHUzNZIIXhA1JIJDib0MptqiKbhKzHqQiAaT6IlSFVIiAJQIACUGpLfLhpfIw49Ml8T2v4/JTPySyIJQI3w7JTIYEp2fong3FXWJ3huqCEYSNUlYhZRoyaSCoEQAKHESlqF0kZj9NBgNJhEASgSAEgNx9WfCTmLxpygzYRIBmCORsTIlXxJZED/kk0h+KC1x9E2FKG86qEkMsh8/HG9A6SSGYqAIKDEinUIpUSDDYXiqxAw3JCNMIgDXJTIWYdBJIvukK2ynARit4XASUZ6izCScRFWKCH0BfLM84oTw1Z8AAAAASUVORK5CYII="},null),O("image",{id:"_Image4",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAASeElEQVR4nN2d6ZbcNpKFL5cs9UN1W5bntWxr6XmsWTzLQ7mSJDA/gh/iApWyLalUy+AcnypVJkEAsd24EaQn/T8Yb9+XKknrOuk4pOM4tCyLpkkqpWpZJu170TzPKqVoWWZJUq3Sbx+m6VkX/wjjVW/gH7/sdZ5nTacc5lkqJT6rtWqaJtVaVUrRNE26XGbd3+9alkW1Vi3LrFKq/uvj/KrP4dUu/t3HWkupmuepWVspIcjrddc8z1qWWcdRTusLwc3z3Cz1OA5dLouOo+o4Dv3vv15e5Xm8ukX//eetTtOkdV20bWFVkrQsk+ZZOo74Xq3SNMVPqXextYal1lq1rrNqlfb90LrGXP/5/nW52Fez2B8/1FpPiSxLLLsUaV2lfZdKiZiHkHCtuFWPj/73cvpfLDQseNJxvB43++IX+cOvR5WkZQkBbdsh4uCySNtWWkxEuLVKx1HOuLecFjdp3/NnWiYKUbSuAXiOIwR8HIf+55/riz+jF73Anz7VWkq4RSkEI+m0Fun+ftflsra/r+usfY/fATVY3DzP2ratCe3Nm7UhWawv3KzO69PtllJetDBf5MJ++hRHWWu4QCkOm1h4HH2agJuVpHme2ufHUXS5zLpeQ1B8Ns9zu2ZdU3gAJdwxFh3zxjUv0cW+qAX9+KFWhMV/Urg6kCUWcxzpRvlsmno3ehwBVhDKcWRMZQ6uQ4D7HsgI1MrcDIT/koT5IhaC28T17fuudV0bWAmhTJ0QpN56ti1cq4MXSR1wiWv6+ChJ12ukGpJaunG5rJpnad9rm+NyWVRKgqiXQhQ8+yI87pEicDQIRApAg3US60gvPPYhbBceqYTH17DEo8VLSVqWTFGmKdKOZVm0LDKlqIaEQ+GeO798tpu/fV/qPE+nCwwLiwNVi1FhCaUJIFxbury7uxAiwrled0k6Dz6F78J2FgcBk2qs66J9T/QrpRt2MoH7RX6ZXuO/Py3Pcp5PftMffj0qdBeHF4AlXJwU4ETSGavUMSsAD1AlqYDHvut1P61y6QRPMg/g2bbSudnJvCNCgmsFQKEE8Z2p+1x6Hi72SW/47mPk6/u+txwNa4vfpw4hYi3Lok7AHBiHCfjArTr6ZE4Sfr+W+aVAqQgVpUCJJBQq1kas7FFxAqTLZdK//fx0wnySG/3LP2sl1uEKU4uX9r1Siu7uliYwhHwctR0y1zmz4gwO80gp3OM4dHe3NqIAy3R36kjX4yvVj31P4OR0HYJluPVOk/Qfv35/YX7XG/z4IVSVQ8d11lp1ucydsNxlLsukbQth4zLnWQ8sA85zWZYm7LCiiFEp7J6O477rOul6TU5VUpdHjgJmL4QDKiGxzmSP3OqJ8d+Tj/0uE//w61EBI57jSWldUk+hxWc9OR1Wk+4WYWNNaD2jlNKsxdMOEnZJ7dC3bTcFmZpQSimNzXHl81ok7tndvAOlW8KXvl9u+eiTAlyoIozuB4DhrAt/w6qkdL3kb1Jymli0xzSH/Vi153QcLqmJX0t6c70erTqyrusfKhPEggOjmGvqANAIxNZ10r//8rhW+WiTkTI4iCDuOGAZ+U8osXWddH+/twMn5iEIeFEswasRkroir49l4cDVhM/Bcshc44LwCkcKZD6tfW75JHN6jRJlQnld+NzzOB4vJfnmSd59rHWMTwEkFh3HeDBxDVaIwB1JjlxofhZCj0pG7bQ9508rIH+bJq6JU/eaYsybaczd3dJVRXCZpajVLhEMua2j5VueIeZxAqNXnlrrNwvzqy/+6VP1s+6Sdnpd/LAYxJ1lWbTv+2mpc8ekeOz5XJINkPEknbSABN/dIfFrniddr9uZm65tPudsGS4gLyqzX9ZTSgIq9iipoWfQKyGm1qyDxn2+DcV+1YU/faqVxbEZL8Iy3AURV0Z2Bgjv8aPW2iyJgbDcejk4YiCQnwEH6gpGuuHxknV5GAApe+rhjBIM0Zs362dJAwTM2uNzNWAnPQRtX1Py+qILEJ4kXS6Tfv89ER6D2ITLjEPpSWjiCL8DXvhezrO0eIhuJILNQ6IqUUqS2lJAfikQKWi01tq5enJBXKQn/SiK57LO3XrvDvdxZgfSAC+xbXvjat3K2a+fyZe42L/0RfI94sO+H11S7ptzwDFCbQcKHuTTitVZhR+g/x13u+/HGaPWJtBucwZOGNQXmddjl9cYr9fjjIlzQ6EolO9vjIHM4Yo65o6+L1CuK76j2b+SlvzhF959rBWEySY9r/IWBxeapJsxgs9gP9y6cHlj99q+9zwow8tRzIFr4l4jqHJkPOaAzOFzOnjy3z3ZZw73HJwRQM/PZZzLz5bwdH+/6e7ucirDnxeiP/shqPN63U1rMo5J6nI/YgiaD9IbUahX19mwI1dHp+6SRvDgBzIWbaHvIu7VB4dIHCwly09es8TF46JZH6AJl4i18H2KyMuS83tbpSvXuk4nKs70ybGBnwWe4XPx8sEf//7zVtd17YAKNJgjPrSNSjqCy5bBjBmx+FyUC5IxghyPM1w75nMIxF0v6yVmjqzQmJT7YaKYYdUJtCQ1ZaKjwNMPZ4ig+dwlxv6mdi2CJm0ZvYafnYcg1jNWSto/3r4v9ZZms/HRlTjKQ0ggMQcCXhPctiwZObr0+7iC8D0npEHCgBuGu0f+/ebN2oTh1ZFQjhAUwvBiMMriB+kpTwi1z1P9++wF0OSAB4HggpkDz+WKFF6uV2z3fljm5IgTM0ZjRqQ2ukKPDSzO3aa7orHhyGONI8FsR8wD8Prfus5dh/donX4PDjYtZ+q8ixecHUl6l/jIf8LYcOC33Dnu2lOQEEAqsKPymPchNnDBj/2yDnwmmnK9h2WEzLhWhifcnvDimm5B5xH0eFwZEah/lw2wMdryuX6sMKTVBnrl87E7oFZ1uagDHPZIDuzC2/eoF+57368z5pPUTDGMUaHhjdnPSNXhacbvO4BrBoNWQEthUQ7NXSNCcHHQYSnxtzjgZFxG7eU+6S5n0856WmJfaOXacKHTef/ZWJ4ERB4BYv0xN4IJ96fu4CC5Y/299W7b3pRx33cdx9GUwKszpFnpVQL8ZQpTT4XILvTLJWuRtVZdLuvpcY4GchAg3wnsQdf7fLJiZ7nucoleTvpViEfRbLurlKJ9P0R9zjcQ2l5PTcxDpIgaLjc/QFvRqlLKqWW90gSY6asBbNoJ5/QYcd3lMneQnYNIIAQhjkLoTAVK21+eQWrF5bI2yO9rZB8BpNxT8GwITExt3kuKpmcPJft+nCEj8QHnOU2TLpelU7JQdhR60gzHSWCPw4kvRNse6Cpb58NNhN/3+MXNp4lmpfk8uIxzjiyzWiCt63JuPONcBPjpVCSaoJhrOQ+otPgUrj3dZ+ynnGWp0lkTQMsbo6KaklYFmYBFuXsOoKS2/rT+uSl74Ae8SQhynjPnDYusZwpVTmFmTJXCC4T7zHXFd0u754zv9aQ6hJDawE1i0nrGtNHNzp3Gx3dDMwJKT6ebqJ2WpSstLb5SPkLYcbhrs66Ma7W7p1sdG5+mqeV2d3f5eFsp0UcKp5nxWuf9lnbYXjCutbbQwz7dK3C4t/7tqBdwlLhj7lgkUheUi/RlXRMLtNDkQuDQ2EwejE6Txh0Gyrpe9xYj0MrrdWtaFDeSKcbcDrBPvp2P7BXBlQPrgtlY16nrYNu2ox22K1Ek7rV5m5hD5uZAxulmM16lN7hcLlpXd9mJavEarBe37fGbGOasUn/mx2mpkPJHM6DoWCgNaHEPSZoxSQIrpr8sKcTQjocVgiAFKPMEyPnb3y7NbXiciU7qkTlJITT/PmM5STaQNzn4Oo6qbStdyoOg2XgSErWzOD+MzHOnM/bXbn2wOl4uC1DUK7S7PI/5/MTL8W/iIvdGwblH/7SXt3hSgMjcc/7twzQFsKhnHOu7zxws3mIWvM/kONRATghy7jbM4XBAaDNaz+/ExQQ2vav0DjMs7+5ubRZfStWbN+tpFRmTwhVu56GGJUfYANpHQTs9TD1jYW3MET2trCNqolCEEXe3bX8Q23wsy3KS9tNZ2chqTICsuB8MkbNEefY6UfCUjA09oeR+TjPBRDhMJj/yZHesQLjvHvnDyHcOcz+525HKg3DgQBB23BNSvafFXPHCivdWe/T0BCKBkEDO5wfrMZ690k7iBLfv2+/Nnih3ZZqVzV6eQ2ca1VOfyAVlpYPuAXf6w69HRTDOSUJ1OUODK4VJyUCftUQqERRnnTz3p47CctON4Ipo9/BnIjzPQ3mc2+WQ6d9hH5DiHJz37XDIsf5UNhTTFQY35uuE4QqFedgoxVhX6f4+FS7z2KPjSsdaLGSF9Afc6Tho+B0tKm6Q7A6jTzN6rXRqzVGVL9gZDRTBm4wkDe0cbm09COO7zsZwyM6lIhj3QOMenT1yxiisI1MtUD50JHO612B/sz04RGbg/UCu3G6lnytJfVaIDIhxKUtPvmkHFH6QuLVbLfmOEhGCF0bd/2MJY/u+Wyqbj8/yIFAsn+9WYXp0b27NiQbVXR/INSx726L+xx5w3azLH/Rx78Y8biBO03nnwB/VFP9UiFI+N4/b+1wNzA8AV0Tux8K8y8sJdCeV4T1HlwPmwn07F+oCxI17DB3LQAyvdXa51/A01Gjld3fe/9P3lUaumUqO1/E+G+ZBuM6fEo+lv9Zw/JeEyHj7vtSE6KW5tlhYDwhwB+5SvGDsKYs3XAVK7J+7cMDi7i0P0d9Tk4/Lcf3Y+uCIGqGS81FZGEEE8SnnDJxwf7+1RN2TeI+3faGgXzfM0RiyvqRb/IuEyPAne/0gvGbn8XAM0qNFjMjSEaWDFag7Ns3fYo5wYR5fODzosh6mZ58se0iXP3VKABd8qyls7FCgQoM38aIwrvXubhXPjYT1hiAvl+WrWhe/SoiMdx9r3ba9FYcdsPATq0MLSV04SEeCoE93yxyAIzxHjMsy6XpNAQaAWdr3cYNYqb/ACEXyZzWSe+1flcKAfPBWjFt9SCPwGoGUdyIg/K99Q8c3CVFK4DPmiuNz8xRzqbGND7k4MMFyvJHJEWBel+4JZcLaoarI/WLusWUkrdJDgIMdVybAjyNp0iLQqgvM+2K5npqkM1ff+qDNNwuRwZNQkiO51OQR+IyFUM+r+mfk+2Ymb5kYXVm3MQMitxDo+HQVa/Jiredmjh79+35fqvUoknce4GkgSEopj/as/6MJkfH2faluhYAF75qT+ke66TDzxByXOLpD4qbnpWPq4vkWvUDjsxOOHhGw9w8FNTbdtGLefeO4AKtjnW6hxHvW+tiPhD+6EBkgWafi0NxMqLMxV1JzO/nSvRDMSGUx3NW5sBwZ8293Y2Mvq6PbsbKQCHlurNDIEI05rOefTliU8n3eTPXdhCipPXQDqPEOs/FgsB7i3mGMgLfCe46aaDIZfY9rntLwaJv0UHnGFAIheC+QP3rnDE78VKsNEoOdTqz1+76Q4bsKkfHjh3z8jYP2eIF78u4zb8N482bV/X0++CllY7ET0t7z6k1bWA6oOL4TPz2mpkt/yBG7O7/VsXeLbXqqF/w9iRAZvCk4qyL9YUk9HUZMcsAwHhYgyHNCrMU5Tql3dQjM06Jb77FhjZ97xM4JArzIND3tO1OfVIgM3tntVsWIikc0JXkJa3y2A+33vM+tydkbKd359Rrm+rlccryPs0kjIxPr7b2HpCd/KdGzCFGKlCRLTA9fTuSVhs/1nYIo/ZAdaY6v9fL6IDVLYh41O3JcrIoOB2I3aQgx1K99ited3BrPJkSGv0k/QU1SXaBIJwPGOOYpRyLTqfs+sdObgD1l8WqL1yoldUwQXgHhS8//xsVnFyLjxw+13mJn/O1Okk5O9eGrouuNup2/+MgRqZeaHAzxXQTtL2tAOUh7njru/dG40QHyPOO3D9ME6EGAPUUWLvH337cmJBJorwyEi0xrTlaIZuVDNCtfr4fot6EXKB9Xyw6+7FxLxXopApRekCX6ePexVtzc+MZhSc1KnEgAzUpZb/SHVp3IdvLZLXPsOhgrM4/Bc36P8eIW5IP/9wWW5+S354hSz6z4+25IJ2BzmCuuiZ+AFn9x4EiKv5QX1N4aL3ZhPqDwvN/H63vENqe6kgbrCXAHObcq+k504w1eovX5eNGL8/GPX4KJBpXi4oh/lLrGd7tRdIUsx7L89SjEv/EFuS9deIxXsUgf8LF9p3a+o3TsO3UOk1eQSLQY5iulqXpIz58yfOl4VYv14awPeZ0XpEnE+Y7Hwuw4ry33k16f8BivctE+/H8/5IBkfLmfv2Wf3NIF/ZKBy5+NV7twH2OVRPJH1fp3vsG0IMTnevn6Y47/AxX1K5XSf237AAAAAElFTkSuQmCC"},null),O("image",{id:"_Image7",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAMrklEQVR4nOVdW2LbNhAcUD5Xkl4scXqxpr0XiX7AQwwGu7Rj2RLV7o8lknjtc3YBygX/Afr2XOu2bQCAZVkAALVWlFJQClAr9mvLUrBt7R4A/Hp++fDA9NAL+PpjqwBQSkF9kVQkOBIFx2vLUlDr4wvyYSf/7blJghanglFLc9q2DZfLgnXddqvl9X/+vDwkPx5u0l9/bFWtTf+q8Hidwt22DaWUXYCtj3H5bPNolvkwk2Xc05hHcjep1yk8Fy4tksSmfH5ZCv768RjCPP0k3W3ysxKFtSwLaq0vAGYZXC2vtefHmKn9Lkv7TKt+BKs89QT/+FnrtnVECYwghuRukfcpOL1N4fgzrZ/umgHsbvfsVnnKiX35vlYFHUpMJQAMwMQtqpSCdV3x9HTBujbXSUUAZmVQa876A84ZL081oS/f1+qAQwGLusx+vz/rSNUtbk5FZvccpSuOdmut+PvnchrenWIidJvAKJRIaPpZY6B+Z/6nAlBrisjjp4KezKWfRZB3n8QfP2tlKuBWAHS0SMZqOFSAwu+R1QA9sVdhupA5riNapUjY946Xdxv823OtHnfIFGp+lv+pZSiaZH/e1gVIlmseCXRBk1SBFO26i6fA7xUvbz4oS2UABoaua699ZjFK25CJ/NzajukBgMmNerzUNuyD1Rw2U6XR/ihAzhu4D/C56YDM+QAMDMqScrUiYMzjiDjVmjT2aTLvlhtZLeOvI9RufWWyRCUt9906Xt5kIFpf5uaUKarlR0jUy2p+X2Nh62+2bi3faaxz1JoBInf1nr/WWm9Sj/3UAb7+2KrHo6hC4gJ0kAOMwMSf0RwwSgu8isNrDpSU1KIVBY9zX+Rz9xAaP3n/My3zUzrWOqdbhLpGPqMuFMhjkGu8pxZRKuE5H0ljYFaC0z60b8ZNutllAbatC1PdcxurPftZgvzwTnWDFuhJdSlzHFOozudGsHBsxeMYc5xiHxm6jdyx11mVojHVkt2zaJ/6+aOF+WGdffm+7hu0zrB9sCC2ULiRNUUF6fa5l9H0GjCX4nRsF9BRPsj2kVC8fyofx88KC5/lYq/uhPt7zni6FFoetZaCjQU2okPgWBBqtXrfXbczmP2qmz7a5oqAVwR6Mkv1Zz3eXpuWvLux7jBwog7bIyKTNaboEjQ+7ZMUl+RQnvdVYTKE6S48AiD6LOepwMmVTfs6Qsw+P1/XNVb5roaa7wFjzIqAgloHidaoRyUiVOruz9MOIE4ZpoVapcfben9ODpAyC9M+dc1UWmCuDGnb9wjztxqo65wXNqcNUVDXeBmdc4kWqsKLQBL78zIcx6U71aMZfa6xW86uOeKOarU6R3fZ6n2y3Bj4vcrPmx789lyrx7QsH9OFXC4F6xqnGBHo0aqJCihzpa+hV33OEWpk/ZGFkJWeh0YVI953ZSU+UIGyzeVSQDDvHgF4m2UePsAiNRmoNUXX9NcOIDkTyJhs0R782/PxZzLAtZ3XNYXxeKhMzRivfbW1XlKX/1oakn3XsVyxXtslSW+q61QNjayv1oqnp+VlMnGVxRnnwEKFQAaocFQx9BkHPWSIV1OyfUUfb2KQeRnPL13wJHWrkedyZY3auSfKrHK6mIEW7YyTd2txbVbw0vuL9/1GxvXPtG510W3xs6X4wtXyiJo9Trml6jo1vqqCaHvOVcd1AWdgz/FFBu6cTx4v9y9R3BsZO2uPCkM1Xl1vhvwi16j967PKKP0cxTMFFC4k9umxl8r2lvlmTPa4TXIBet+RG414wvbqrVhcL9xZ10Hcuo6OO0QD8/MoiNnqdIKZ4pB8AY4ql4VKNQ0zzU3XGrlgjdk6F80ds3VxHd6vto3G8fyTc4x2ftimlLYRXfx9Bg/+RxoRAYMIYUX3IxfdJz6fOHPGt+8Yis9jSjDHnAzRcj56cDg686NziEALKQNdLhQKg89oKVHvR25+2BPVCXECOvkuVGWyl7fmZF7jUCljfNB2nem8P277aIzhuG0BdJ0ag0bm6PEKlQX7dNR6uSwTCGLb7gEU0I0xMFJQzoHt13Xb16BEdE8Z1NpPOyiPW1/kbVOUJy6+MaUMGuaW1jvE3hlJNYptIhfZJ6CId0aL/XhEmdqy7yjuRrlnmz+ZU3amKVCJ5sO+lZlRESFCvbyuSuHgiXzkGN3tLnt7kuIN9zBPFIpqfktkL4NAI4TlVRXVDk6ScYBMIXEBbMt9RUd8ruVdaGXoT4Wsa1ENZ36nCkjk7IwZ4/Wcv+l1pVHZ66R4kZtuAtKxxudU4I7qSylYdHK8p9pNBvRFjh3rgtpkutvRwTtYKnJPraYrQ3OF82I5R3V1zlB3b02Rln1MjtUtYi4ucA0zSi7Wd//chD4K0EOClyL7sx2YqWA7Nhnz4a7kbdyFDSh9jxMx7MYuMHdZFAQnNrYru4A4MQBD+SqD8XroieMrc3Ujms9qfFXLJwP6urcpduv8KVi9766xucMYuLkSjC61DoqrMX/Mr0fF7Ir24k5ZBxy1I/bxbn1uGRHkBub9ui60Lnx+VjfJ/hXWKyR3N6fITZmpcZ9/+wszfc9ThcM41ePQnMwreFJBUYk0DXIBdtc5sGxYp7r+plTtu26PLb+eS9Fis1pes6hZc2gFZEhHq8s+GLWTWtMtaazAaL9kJEmhvgZ7R6M9PleJf8uLhVe48ilq1O+cqwqBHqqHmrIrjzJdleNy6crl6+acPZy4B+S6xnl2DzEAOH7gyywKWrzyoaiwI7h8OyY6/qBWM2rtnJvRerLjGGOs7Qm0H0T2Z9RiIytRiqzHrU7bRWiXbfnXT+dpH17A8KOd6g32io1PmoVvAFjX1VxbXAgYAUpvq2hQ6WhfLXc5M9DxcSOXFjGabfW6CjUqcGTz8XU3IY3u1wERkKc4vn72rWN6IXxWvRfSQngWrFWjfTG+aPZ2lFtFWsrJ6zjqLbQUxTFG1DimGmq97hK1LRALVj2HMz1atyuok3o8XU+0qZ5tFKdCJOm7EzqZyGqUGdGiIgaxjbpMzS3VYltfnEd3tRq7FOFqnOHzylivZWZzzcKB3su8hc5TQ4saQOQu3WCOdvpfFSLQD0VlKCsThPrvvtjxJRqPmd6nMydihraL4mAkkGynnVbrrjD6q3OLGD8x+6AvnyObv+W1uTcJkcSd/sjslZFR3Iqq+srQ6Liiotr2fY4vc/yMT75pm+hsaCk9pXDhZ3E5U+bIUx3FPi+8v2U3X+m3hEji9pW6uKOJRxpHxmg88A1gXfDR+ZouiDnuaLw8iu0TY4LrPjb78L5UOTxsRHxQPr3nDOq7hEjyHwaKDjpFsTJzJZGL3Cdaeo7Fw1fRM1FKQWUBxkIC73Hu0Y8zeExrfcRbVUcuNVN4Heu9h4ivEiLQUawDhkAOALRgsEzxTZ9xrScz94kbkFGA47sb6g5Lab+q0Sw9Pi7ZxxjzP68kqTVyHvxOPmTHULgPClz/YurVQiTpu/fDAAkQcMa6Fkcbq15XVQFGxwd53wGIx0udBxAXFzxdorJkz+kcVMBt7e3vR73r/2FCJPm7GRkgIJGpwJhAq9D8tJ3qicdHLbpHqNaF6CAt3hQe88kIWPn61KXrXwAf/uLphwuR5O/mAzEIUe1u17XwO8Y1t1rdQPb+dQwlzw0jhJmVHCNAlYGkTMCf8U7/pwkRGH+XDRhztAhgROhTBaUC8SqNWjzHygBTlgY4ZejV+1aX6aiT1x7uTWGn6PW3iMmkjBEeWzLk6y7TyWObu9YobrZ2CEt3fN7jfa23+TWNmwiRpL9dE0HwaOdbGeIC6e44P2LpVSG3IHePfiSQlBUAVNDX5nvvpZsKkURhZpYF5AXpKN3gcx6TFDkeKU0Elvg3eukGiBWOz9/6t2zuIkRgfFknQoJRhUaL4wo6nDKAEVWAvBzom9aRq492VIDrXhS9hu4mRJL+LKaDE1IE+9vz84azu9hIgBHAigCOWqgKj6+j8dr/9rfdnHzLi+Qul9eAectHD3rpfbf43maOi442gX5kg5vcFOZZfmUx/mXYO5AyRC3MXWP0mbLUE3BKUWrCds1ix+OPHLe3WXC5XNL53ptOMxElLaz7ybUsufadBY9/fu4mugZgf7vZx6SQz/hvF043ISX/Mdsoz9QYmCX8fMYL0hEqzXLWM1me02knpuRbXsC8tdM+x7vmWmrrQh/P7mgMVGU4A3B5jU49OaXX/i8Gy3N+iizKEbPKkVvsma1P6SEmqeRVH2U8CwGa/wHjXqG++KPWrHniGePeET3UZJX05VhgLouR/H526uxWdc7PoIectBJ/a8B3872yoxvHwHxu51EFCPwHhAjMv/gBzNUYIP5duEeJe0f0L+D749HrhKeLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image10",width:"107px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA+CAYAAAAs/OVIAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nN2dWa8saXaWn5jnzMjMPZ5T1V3tsrGR+TNIvjAgC+y2uw22bIONzB/gBgkEAowZJbiBCyR+CzdIIHDX0Gfvs4fMjHmO+LhYEbGrrabdQw2nCKl0ztlDROQ3rPWu933XVxpf0+vn/0CpplEAeJ7G83MBQByHmCaczzVx7GEYMI7QtjAMA/f/1tK+yvf+Wa6v5Yt/4+8olWU5YRgCYJoawyATZxgargtVBZoGZVlhWRamaeJ5Gl0HRVFx/I/B1+6zf61e+Ju/o1TXDTw/P3N7e4NhQN8rbFujaUY0TSMMdU6nhjh2GUfoezBN+a/rIM9LLi8DHh8LNpuQj/+l9rUZg6/Fi17+eq00TaNpGjabDZ6noesyEY4jk2BZUBQKTdPQNIgiyHMYx4lpmnh+fiaKIq6vAz799MxmsyEMDboOlOJrMWnv9Au++s6gLMvgeDxzc7Pj+Tnn4iICIElqLMvCMAxcV2MYoOtGdF0HoOs6NhuH47HAMAw8z0PXIQyhruHx8cwHH+zo+2Wi4aN/8W5P2Dv7cq+/OyrL0jFNAQhl2RIEDtMEwzDRNA2GYWCaJrZtcDwm7PcxVdXQdR37/Ya2HTFNg7bt6LqOi4uQpoEggGGQnFYUA45jzvcdiWOD//GP3s1Je+de6uf/QKkkqXFdlzDUyLKR/d7g+bmfJ0Yjy+T7fd8DEAQ2AIYhIbGqGkzTpCxLttstcSwTrhSk6YjrGuS5THZZllxcxOg6uK6EzjiWifzv//DdmrR35mVuf6tXlmUyTYqqqthuAwxDBm0YBCBoGjw9CURXSrHbRUyT/P4wTLiujq5DWY4YhsHbt2/58MMbHh4KXr8OOZ8nlFJM04TnWVRVh67r6LqO7+u8fZsQxzGGAUVREwTeO5XL3okX+cU/VCpNe7quw3VdbNtgmmQnBAGkqYSq5+czV1e7dVeM40gQuOuEdV2P61r0vXzBsnSaRnZkVVVomkbXdWiaxmazwTDk44+jQinFOI64rkXXCbLUdZ0ggKendwPqf6Uv8Oo7gxrHkf3eJk0FHBiGhmVJ2Hp6EmBR1xPavMCTJMGyLDRNIwgC6rpmHEeUUmy3EXXdst87VBV4HhTFhOPo1PVAFJn0Pei63B9kxyoFeS45sW1Hmqbh/fcD2lZ28+Njxe2tT5Iovv+n+lc2Zl/Jg3e/lisAwzC4ufFmiK0wTY2qahnHEd/3sSxBba7rMk0Tr14FVJUMcF0LPO86uWffy78fH1s8z1mfVVWyC+PYommgrjtc10bXwbbh+bnC932qqsLzPDRNI0kSwjDEtk0sS+6tafJf3yt8X+N//ZMvPzx+qQ/8xt9RCgR1WZZBVTW4rouuQ123dF3H9XXE+dxydeXQdTIxaTphWfoKApJEQMfpNLLdSsh8fq4YxxHLstjvXepaQmieK6JIo65hGGRBLGiwaWQyHcdhGAa2W4tpetl1SVLiui5ZlrHb7VBKYRgamw0cjyN3/8b8UsdP/7IedPG3KrXdwjQp2ralLGvC0GW3g+0WqqqawxlomsbxOFCWE30vNVPT9HSdoq5hszE4HgeCwJjBwIRpmrx+HXFx4ZIkHY4jfGDXdYyj1FKGIbTU+TzO7MbIxYVLHGsMw0Cej+i6TFLfw/vvB2y3Bo7jEEl5R5YVvH3bSH77lUe1/Rup+rLG8AtfGX/p7yk1jpAkFWHoM00CsR1HcsfjY0UQ+KRpNoceHcOQHVUUijjWqCqYJil6o8jANOGTTxLeey+maaDrJrquw/Nc2rbDcWyKouT6OkDTIMvkPkmi2Gw0jsduDXv7vUNZQlEUbLchj49HXr8+rCVA27YEQYBpmozjOIdUeHrqmaYJy7IA2G71L7w++8Ju/kt/pFTfQ12P9H2PruvEsY1SMlF3dxWvXvlkGWw28uGVUvi+jWHA8SiDl+cVjiM5KAyNleuzrIVOGpkmgeS2bWOazPBdBvPyUn738VFyl6ZpuK5J3yssS8P3hfRdCuhpUniexjRBUXQz+2GsTMeSv2ybmd3vsW2ZsGGQ+PlFhcfPPQxef7tVv/zHStU1pGlNFBlEkQtInkjTjrKE/d7n/r7G8+D+vp4LXpthgKoaiaKQYVDouo6maWy3BgB13VPXik8+OdO2LUmSsNtZTJNwgAtpOwwDYejQNHA6DTPMt+j7nr5XpGmK5wlQUUrAjiwkYebbVhFFNk3ToJSE7+MxZxwnum7g/v5MVUEUWXRdTxDAdmuQ5znv/231hYTGz3WyXn93VI5j07ZwOiV4nkdZKrKsZr+3CUPwfZtxhDzvKYqC47HB9z0MQxJ/FMlAx7Hcs65r+r7n8bECIAyteSJCuk6K2rKUwfZ9naIYaBrwfY++l/DbdR1RFOA4cH3tsdlInfX01OD7EpYNQ547DLKDhmGgaRS+73M+SyE+DAOapnE4mDNDUtP3cHtr0XWQJAPvvy9F9eavJ+qD3/18J+1z2a7X324VgOMI7XM6nQHQdZ3NZoNlCYL63vdSXr3aUlUSMmzboGl6qqpis9lgmhpJkq/E636vkabQdVIUN00/k7fQNBJa27YlDP0VtpumCcjAWpZFGOqkac9mYzEMzEVuz25nUZbQNO2aj2zbRinZdZeX8VqTLXVf0wwYhuxw09RwHAmhris5tW0VYaiRJBLSlVJ4nkPTdDz8e+dnHuuf6Qa7X8vV9XWIZcFHHyVzYbrFdfWVfTif1YzIRnY7n7aVAQCJ/a4Lb9/mRFFEXdd4nkdVCejoup793sKy4HhU6LrIH6dTwqtXMVk24Lom4whFUc7PD9E0Zgguz7ZtG8PQqKqGvu85HCK6DsqyxDRNHMdZ0eMCfJoG+n7g6srk6UlykYANH5CclSQ1tm0TBAZv30qxHscBXSclwgI3TFNy3c/K6v/Uv3z567WKY3fl4ZqmIQhc6rrjcLDpe3h4SLm93a4F7MIqZJmiLEssS0Ka7/szoRry9JQTx4KTpwnqull3y7ID0jTl9es9b9+m2LaNZVl0XUcY+tR1y/W1gIqylHukqYSxzSZkHBXDMNC27TyJBpZlcDolXF7GaJrsEAmJA77vEYbyzn3fs9lImJ8m+bfr2uu7Sn6THRVFPmEoIGgYhIGxLA3DgP/9T3+6SfuJc1b0187qm7+j1OWly/lcs9sJlHYchywrVz2p72G/3zIM8nt5Ln+ezwNxrKGUwjRN4jjgcNB4770Qz4M4juYBG5gmNSNEk67r6Pue3c7A9/05pAXYto1tm/PPQRg6HI8jeS7vUNcdnucRxyF9/8L5tW3LdmvTdR2GARcXMVXVUxQdti1j+eqVx/Pzcf3sSikeHzMA0jRlu7Vpmo7n5xOmCRcXLlHkYZomeV5xOo0YhnCURVHg+/JOr74zqJvf7H7ifPZjz/B7vz0ppdScrF2Uku3dNPIhNE2jqiouLnzGUVZaWUrN07YdFxf2al4ZRzgeG4Zh4OYm5OGhJAwDxlF4vDR9get5nrPbCdooipKLi4Dz+QWGT9PEdmtTlhNBoK9C4kIPCZID3xdC+HAwub+v5h1lEQQ6SdLOSHSYw6KEsK57uUfbdrNtwMJx5BllKWHQ9405Cgzouo5t63TdRBjKwjVNuL8v8TyPpmnWksVxZPw++ZMfb6f9hTvrw99X6hf+rlJZlqFpGp7nkqYVVdXx9JSTpikguSeKfE6nBtuWiYoim74fmKaJuoaHh448Z4buAufrGrbbYKaREspSapv9XuqbwyGmKEpME3zfp2nkd7MsI45Ntlt7DrM6x2PFOC6c4Uhd9+i6TPLjY8luZ/LxxwkAlmWRpum8++p5UGWH6jo8PCSM40RZ1ozjRBjKLpSwquj7kcPBmxeMLEDPM2fKC8JQ5/4+pSwVaarYbAKqShbhQoVlWU/X9T821P+Rk/X6u6MaR6mPvvWtLbouRSSI4HdzExGGIaapMY4yQI7j8OmnCZqmEUWsVX8Uwc2NvSZw4flcum6kbUf6njnW27RtS9+/cHSO49A0I0GgMU2KcYT9fr8O0jAMdB3Ytk3XQZoKEnVdi6YZub2VcFmWsNvFXF0Jcbvb7ajrnutr2bmbjYZl6bQt3N7GGIbOxYXH4aBTliK1TJP8XF3XGIY8p+tk8ppmxLYtzueGuoY43hIEkqvO52z+2W7O5xVKKW5vLTQNfu73lFpQ9f/r+qHbz/qr9+rDD28YBkE8mqZxdeVyd1dwcRFi27K6hmHAcSzOZwESDw9iD3McDaUkPrvuwihIQnYcG8+TuibLFK6rkeeyC7tOVNokEUjteQ6nk8j1SskOCYIAXRdEeDjEKyNSVeJyenqS+s5xnJmyknDrui5RZFJVijzP2W43lGU112cOeV6x3/v0vYTMtoXHxwTf99ls7DXcPzw88OrVDUVRYds24zhS1zWHQzwvnhc5x/MEUCyFN8i96/olvC6k8v19MpcvOn3/w0niH/hC+KsntdvtZugrDPM4KrZbjTyXAZYQJ1SNhBjxN3zwQcgwvEB1WTUuZSmUU1EU7HbbFY3VdU0cb6iqBt93KQqB63kuyO2zxpcoivB9g2GQiX96+qym5dP3gmIOB5OyhCQRm5llQV1PxLHO42OzcodRZK8KdJIUKKUIw5BhGFZRU9O0dZJlMQitFcfCzJ9O9fw9bd79gnYXrWwcX+ist28rdjt//nvLdisLqSwlFwpQkXquqiRvRpF8/7NKtQbwwe8q5TiQpsJzaZo8XOCo1AwgyEoEQgPL0lY+7XxOuLqKSdMa3xcXkePA8VgzTRPX18G6A85ncRgdjx2bjXCFCwgYBlkMS6gcR7i/zzFNk7Zt8TyP16+FQioKIV89z8OyjHWVlqXcbwm/4ziuueLy0uajj8SGJpKIQ12rVb8KQ4u2lR0kphsHTRP+b7+3yHN5pmVZc8h2sW1517Zd0GdDXYvzStd1HMdhuzXWiWzbkTA0SFPR1dq2xzAM0jTl1asdZTlhmjrjqKjrGsdx1l2m/ZV/oFSWsdq08lyI1ft7QTq6rs+eBYHowj4M+L6JbcPp1BEENlUlrECWTUSRzt1dShxvGQZRgPu+ZxxHwtADpPa5vAxnmkaK4jiGLBPpQrg84Qo9j3kXy4TI7pYdGwQGeS6DWZby/U8/TbBtmzj2ybKGsizZ7/fzhLtkmTwvyzJev96QptOsWcV0nZhwltJCPBpwPqdcX285nSo2G5++V+tOdBydthXH1cWFT1lKydE0DTc3AooELcoY6LrOMAwcDj739xJql5C6eBkXt1YQyOe2bdAXo6Ss4oq6btcJCQKDYRjYbAzGcVFoayzLpK7HWSey6Hvh7N68STEMna4Tri7LcnRdRylFENhEkYemycDHcbjunu02IgzhdJrWWmgphA1DVm2ajmgavHmT8NFHKboutU6evyT+/V5W99VVjO/7KAW+73I4HCjLcg1pcRyhlMJxnBnF6ViWhW0LMXt5abHbCdAR24Di8nJLnvdcXvqcz1I0TtOEbctkmqbObuevoXu71TkcfO7uCqZJFGZRqxtcVxaSbcN778WM40iWZRiGweOj3PvqKp69IRIeTRP0slQUxTCHPmf2IahVCGya5geS7n7vMU0KxzE4nxsBJJaEy/1+S98PZFm91jGyKwUxDQNkWUWeN2voEGGx43zu15eWUKtTlt2cv8A0DYZhJIoibm+3WBYcDvsZTWmczx2nk8T2cZQoIQ0JPZoGFxfhCsuXLOB5Ds/PFedzRRAEPD1l1LWi70VLMwyDIBB4Lova4ulJgIXjaBwODsMgu2ah0IZBFnRdy9d3u5CybHFdjdOp5fXreJVXJMf3OI6DrutEkcyBUswLRyPLJpSSn9Vlpk08T1ZKkkiCD8OQtpU/01TY5b6XxBqGGk0zcHUl3ogXWM3skHWpqgrXdbm8NGYxUQrNqyufw8FlGCR+L+Kd48ifu91uDpkTrmtTVR1ZVmNZsNsJrVUUE3kOux3c3QmYsSwLz5OFs4Tn8znFdS2mSdgNIWtllSdJQt+PRJE/85Adt7cbgkCjKCRP931P2/Zst3A+J2ga3Nz4aJpGWfZzflQURTtrW6IMbLfbWcHuOR4z4tjh8VGose9//8zpVJGm/ZyrRYv7xjdC7u8lH55OCXUNd3fZLP0IwNEOf7NUC+sgtY7krDRlVVOXLg2ZWBddXxjnabV3Lbxd3/c0TUMcx0SRwfEoqElW3UCWZWw2G+LY4nwWVsC2rRni9mRZNsvoIUEgFb5hvDAiS/ja7eDP/uzFmqaU4vra4/m5m8OnQd/3DMMw+wJ9np6eME0TTdP45jdjigKyTJiFKNLpe1nBS+gRH7wiy7LZpxjT98PMZBjc3yfz38MZlhtomoyLMBmSb9++fSF8FyI7z8Woo2lSpvR9z8VFyPlcz5KRLOZpmnAcWYjaYlNumn71zJ1OJ25uLgHW9plFUZWXkUnbbGQwxxEeH4/s93tsW3ZQmopJMgjg7dty5vVi6loMKotnT9fh+VlI1CU0+v4LU11VkqzP5zOO43A4hOS5wF0pxGVAl8vztJmz9DidxEL25k1BEAT4vsbxWBFF/uqL3++1Wf4QdTkIRErx/UUsbZmmadbHBmzbZBgkVzXNsOZWXWeWbsY53ztUVTfbDTxc18B1hRsVf6KzSi+uK97EIPDRdXn2w0M1q+sueT4DE8PQGQaF686zp2lcXFzQNBLrP/nkiK7LRNV1MwuELuM4znWCmgFDPPsbsjlceLRtP/Nr2oy+cm5uXA4Hjb4fqev2MywFc64oSJKONFWzu0m6R0zTxHVdDEPYk9Oppm3VHIYbDEPD8zSSRMwsAqV7qkpCeRRpFMU452XZBV3XkSSyQNpWEQQWx2NOlhXzTh7nWs6b84hJ28rAdd1EURQ4juSoMISuU+vC6bppLTeapqHrFEky4jgmwzBg26xCZ9PA7a1ocraQ+Fxe+nPBrdjvLbZbV+imzUabfd6KoijQdY3NxqIoGl6/PpDn1Sp9C3qCKDJ4fj6jaRrPz+lniladp6eMqoI4lrpFaKBOaoa7isfHgSgy2G4lmb56FVOWzDkkpKoqTFOjrru5PnN49WqLpmmzaRMuLz0cR4jc3c7j6em4vuP1tWha2+2WPJe6pyjAsowZaUqxfH3tEMfw+Jiy2Whz2PJo23ZGlwKSzueUNE1xXbBtsQbYtr7SW+M48sknCXGsURTFHLrElp1l2Spquq4xRzB3DrkTRTFwPCYkiXCIadpxPIr14fY2mEsIyX9rdfxLf6RUUYjOdHkZkiQtUeTMiGrAssw11CxajoQRk/N5XF9sAQy7nb+WBOKulXadZcX7vkWaVtzc+PNASjhI08U2JtJ/HFsoBff36YzCHJqmYZomwjCc2fF+VYa3W5MkEfV5yVXDMHBxIS7d+fVoGoH+oiZL7ghDef5CChyPJZtNQBiymkvzfFhFUssyOZ3OxHFMWZa8ehXy8CAOYc/z8H2Dh4eE29uYtoWm6fA8e65XpUYUEfOFohJ0LX+vKvn5PBf79g/QTe/99qQ8TyPP+1WgE1len7sw1JwIhR5ZFFnPg48/lmTfdWrt/kiShIuLA1mWc3sbUVXC6d3cxNS18ILCM76Ic54nAzkMwp6/fSsTKsWyTHKSlPK+7wWzfCE5482bZGYWIjYbE8OA+/uCOA5n4CBq89L8YNs2fd/jeR5ZlnF1teV0KmeNzJpRsZhKNxuDspR8soAe8XgkXFzEFIV0W3adjIfY7xr2e5eqkp/b72NcVxbMxx9L4f76tc+bNxXTNHE4hLMFrub62qMsf1Bd/qFE7vW3W3VxYfPxx0LNyPaVVhmxNBe4rsswDFxfuzw8CL8nu47ZFqZxPhc4joPrWivddDxWbLc+VSXU1uKB2O8NkkTNZpiXnxeXVMnNTUCWiXVZdkU2W6xNsixnv49WC/WnnyazsBnSNOJxf3jIuLraoGmQJC23tw53d/Le0/RS4I6jLELDWDzwNZuNmG+macIw9BURGoZBXQuYEZpKJsX3fS4v7bWrsusk5IHoc9/85pb7e6lFw9CmbcX+JjRagW3bP9Sz8SNFL/dXHtXFxcUqyi3EbpIk3N7ueHrKORwimuZlGxuGwPrvfe8tH3xwQ1VJK87iim0aOJ/Pcy2i43mQJB2WZeE4Ur9EkbUW0GHoE8fw/Cwf1vd1hmGRRl6oLN+3aZqBvu8JAo9xlETvuhpFIQtjATFSZE6z1yOY/YUG9/fC9KephOyFXpP7QFGM+L6B5wlhLbltWkGI9IcpLi+liBZ7tlBISdICzKDE4fY2pCggzwt0Xef2VqLHjxIif6Se1fzXK+37f6prCyEq6rA228BEjxKI3X8GlS3o5oY8l0Q8lyFzp2GBaZr0fc/5nJDnQrhO08T5XHJxYVHXiq6bCAIfzxOzzOEgWlBRDKRpObMZxsyE27guM1vt0TQdbdtSVRVVNVKW5QyH09nvLjWk7/trC1CaCqMxjmr2lKjZONNiGHB3dyYM5et3dxVBoLHdujiOQxx7zAgeXdf45JNqNd90XUdVKaLImZVpcfem6UTX9VxdhbP/Uf2FivGPLevf/lavxnEkihzqesRxDLpOGOKlvgBmuf1Fspa6TAq9um6wLIu2bbm99TmdFh5Q53xOef16uxLBDw/CpARBgKaJ1CCrmzVESn0npGwQQJL0lGXJbhdTltXqbNrv/dVSIMy/7Ib9XuPTTyWnWZaE8PNZdvMwCPQW86m1cppZJnJHUfT0fc9+768O3cfHdmbahWfsOmZILwtFhFoBFVnWcnHhkKYTb/618WPNw0/ssvm531OqqiRUSfErjMF2a/P0VHB9HfL8XHN15VFVUFXtHJqCub5Y6jl4eCjm5jkhYpcicRzVGtocB56f61lM1ElTETiXGL+gvsUDcn29o20FvLx9K/1dWSbhCiCOPaZJNDEhdh1cV6Np1ErcfvjhjtNJ7h2GPlXVEIYuWVZxOPgUxThbD2TXAytRvKgLi3NqYdilTpTnOI5GXf/kXSg/tRXt6jcatds5ZNlAGJorKmuaht3OpW2XLvh+RjpCej495VxeRiRJQxRJu8/xWLDbhZzPBVEkMdOy4HyWMytAEr4UlQZl2a4OJSmUDYpCWArD0EnTjJubzbxYRNJYitRhGNjtIvJcdjvIbhP/vRhy7u7On+EoRzzPJQzh6amZuU/xMmZZtxpbF5/7QjjbtsEwCHBoW1G5bdvm+tr6qXuVf2aX6F/++0rJJEnyrSoRJIXYlGTq+xZdJ6v9fK7mVWYTRfDmjfzMxYXFRx+d125GOadCm3WrmosLj/NZtLOuU7MPQpiCpTkhihzKsl9lGYA4Nueww9pDLMYWKcLD0FgprbaVRSCuX52yrFYuse97osinqgRJns/LCTYiNEoXypY0TWeUKnLI5aXH83OzaoOf/quf3uj5udinf/mPpWPk6Unif5IUvP9+SJqKRLEgSduWvJAkFXHs0zQCl/v+Bbm1LatAB5Kg5XvCNhgGPD2p2e+3AB9h3S3LWOX052epa8TTCHd3+SxDBKv7Vu4riK8opEl8IV2X0LrbidD58HAmiiK6ruPmxl89KEFgzfodlKUYXZUS/tTz3PUZn0en5OfamvLeb09KQp5BnktCXpqzP2tpLsuSzSbkdEpm352P677UJGUpk1nXUowuRPLiUxgGGYAsm6jrmv0+4HgsOBzEzHN/L+1Ci1IQRUIoPz8LUfvmzRO6rnN9fZhbTyXnSDuQuy6WIDBWqJ9lEqIti1VvWkJ9WU6cz2cuLw+AfEbZ6Qb/8x9/fj1bX0gf0TJpfd8Thu6aH3xfEJthGGuN9fwsSXwcpZAWL4bi+fmZ/X6PruszMdtyOATkeT9bzPrZhLOjLKVoXgjZaRKJ4nQ68fr1AcuSfKfrOufzmffe2895pCaKPBwH8nyakZzk0JubkDwXXUuUXmHcXfflqIdPPz3yC79w4O5OdpGgYvHfT9Pnf8TQF9ZMd/UbjdpuRQZ4eKhm+O3N/cPdipSyLOP997eMI5zP3bqq+75fm+kuLvx1hy6QuG1lwNp2YrvV5w5IxX4vH0kpePtWlOzt1uXhQSxqfd/zjW9IiO77ic1G5/m54fLS5XTqubiw1ibyYZAdE8/9R8LMmPT9uDq0ttvt6nHf7Xy67sd32P6k1xfepvr6u6NaTCdNs8j0+io3RJGF6wqt1PfM9ZI0iKdpznYrTQrL15cmiO3W5XgsaNuWq6vDLOP0q74kjXVyFBC85MHbW4ePP5b7iggou35RbTVNI4417u7KuRbzSVOZvLIUoFOWi7G0WwXEsvziz8r40rrNlxNklILj8cirV4f1WATTlB2T5xO+r5PnPYeDWL/O5wTDMNhsIoZhXLs0tltr3lmsNdrzsyjbck9Rt4W81Wcm5AWJ1nWL4zgrk7H0MS8uX8mfPZ5n0bbjeqCKlCbe7NUQ0+oXtZP+/PWln+Xw4e8rlSQyQHVdz40A1mxFlhDXdf0s95ukqdRlZSmtPldX+zUkLpY1zxPTpijHclLNe+8Fs2AquXMxhcqgO6sBaJFFhkHAzCITXV+Hs/dBmPoFVb55I7LK0qZ0+k/hlzaGX8mhJT//B0qlabNyi0tH4vEo0FfafWRGgsBeqaCyHFe/uFILdA6wLI00FWu1uGuFSLVtGVzf9/E8a0Wjcp6FPnNzFlUFed4xTRP7vYvrwsODyDHLwsiyksMhIE2lFnv77+z/vw8t+fNX+Ksntd/vVmtY2/azVGHjujLgi4zuOA6bjRTJYfiieS1HNeS5eBjKUsBM0zR861s7zmcpxstSjKnzQWozky8F/HYr/vqlt3ix4rVtSxQFNE1HGNqUZf+VTNJyfWmHlvywq/gve+2TP9E0yQ8DRVGsO0aI4A7ft9ak//QkHpCPPz7PTW/Mztd+1paa+SxcjziOOZ/FmZTn3Xw24dLoPc4yy4jvC7sh8jucTvIOeZ6vB0q6rs3/+Wea9lVOFLwjp6It1y/+oTzw8moAAAHYSURBVFJl+cJOLBrZZmOQ52IWTVOxQ4vxJVhdUkqJoadtWyzL4nDw1zZWOWjEnk+gfhH6kkSOrNM0+V3fd9fifQE9bQvf++df/jlNP+x6J17is9f1t1slsNtc/eJRFK2+jEWUXPyMy0Eii31rYfhBmtsk1y07zqTr5J6CEB36fmS3M+beXykZyrKmbVvy/7x7p8bnnXqZz17f/B2lmqabpXRhuhf6yLZt8jxns9ng+8I6LKzC6TSujLznuSuh7Hketm3MLMo4d+2LMzjPO4ZhmPWp7Tt7Vu47+VKfvV59Z1B1Xa/Iz/etGVio9biE5aihpVuy7wWG17XkvcPB5u4un21rW5qmY7ezubtL567MkGmSXPlV56Ufdb2zL/bZ6+Y3O+W6FmXZrAJfFFkUxbDmryhyZxVYWAyhgnyaZlxNKLe3Huezms0uL4eN/CRN2F/l9c6/4GevX/ojpapKitMX1gPyXDjA5WyLxUMoNmWXzcbg8bFkuw3WBkA5zvXLPzPwZ7m+Ni/62Wv5/5Asx4W7rs3pJK2rV1fB3GB9nifKo22Fxlr8hVXV8vgf3K/dZ//avfBnr8tfr9UC1a+u/PXM9udnYc+zbPH+vfx/Sx4eHuj/2+3X8nP/X8+jjAy2QdiEAAAAAElFTkSuQmCC"},null),O("linearGradient",{id:"_Linear11",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-118.47,-106.79,210.785,-180.125,69.2121,1372.7)"},[O("stop",{offset:"0",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null),O("stop",{offset:"1",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null)]),O("image",{id:"_Image13",width:"107px",height:"34px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAiCAYAAABY6CeoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABFElEQVRoge2aQRKDMAhFmx6it/P+x7Ab64xOmaAG8vnwFnWhiOGFOG3TPsu6vpS0djpuH61zXoz5F3s6r4rRxipiftddeUbp3t18QozEu3/JfdSzgCy5VWpTWcVYSlaPqcvDEUpZQPUdCqUsSAbMoJIViJIVCBNZrO+MHtbjrs4KRMkKBJUs9uXXTxZ7JR2g6ix27sly6BIxReIOHdpZWevoNe68y2DAmTVXFmDBAB9pJ29nBYRCln5jgkVyv1QUsrIAJyvtvg1F7iGykF/KlniPG66zKDCyWLI2IqwOJSsQz2URbqZEpTorEDCypn6xnciVYT+SlbS+08Zt01lJfv7xBmYZLPpgy6p/pA9gyxIArKMLXxexLNiBCThLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image15",width:"38px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAA+CAYAAABHuGlYAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGaElEQVRogcVZSWLjOAwsblIu+oD+/zZ/YC4di8sc7IKLsJzJdCdpXGxLXIACUADpgL8oIYR9jKG/wd/hL+m080uMEb33pwHpR9UBkFLaU7ptW0rBGAOKGgAsy/KjiO3Aw105Z4wx0FpDSgmtNVPqer0if7c2Oee91oqUEsYY5rZaK5ZlQYwRx3HY+J+IsSmOQghPqKhwTO8dIYRvU8yU0kzzEmPEGGNSiGO/Ovh3ABtwQ4UI5ZxRSjEFKBprYwyUUtB7v6H3hQqhlGIb1loRY0RKCcdxIKWE3rshUkqZYsvLHykWQthjjJZZGtwqpRS01ia3MaZCCKi1cj2MMZBS+n1XhhB2brKuK2qtj/hIyeJHkVEypft678g5I+c8uf53FNsBbLoJF6RwU800kirjinM18HXcpxULIewANi5KyDWT1nWd3KquXZbF5tGVmq2qXO/9UzG2f/SSyK3rivf395e1T5/TmBAClmXB+/u7AnBD+7NK5fwoEiE822OM7d7lnBFjtIwlmkSMga97hBBelqRdraTf1SIvnsm1/gEwVBgCfMfPpwQ6UWgj0XGQxgrfeUWJFIO7tYacs20WYzRDPbqkDcZs790U25dl2ai9xoKK+V+oQFEhspzvWZ4kC2DKTK6tCRBjjDtd4RVZlgVvb2/T4lqMj+Ow9yRaRU/Xi/E5nIkUjWLMpZSQxhibn8C6dhyHlRZa6Ru73jtKKbYgDeBmWor8PN2LLmf8JdyLrsKrlV7hp+XeRa01G+/jjaj4hGE49N6ngm/vVakQgqU1N9c2uPc+pTdLjyqpn7qOFz6PMU48RjBsVcaHr/hqPZVZ13XKMn3v+U4zmiWKhur6mpm994diDDwN2BDCxD80wD9TZWqttimfE1lPQYyndV2n32OMW4xp6jI7vGi80CqSr48PRZGGkttSShO/sV9b19XHcjSkmEWKmP5mcKsiipaXs/hjCFCUO1ncASDFGLdXmxJBjRFFk4VbfxNVpRi6h/F2tgfBoRdiaw3LshifeCGPsW3hQsCj/lER5T1SCN3nWd76rhehk0IIGxVQC7iAh3xZlmksUVQC1eMaS5gqRve/OoXXWm/Br0jwANFas3aFStFNuomlt7iZ2aeErUox8Espxp9U1GomgJ0WTec6l23+HcvIWWPIHoytkM7lfYWi7ue21hBZ/9TiUsqUPWcMT746U6rWOvVnOvdVJaAYjeScNwYorSeFeDL0LO838W5WQ/S7ZZ4klc/4eL1eLViZsrVW8z39f9a2eKR8u8Mg93NpZGsNx3FMBxTzEoDt7KCqCcFNtTNVK1+dK1trljxKEWyVfDfLLM05I7Fz1c191tVarbPwLlXOMjecKKWbMtEo/s6s945IjWutBq1apxbpUR94JAkX00Kv8aSuZDZynWVZTCltNs2VHikN/DP+okvOEsCHA68BPFLa3XoujZqFKlqctRx5BfQsSI7iHACWeeoySmvt6eDDsmaIeSF18PbPu5ZjtCroe7+mP01pS+T3tZM4G7uzWGCvpNZpdhExZqx2ptpRKPX47oJoszMG7j2/xoIqx8DU1oYLcxwTxbfkPl5jjFN4MAP53p8nIsmV15G+9yICXIyKcNHjOKY5KjqXY6kc6yzXbK0ZkjFGhFLKzoH2UG75xIIP6xzT3X8HHg3B2TGOzabe+/PiblOfn8UEn3MToqnI6R0GjfOJoOXNcx7r552CLmmMsem1NjdX7uGiSqa6IUWPa2eZzoOtntBVeu8XAP8AuF1D5ZytmKoVFH/0OpNX79St/lMo5uLnJdzvUzXwpk5SiFTpwlv9qnfXYm8F+jHPEPJiaUR21gzTf8fUytba1E2Qw/TcSdECzaS6U8sTShPS/MKOk27T9FXxqKirSBetNby9veHXr182XrL0Q4UokVdInnO0vj1Zc+ciJUV2HloVXON4+axSAJDJ2F4Bn+p6tD9rhbkGkZee//JR0rySlHPelLfOWhUqqH966gFFKYRz7p+fRuhJsRDCaWtNJf1JiJvqkf6E4y6999Ns+6xkbVtIE2enZ0XKX4VzPP5HDP2XGI8B81W5lhTlOZYiV3YuY4w/QshLVJeR/TVOBA0TF49fhpJKptXaT/mSoZlLRa/X67coRAkAdt+OnP2ZLvKtClEy8Bz4L5T6EYUoU2utqGm9+2mlAMz/vunfxHda+HGFKP8C6wW6ett+DK8AAAAASUVORK5CYII="},null)])])}});const W9e=["info","success","warning","error","403","404","500",null],G9e=be({name:"Result",components:{IconInfo:tpe,IconCheck:Ug,IconExclamation:Mz,IconClose:xs,ResultForbidden:V9e,ResultNotFound:z9e,ResultServerError:H9e},props:{status:{type:String,default:"info",validator:e=>W9e.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:Te("result")}}});function K9e(e,t,n,r,o,a){const s=Me("icon-info"),l=Me("icon-check"),c=Me("icon-exclamation"),f=Me("icon-close"),h=Me("result-forbidden"),p=Me("result-not-found"),m=Me("result-server-error");return H(),Q("div",{class:le(e.prefixCls)},[I("div",{class:le([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[I("div",{class:le(`${e.prefixCls}-icon-tip`)},[ft(e.$slots,"icon",{},()=>[e.status==="info"?(H(),Xe(s,{key:0})):e.status==="success"?(H(),Xe(l,{key:1})):e.status==="warning"?(H(),Xe(c,{key:2})):e.status==="error"?(H(),Xe(f,{key:3})):e.status==="403"?(H(),Xe(h,{key:4})):e.status==="404"?(H(),Xe(p,{key:5})):e.status==="500"?(H(),Xe(m,{key:6})):Oe("v-if",!0)])],2)],2),e.title||e.$slots.title?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2)):Oe("v-if",!0),e.subtitle||e.$slots.subtitle?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-subtitle`)},[ft(e.$slots,"subtitle",{},()=>[We(Be(e.subtitle),1)])],2)):Oe("v-if",!0),e.$slots.extra?(H(),Q("div",{key:2,class:le(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra")],2)):Oe("v-if",!0),e.$slots.default?(H(),Q("div",{key:3,class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2)):Oe("v-if",!0)],2)}var d6=$e(G9e,[["render",K9e]]);const q9e=Object.assign(d6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+d6.name,d6)}}),Y9e=be({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=Te("skeleton"),n=j(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function X9e(e,t,n,r,o,a){return H(),Q("div",{class:le(e.cls)},[e.loading?ft(e.$slots,"default",{key:0}):ft(e.$slots,"content",{key:1})],2)}var f6=$e(Y9e,[["render",X9e]]);const Z9e=be({name:"SkeletonLine",props:{rows:{type:Number,default:1},widths:{type:Array,default:()=>[]},lineHeight:{type:Number,default:20},lineSpacing:{type:Number,default:15}},setup(e){const t=Te("skeleton-line"),n=[];for(let r=0;r0&&(o.marginTop=`${e.lineSpacing}px`),n.push(o)}return{prefixCls:t,lines:n}}});function J9e(e,t,n,r,o,a){return H(!0),Q(Ft,null,fn(e.lines,(s,l)=>(H(),Q("ul",{key:l,class:le(e.prefixCls)},[I("li",{class:le(`${e.prefixCls}-row`),style:Ve(s)},null,6)],2))),128)}var C4=$e(Z9e,[["render",J9e]]);const Q9e=be({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=Te("skeleton-shape"),n=j(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function eFe(e,t,n,r,o,a){return H(),Q("div",{class:le(e.cls)},null,2)}var E4=$e(Q9e,[["render",eFe]]);const tFe=Object.assign(f6,{Line:C4,Shape:E4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+f6.name,f6),e.component(n+C4.name,C4),e.component(n+E4.name,E4)}}),nFe=be({name:"SliderButton",components:{Tooltip:jc},inheritAttrs:!1,props:{direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},formatTooltip:{type:Function},value:[String,Number],tooltipPosition:{type:String},showTooltip:{type:Boolean,default:!0}},emits:["movestart","moving","moveend"],setup(e,{emit:t}){const n=Te("slider-btn"),r=pe(!1),o=p=>{e.disabled||(p.preventDefault(),r.value=!0,ki(window,"mousemove",a),ki(window,"touchmove",a),ki(window,"mouseup",s),ki(window,"contextmenu",s),ki(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,Gi(window,"mousemove",a),Gi(window,"mouseup",s),Gi(window,"touchend",s),t("moveend")},l=j(()=>[n]),c=j(()=>{var p;return((p=e.tooltipPosition)!=null?p:e.direction==="vertical")?"right":"top"}),f=j(()=>{var p,m;return(m=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?m:`${e.value}`}),h=j(()=>e.showTooltip?r.value?!0:void 0:!1);return{prefixCls:n,cls:l,tooltipContent:f,mergedTooltipPosition:c,popupVisible:h,handleMouseDown:o}}}),rFe=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function iFe(e,t,n,r,o,a){const s=Me("tooltip");return H(),Xe(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:de(()=>[I("div",Nt(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]=es(()=>{},["prevent"])),onClick:t[3]||(t[3]=es(()=>{},["stop"]))}),null,16,rFe)]),_:1},8,["popup-visible","position","content"])}var oFe=$e(nFe,[["render",iFe]]);const Wp=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${Fl.round(r*100,2)}%`},Y3=(e,t)=>t==="vertical"?{bottom:e}:{left:e},sFe=be({name:"SliderDots",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Te("slider"),getStyle:r=>Y3(Wp(r,[e.min,e.max]),e.direction)}}});function aFe(e,t,n,r,o,a){return H(),Q("div",{class:le(`${e.prefixCls}-dots`)},[(H(!0),Q(Ft,null,fn(e.data,(s,l)=>(H(),Q("div",{key:l,class:le(`${e.prefixCls}-dot-wrapper`),style:Ve(e.getStyle(s.key))},[I("div",{class:le([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var lFe=$e(sFe,[["render",aFe]]);const uFe=be({name:"SliderMarks",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Te("slider"),getStyle:r=>Y3(Wp(r,[e.min,e.max]),e.direction)}}});function cFe(e,t,n,r,o,a){return H(),Q("div",{class:le(`${e.prefixCls}-marks`)},[(H(!0),Q(Ft,null,fn(e.data,(s,l)=>(H(),Q("div",{key:l,"aria-hidden":"true",class:le(`${e.prefixCls}-mark`),style:Ve(e.getStyle(s.key))},Be(s.content),7))),128))],2)}var dFe=$e(uFe,[["render",cFe]]);const fFe=be({name:"SliderTicks",props:{value:{type:Array,required:!0},step:{type:Number,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){const t=Te("slider"),n=j(()=>{const o=[],a=Math.floor((e.max-e.min)/e.step);for(let s=0;s<=a;s++){const l=Fl.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=>Y3(Wp(o,[e.min,e.max]),e.direction)}}});function hFe(e,t,n,r,o,a){return H(),Q("div",{class:le(`${e.prefixCls}-ticks`)},[(H(!0),Q(Ft,null,fn(e.steps,(s,l)=>(H(),Q("div",{key:l,class:le([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:Ve(e.getStyle(s.key))},null,6))),128))],2)}var pFe=$e(fFe,[["render",hFe]]);const vFe=be({name:"SliderInput",components:{InputNumber:Dk},props:{modelValue:{type:Array,required:!0},min:{type:Number},max:{type:Number},step:{type:Number},disabled:{type:Boolean},range:{type:Boolean}},emits:["startChange","endChange"],setup(e,{emit:t}){return{prefixCls:Te("slider")}}});function mFe(e,t,n,r,o,a){const s=Me("input-number");return H(),Q("div",{class:le(`${e.prefixCls}-input`)},[e.range?(H(),Q(Ft,{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:le(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Oe("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 gFe=$e(vFe,[["render",mFe]]);const yFe=be({name:"Slider",components:{SliderButton:oFe,SliderDots:lFe,SliderMarks:dFe,SliderTicks:pFe,SliderInput:gFe},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}=Zt(e),r=Te("slider"),{mergedDisabled:o,eventHandlers:a}=So({disabled:wu(e,"disabled")}),s=pe(null),l=pe(),c=e.modelValue?e.modelValue:e.defaultValue,f=pe(qn(c)?c[0]:0),h=pe(qn(c)?c[1]:c);Dt(n,B=>{var F,U,z,G,Y;qn(B)?(f.value=(U=(F=B[0])!=null?F:e.min)!=null?U:0,h.value=(G=(z=B[1])!=null?z:e.min)!=null?G:0):h.value=(Y=B??e.min)!=null?Y:0});const p=()=>{var B,F;e.range?(t("update:modelValue",[f.value,h.value]),t("change",[f.value,h.value])):(t("update:modelValue",h.value),t("change",h.value)),(F=(B=a.value)==null?void 0:B.onChange)==null||F.call(B)},m=B=>{B=B??e.min,f.value=B,p()},g=B=>{B=B??e.min,h.value=B,p()},b=j(()=>{var B,F,U;return e.range?qn(e.modelValue)?e.modelValue:[f.value,(B=e.modelValue)!=null?B:h.value]:mn(e.modelValue)?[f.value,h.value]:qn(e.modelValue)?[(F=e.min)!=null?F:0,e.modelValue[1]]:[(U=e.min)!=null?U:0,e.modelValue]}),S=j(()=>Object.keys(e.marks||{}).map(B=>{var F;const U=Number(B);return{key:U,content:(F=e.marks)==null?void 0:F[U],isActive:U>=b.value[0]&&U<=b.value[1]}})),k=B=>Y3(Wp(B,[e.min,e.max]),e.direction),C=pe(!1),E=()=>{C.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function x(B,F){if(!l.value)return 0;const{left:U,top:z,width:G,height:Y}=l.value,re=e.direction==="horizontal"?G:Y,te=re*e.step/(e.max-e.min);let X=e.direction==="horizontal"?B-U:z+Y-F;X<0&&(X=0),X>re&&(X=re);const K=Math.round(X/te);return Fl.plus(e.min,Fl.times(K,e.step))}const _=(B,F)=>{h.value=x(B,F),p()},A=B=>{if(o.value)return;const{clientX:F,clientY:U}=B;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=x(F,U),p()};function R([B,F]){return B>F&&([B,F]=[F,B]),e.direction==="vertical"?{bottom:Wp(B,[e.min,e.max]),top:Wp(e.max+e.min-F,[e.min,e.max])}:{left:Wp(B,[e.min,e.max]),right:Wp(e.max+e.min-F,[e.min,e.max])}}const M=(B,F)=>{f.value=x(B,F),p()},D=()=>{C.value=!1},$=j(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),L=j(()=>[`${r}-track`,{[`${r}-track-disabled`]:o.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:$,trackCls:L,trackRef:s,computedValue:b,mergedDisabled:o,markList:S,getBtnStyle:k,getBarStyle:R,handleClick:A,handleMoveStart:E,handleEndMoving:_,handleMoveEnd:D,handleStartMoving:M,handleStartChange:m,handleEndChange:g}}});function bFe(e,t,n,r,o,a){const s=Me("slider-ticks"),l=Me("slider-dots"),c=Me("slider-marks"),f=Me("slider-button"),h=Me("slider-input");return H(),Q("div",{class:le(e.cls)},[I("div",{ref:"trackRef",class:le(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[I("div",{class:le(`${e.prefixCls}-bar`),style:Ve(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(H(),Xe(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"])):Oe("v-if",!0),e.marks?(H(),Xe(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Oe("v-if",!0),e.marks?(H(),Xe(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Oe("v-if",!0),e.range?(H(),Xe(f,{key:3,style:Ve(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"])):Oe("v-if",!0),O(f,{style:Ve(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(),Xe(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"])):Oe("v-if",!0)],2)}var h6=$e(yFe,[["render",bFe]]);const _Fe=Object.assign(h6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+h6.name,h6)}});var p6=be({name:"Space",props:{align:{type:String},direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:"small"},wrap:{type:Boolean},fill:{type:Boolean}},setup(e,{slots:t}){const n=Te("space"),r=j(()=>{var l;return(l=e.align)!=null?l:e.direction==="horizontal"?"center":""}),o=j(()=>[n,{[`${n}-${e.direction}`]:e.direction,[`${n}-align-${r.value}`]:r.value,[`${n}-wrap`]:e.wrap,[`${n}-fill`]:e.fill}]);function a(l){if(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=cf((l=t.default)==null?void 0:l.call(t),!0).filter(f=>f.type!==ds);return O("div",{class:o.value},[c.map((f,h)=>{var p,m;const g=t.split&&h>0;return O(Ft,{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 SFe=Object.assign(p6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+p6.name,p6)}});function npe(e){const t=ts(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 tx({size:e,defaultSize:t,containerSize:n}){const r=npe(e??t);return r.isPx?r.size:r.size*n}function kFe(e,t){return parseFloat(e)/parseFloat(t)}const wFe=be({name:"Split",components:{ResizeTrigger:Bhe},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}=Zt(e),l=pe(0),c=pe(),f=Te("split"),[h,p]=oa(o.value,Ht({value:r})),m=j(()=>npe(h.value)),g=j(()=>n.value==="horizontal"),b=j(()=>[f,{[`${f}-horizontal`]:g.value,[`${f}-vertical`]:!g.value}]),S=j(()=>{const{size:$,unit:L,isPx:B}=m.value;return{flex:`0 0 calc(${B?$:$*100}${L} - ${l.value/2}px)`}}),k={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function C(){const $=()=>{var L,B;return g.value?(L=c.value)==null?void 0:L.clientWidth:((B=c.value)==null?void 0:B.clientHeight)||0};return(!c.value||$())&&await kn(),$()}function E($,L){if(!L)return;const B=m.value.isPx?`${$}px`:kFe($,L);h.value!==B&&(p(B),t("update:size",B))}function x($,L){const B=tx({size:$,containerSize:L}),F=tx({size:a.value,defaultSize:"0px",containerSize:L}),U=tx({size:s.value,defaultSize:`${L}px`,containerSize:L});let z=B;return z=Math.max(z,F),z=Math.min(z,U),z}function _({startContainerSize:$,startSize:L,startPosition:B,endPosition:F}){const U=tx({size:L,containerSize:$});return x(`${U+(F-B)}px`,$)}function A($){t("moving",$);const L=g.value?_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageX,endPosition:$.pageX}):_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageY,endPosition:$.pageY});E(L,k.startContainerSize)}function R($){Gi(window,"mousemove",A),Gi(window,"mouseup",R),Gi(window,"contextmenu",R),document.body.style.cursor="default",t("moveEnd",$)}async function M($){t("moveStart",$),k.startPageX=$.pageX,k.startPageY=$.pageY,k.startContainerSize=await C(),k.startSize=h.value,ki(window,"mousemove",A),ki(window,"mouseup",R),ki(window,"contextmenu",R),document.body.style.cursor=g.value?"col-resize":"row-resize"}function D($){const{width:L,height:B}=$.contentRect;l.value=g.value?L:B}return dn(async()=>{const $=await C(),L=x(h.value,$);E(L,$)}),{prefixCls:f,classNames:b,isHorizontal:g,wrapperRef:c,onMoveStart:M,onTriggerResize:D,firstPaneStyles:S}}});function CFe(e,t,n,r,o,a){const s=Me("ResizeTrigger");return H(),Xe($a(e.component),{ref:"wrapperRef",class:le(e.classNames)},{default:de(()=>[I("div",{class:le([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:Ve(e.firstPaneStyles)},[ft(e.$slots,"first")],6),e.disabled?Oe("v-if",!0):(H(),Xe(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:de(()=>[ft(e.$slots,"resize-trigger")]),icon:de(()=>[ft(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),I("div",{class:le([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[ft(e.$slots,"second")],2)]),_:3},8,["class"])}var v6=$e(wFe,[["render",CFe]]);const EFe=Object.assign(v6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+v6.name,v6)}}),xFe=be({name:"Statistic",props:{title:String,value:{type:[Number,Object]},format:{type:String,default:"HH:mm:ss"},extra:String,start:{type:Boolean,default:!0},precision:{type:Number,default:0},separator:String,showGroupSeparator:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},animationDuration:{type:Number,default:2e3},valueFrom:{type:Number,default:void 0},placeholder:{type:String},valueStyle:{type:Object}},setup(e){var t;const n=Te("statistic"),r=j(()=>Ke(e.value)?e.value:0),o=pe((t=e.valueFrom)!=null?t:e.value),a=pe(null),{value:s}=Zt(e),l=j(()=>mn(e.value)),c=(h=(m=>(m=e.valueFrom)!=null?m:0)(),p=r.value)=>{var m;h!==p&&(a.value=new Fg({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=j(()=>{let h=o.value;if(Ke(h)){Ke(e.precision)&&(h=Fl.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=ol(h).format(e.format)),{isNumber:!1,value:h}});return dn(()=>{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}}}),TFe={key:0};function AFe(e,t,n,r,o,a){return H(),Q("div",{class:le(e.prefixCls)},[e.title||e.$slots.title?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-content`)},[I("div",{class:le(`${e.prefixCls}-value`),style:Ve(e.valueStyle)},[e.showPlaceholder?(H(),Q("span",TFe,Be(e.placeholder),1)):(H(),Q(Ft,{key:1},[e.$slots.prefix?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-prefix`)},[ft(e.$slots,"prefix")],2)):Oe("v-if",!0),e.formatValue.isNumber?(H(),Q(Ft,{key:1},[I("span",{class:le(`${e.prefixCls}-value-integer`)},Be(e.formatValue.integer),3),e.formatValue.decimal?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-value-decimal`)}," ."+Be(e.formatValue.decimal),3)):Oe("v-if",!0)],64)):(H(),Q(Ft,{key:2},[We(Be(e.formatValue.value),1)],64)),e.$slots.suffix?(H(),Q("span",{key:3,class:le(`${e.prefixCls}-suffix`)},[ft(e.$slots,"suffix")],2)):Oe("v-if",!0)],64))],6),e.extra||e.$slots.extra?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-extra`)},[ft(e.$slots,"extra",{},()=>[We(Be(e.extra),1)])],2)):Oe("v-if",!0)],2)],2)}var m6=$e(xFe,[["render",AFe]]);const IFe=[["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 g6(e,t){let n=e;return IFe.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 LFe=be({name:"Countdown",props:{title:String,value:{type:Number,default:()=>Date.now()+3e5},now:{type:Number,default:()=>Date.now()},format:{type:String,default:"HH:mm:ss"},start:{type:Boolean,default:!0},valueStyle:{type:Object}},emits:{finish:()=>!0},setup(e,{emit:t}){const n=Te("statistic"),{start:r,value:o,now:a,format:s}=Zt(e),l=pe(g6(Math.max(ol(e.value).diff(ol(e.now),"millisecond"),0),e.format));Dt([o,a,s],()=>{const p=g6(Math.max(ol(e.value).diff(ol(e.now),"millisecond"),0),e.format);p!==l.value&&(l.value=p)});const c=pe(0),f=()=>{c.value&&(window.clearInterval(c.value),c.value=0)},h=()=>{ol(e.value).valueOf(){const p=ol(e.value).diff(ol(),"millisecond");p<=0&&(f(),t("finish")),l.value=g6(Math.max(p,0),e.format)},1e3/30))};return dn(()=>{e.start&&h()}),$o(()=>{f()}),Dt(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function PFe(e,t,n,r,o,a){return H(),Q("div",{class:le([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"title",{},()=>[We(Be(e.title),1)])],2)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-content`)},[I("div",{class:le(`${e.prefixCls}-value`),style:Ve(e.valueStyle)},Be(e.displayValue),7)],2)],2)}var x4=$e(LFe,[["render",PFe]]);const RFe=Object.assign(m6,{Countdown:x4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+m6.name,m6),e.component(n+x4.name,x4)}}),rpe=Symbol("ArcoSteps"),MFe=be({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}=Zt(e),a=Te("steps"),s=pe(e.defaultCurrent),l=j(()=>{var C;return(C=e.current)!=null?C:s.value}),c=j(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),f=j(()=>e.type==="dot"?c.value==="vertical"?"horizontal":"vertical":e.type==="navigation"?"horizontal":e.labelPlacement),h=C=>Cl.value?"wait":e.status,p=(C,E)=>{e.changeable&&(s.value=C,t("update:current",C),t("change",C,E))},m=Ht(new Map),g=j(()=>Array.from(m.values()).filter(C=>C.status==="error").map(C=>C.step)),b=(C,E)=>{m.set(C,E)},S=C=>{m.delete(C)},k=j(()=>[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 Gr(rpe,Ht({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 DFe(e,t,n,r,o,a){return H(),Q("div",{class:le(e.cls)},[ft(e.$slots,"default")],2)}var y6=$e(MFe,[["render",DFe]]);const OFe=be({name:"Step",components:{IconCheck:Ug,IconClose:xs},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=Te("steps-item"),n=uo(),r=Te("steps-icon"),o=xn(rpe,void 0),a=j(()=>{var b;return(b=o?.type)!=null?b:"default"}),s=pe(),{computedIndex:l}=uz({itemRef:s,selector:`.${t}`,parentClassName:o?.parentCls}),c=j(()=>l.value+1),f=j(()=>{var b,S;return(S=(b=e.status)!=null?b:o?.getStatus(c.value))!=null?S:"process"}),h=j(()=>{var b;return(b=o?.errorSteps.includes(c.value+1))!=null?b:!1});n&&o?.addItem(n.uid,Ht({step:c,status:f})),$o(()=>{n&&o?.removeItem(n.uid)});const p=j(()=>!o?.lineLess&&(o?.labelPlacement==="vertical"||o?.direction==="vertical")),m=b=>{e.disabled||o?.onClick(c.value,b)},g=j(()=>[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 $Fe(e,t,n,r,o,a){const s=Me("icon-check"),l=Me("icon-close");return H(),Q("div",{ref:"itemRef",class:le(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-tail`)},null,2)):Oe("v-if",!0),e.type!=="arrow"?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-node`)},[ft(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(H(),Q("div",{key:0,class:le(e.iconCls)},[ft(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(H(),Xe(s,{key:0})):e.computedStatus==="error"?(H(),Xe(l,{key:1})):(H(),Q(Ft,{key:2},[We(Be(e.stepNumber),1)],64))])],2)):Oe("v-if",!0)])],2)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-content`)},[I("div",{class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"default",{},()=>[We(Be(e.title),1)])],2),e.description||e.$slots.description?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-description`)},[ft(e.$slots,"description",{},()=>[We(Be(e.description),1)])],2)):Oe("v-if",!0)],2)],2)}var T4=$e(OFe,[["render",$Fe]]);const NFe=Object.assign(y6,{Step:T4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+y6.name,y6),e.component(n+T4.name,T4)}}),BFe=be({name:"Switch",components:{IconLoading:ja},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}=Zt(e),a=Te("switch"),{mergedSize:s}=ga(r),{mergedDisabled:l,mergedSize:c,eventHandlers:f}=So({disabled:n,size:s}),h=pe(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=j(()=>{var _;return((_=e.modelValue)!=null?_:h.value)===e.checkedValue}),m=pe(!1),g=j(()=>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(pn(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,_=>{(mn(_)||yl(_))&&(h.value=e.uncheckedValue)});const E=j(()=>[a,`${a}-type-${e.type}`,{[`${a}-small`]:c.value==="small"||c.value==="mini",[`${a}-checked`]:p.value,[`${a}-disabled`]:l.value,[`${a}-loading`]:g.value,[`${a}-custom-color`]:e.type==="line"&&(e.checkedColor||e.uncheckedColor)}]),x=j(()=>{if(p.value&&e.checkedColor)return e.type==="line"?{"--custom-color":e.checkedColor}:{backgroundColor:e.checkedColor};if(!p.value&&e.uncheckedColor)return e.type==="line"?{"--custom-color":e.uncheckedColor}:{backgroundColor:e.uncheckedColor}});return{prefixCls:a,cls:E,mergedDisabled:l,buttonStyle:x,computedCheck:p,computedLoading:g,handleClick:S,handleFocus:k,handleBlur:C}}}),FFe=["aria-checked","disabled"];function jFe(e,t,n,r,o,a){const s=Me("icon-loading");return H(),Q("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:le(e.cls),style:Ve(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:le(`${e.prefixCls}-handle`)},[I("span",{class:le(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(H(),Xe(s,{key:0})):(H(),Q(Ft,{key:1},[e.computedCheck?ft(e.$slots,"checked-icon",{key:0}):ft(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),Oe(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(H(),Q(Ft,{key:0},[I("span",{class:le(`${e.prefixCls}-text-holder`)},[e.computedCheck?ft(e.$slots,"checked",{key:0},()=>[We(Be(e.checkedText),1)]):ft(e.$slots,"unchecked",{key:1},()=>[We(Be(e.uncheckedText),1)])],2),I("span",{class:le(`${e.prefixCls}-text`)},[e.computedCheck?ft(e.$slots,"checked",{key:0},()=>[We(Be(e.checkedText),1)]):ft(e.$slots,"unchecked",{key:1},()=>[We(Be(e.uncheckedText),1)])],2)],64)):Oe("v-if",!0)],46,FFe)}var b6=$e(BFe,[["render",jFe]]);const UFe=Object.assign(b6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+b6.name,b6)}}),VFe=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},ipe=e=>{let t=0;if(qn(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=ipe(n.children);r>0&&(t=Math.max(t,r+1))}}return t},wne=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},zFe=(e,t,n)=>{const r=ipe(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=VFe(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:mn(l)&&(l=o.length)),(mn(S.dataIndex)||yl(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),mn(s)||(o[s].isLastLeftFixed=!0,wne(o[s],"left")),mn(l)||(o[l].isFirstRightFixed=!0,wne(o[l],"right")),{dataColumns:o,groupColumns:a}},HFe=(e,t)=>{for(let n=0;n{var n;const r=HFe(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},Oz=e=>e.children&&e.children.length>0?Oz(e.children[0]):e,GFe=e=>e.children&&e.children.length>0?Oz(e.children[e.children.length-1]):e,KFe=(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=Oz(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=GFe(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},ope=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],spe=(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}]:[],ape=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${KFe(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},lpe=(e,t)=>e.fixed?{left:`${WFe(e,t)}px`}:{};function upe(e){return e.map(t=>{const n={...t};return n.children&&(n.children=upe(n.children)),n})}function cpe(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=cpe(t.children)),t.raw})}const $z=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...$z(n));return t},qFe=(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))),YFe=e=>{const t=[];for(let n=0;n{var s,l,c;const f=j(()=>{var x;return((x=n.value)==null?void 0:x.type)==="radio"}),h=pe((c=(l=t.value)!=null?l:(s=n.value)==null?void 0:s.defaultSelectedRowKeys)!=null?c:[]),p=j(()=>{var x,_,A;return(A=(_=e.value)!=null?_:(x=n.value)==null?void 0:x.selectedRowKeys)!=null?A:h.value}),m=j(()=>p.value.filter(x=>r.value.includes(x)));return{isRadio:f,selectedRowKeys:p,currentSelectedRowKeys:m,handleSelectAll:x=>{const _=R_(p.value,o.value,!x);h.value=_,a("selectAll",x),a("selectionChange",_),a("update:selectedKeys",_)},handleSelect:(x,_)=>{const A=f.value?[_.key]:R_(p.value,[_.key],!x);h.value=A,a("select",A,_.key,_.raw),a("selectionChange",A),a("update:selectedKeys",A)},handleSelectAllLeafs:(x,_)=>{const A=R_(p.value,$z(x),!_);h.value=A,a("select",A,x.key,x.raw),a("selectionChange",A),a("update:selectedKeys",A)},select:(x,_=!0)=>{const A=[].concat(x),R=f.value?A:R_(p.value,A,!_);h.value=R,a("selectionChange",R),a("update:selectedKeys",R)},selectAll:(x=!0)=>{const _=R_(p.value,o.value,!x);h.value=_,a("selectionChange",_),a("update:selectedKeys",_)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},ZFe=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:o,emit:a})=>{const l=pe((()=>{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=j(()=>{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=pe(lr(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=pe(lr(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=j(()=>{var h;return lr(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:j(()=>{var h;return lr(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)}}},QFe=be({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 eje(e,t,n,r,o,a){return H(),Q("colgroup",null,[(H(!0),Q(Ft,null,fn(e.operations,s=>(H(),Q("col",{key:`arco-col-${s.name}`,class:le(`arco-table-${s.name}-col`),style:Ve(e.fixedWidth(s.width))},null,6))),128)),(H(!0),Q(Ft,null,fn(e.dataColumns,s=>(H(),Q("col",{key:`arco-col-${s.dataIndex}`,style:Ve(e.fixedWidth(e.columnWidth&&s.dataIndex&&e.columnWidth[s.dataIndex]||s.width,s.minWidth))},null,4))),128))])}var nx=$e(QFe,[["render",eje]]),WS=be({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})}}}),GS=be({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})}}}),ph=be({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=Te("table"),r=j(()=>[`${n}-tr`,{[`${n}-tr-expand`]:e.expand,[`${n}-tr-empty`]:e.empty,[`${n}-tr-checked`]:e.checked}]);return()=>{var o,a,s;return O((s=(a=t.tr)==null?void 0:a.call(t,{rowIndex:e.rowIndex,record:(o=e.record)==null?void 0:o.raw})[0])!=null?s:"tr",{class:r.value},{default:t.default})}}});const tje=be({name:"IconCaretDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nje=["stroke-width","stroke-linecap","stroke-linejoin"];function rje(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,nje)}var _6=$e(tje,[["render",rje]]);const Nz=Object.assign(_6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_6.name,_6)}}),ije=be({name:"IconCaretUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,oje)}var S6=$e(ije,[["render",sje]]);const dpe=Object.assign(S6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S6.name,S6)}}),aje=be({name:"IconFilter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 uje(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,lje)}var k6=$e(aje,[["render",uje]]);const Bz=Object.assign(k6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k6.name,k6)}}),cje=({column:e,tableCtx:t})=>{const n=j(()=>{var f;if(e.value.dataIndex&&e.value.dataIndex===((f=t.sorter)==null?void 0:f.field))return t.sorter.direction}),r=j(()=>{var f,h,p;return(p=(h=(f=e.value)==null?void 0:f.sortable)==null?void 0:h.sortDirections)!=null?p:[]}),o=j(()=>r.value.length>0),a=j(()=>r.value.includes("ascend")),s=j(()=>r.value.includes("descend")),l=j(()=>{var 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))}}},dje=({column:e,tableCtx:t})=>{const n=j(()=>{var g;return e.value.dataIndex&&((g=t.filters)!=null&&g[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),r=pe(!1),o=j(()=>n.value.length>0),a=j(()=>{var g;return!!((g=e.value.filterable)!=null&&g.multiple)}),s=pe(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"),Cne=Symbol("ArcoTableColumn");function Ene(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var fpe=be({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const r=Te("auto-tooltip"),o=pe(),a=pe(),s=pe(""),l=pe(!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()};dn(()=>{f(),c()}),za(()=>{f(),c()});const p=()=>O("span",Nt({ref:o,class:r},t),[O(cv,{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(jc,Nt({content:s.value,onResize:h},e.tooltipProps),Ene(g=p())?g:{default:()=>[g]})}return O(cv,{onResize:h},Ene(m=p())?m:{default:()=>[m]})}}});function w6(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var KS=be({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=Zt(e),r=Te("table"),{t:o}=Ao(),a=xn(q1,{}),s=j(()=>{var re;return((re=e.column)==null?void 0:re.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=j(()=>{var re;if(lr((re=e.column)==null?void 0:re.tooltip))return e.column.tooltip}),c=j(()=>{var re;return(re=e.column)!=null&&re.filterable&&ml(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:f,hasSorter:h,hasAscendBtn:p,hasDescendBtn:m,nextSortOrder:g,handleClickSorter:b}=cje({column:n,tableCtx:a}),{filterPopupVisible:S,isFilterActive:k,isMultipleFilter:C,columnFilterValue:E,handleFilterPopupVisibleChange:x,setFilterValue:_,handleCheckboxFilterChange:A,handleRadioFilterChange:R,handleFilterConfirm:M,handleFilterReset:D}=dje({column:n,tableCtx:a}),$=()=>{var re,te,X,K,J;let ie,se;const{filterable:ae}=e.column;return(re=e.column.slots)!=null&&re["filter-content"]?(te=e.column.slots)==null?void 0:te["filter-content"]({filterValue:E.value,setFilterValue:_,handleFilterConfirm:M,handleFilterReset:D}):ae?.slotName?(K=(X=a?.slots)==null?void 0:X[ae?.slotName])==null?void 0:K.call(X,{filterValue:E.value,setFilterValue:_,handleFilterConfirm:M,handleFilterReset:D}):ae?.renderContent?ae.renderContent({filterValue:E.value,setFilterValue:_,handleFilterConfirm:M,handleFilterReset:D}):O("div",{class:`${r}-filters-content`},[O("ul",{class:`${r}-filters-list`},[(J=ae?.filters)==null?void 0:J.map((Ce,ke)=>{var ve;return O("li",{class:`${r}-filters-item`,key:ke},[C.value?O(bd,{value:Ce.value,modelValue:E.value,uninjectGroupContext:!0,onChange:A},{default:()=>[Ce.text]}):O(b1,{value:Ce.value,modelValue:(ve=E.value[0])!=null?ve:"",uninjectGroupContext:!0,onChange:R},{default:()=>[Ce.text]})])})]),O("div",{class:`${r}-filters-bottom`},[O(Uo,{size:"mini",onClick:D},w6(ie=o("table.resetText"))?ie:{default:()=>[ie]}),O(Uo,{type:"primary",size:"mini",onClick:M},w6(se=o("table.okText"))?se:{default:()=>[se]})])])},L=()=>{const{filterable:re}=e.column;return re?O(sa,Nt({popupVisible:S.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:x},re.triggerProps),{default:()=>[O(_o,{class:[`${r}-filters`,{[`${r}-filters-active`]:k.value,[`${r}-filters-open`]:S.value,[`${r}-filters-align-left`]:c.value}],disabled:!c.value,onClick:te=>te.stopPropagation()},{default:()=>{var te,X,K,J,ie;return[(ie=(J=(X=(te=e.column.slots)==null?void 0:te["filter-icon"])==null?void 0:X.call(te))!=null?J:(K=re.icon)==null?void 0:K.call(re))!=null?ie:O(Bz,null,null)]}})],content:$}):null},B=j(()=>{var re,te;const X=[`${r}-cell`,`${r}-cell-align-${(te=(re=e.column)==null?void 0:re.align)!=null?te: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}),F=()=>{var re,te,X,K,J,ie;return t.default?t.default():(re=e.column)!=null&&re.titleSlotName&&((te=a.slots)!=null&&te[e.column.titleSlotName])?(K=(X=a.slots)[e.column.titleSlotName])==null?void 0:K.call(X,{column:e.column}):(ie=(J=e.column)==null?void 0:J.slots)!=null&&ie.title?e.column.slots.title():pn(e.column.title)?e.column.title():e.column.title},U=()=>{var re,te,X;let K;return O("span",{class:B.value,onClick:h.value?b:void 0},[(re=e.column)!=null&&re.ellipsis&&((te=e.column)!=null&&te.tooltip)?O(fpe,{class:`${r}-th-title`,tooltipProps:l.value},w6(K=F())?K:{default:()=>[K]}):O("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(X=e.column)==null?void 0:X.ellipsis}]},[F()]),h.value&&O("span",{class:`${r}-sorter`},[p.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:f.value==="ascend"}]},[O(dpe,null,null)]),m.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:f.value==="descend"}]},[O(Nz,null,null)])]),c.value&&L()])},z=j(()=>{var re,te;return{...ape(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(re=e.column)==null?void 0:re.cellStyle,...(te=e.column)==null?void 0:te.headerCellStyle}}),G=j(()=>{var re,te;return[`${r}-th`,{[`${r}-col-sorted`]:!!f.value,[`${r}-th-resizing`]:s.value},...spe(r,e.column),(re=e.column)==null?void 0:re.cellClass,(te=e.column)==null?void 0:te.headerCellClass]}),Y=re=>{var te,X,K;(te=e.column)!=null&&te.dataIndex&&((K=a.onThMouseDown)==null||K.call(a,(X=e.column)==null?void 0:X.dataIndex,re))};return()=>{var re,te,X,K;const J=(re=e.column.colSpan)!=null?re:1,ie=(te=e.column.rowSpan)!=null?te:1;return O((K=(X=t.th)==null?void 0:X.call(t,{column:e.column})[0])!=null?K:"th",{class:G.value,style:z.value,colspan:J>1?J:void 0,rowspan:ie>1?ie:void 0},{default:()=>[U(),!c.value&&L(),e.resizable&&O("span",{class:`${r}-column-handle`,onMousedown:Y},null)]})}}});function fje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var Kp=be({name:"Td",props:{rowIndex:Number,record:{type:Object,default:()=>({})},column:{type:Object,default:()=>({})},type:{type:String,default:"normal"},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},isFixedExpand:{type:Boolean,default:!1},containerWidth:{type:Number},showExpandBtn:{type:Boolean,default:!1},indentSize:{type:Number,default:0},renderExpandBtn:{type:Function},summary:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Te("table"),r=j(()=>{var k;if(lr((k=e.column)==null?void 0:k.tooltip))return e.column.tooltip}),o=j(()=>{var k,C;return((k=e.column)==null?void 0:k.dataIndex)&&((C=p.sorter)==null?void 0:C.field)===e.column.dataIndex}),a=j(()=>{var k;return((k=e.column)==null?void 0:k.dataIndex)&&p.resizingColumn===e.column.dataIndex}),s=()=>{var k,C,E,x,_,A;return e.summary?pn((k=e.column)==null?void 0:k.summaryCellClass)?e.column.summaryCellClass((C=e.record)==null?void 0:C.raw):(E=e.column)==null?void 0:E.summaryCellClass:pn((x=e.column)==null?void 0:x.bodyCellClass)?e.column.bodyCellClass((_=e.record)==null?void 0:_.raw):(A=e.column)==null?void 0:A.bodyCellClass},l=j(()=>{var k;return[`${n}-td`,{[`${n}-col-sorted`]:o.value,[`${n}-td-resizing`]:a.value},...spe(n,e.column),(k=e.column)==null?void 0:k.cellClass,s()]}),c=()=>{var k,C,E,x,_,A;return e.summary?pn((k=e.column)==null?void 0:k.summaryCellStyle)?e.column.summaryCellStyle((C=e.record)==null?void 0:C.raw):(E=e.column)==null?void 0:E.summaryCellStyle:pn((x=e.column)==null?void 0:x.bodyCellStyle)?e.column.bodyCellStyle((_=e.record)==null?void 0:_.raw):(A=e.column)==null?void 0:A.bodyCellStyle},f=j(()=>{var k;const C=ape(e.column,{dataColumns:e.dataColumns,operations:e.operations}),E=c();return{...C,...(k=e.column)==null?void 0:k.cellStyle,...E}}),h=j(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),p=xn(q1,{}),m=()=>{var k,C,E,x,_,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):(E=e.column.slots)!=null&&E.cell?e.column.slots.cell(D):e.column.render?e.column.render(D):e.column.slotName&&((x=p.slots)!=null&&x[e.column.slotName])?(A=(_=p.slots)[e.column.slotName])==null?void 0:A.call(_,D):String((M=tg((R=e.record)==null?void 0:R.raw,e.column.dataIndex))!=null?M:"")},g=pe(!1),b=k=>{var C,E;pn(p.loadMore)&&!((C=e.record)!=null&&C.isLeaf)&&!((E=e.record)!=null&&E.children)&&(g.value=!0,new Promise(x=>{var _;(_=p.loadMore)==null||_.call(p,e.record.raw,x)}).then(x=>{var _;(_=p.addLazyLoadData)==null||_.call(p,x,e.record),g.value=!1})),k.stopPropagation()},S=()=>{var k,C,E,x,_,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(ja,null,null):(E=e.renderExpandBtn)==null?void 0:E.call(e,e.record,!1)]),(x=e.column)!=null&&x.ellipsis&&((_=e.column)!=null&&_.tooltip)?O(fpe,{class:`${n}-td-content`,tooltipProps:r.value},fje(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,E,x;return O((x=(E=t.td)==null?void 0:E.call(t,{record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1})[0])!=null?x:"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()]})}}}),hje=be({name:"OperationTh",props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},rowSpan:{type:Number,default:1},selectAll:{type:Boolean,default:!1}},setup(e){const t=Te("table"),n=xn(q1,{}),r=j(()=>{var l,c,f,h;let p=!1,m=!1;const b=((c=(l=n.currentSelectedRowKeys)==null?void 0:l.filter(k=>{var C,E;return(E=(C=n.currentAllEnabledRowKeys)==null?void 0:C.includes(k))!=null?E:!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(bd,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:pn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?pn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=j(()=>lpe(e.operationColumn,e.operations)),s=j(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...ope(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()])])}}),xne=be({name:"OperationTd",components:{Checkbox:bd,Radio:b1,IconPlus:vf,IconMinus:_g},props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},record:{type:Object,required:!0},hasExpand:{type:Boolean,default:!1},selectedRowKeys:{type:Array},renderExpandBtn:{type:Function},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},summary:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t,slots:n}){const r=Te("table"),o=xn(q1,{}),a=j(()=>lpe(e.operationColumn,e.operations)),s=j(()=>[`${r}-td`,`${r}-operation`,{[`${r}-checkbox`]:e.operationColumn.name==="selection-checkbox",[`${r}-radio`]:e.operationColumn.name==="selection-radio",[`${r}-expand`]:e.operationColumn.name==="expand",[`${r}-drag-handle`]:e.operationColumn.name==="drag-handle"},...ope(r,e.operationColumn)]),l=j(()=>$z(e.record)),c=j(()=>{var h;return qFe((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(bd,{modelValue:c.value.checked,indeterminate:c.value.indeterminate,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var E;return(E=o.onSelectAllLeafs)==null?void 0:E.call(o,e.record,C)},onClick:C=>C.stopPropagation()},null):O(bd,{modelValue:(p=(h=e.selectedRowKeys)==null?void 0:h.includes(k))!=null?p:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var E;return(E=o.onSelect)==null?void 0:E.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 E;return(E=o.onSelect)==null?void 0:E.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(G3,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 pje=e=>{const t=j(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=Ht({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()}}},vje=(e,t)=>{const n=pe(""),r=Ht({}),o=(l,c)=>{c.preventDefault(),n.value=l,ki(window,"mousemove",s),ki(window,"mouseup",a),ki(window,"contextmenu",a)},a=()=>{n.value="",Gi(window,"mousemove",s),Gi(window,"mouseup",a),Gi(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}},mje=({columns:e,onFilterChange:t})=>{const n=pe(Tne(e.value));Dt(e,s=>{const l=Tne(s);W1(l,n.value)||(n.value=l)});const r=j(()=>{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}}},Tne=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},gje=({columns:e,onSorterChange:t})=>{const n=pe(Ane(e.value));Dt(e,s=>{const l=Ane(s);W1(l,n.value)||(n.value=l)});const r=j(()=>{var s;for(const l of e.value)if(l.dataIndex&&l.sortable){const c=ts(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,"")}}},Ane=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}},Ine=({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((E,x)=>{var _;if(h+x{g+M{const l={};return o.value={},e.value&&r(t.value,l),l}),s=j(()=>{const l=[];for(const c of Object.keys(o.value))l.push(c);return l});return{tableSpan:a,removedCells:s}};function yje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}const Lne={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var C6=be({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=xn(Fa,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:E}=Zt(e),x=Te("table"),_=xn(Fa,void 0),A=j(()=>lr(e.bordered)?{...Lne,...e.bordered}:{...Lne,wrapper:e.bordered}),{children:R,components:M}=Mk("TableColumn"),D=j(()=>{var xt,Kt;return(Kt=(xt=a.value)==null?void 0:xt.checkStrictly)!=null?Kt:!0}),{displayScrollbar:$,scrollbarProps:L}=R3(C),B=j(()=>{var xt,Kt,en,on;const bn=!!((xt=e.scroll)!=null&&xt.x||(Kt=e.scroll)!=null&&Kt.minWidth),zn=!!((en=e.scroll)!=null&&en.y||(on=e.scroll)!=null&&on.maxHeight);return{x:bn,y:zn}}),F=pe(),U=pe({}),{componentRef:z,elementRef:G}=Ay("containerRef"),{componentRef:Y,elementRef:re}=Ay("containerRef"),{elementRef:te}=Ay("viewportRef"),{componentRef:X,elementRef:K}=Ay("containerRef"),J=j(()=>ie.value?yn.value?te.value:re.value:G.value),ie=j(()=>B.value.y||e.stickyHeader||yn.value||B.value.x&&he.value.length===0),se=Ht(new Map),ae=pe();Dt([M,se],([xt,Kt])=>{if(xt.length>0){const en=[];xt.forEach(on=>{const bn=Kt.get(on);bn&&en.push(bn)}),ae.value=en}else ae.value=void 0});const Ce=new Map,ke=pe([]),ve=pe([]),{resizingColumn:Ie,columnWidth:Ne,handleThMouseDown:Ye}=vje(U,t);Dt([r,ae,Ne],([xt,Kt])=>{var en;const on=zFe((en=Kt??xt)!=null?en:[],Ce,Ne);ke.value=on.dataColumns,ve.value=on.groupColumns},{immediate:!0,deep:!0});const Ze=j(()=>["tl","top","tr"].includes(e.pagePosition)),Ge=pe(!1),_e=pe(!1),ye=pe(!1);Cs(()=>{var xt,Kt,en;let on=!1,bn=!1,zn=!1;((xt=e.rowSelection)!=null&&xt.fixed||(Kt=e.expandable)!=null&&Kt.fixed||(en=e.draggable)!=null&&en.fixed)&&(on=!0);for(const mr of ke.value)mr.fixed==="left"?(on=!0,zn=!0):mr.fixed==="right"&&(bn=!0);on!==Ge.value&&(Ge.value=on),bn!==_e.value&&(_e.value=bn),zn!==ye.value&&(ye.value=zn)});const Re=j(()=>{for(const xt of ke.value)if(xt.ellipsis)return!0;return!1}),je=xt=>{const Kt={type:xt,page:Kl.value,pageSize:ce.value,sorter:Gt.value,filters:ct.value,dragTarget:xt==="drag"?Hs.data:void 0};t("change",we.value,Kt,Ki.value)},Qe=(xt,Kt)=>{yt.value={...ct.value,[xt]:Kt},t("filterChange",xt,Kt),je("filter")},rt=(xt,Kt)=>{Wt.value=Kt?{field:xt,direction:Kt}:void 0,t("sorterChange",xt,Kt),je("sorter")},{_filters:yt,computedFilters:ct,resetFilters:Et,clearFilters:Tt}=mje({columns:ke,onFilterChange:Qe}),{_sorter:Wt,computedSorter:Gt,resetSorters:Jt,clearSorters:rn}=gje({columns:ke,onSorterChange:rt}),qe=new Set,ht=j(()=>{const xt=[];qe.clear();const Kt=en=>{if(qn(en)&&en.length>0)for(const on of en)xt.push(on[o.value]),on.disabled&&qe.add(on[o.value]),on.children&&Kt(on.children)};return Kt(e.data),xt}),ze=j(()=>{const xt=[],Kt=en=>{for(const on of en)xt.push(on.key),on.children&&Kt(on.children)};return Kt(he.value),xt}),Fe=j(()=>{const xt=[],Kt=en=>{for(const on of en)on.disabled||xt.push(on.key),on.children&&Kt(on.children)};return Kt(he.value),xt}),{selectedRowKeys:at,currentSelectedRowKeys:St,handleSelect:ut,handleSelectAllLeafs:tt,handleSelectAll:Pe,select:bt,selectAll:Pt,clearSelected:Ut}=XFe({selectedKeys:f,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:ze,currentAllEnabledRowKeys:Fe,emit:t}),{expandedRowKeys:It,handleExpand:qt,expand:En,expandAll:tr}=ZFe({expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:g,expandable:s,allRowKeys:ht,emit:t}),ji=Ht({}),Wl=(xt,Kt)=>{xt&&(ji[Kt.key]=xt)},Yr=xt=>{var Kt,en;for(const on of Object.keys(ct.value)){const bn=ct.value[on],zn=Ce.get(on);if(zn&&((Kt=zn.filterable)!=null&&Kt.filter)&&bn.length>0){const mr=(en=zn.filterable)==null?void 0:en.filter(bn,xt.raw);if(!mr)return mr}}return!0},{dragType:io,dragState:Hs,handleDragStart:wn,handleDragEnter:hr,handleDragover:Ci,handleDragEnd:Ws,handleDrop:hs}=pje(S),Gl=j(()=>{var xt;const Kt=en=>{const on=[];for(const bn of en){const zn={raw:bn,key:bn[e.rowKey],disabled:bn.disabled,expand:bn.expand,isLeaf:bn.isLeaf};bn.children?(zn.isLeaf=!1,zn.children=Kt(bn.children)):e.loadMore&&!bn.isLeaf?(zn.isLeaf=!1,ji[zn.key]&&(zn.children=Kt(ji[zn.key]))):zn.isLeaf=!0,zn.hasSubtree=!!(zn.children?!e.hideExpandButtonOnEmpty||zn.children.length>0:e.loadMore&&!zn.isLeaf),on.push(zn)}return on};return Kt((xt=e.data)!=null?xt:[])}),Gc=j(()=>{const xt=Kt=>Kt.filter(en=>Yr(en)?(en.children&&(en.children=xt(en.children)),!0):!1);return Object.keys(ct.value).length>0?xt(Gl.value):Gl.value}),Ki=j(()=>{var xt,Kt,en;const on=upe(Gc.value);if(on.length>0){if((xt=Gt.value)!=null&&xt.field){const mr=Ce.get(Gt.value.field);if(mr&&((Kt=mr.sortable)==null?void 0:Kt.sorter)!==!0){const{field:Qr,direction:Ui}=Gt.value;on.sort((ms,Iu)=>{var uc;const Ir=tg(ms.raw,Qr),dr=tg(Iu.raw,Qr);if((uc=mr.sortable)!=null&&uc.sorter&&pn(mr.sortable.sorter))return mr.sortable.sorter(ms.raw,Iu.raw,{dataIndex:Qr,direction:Ui});const oo=Ir>dr?1:-1;return Ui==="descend"?-oo:oo})}}const{sourcePath:bn,targetPath:zn}=Hs;if(Hs.dragging&&zn.length&&zn.toString()!==bn.toString()&&bn.length===zn.length&&bn.slice(0,-1).toString()===zn.slice(0,-1).toString()){let mr=on;for(let Qr=0;Qr=bn.length-1){const Iu=mr[Ui],uc=zn[Qr];uc>Ui?(mr.splice(uc+1,0,Iu),mr.splice(Ui,1)):(mr.splice(uc,0,Iu),mr.splice(Ui+1,1))}else mr=(en=mr[Ui].children)!=null?en:[]}}}return on}),{page:Kl,pageSize:ce,handlePageChange:oe,handlePageSizeChange:ee}=JFe(e,t),Z=j(()=>{var xt,Kt;return(Kt=(xt=a.value)==null?void 0:xt.onlyCurrent)!=null?Kt:!1});Dt(Kl,(xt,Kt)=>{xt!==Kt&&Z.value&&Ut()});const he=j(()=>e.pagination&&Ki.value.length>ce.value?Ki.value.slice((Kl.value-1)*ce.value,Kl.value*ce.value):Ki.value),we=j(()=>cpe(he.value)),Se=()=>ke.value.reduce((xt,Kt,en)=>{if(Kt.dataIndex)if(en===0)HA(xt,Kt.dataIndex,e.summaryText,{addPath:!0});else{let on=0,bn=!1;he.value.forEach(zn=>{if(Kt.dataIndex){const mr=tg(zn.raw,Kt.dataIndex);Ke(mr)?on+=mr:!mn(mr)&&!yl(mr)&&(bn=!0)}}),HA(xt,Kt.dataIndex,bn?"":on,{addPath:!0})}return xt},{}),Le=xt=>xt&&xt.length>0?xt.map(Kt=>({raw:Kt,key:Kt[e.rowKey]})):[],lt=j(()=>e.summary?pn(e.summary)?Le(e.summary({columns:ke.value,data:we.value})):Le([Se()]):[]),nt=pe(0),vt=pe(!0),Ee=pe(!0),et=()=>{let xt=!0,Kt=!0;const en=J.value;en&&(xt=nt.value===0,Kt=Math.ceil(nt.value+en.offsetWidth)>=en.scrollWidth),xt!==vt.value&&(vt.value=xt),Kt!==Ee.value&&(Ee.value=Kt)},ot=()=>vt.value&&Ee.value?`${x}-scroll-position-both`:vt.value?`${x}-scroll-position-left`:Ee.value?`${x}-scroll-position-right`:`${x}-scroll-position-middle`,Rt=()=>{const xt=[];return Ge.value&&xt.push(`${x}-has-fixed-col-left`),_e.value&&xt.push(`${x}-has-fixed-col-right`),xt},Yt=xt=>{xt.target.scrollLeft!==nt.value&&(nt.value=xt.target.scrollLeft),et()},Vt=xt=>{Yt(xt);const{scrollLeft:Kt}=xt.target;K.value&&(K.value.scrollLeft=Kt),F.value&&(F.value.scrollLeft=Kt)},sn=(xt,Kt)=>{t("rowClick",xt.raw,Kt)},ln=(xt,Kt)=>{t("rowDblclick",xt.raw,Kt)},nn=(xt,Kt)=>{t("rowContextmenu",xt.raw,Kt)},nr=(xt,Kt,en)=>{t("cellClick",xt.raw,Kt,en)},Kn=j2((xt,Kt,en)=>{t("cellMouseEnter",xt.raw,Kt,en)},30),hn=j2((xt,Kt,en)=>{t("cellMouseLeave",xt.raw,Kt,en)},30),Vn=(xt,Kt,en)=>{t("cellDblclick",xt.raw,Kt,en)},rr=(xt,Kt,en)=>{t("cellContextmenu",xt.raw,Kt,en)},Yn=(xt,Kt)=>{t("headerClick",xt,Kt)},Cn=j(()=>{var xt,Kt;const en=[],on=Ge.value||_e.value;let bn,zn,mr;((xt=e.draggable)==null?void 0:xt.type)==="handle"&&(bn={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||on},en.push(bn)),e.expandable&&(zn={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||on},en.push(zn)),e.rowSelection&&(mr={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||on},en.push(mr)),!ye.value&&en.length>0&&en[en.length-1].fixed&&(en[en.length-1].isLastLeftFixed=!0);const Qr=(Kt=e.components)==null?void 0:Kt.operations;return pn(Qr)?Qr({dragHandle:bn,expand:zn,selection:mr}):en}),Zn=j(()=>{var xt,Kt,en,on;if(B.value.x){const bn={width:Ke((xt=e.scroll)==null?void 0:xt.x)?`${(Kt=e.scroll)==null?void 0:Kt.x}px`:(en=e.scroll)==null?void 0:en.x};return(on=e.scroll)!=null&&on.minWidth&&(bn.minWidth=Ke(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),bn}}),sr=j(()=>{var xt,Kt,en,on;if(B.value.x&&he.value.length>0){const bn={width:Ke((xt=e.scroll)==null?void 0:xt.x)?`${(Kt=e.scroll)==null?void 0:Kt.x}px`:(en=e.scroll)==null?void 0:en.x};return(on=e.scroll)!=null&&on.minWidth&&(bn.minWidth=Ke(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),bn}});Gr(q1,Ht({loadMore:l,addLazyLoadData:Wl,slots:n,sorter:Gt,filters:ct,filterIconAlignLeft:c,resizingColumn:Ie,checkStrictly:D,currentAllEnabledRowKeys:Fe,currentSelectedRowKeys:St,addColumn:(xt,Kt)=>{se.set(xt,Kt)},removeColumn:xt=>{se.delete(xt)},onSelectAll:Pe,onSelect:ut,onSelectAllLeafs:tt,onSorterChange:rt,onFilterChange:Qe,onThMouseDown:Ye}));const ai=j(()=>[x,`${x}-size-${e.size}`,{[`${x}-border`]:A.value.wrapper,[`${x}-border-cell`]:A.value.cell,[`${x}-border-header-cell`]:!A.value.cell&&A.value.headerCell,[`${x}-border-body-cell`]:!A.value.cell&&A.value.bodyCell,[`${x}-stripe`]:e.stripe,[`${x}-hover`]:e.hoverable,[`${x}-dragging`]:Hs.dragging,[`${x}-type-selection`]:!!e.rowSelection,[`${x}-empty`]:e.data&&he.value.length===0,[`${x}-layout-fixed`]:e.tableLayoutFixed||B.value.x||ie.value||Re.value}]),Zr=j(()=>[`${x}-pagination`,{[`${x}-pagination-left`]:e.pagePosition==="tl"||e.pagePosition==="bl",[`${x}-pagination-center`]:e.pagePosition==="top"||e.pagePosition==="bottom",[`${x}-pagination-right`]:e.pagePosition==="tr"||e.pagePosition==="br",[`${x}-pagination-top`]:Ze.value}]),ya=j(()=>{const xt=Rt();return B.value.x&&xt.push(ot()),ie.value&&xt.push(`${x}-scroll-y`),xt}),yn=j(()=>!!e.virtualListProps),Br=pe({}),ps=()=>{const xt={};for(const Kt of Object.keys(U.value))xt[Kt]=U.value[Kt].offsetWidth;Br.value=xt},Io=pe(!1),No=()=>re.value?re.value.offsetWidth>re.value.clientWidth:!1,Jr=()=>{const xt=No();Io.value!==xt&&(Io.value=xt),et(),ps()};dn(()=>{Io.value=No(),ps()});const ql=j(()=>lr(e.loading)?e.loading:{loading:e.loading}),bl=()=>O(ph,{empty:!0},{default:()=>[O(Kp,{colSpan:ke.value.length+Cn.value.length},{default:()=>{var xt,Kt,en,on,bn;return[(bn=(on=(xt=n.empty)==null?void 0:xt.call(n))!=null?on:(en=_==null?void 0:(Kt=_.slots).empty)==null?void 0:en.call(Kt,{component:"table"}))!=null?bn:O(jh,null,null)]}})]}),Lo=xt=>{var Kt;if(xt.expand)return pn(xt.expand)?xt.expand():xt.expand;if(n["expand-row"])return n["expand-row"]({record:xt.raw});if((Kt=e.expandable)!=null&&Kt.expandedRowRender)return e.expandable.expandedRowRender(xt.raw)},ic=j(()=>[].concat(Cn.value,ke.value)),Wg=j(()=>e.spanAll?ic.value:ke.value),{tableSpan:xf,removedCells:Yl}=Ine({spanMethod:b,data:he,columns:Wg}),{tableSpan:oc,removedCells:Kh}=Ine({spanMethod:k,data:lt,columns:ic}),As=xt=>{if(!(!yn.value||!xt||!Br.value[xt]))return{width:`${Br.value[xt]}px`}},Tf=(xt,Kt)=>O(ph,{key:`table-summary-${Kt}`,class:[`${x}-tr-summary`,pn(e.rowClass)?e.rowClass(xt.raw,Kt):e.rowClass],onClick:en=>sn(xt,en)},{default:()=>[Cn.value.map((en,on)=>{var bn;const zn=`${Kt}-${on}-${xt.key}`,[mr,Qr]=(bn=oc.value[zn])!=null?bn:[1,1];if(Kh.value.includes(zn))return null;const Ui=As(en.name);return O(xne,{style:Ui,operationColumn:en,operations:Cn.value,record:xt,rowSpan:mr,colSpan:Qr,summary:!0},null)}),ke.value.map((en,on)=>{var bn;const zn=`${Kt}-${Cn.value.length+on}-${xt.key}`,[mr,Qr]=(bn=oc.value[zn])!=null?bn:[1,1];if(Kh.value.includes(zn))return null;const Ui=As(en.dataIndex);return O(Kp,{key:`td-${zn}`,style:Ui,rowIndex:Kt,record:xt,column:en,operations:Cn.value,dataColumns:ke.value,rowSpan:mr,colSpan:Qr,summary:!0,onClick:ms=>nr(xt,en,ms),onDblclick:ms=>Vn(xt,en,ms),onMouseenter:ms=>Kn(xt,en,ms),onMouseleave:ms=>hn(xt,en,ms),onContextmenu:ms=>rr(xt,en,ms)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),Kc=()=>lt.value&<.value.length>0?O("tfoot",null,[lt.value.map((xt,Kt)=>Tf(xt,Kt))]):null,Pd=(xt,Kt=!0)=>{var en,on,bn,zn,mr;const Qr=xt.key,Ui=It.value.includes(Qr);return O("button",{type:"button",class:`${x}-expand-btn`,onClick:ms=>{qt(Qr,xt.raw),Kt&&ms.stopPropagation()}},[(mr=(zn=(en=n["expand-icon"])==null?void 0:en.call(n,{expanded:Ui,record:xt.raw}))!=null?zn:(bn=(on=e.expandable)==null?void 0:on.icon)==null?void 0:bn.call(on,Ui,xt.raw))!=null?mr:O(Ui?_g:vf,null,null)])},Tu=(xt,{indentSize:Kt,indexPath:en,allowDrag:on,expandContent:bn})=>{var zn,mr;if(xt.hasSubtree)return((zn=xt.children)==null?void 0:zn.length)===0&&E.value?bl():(mr=xt.children)==null?void 0:mr.map((Qr,Ui)=>Ha(Qr,Ui,{indentSize:Kt,indexPath:en,allowDrag:on}));if(bn){const Qr=J.value;return O(ph,{key:`${xt.key}-expand`,expand:!0},{default:()=>[O(Kp,{isFixedExpand:Ge.value||_e.value,containerWidth:Qr?.clientWidth,colSpan:ke.value.length+Cn.value.length},yje(bn)?bn:{default:()=>[bn]})]})}return null},Ha=(xt,Kt,{indentSize:en=0,indexPath:on,allowDrag:bn=!0}={})=>{var zn;const mr=xt.key,Qr=(on??[]).concat(Kt),Ui=Lo(xt),ms=It.value.includes(mr),Iu=Hs.sourceKey===xt.key,uc=io.value?{draggable:bn,onDragstart:dr=>{bn&&wn(dr,xt.key,Qr,xt.raw)},onDragend:dr=>{bn&&Ws(dr)}}:{},Ir=io.value?{onDragenter:dr=>{bn&&hr(dr,Qr)},onDragover:dr=>{bn&&Ci(dr)},onDrop:dr=>{bn&&(je("drag"),hs(dr))}}:{};return O(Ft,null,[O(ph,Nt({key:mr,class:[{[`${x}-tr-draggable`]:io.value==="row",[`${x}-tr-drag`]:Iu},pn(e.rowClass)?e.rowClass(xt.raw,Kt):e.rowClass],rowIndex:Kt,record:xt,checked:e.rowSelection&&((zn=at.value)==null?void 0:zn.includes(mr)),onClick:dr=>sn(xt,dr),onDblclick:dr=>ln(xt,dr),onContextmenu:dr=>nn(xt,dr)},io.value==="row"?uc:{},Ir),{default:()=>[Cn.value.map((dr,oo)=>{var ba;const Xr=`${Kt}-${oo}-${xt.key}`,[_a,An]=e.spanAll?(ba=xf.value[Xr])!=null?ba:[1,1]:[1,1];if(e.spanAll&&Yl.value.includes(Xr))return null;const Lu=As(dr.name);return O(xne,Nt({key:`operation-td-${oo}`,style:Lu,operationColumn:dr,operations:Cn.value,record:xt,hasExpand:!!Ui,selectedRowKeys:St.value,rowSpan:_a,colSpan:An,renderExpandBtn:Pd},io.value==="handle"?uc:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),ke.value.map((dr,oo)=>{var ba;const Xr=`${Kt}-${e.spanAll?Cn.value.length+oo:oo}-${xt.key}`,[_a,An]=(ba=xf.value[Xr])!=null?ba:[1,1];if(Yl.value.includes(Xr))return null;const Lu=oo===0?{showExpandBtn:xt.hasSubtree,indentSize:xt.hasSubtree?en-20:en}:{},aw=As(dr.dataIndex);return O(Kp,Nt({key:`td-${oo}`,style:aw,rowIndex:Kt,record:xt,column:dr,operations:Cn.value,dataColumns:ke.value,rowSpan:_a,renderExpandBtn:Pd,colSpan:An},Lu,{onClick:Is=>nr(xt,dr,Is),onDblclick:Is=>Vn(xt,dr,Is),onMouseenter:Is=>Kn(xt,dr,Is),onMouseleave:Is=>hn(xt,dr,Is),onContextmenu:Is=>rr(xt,dr,Is)}),{td:n.td})})],tr:n.tr}),ms&&Tu(xt,{indentSize:en+e.indentSize,indexPath:Qr,allowDrag:bn&&!Iu,expandContent:Ui})])},vs=()=>{const xt=he.value.some(Kt=>!!Kt.hasSubtree);return O(GS,null,{default:()=>[he.value.length>0?he.value.map((Kt,en)=>Ha(Kt,en,{indentSize:xt?20:0})):bl()],tbody:n.tbody})},qh=()=>O(WS,null,{default:()=>[ve.value.map((xt,Kt)=>O(ph,{key:`header-row-${Kt}`},{default:()=>[Kt===0&&Cn.value.map((en,on)=>{var bn;return O(hje,{key:`operation-th-${on}`,ref:zn=>{zn?.$el&&en.name&&(U.value[en.name]=zn.$el)},operationColumn:en,operations:Cn.value,selectAll:!!(en.name==="selection-checkbox"&&((bn=e.rowSelection)!=null&&bn.showCheckedAll)),rowSpan:ve.value.length},null)}),xt.map((en,on)=>{const bn=e.columnResizable&&!!en.dataIndex&&on{zn?.$el&&en.dataIndex&&(U.value[en.dataIndex]=zn.$el)},column:en,operations:Cn.value,dataColumns:ke.value,resizable:bn,onClick:zn=>Yn(en,zn)},{th:n.th})})]}))],thead:n.thead}),sc=()=>{var xt,Kt;if(ie.value){const en=Ke(e.stickyHeader)?`${e.stickyHeader}px`:void 0,on=[(xt=L.value)==null?void 0:xt.outerClass];e.stickyHeader&&on.push(`${x}-header-sticky`);const bn={top:en,...(Kt=L.value)==null?void 0:Kt.outerStyle},zn=$.value?wd:"div";return O(Ft,null,[e.showHeader&&O(zn,Nt({ref:X,class:[`${x}-header`,{[`${x}-header-sticky`]:e.stickyHeader&&!$.value}],style:{overflowY:Io.value?"scroll":void 0,top:$.value?void 0:en}},C.value?{hide:he.value.length!==0,disableVertical:!0,...L.value,outerClass:on,outerStyle:bn}:void 0),{default:()=>[O("table",{class:`${x}-element`,style:Zn.value,cellpadding:0,cellspacing:0},[O(nx,{dataColumns:ke.value,operations:Cn.value,columnWidth:Ne},null),qh()])]}),O(Sd,{onResize:Jr},{default:()=>{var mr,Qr;return[yn.value&&he.value.length?O(G1,Nt({ref:Ui=>{Ui?.$el&&(re.value=Ui.$el)},class:`${x}-body`,data:he.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${x}-element`,style:sr.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:Vt}),{item:({item:Ui,index:ms})=>Ha(Ui,ms)}):O(zn,Nt({ref:Y,class:`${x}-body`,style:{maxHeight:Ke((mr=e.scroll)==null?void 0:mr.y)?`${(Qr=e.scroll)==null?void 0:Qr.y}px`:"100%"}},C.value?{outerStyle:{display:"flex",minHeight:"0"},...L.value}:void 0,{onScroll:Vt}),{default:()=>[O("table",{class:`${x}-element`,style:sr.value,cellpadding:0,cellspacing:0},[he.value.length!==0&&O(nx,{dataColumns:ke.value,operations:Cn.value,columnWidth:Ne},null),vs()])]})]}}),lt.value&<.value.length>0&&O("div",{ref:F,class:`${x}-tfoot`,style:{overflowY:Io.value?"scroll":"hidden"}},[O("table",{class:`${x}-element`,style:sr.value,cellpadding:0,cellspacing:0},[O(nx,{dataColumns:ke.value,operations:Cn.value,columnWidth:Ne},null),Kc()])])])}return O(Sd,{onResize:()=>et()},{default:()=>[O("table",{class:`${x}-element`,cellpadding:0,cellspacing:0,style:sr.value},[O(nx,{dataColumns:ke.value,operations:Cn.value,columnWidth:Ne},null),e.showHeader&&qh(),vs(),lt.value&<.value.length>0&&Kc()])]})},ac=xt=>{var Kt;const en=(Kt=e.scroll)!=null&&Kt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,on=$.value?wd:"div";return O(Ft,null,[O("div",{class:[`${x}-container`,ya.value]},[O(on,Nt({ref:z,class:[`${x}-content`,{[`${x}-content-scroll-x`]:!ie.value}],style:en},C.value?{outerStyle:{height:"100%"},...L.value}:void 0,{onScroll:Yt}),{default:()=>[xt?O("table",{class:`${x}-element`,cellpadding:0,cellspacing:0},[xt()]):sc()]})]),n.footer&&O("div",{class:`${x}-footer`},[n.footer()])])},Au=()=>{var xt,Kt;const en=lr(e.pagination)?va(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return O("div",{class:Zr.value},[(xt=n["pagination-left"])==null?void 0:xt.call(n),O(Iz,Nt({total:Gc.value.length,current:Kl.value,pageSize:ce.value,onChange:on=>{oe(on),je("pagination")},onPageSizeChange:on=>{ee(on),je("pagination")}},en),null),(Kt=n["pagination-right"])==null?void 0:Kt.call(n)])},lc=j(()=>{var xt,Kt;if(ts((xt=e.scroll)==null?void 0:xt.y))return{height:(Kt=e.scroll)==null?void 0:Kt.y}});return{render:()=>{var xt;return n.default?O("div",{class:ai.value},[ac(n.default)]):(R.value=(xt=n.columns)==null?void 0:xt.call(n),O("div",{class:ai.value,style:lc.value},[R.value,O(kd,ql.value,{default:()=>[e.pagination!==!1&&(he.value.length>0||Ki.value.length>0)&&Ze.value&&Au(),ac(),e.pagination!==!1&&(he.value.length>0||Ki.value.length>0)&&!Ze.value&&Au()]})]))},selfExpand:En,selfExpandAll:tr,selfSelect:bt,selfSelectAll:Pt,selfResetFilters:Et,selfClearFilters:Tt,selfResetSorters:Jt,selfClearSorters:rn}},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=wu(e,t),r=pe(n.value);return Dt(n,(o,a)=>{W1(o,a)||(r.value=o)}),r};var A4=be({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}=Zt(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"),E=Jc(e,"headerCellStyle"),x=Jc(e,"bodyCellStyle"),_=Jc(e,"summaryCellStyle"),A=Jc(e,"tooltip"),R=uo(),M=xn(q1,{}),D=xn(Cne,void 0),{children:$,components:L}=Mk("TableColumn"),B=Ht(new Map);Gr(Cne,{addChild:(Y,re)=>{B.set(Y,re)},removeChild:Y=>{B.delete(Y)}});const z=pe();Dt([L,B],([Y,re])=>{if(Y.length>0){const te=[];Y.forEach(X=>{const K=re.get(X);K&&te.push(K)}),z.value=te}else z.value=void 0});const G=Ht({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:E,bodyCellStyle:x,summaryCellStyle:_,index:f,tooltip:A,children:z,slots:t});return R&&(D?D.addChild(R.uid,G):(n=M.addColumn)==null||n.call(M,R.uid,G)),$o(()=>{var Y;R&&(D?D.removeChild(R.uid):(Y=M.removeColumn)==null||Y.call(M,R.uid))}),()=>{var Y;return $.value=(Y=t.default)==null?void 0:Y.call(t),$.value}}});const bje=Object.assign(C6,{Thead:WS,Tbody:GS,Tr:ph,Th:KS,Td:Kp,Column:A4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+C6.name,C6),e.component(n+WS.name,WS),e.component(n+GS.name,GS),e.component(n+ph.name,ph),e.component(n+KS.name,KS),e.component(n+Kp.name,Kp),e.component(n+A4.name,A4)}}),_je=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},Sje=(e,t)=>{const{scrollTop:n,scrollLeft:r}=e;t==="horizontal"&&r&&e.scrollTo({left:-1*r}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},Fz=Symbol("ArcoTabs"),kje=be({name:"TabsTab",components:{IconHover:_o,IconClose:xs},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=Te("tabs-tab"),r=xn(Fz,{}),o=f=>{e.tab.disabled||t("click",e.tab.key,f)},a=f=>{f.key==="Enter"&&o(f)},s=j(()=>Object.assign(r.trigger==="click"?{onClick:o}:{onMouseover:o},{onKeydown:a})),l=f=>{e.tab.disabled||t("delete",e.tab.key,f)},c=j(()=>[n,{[`${n}-active`]:e.active,[`${n}-closable`]:e.editable&&e.tab.closable,[`${n}-disabled`]:e.tab.disabled}]);return{prefixCls:n,cls:c,eventHandlers:s,handleDelete:l}}});function wje(e,t,n,r,o,a){const s=Me("icon-close"),l=Me("icon-hover");return H(),Q("div",Nt({tabindex:"0",class:e.cls},e.eventHandlers),[I("span",{class:le(`${e.prefixCls}-title`)},[ft(e.$slots,"default")],2),e.editable&&e.tab.closable?(H(),Xe(l,{key:0,class:le(`${e.prefixCls}-close-btn`),onClick:es(e.handleDelete,["stop"])},{default:de(()=>[O(s)]),_:1},8,["class","onClick"])):Oe("v-if",!0)],16)}var Cje=$e(kje,[["render",wje]]);function Eje(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var Pne=be({name:"TabsButton",props:{type:{type:String,default:"next"},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},onClick:{type:Function}},emits:["click"],setup(e,{emit:t}){const n=Te("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},o=()=>e.direction==="horizontal"?e.type==="next"?O(Mi,null,null):O(Hl,null,null):e.type==="next"?O(xv,null,null):O(Rk,null,null),a=j(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-left`]:e.direction==="horizontal"&&e.type==="previous",[`${n}-right`]:e.direction==="horizontal"&&e.type==="next",[`${n}-up`]:e.direction==="vertical"&&e.type==="previous",[`${n}-down`]:e.direction==="vertical"&&e.type==="next"}]);return()=>{let s;return O("div",{class:a.value,onClick:r},[O(_o,{disabled:e.disabled},Eje(s=o())?s:{default:()=>[s]})])}}});const xje=be({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=Zt(e),n=Te("tabs-nav-ink"),r=pe(0),o=pe(0),a=j(()=>e.direction==="vertical"?{top:`${r.value}px`,height:`${o.value}px`}:{left:`${r.value}px`,width:`${o.value}px`}),s=()=>{if(t.value){const c=e.direction==="vertical"?t.value.offsetTop:t.value.offsetLeft,f=e.direction==="vertical"?t.value.offsetHeight:t.value.offsetWidth;(c!==r.value||f!==o.value)&&(r.value=c,o.value=f)}};dn(()=>{kn(()=>s())}),za(()=>{s()});const l=j(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function Tje(e,t,n,r,o,a){return H(),Q("div",{class:le(e.cls),style:Ve(e.style)},null,6)}var Aje=$e(xje,[["render",Tje]]),Ije=be({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}=Zt(e),c=Te("tabs-nav"),f=pe(),h=pe(),p=pe({}),m=j(()=>{if(!mn(o.value))return p.value[o.value]}),g=pe(),b=j(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),S=pe(!1),k=pe(0),C=pe(0),E=pe(0),x=()=>{var X,K,J;return(J=s.value==="vertical"?(X=f.value)==null?void 0:X.offsetHeight:(K=f.value)==null?void 0:K.offsetWidth)!=null?J: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=x(),C.value=_(),E.value>C.value&&(E.value=C.value)):E.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),E.value=Math.min(X,C.value)},D=()=>{if(!m.value||!f.value||!S.value)return;Sje(f.value,s.value);const X=s.value==="horizontal",K=X?"offsetLeft":"offsetTop",J=X?"offsetWidth":"offsetHeight",ie=m.value[K],se=m.value[J],ae=f.value[J],Ce=window.getComputedStyle(m.value),ke=X?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",ve=parseFloat(Ce[ke])||0;l.value==="auto"?ieE.value+ae&&M(ie+se-ae+ve):l.value==="center"?M(ie+(se-ae+ve)/2):l.value==="start"?M(ie-ve):l.value==="end"?M(ie+se-ae+ve):Ke(l.value)&&M(ie-l.value)},$=X=>{if(!S.value)return;X.preventDefault();const{deltaX:K,deltaY:J}=X;Math.abs(K)>Math.abs(J)?M(E.value+K):M(E.value+J)},L=(X,K)=>{t("click",X,K)},B=(X,K)=>{t("delete",X,K),kn(()=>{delete p.value[X]})},F=X=>{const K=X==="previous"?E.value-k.value:E.value+k.value;M(K)},U=()=>{A(),g.value&&g.value.$forceUpdate()};Dt(r,()=>{kn(()=>{A()})}),Dt([a,l],()=>{setTimeout(()=>{D()},0)}),dn(()=>{A(),f.value&&ki(f.value,"wheel",$,{passive:!1})}),hi(()=>{f.value&&Gi(f.value,"wheel",$)});const z=()=>!b.value||!e.showAddButton?null:O("div",{class:`${c}-add-btn`,onClick:X=>t("add",X)},[O(_o,null,{default:()=>[O(vf,null,null)]})]),G=j(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),Y=j(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),re=j(()=>_je({direction:e.direction,type:e.type,offset:E.value})),te=j(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:S.value}]);return()=>{var X;return O("div",{class:G.value},[S.value&&O(Pne,{type:"previous",direction:e.direction,disabled:E.value<=0,onClick:F},null),O(Sd,{onResize:()=>A()},{default:()=>[O("div",{class:te.value,ref:f},[O(Sd,{onResize:U},{default:()=>[O("div",{ref:h,class:Y.value,style:re.value},[e.tabs.map((K,J)=>O(Cje,{key:K.key,ref:ie=>{ie?.$el&&(p.value[K.key]=ie.$el)},active:K.key===o.value,tab:K,editable:e.editable,onClick:L,onDelete:B},{default:()=>{var ie,se,ae;return[(ae=(se=(ie=K.slots).title)==null?void 0:se.call(ie))!=null?ae:K.title]}})),e.type==="line"&&m.value&&O(Aje,{ref:g,activeTabRef:m.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!S.value&&z()])]}),S.value&&O(Pne,{type:"next",direction:e.direction,disabled:E.value>=C.value,onClick:F},null),O("div",{class:`${c}-extra`},[S.value&&z(),(X=n.extra)==null?void 0:X.call(n)])])}}}),E6=be({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}=Zt(e),l=Te("tabs"),{mergedSize:c}=ga(r),f=j(()=>e.direction==="vertical"?"left":e.position),h=j(()=>["left","right"].includes(f.value)?"vertical":"horizontal"),{children:p,components:m}=Mk("TabPane"),g=Ht(new Map),b=j(()=>{const B=[];return m.value.forEach(F=>{const U=g.get(F);U&&B.push(U)}),B}),S=j(()=>b.value.map(B=>B.key)),k=(B,F)=>{g.set(B,F)},C=B=>{g.delete(B)},E=pe(e.defaultActiveKey),x=j(()=>{var B;const F=(B=e.activeKey)!=null?B:E.value;return mn(F)?S.value[0]:F}),_=j(()=>{const B=S.value.indexOf(x.value);return B===-1?0:B});Gr(Fz,Ht({lazyLoad:o,destroyOnHide:a,activeKey:x,addItem:k,removeItem:C,trigger:s}));const A=B=>{B!==x.value&&(E.value=B,t("update:activeKey",B),t("change",B))},R=(B,F)=>{A(B),t("tabClick",B,F)},M=B=>{t("add",B),e.autoSwitch&&kn(()=>{const F=S.value[S.value.length-1];A(F)})},D=(B,F)=>{t("delete",B,F)},$=()=>O("div",{class:[`${l}-content`,{[`${l}-content-hide`]:e.hideContent}]},[O("div",{class:[`${l}-content-list`,{[`${l}-content-animation`]:e.animation}],style:{marginLeft:`-${_.value*100}%`}},[p.value])]),L=j(()=>[l,`${l}-${h.value}`,`${l}-${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"&&$(),O(Ije,{tabs:b.value,activeKey:x.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"&&$()])}}});const Lje=be({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}=Zt(e),s=uo(),l=Te("tabs"),c=xn(Fz,{}),f=pe(),h=j(()=>s?.vnode.key),p=j(()=>h.value===c.activeKey),m=pe(c.lazyLoad?p.value:!0),g=Ht({key:h,title:r,disabled:o,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,g)),$o(()=>{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)}),za(()=>{g.slots={...t}}),{prefixCls:l,active:p,itemRef:f,mounted:m}}});function Pje(e,t,n,r,o,a){return H(),Q("div",{ref:"itemRef",class:le([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-pane`)},[ft(e.$slots,"default")],2)):Oe("v-if",!0)],2)}var I4=$e(Lje,[["render",Pje]]);const Rje=Object.assign(E6,{TabPane:I4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+E6.name,E6),e.component(n+I4.name,I4)}});function Mje(e){const{modelValue:t,defaultValue:n,format:r,isRange:o}=Zt(e);function a(){return o.value?[]:void 0}function s(k){if(!mn(k))return o.value?qn(k)?k:[k,void 0]:k}const l=j(()=>{const k=s(t.value);return nc(k,r.value)}),c=j(()=>{const k=s(n.value);return nc(k,r.value)}),[f,h]=Na(mn(l.value)?mn(c.value)?a():c.value:l.value);Dt(l,()=>{mn(l.value)&&h(a())});const p=j(()=>l.value||f.value),[m,g]=Na(p.value);Dt([p],()=>{g(p.value)});const[b,S]=Na();return Dt([m],()=>{S(void 0)}),{computedValue:p,panelValue:m,inputValue:b,setValue:h,setPanelValue:g,setInputValue:S}}var Dje=be({name:"TimePickerRangePanel",components:{Panel:VA},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}=Zt(e),o=pe(r.value);Dt(r,()=>{o.value=r.value});const a=j(()=>n?.value?n.value[o.value]:void 0);function s(c){const f=mn(n)||mn(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(VA,e,this.$slots)}});const Oje=be({name:"TimePicker",components:{Trigger:sa,DateInput:Yfe,DateRangeInput:phe,Panel:VA,RangePanel:Dje,IconClockCircle:V3},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}=Zt(e),{mergedDisabled:S,eventHandlers:k}=So({disabled:f}),C=j(()=>n.value==="time-range"),E=Te("timepicker"),x=pe(),{format:_,use12Hours:A}=kz(Ht({format:r,use12Hours:o})),{computedValue:R,panelValue:M,inputValue:D,setValue:$,setPanelValue:L,setInputValue:B}=Mje(Ht({modelValue:a,defaultValue:s,isRange:C,format:_})),[F,U]=oa(c.value,Ht({value:l})),z=ye=>{ye!==F.value&&(U(ye),t("popup-visible-change",ye),t("update:popupVisible",ye))},{t:G}=Ao(),[Y,re]=Na(0),te=j(()=>{const ye=h?.value;return C.value?mn(ye)?G("datePicker.rangePlaceholder.time"):qn(ye)?ye:[ye,ye]:mn(ye)?G("datePicker.placeholder.time"):ye}),X=the(Ht({disabledHours:m,disabledMinutes:g,disabledSeconds:b}));function K(ye){var Re,je;if(fz(ye,R.value)){const Qe=tf(ye,_.value),rt=mu(ye);t("update:modelValue",Qe),t("change",Qe,rt),(je=(Re=k.value)==null?void 0:Re.onChange)==null||je.call(Re)}}function J(ye,Re){if(X(ye))return;let je=ye;if(qn(ye)){const Qe=ks();je=ye.map(rt=>(rt&&(rt=rt.year(Qe.year()),rt=rt.month(Qe.month()),rt=rt.date(Qe.date())),rt)),fS(je)&&(je=F2(je)),je?.length===0&&(je=void 0)}K(je),$(je),Re!==F.value&&z(Re)}function ie(ye,Re){L(ye),Re!==F.value&&z(Re)}function se(ye){x.value&&x.value.focus&&x.value.focus(ye)}function ae(ye){S.value||(z(ye),ye&&kn(()=>{se(Y.value)}))}function Ce(ye){const Re=tf(ye,_.value),je=mu(ye);t("select",Re,je),p.value&&(!C.value||fS(ye))?J(ye,!0):(ie(ye,!0),B(void 0))}function ke(ye){J(ye,!1)}function ve(){J(M.value||R.value,!1)}function Ie(){if(fS(M.value))J(M.value,!1);else{const ye=(Y.value+1)%2;re(ye),se(ye)}}function Ne(ye){z(!0);const Re=ye.target.value;if(B(Re),!UA(Re,_.value))return;const je=ks(Re,_.value);X(je)||(p.value?J(je,!0):ie(je,!0))}function Ye(ye){z(!0);const Re=ye.target.value,je=qn(D.value)?[...D.value]:qn(M.value)&&tf(M.value,_.value)||[];if(je[Y.value]=Re,B(je),!UA(Re,_.value))return;const Qe=ks(Re,_.value);if(X(Qe))return;const rt=qn(M.value)?[...M.value]:[];rt[Y.value]=Qe,p.value&&fS(rt)?J(rt,!0):ie(rt,!0)}function Ze(ye){ye.stopPropagation(),L(void 0),J(void 0,C.value)}Dt(F,(ye,Re)=>{ye!==Re&&L(R.value),ye||B(void 0)});const Ge=j(()=>C.value?{focusedIndex:Y.value,onFocusedIndexChange:ye=>{re(ye)},onChange:Ye,onPressEnter:Ie}:{onChange:Ne,onPressEnter:ve}),_e=j(()=>C.value?{displayIndex:Y.value,onDisplayIndexChange:ye=>{re(ye),se(ye)}}:{});return{refInput:x,isRange:C,prefixCls:E,panelVisible:F,focusedInputIndex:Y,computedPlaceholder:te,panelValue:M,inputValue:D,computedFormat:_,computedUse12Hours:A,inputProps:Ge,panelProps:_e,mergedDisabled:S,onPanelVisibleChange:ae,onInputClear:Ze,onPanelSelect:Ce,onPanelConfirm:ke,onPanelClick:()=>{se(Y.value)}}}});function $je(e,t,n,r,o,a){const s=Me("IconClockCircle"),l=Me("Trigger");return H(),Xe(l,Nt({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:le(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(H(),Xe($a(e.isRange?"RangePanel":"Panel"),Nt(e.panelProps,{value:e.panelValue,visible:e.panelVisible,format:e.computedFormat,"use12-hours":e.computedUse12Hours,step:e.step,"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions,"hide-footer":e.disableConfirm,onSelect:e.onPanelSelect,onConfirm:e.onPanelConfirm}),yo({_:2},[e.$slots.extra?{name:"extra-footer",fn:de(()=>[ft(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(),Xe($a(e.isRange?"DateRangeInput":"DateInput"),Nt({...e.$attrs,...e.inputProps},{ref:"refInput","input-value":e.inputValue,value:e.panelValue,size:e.size,focused:e.panelVisible,format:e.computedFormat,visible:e.panelVisible,disabled:e.mergedDisabled,error:e.error,readonly:e.readonly,editable:!e.readonly,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,onClear:e.onInputClear}),yo({"suffix-icon":de(()=>[ft(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(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 x6=$e(Oje,[["render",$je]]);const Nje=Object.assign(x6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+x6.name,x6)}}),hpe=Symbol("ArcoTimeline"),Bje=(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]},Fje=be({name:"TimelineItem",props:{dotColor:{type:String},dotType:{type:String,default:"solid"},lineType:{type:String,default:"solid"},lineColor:{type:String},label:{type:String},position:{type:String}},setup(e){const t=Te("timeline-item"),n=uo(),r=xn(hpe,{}),o=j(()=>{var m,g,b;return(b=(g=r.items)==null?void 0:g.indexOf((m=n?.uid)!=null?m:-1))!=null?b:-1}),a=j(()=>{var m;return(m=r?.direction)!=null?m:"vertical"}),s=j(()=>{var m;return(m=r?.labelPosition)!=null?m:"same"}),l=j(()=>{const{items:m=[],reverse:g,labelPosition:b,mode:S="left"}=r,k=a.value,C=Bje(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=j(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),f=j(()=>{const{direction:m}=r||{};return{[m==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType,...e.lineColor?{borderColor:e.lineColor}:{}}}),h=j(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),p=j(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:l,dotLineCls:c,dotTypeCls:h,prefixCls:t,computedDotLineStyle:f,computedDotStyle:p,labelPosition:s}}});function jje(e,t,n,r,o,a){return H(),Q("div",{role:"listitem",class:le(e.cls)},[I("div",{class:le(`${e.prefixCls}-dot-wrapper`)},[I("div",{class:le(e.dotLineCls),style:Ve(e.computedDotLineStyle)},null,6),I("div",{class:le(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-dot-custom`)},[ft(e.$slots,"dot")],2)):(H(),Q("div",{key:1,class:le(e.dotTypeCls),style:Ve(e.computedDotStyle)},null,6))],2)],2),I("div",{class:le(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-content`)},[ft(e.$slots,"default")],2)):Oe("v-if",!0),e.labelPosition!=="relative"?(H(),Q("div",{key:1,class:le(`${e.prefixCls}-label`)},[e.$slots.label?ft(e.$slots,"label",{key:0}):(H(),Q(Ft,{key:1},[We(Be(e.label),1)],64))],2)):Oe("v-if",!0)],2),e.labelPosition==="relative"?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-label`)},[e.$slots.label?ft(e.$slots,"label",{key:0}):(H(),Q(Ft,{key:1},[We(Be(e.label),1)],64))],2)):Oe("v-if",!0)],2)}var Ky=$e(Fje,[["render",jje]]),T6=be({name:"Timeline",components:{Item:Ky,Spin:kd},props:{reverse:{type:Boolean},direction:{type:String,default:"vertical"},mode:{type:String,default:"left"},pending:{type:[Boolean,String]},labelPosition:{type:String,default:"same"}},setup(e,{slots:t}){const n=Te("timeline"),r=j(()=>e.pending||t.pending),{children:o,components:a}=Mk("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:f}=Zt(e),h=Ht({items:a,direction:l,reverse:s,labelPosition:c,mode:f});Gr(hpe,h);const p=j(()=>[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(kd,{size:12},null)}})):o.value=(g=t.default)==null?void 0:g.call(t),O("div",{role:"list",class:p.value},[o.value])}}});const Uje=Object.assign(T6,{Item:Ky,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+T6.name,T6),e.component(n+Ky.name,Ky)}}),Vje=be({name:"IconDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zje=["stroke-width","stroke-linecap","stroke-linejoin"];function Hje(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,zje)}var A6=$e(Vje,[["render",Hje]]);const rc=Object.assign(A6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A6.name,A6)}}),jz=Symbol("ArcoTransfer");var Wje=be({name:"TransferListItem",props:{type:{type:String},data:{type:Object,required:!0},allowClear:{type:Boolean},disabled:{type:Boolean},draggable:{type:Boolean},simple:Boolean},setup(e){const t=Te("transfer-list-item"),n=xn(jz,void 0),r=()=>{e.simple&&!e.disabled&&n?.moveTo([e.data.value],e.type==="target"?"source":"target")},o=j(()=>[t,{[`${t}-disabled`]:e.disabled,[`${t}-draggable`]:e.draggable}]),a=()=>{n?.moveTo([e.data.value],"source")};return()=>{var s,l,c;return O("div",{class:o.value,onClick:r},[e.allowClear||e.simple?O("span",{class:`${t}-content`},[(c=(l=n==null?void 0:(s=n.slots).item)==null?void 0:l.call(s,{label:e.data.label,value:e.data.value}))!=null?c:e.data.label]):O(bd,{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(_o,{class:`${t}-remove-btn`,onClick:a},{default:()=>[O(xs,null,null)]})])}}});const Gje=be({name:"TransferView",components:{Empty:MT,Checkbox:bd,IconHover:_o,IconDelete:rc,InputSearch:Cv.Search,List:Hhe,TransferListItem:Wje,Scrollbar:wd},props:{type:{type:String},dataInfo:{type:Object,required:!0},title:String,data:{type:Array,required:!0},disabled:Boolean,allowClear:Boolean,selected:{type:Array,required:!0},showSearch:Boolean,showSelectAll:Boolean,simple:Boolean,inputSearchProps:{type:Object}},emits:["search"],setup(e,{emit:t}){const n=Te("transfer-view"),r=pe(""),o=xn(jz,void 0),a=j(()=>e.dataInfo.selected.length),s=j(()=>e.dataInfo.data.length),l=j(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),c=j(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length{g?o?.onSelect([...e.selected,...e.dataInfo.allValidValues]):o?.onSelect(e.selected.filter(b=>!e.dataInfo.allValidValues.includes(b)))},h=j(()=>e.dataInfo.data.filter(g=>r.value?g.label.includes(r.value):!0));return{prefixCls:n,filteredData:h,filter:r,checked:l,indeterminate:c,countSelected:a,countRendered:s,handleSelectAllChange:f,handleSearch:g=>{t("search",g,e.type)},handleClear:()=>{o?.moveTo(e.dataInfo.allValidValues,"source")},transferCtx:o}}});function Kje(e,t,n,r,o,a){const s=Me("checkbox"),l=Me("icon-delete"),c=Me("icon-hover"),f=Me("input-search"),h=Me("transfer-list-item"),p=Me("list"),m=Me("Scrollbar"),g=Me("Empty");return H(),Q("div",{class:le(e.prefixCls)},[I("div",{class:le(`${e.prefixCls}-header`)},[ft(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:le(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(H(),Q("span",{key:0,class:le(`${e.prefixCls}-header-title-simple`)},Be(e.title),3)):(H(),Xe(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:de(()=>[We(Be(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(H(),Xe(c,{key:0,disabled:e.disabled,class:le(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:de(()=>[O(l)]),_:1},8,["disabled","class","onClick"])):e.simple?Oe("v-if",!0):(H(),Q("span",{key:1,class:le(`${e.prefixCls}-header-count`)},Be(e.dataInfo.selected.length)+" / "+Be(e.dataInfo.data.length),3))])],2),e.showSearch?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-search`)},[O(f,Nt({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)):Oe("v-if",!0),I("div",{class:le(`${e.prefixCls}-body`)},[e.filteredData.length>0?(H(),Xe(m,{key:0},{default:de(()=>{var b,S;return[ft(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:le(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:de(()=>[(H(!0),Q(Ft,null,fn(e.filteredData,k=>(H(),Xe(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(),Xe(g,{key:1,class:le(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var qje=$e(Gje,[["render",Kje]]);const Yje=be({name:"Transfer",components:{ArcoButton:Uo,TransferView:qje,IconLeft:Hl,IconRight:Mi},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}=So({disabled:wu(e,"disabled")}),a=Te("transfer"),s=pe(e.defaultValue),l=j(()=>{var E;return(E=e.modelValue)!=null?E:s.value}),c=pe(e.defaultSelected),f=j(()=>{var E;return(E=e.selected)!=null?E:c.value}),h=j(()=>{var E;return(E=e.title)==null?void 0:E[0]}),p=j(()=>{var E;return(E=e.title)==null?void 0:E[1]}),m=j(()=>{const E={data:[],allValidValues:[],selected:[],validSelected:[]},x={data:[],allValidValues:[],selected:[],validSelected:[]};for(const _ of e.data)l.value.includes(_.value)?(x.data.push(_),_.disabled||x.allValidValues.push(_.value),f.value.includes(_.value)&&(x.selected.push(_.value),_.disabled||x.validSelected.push(_.value))):(E.data.push(_),_.disabled||E.allValidValues.push(_.value),f.value.includes(_.value)&&(E.selected.push(_.value),_.disabled||E.validSelected.push(_.value)));return{sourceInfo:E,targetInfo:x}}),g=(E,x)=>{t("search",E,x)},b=(E,x)=>{var _,A;const R=x==="target"?[...l.value,...E]:l.value.filter(M=>!E.includes(M));k(m.value[x==="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=E=>{const x=E==="target"?m.value.sourceInfo.validSelected:m.value.targetInfo.validSelected;b(x,E)},k=E=>{c.value=E,t("update:selected",E),t("select",E)};Gr(jz,Ht({selected:f,slots:n,moveTo:b,onSelect:k}));const C=j(()=>[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 Xje(e,t,n,r,o,a){const s=Me("transfer-view"),l=Me("icon-right"),c=Me("arco-button"),f=Me("icon-left");return H(),Q("div",{class:le(e.cls)},[O(s,{type:"source",class:le(`${e.prefixCls}-view-source`),title:e.sourceTitle,"data-info":e.dataInfo.sourceInfo,data:e.dataInfo.sourceInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.sourceInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.source?{name:"default",fn:de(h=>[ft(e.$slots,"source",Ni(ha(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:de(h=>[ft(e.$slots,"source-title",Ni(ha(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?Oe("v-if",!0):(H(),Q("div",{key:0,class:le([`${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(()=>[ft(e.$slots,"to-target-icon",{},()=>[O(l)])]),_:3},8,["disabled"]),e.oneWay?Oe("v-if",!0):(H(),Xe(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(()=>[ft(e.$slots,"to-source-icon",{},()=>[O(f)])]),_:3},8,["disabled"]))],2)),O(s,{type:"target",class:le(`${e.prefixCls}-view-target`),title:e.targetTitle,"data-info":e.dataInfo.targetInfo,data:e.dataInfo.targetInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"allow-clear":e.oneWay,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.targetInputSearchProps,onSearch:e.handleSearch},yo({_:2},[e.$slots.target?{name:"default",fn:de(h=>[ft(e.$slots,"target",Ni(ha(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:de(h=>[ft(e.$slots,"target-title",Ni(ha(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 I6=$e(Yje,[["render",Xje]]);const Zje=Object.assign(I6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+I6.name,I6)}}),ppe=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 Qje(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function hj(e){return e.selectable&&!e.disabled}function Rne(e){return!e.isLeaf&&e.children}function eUe(e){return ml(e.isLeaf)?e.isLeaf:!e.children}function pj(e){return Set.prototype.add.bind(e)}function vj(e){return Set.prototype.delete.bind(e)}function rg(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function Uz(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{rg(r)&&n.push(r.key,...Uz(r))}),n}function vpe(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:o}=e;let a=n.parent;for(;a;){if(rg(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(rg))||[];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 mj(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=Uz(t);n?f.forEach(pj(l)):f.forEach(vj(l)),f.forEach(vj(c)),vpe({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function tUe(e){const{initCheckedKeys:t,key2TreeNode:n,checkStrictly:r,onlyCheckLeaf:o}=e,a=new Set,s=new Set,l=new Set;return r?t.forEach(pj(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=Uz(h);p.forEach(pj(s)),p.forEach(vj(l)),a.add(c),l.delete(c),vpe({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function X3(){return xn(ppe)||{}}const nUe=be({name:"IconFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rUe=["stroke-width","stroke-linecap","stroke-linejoin"];function iUe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,rUe)}var L6=$e(nUe,[["render",iUe]]);const Vz=Object.assign(L6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L6.name,L6)}});var oUe=be({name:"TreeNodeSwitcher",components:{IconLoading:ja,RenderFunction:Uh},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}=Zt(e),s=X3(),l=fd(t,"switcher-icon"),c=fd(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:ia(ja);let m=null,g=!1;if(p)f&&(m=(n=o())!=null?n:ia(Vz));else{const S=f?ia("span",{class:`${r}-${h?"minus":"plus"}-icon`}):ia(Nz);m=(t=o())!=null?t:S,g=!f}if(!m)return null;const b=ia("span",{class:`${r}-switcher-icon`,onClick:s},m);return g?ia(_o,{class:`${r}-icon-hover`},()=>b):b}});const mpe=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function sUe(e,t){return!!(mn(e)?t:e)}function aUe(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 Mne({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:o}){return mn(e)?pn(t)?t(r,{isLeaf:n,level:o}):t??!1:e}function lUe(e){var t,n;const{treeNodeData:r,parentNode:o,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=aUe(r,l),f=s.loadMore?!!c.isLeaf:!((t=c.children)!=null&&t.length),h=o?o.level+1:0,p={...va(c,["children"]),key:(n=c.key)!=null?n:mpe(),selectable:Mne({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:f,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:Mne({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:sUe(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:o,parentKey:o?.key,pathParentKeys:o?[...o.pathParentKeys,o.key]:[]}}function uUe(e,t){function n(r,o){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const f=lUe({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 gpe(){const e=uo(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:mpe()},n=pe(t());return za(()=>{n.value=t()}),n}function cUe(e){const{key:t,refTitle:n}=Zt(e),r=X3(),o=pe(!1),a=pe(!1),s=pe(!1),l=pe(0),c=gg(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=gpe(),n=Te("tree-node"),r=X3(),o=j(()=>{var re;return(re=r.key2TreeNode)==null?void 0:re.get(t.value)}),a=j(()=>o.value.treeNodeData),s=j(()=>o.value.children),l=j(()=>{var re;const te=(re=r.treeProps)==null?void 0:re.actionOnNodeClick;return te?dUe(te):[]}),{isLeaf:c,isTail:f,selectable:h,disabled:p,disableCheckbox:m,draggable:g}=Zt(e),b=j(()=>{var re;return[`${n}`,{[`${n}-selected`]:D.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:f.value,[`${n}-expanded`]:$.value,[`${n}-disabled-selectable`]:!h.value&&!((re=r.treeProps)!=null&&re.disableSelectActionOnly),[`${n}-disabled`]:p.value}]}),S=pe(),{isDragOver:k,isDragging:C,isAllowDrop:E,dropPosition:x,setDragStatus:_}=cUe(Ht({key:t,refTitle:S})),A=j(()=>[`${n}-title`,{[`${n}-title-draggable`]:g.value,[`${n}-title-gap-top`]:k.value&&E.value&&x.value<0,[`${n}-title-gap-bottom`]:k.value&&E.value&&x.value>0,[`${n}-title-highlight`]:!C.value&&k.value&&E.value&&x.value===0,[`${n}-title-dragging`]:C.value,[`${n}-title-block`]:o.value.blockNode}]),R=j(()=>{var re,te;return(te=(re=r.checkedKeys)==null?void 0:re.includes)==null?void 0:te.call(re,t.value)}),M=j(()=>{var re,te;return(te=(re=r.indeterminateKeys)==null?void 0:re.includes)==null?void 0:te.call(re,t.value)}),D=j(()=>{var re,te;return(te=(re=r.selectedKeys)==null?void 0:re.includes)==null?void 0:te.call(re,t.value)}),$=j(()=>{var re,te;return(te=(re=r.expandedKeys)==null?void 0:re.includes)==null?void 0:te.call(re,t.value)}),L=j(()=>{var re,te;return(te=(re=r.loadingKeys)==null?void 0:re.includes)==null?void 0:te.call(re,t.value)}),B=j(()=>r.dragIcon),F=j(()=>r.nodeIcon);function U(re){var te,X;c.value||(!((te=s.value)!=null&&te.length)&&pn(r.onLoadMore)?r.onLoadMore(t.value):(X=r?.onExpand)==null||X.call(r,!$.value,t.value,re))}const z=Ht({loading:L,checked:R,selected:D,indeterminate:M,expanded:$,isLeaf:c}),G=j(()=>r.nodeTitle?()=>{var re;return(re=r.nodeTitle)==null?void 0:re.call(r,a.value,z)}:void 0),Y=j(()=>r.nodeExtra?()=>{var re;return(re=r.nodeExtra)==null?void 0:re.call(r,a.value,z)}:void 0);return{nodekey:t,refTitle:S,prefixCls:n,classNames:b,titleClassNames:A,indeterminate:M,checked:R,expanded:$,selected:D,treeTitle:G,treeNodeData:a,loading:L,treeDragIcon:B,treeNodeIcon:F,extra:Y,nodeStatus:z,onCheckboxChange(re,te){var X;m.value||p.value||(X=r.onCheck)==null||X.call(r,re,t.value,te)},onTitleClick(re){var te;l.value.includes("expand")&&U(re),!(!h.value||p.value)&&((te=r.onSelect)==null||te.call(r,t.value,re))},onSwitcherClick:U,onDragStart(re){var te;if(g.value){re.stopPropagation(),_("dragStart",re);try{(te=re.dataTransfer)==null||te.setData("text/plain","")}catch{}}},onDragEnd(re){g.value&&(re.stopPropagation(),_("dragEnd",re))},onDragOver(re){g&&(re.stopPropagation(),re.preventDefault(),_("dragOver",re))},onDragLeave(re){g.value&&(re.stopPropagation(),_("dragLeave",re))},onDrop(re){!g.value||!E.value||(re.stopPropagation(),re.preventDefault(),_("drop",re))}}}}),hUe=["data-level","data-key"],pUe=["draggable"];function vUe(e,t,n,r,o,a){const s=Me("NodeSwitcher"),l=Me("Checkbox"),c=Me("RenderFunction"),f=Me("IconDragDotVertical");return H(),Q("div",{class:le(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Oe(" 缩进 "),I("span",{class:le(`${e.prefixCls}-indent`)},[(H(!0),Q(Ft,null,fn(e.level,h=>(H(),Q("span",{key:h,class:le([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),Oe(" switcher "),I("span",{class:le([`${e.prefixCls}-switcher`,{[`${e.prefixCls}-switcher-expanded`]:e.expanded}])},[O(s,{"prefix-cls":e.prefixCls,loading:e.loading,"show-line":e.showLine,"tree-node-data":e.treeNodeData,icons:{switcherIcon:e.switcherIcon,loadingIcon:e.loadingIcon},"node-status":e.nodeStatus,onClick:e.onSwitcherClick},yo({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:de(()=>[Oe(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),ft(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[Oe(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),ft(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Oe(" checkbox "),e.checkable?(H(),Xe(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"])):Oe("v-if",!0),Oe(" 内容 "),I("span",{ref:"refTitle",class:le(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(),Q("span",{key:0,class:le([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Oe(" 节点图标 "),e.$slots.icon?ft(e.$slots,"icon",Ni(Nt({key:0},e.nodeStatus))):e.icon?(H(),Xe(c,Nt({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(H(),Xe(c,Nt({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Oe("v-if",!0)],2)):Oe("v-if",!0),I("span",{class:le(`${e.prefixCls}-title-text`)},[e.treeTitle?(H(),Xe(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(H(),Q(Ft,{key:1},[Oe(" 标题,treeTitle 优先级高于节点的 title "),ft(e.$slots,"title",{title:e.title},()=>[We(Be(e.title),1)])],2112)),e.draggable?(H(),Q("span",{key:2,class:le([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Oe(" 拖拽图标 "),e.$slots["drag-icon"]?ft(e.$slots,"drag-icon",Ni(Nt({key:0},e.nodeStatus))):e.dragIcon?(H(),Xe(c,Nt({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(H(),Xe(c,Nt({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(H(),Xe(f,{key:3}))],2)):Oe("v-if",!0)],2)],42,pUe),Oe(" 额外 "),e.extra?(H(),Xe(c,{key:1,"render-func":e.extra},null,8,["render-func"])):Oe("v-if",!0)],10,hUe)}var gj=$e(fUe,[["render",vUe]]);const mUe=be({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 gUe(e,t,n,r,o,a){return H(),Xe(Es,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:de(()=>[ft(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var yUe=$e(mUe,[["render",gUe]]);const bUe=be({name:"TransitionNodeList",components:{ExpandTransition:yUe,BaseTreeNode:gj},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${Te("tree")}-node-list`],r=X3(),{nodeKey:o}=Zt(e),a=j(()=>{var c,f;return(f=(c=r.expandedKeys)==null?void 0:c.includes)==null?void 0:f.call(c,o.value)}),s=j(()=>{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=j(()=>{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 _Ue(e,t,n,r,o,a){const s=Me("BaseTreeNode"),l=Me("ExpandTransition");return H(),Xe(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:de(()=>[e.show?(H(),Q("div",{key:0,class:le(e.classNames)},[(H(!0),Q(Ft,null,fn(e.visibleNodeList,c=>(H(),Xe(s,Nt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):Oe("v-if",!0)]),_:1},8,["expanded","onEnd"])}var SUe=$e(bUe,[["render",_Ue]]),kUe=be({name:"TreeNode",inheritAttrs:!1,props:{...gj.props},setup(e,{slots:t,attrs:n}){const r=gpe();return()=>O(Ft,null,[O(gj,Nt(e,n,{key:r.value}),t),O(SUe,{key:r.value,nodeKey:r.value},null)])}});function wUe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:r,checkStrictly:o,halfCheckedKeys:a,onlyCheckLeaf:s}=Zt(e),l=pe(!1),c=pe([]),f=pe([]),h=pe(),p=pe(),m=b=>tUe({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||[]),Cs(()=>{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:j(()=>h.value||c.value),indeterminateKeys:j(()=>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 ype(e){const{treeData:t,fieldNames:n,selectable:r,showLine:o,blockNode:a,checkable:s,loadMore:l,draggable:c}=Zt(e),f=pe([]);Cs(()=>{var m,g;f.value=uUe(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=j(()=>Jje(f.value)),p=j(()=>Qje(h.value));return{treeData:f,flattenTreeData:h,key2TreeNode:p}}const CUe=be({name:"Tree",components:{VirtualList:G1,TreeNode:kUe},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:E,size:x,defaultExpandAll:_,filterTreeNode:A,draggable:R,allowDrop:M,defaultExpandSelected:D,defaultExpandChecked:$,autoExpandParent:L,halfCheckedKeys:B,onlyCheckLeaf:F,animation:U}=Zt(e),z=Te("tree"),G=j(()=>[`${z}`,{[`${z}-checkable`]:k.value,[`${z}-show-line`]:o.value},`${z}-size-${x.value}`]),Y=fd(n,"switcher-icon"),re=fd(n,"loading-icon"),te=fd(n,"drag-icon"),X=fd(n,"icon"),K=fd(n,"title"),J=fd(n,"extra"),{treeData:ie,flattenTreeData:se,key2TreeNode:ae}=ype(Ht({treeData:r,selectable:S,showLine:o,blockNode:C,checkable:k,fieldNames:E,loadMore:s,draggable:R})),{checkedKeys:Ce,indeterminateKeys:ke,setCheckedState:ve}=wUe(Ht({defaultCheckedKeys:f,checkedKeys:c,checkStrictly:l,key2TreeNode:ae,halfCheckedKeys:B,onlyCheckLeaf:F})),[Ie,Ne]=oa(p?.value||[],Ht({value:h})),Ye=pe([]),Ze=pe();function Ge(){if(g?.value){const tt=new Set([]);return g.value.forEach(Pe=>{if(tt.has(Pe))return;const bt=ae.value.get(Pe);bt&&[...L.value?bt.pathParentKeys:[],Pe].forEach(Pt=>tt.add(Pt))}),[...tt]}if(_.value)return se.value.filter(tt=>tt.children&&tt.children.length).map(tt=>tt.key);if(D.value||$.value){const tt=new Set([]),Pe=bt=>{bt.forEach(Pt=>{const Ut=ae.value.get(Pt);Ut&&(Ut.pathParentKeys||[]).forEach(It=>tt.add(It))})};return D.value&&Pe(Ie.value),$.value&&Pe(Ce.value),[...tt]}return[]}const[_e,ye]=oa(Ge(),Ht({value:m})),Re=pe([]),je=j(()=>{const tt=new Set(_e.value),Pe=new Set(Re.value);return se.value.filter(bt=>{var Pt;if(!(!A||!A.value||A?.value(bt.treeNodeData)))return!1;const It=mn(bt.parentKey),qt=(Pt=bt.pathParentKeys)==null?void 0:Pt.every(En=>tt.has(En)&&!Pe.has(En));return It||qt})});function Qe(tt,Pe=b.value){let bt=[...tt];return Pe==="parent"?bt=tt.filter(Pt=>{const Ut=ae.value.get(Pt);return Ut&&!(!mn(Ut.parentKey)&&tt.includes(Ut.parentKey))}):Pe==="child"&&(bt=tt.filter(Pt=>{var Ut,It;return!((It=(Ut=ae.value.get(Pt))==null?void 0:Ut.children)!=null&&It.length)})),bt}function rt(tt){return tt.map(Pe=>{var bt;return((bt=ae.value.get(Pe))==null?void 0:bt.treeNodeData)||void 0}).filter(Boolean)}function yt(tt){const{targetKey:Pe,targetChecked:bt,newCheckedKeys:Pt,newIndeterminateKeys:Ut,event:It}=tt,qt=Pe?ae.value.get(Pe):void 0,En=Qe(Pt);t("update:checkedKeys",En),t("update:halfCheckedKeys",Ut),t("check",En,{checked:bt,node:qt?.treeNodeData,checkedNodes:rt(En),halfCheckedKeys:Ut,halfCheckedNodes:rt(Ut),e:It})}function ct(tt){const{targetKey:Pe,targetSelected:bt,newSelectedKeys:Pt,event:Ut}=tt,It=Pe?ae.value.get(Pe):void 0;t("update:selectedKeys",Pt),t("select",Pt,{selected:bt,node:It?.treeNodeData,selectedNodes:rt(Pt),e:Ut})}function Et(tt){const{targetKey:Pe,targetExpanded:bt,newExpandedKeys:Pt,event:Ut}=tt,It=Pe?ae.value.get(Pe):void 0;t("expand",Pt,{expanded:bt,node:It?.treeNodeData,expandedNodes:rt(Pt),e:Ut}),t("update:expandedKeys",Pt)}function Tt(tt){const[Pe,bt]=ve(tt,[],!0);yt({newCheckedKeys:Pe,newIndeterminateKeys:bt})}function Wt(tt){let Pe=tt;!a.value&&tt.length>1&&(Pe=[tt[0]]),Ne(Pe),ct({newSelectedKeys:Pe})}function Gt(tt){Re.value=[],ye(tt),Et({newExpandedKeys:tt})}function Jt(tt,Pe,bt){if(!tt.length)return;let Pt=[...Ce.value],Ut=[...ke.value];tt.forEach(It=>{const qt=ae.value.get(It);qt&&([Pt,Ut]=mj({node:qt,checked:Pe,checkedKeys:[...Pt],indeterminateKeys:[...Ut],checkStrictly:l.value}))}),ve(Pt,Ut),yt({targetKey:bt,targetChecked:mn(bt)?void 0:Pe,newCheckedKeys:Pt,newIndeterminateKeys:Ut})}function rn(tt,Pe,bt){if(!tt.length)return;let Pt;if(a.value){const Ut=new Set(Ie.value);tt.forEach(It=>{Pe?Ut.add(It):Ut.delete(It)}),Pt=[...Ut]}else Pt=Pe?[tt[0]]:[];Ne(Pt),ct({targetKey:bt,targetSelected:mn(bt)?void 0:Pe,newSelectedKeys:Pt})}function qe(tt,Pe,bt){const Pt=new Set(_e.value);tt.forEach(It=>{Pe?Pt.add(It):Pt.delete(It),at(It)});const Ut=[...Pt];ye(Ut),Et({targetKey:bt,targetExpanded:mn(bt)?void 0:Pe,newExpandedKeys:Ut})}function ht(tt,Pe,bt){const Pt=ae.value.get(Pe);if(!Pt)return;const[Ut,It]=mj({node:Pt,checked:tt,checkedKeys:Ce.value,indeterminateKeys:ke.value,checkStrictly:l.value});ve(Ut,It),yt({targetKey:Pe,targetChecked:tt,newCheckedKeys:Ut,newIndeterminateKeys:It,event:bt})}function ze(tt,Pe){if(!ae.value.get(tt))return;let Pt,Ut;if(a.value){const It=new Set(Ie.value);Ut=!It.has(tt),Ut?It.add(tt):It.delete(tt),Pt=[...It]}else Ut=!0,Pt=[tt];Ne(Pt),ct({targetKey:tt,targetSelected:Ut,newSelectedKeys:Pt,event:Pe})}function Fe(tt,Pe,bt){if(Re.value.includes(Pe)||!ae.value.get(Pe))return;const Ut=new Set(_e.value);tt?Ut.add(Pe):Ut.delete(Pe);const It=[...Ut];ye(It),U.value&&Re.value.push(Pe),Et({targetKey:Pe,targetExpanded:tt,newExpandedKeys:It,event:bt})}function at(tt){const Pe=Re.value.indexOf(tt);Re.value.splice(Pe,1)}const St=j(()=>s?.value?async tt=>{if(!pn(s.value))return;const Pe=ae.value.get(tt);if(!Pe)return;const{treeNodeData:bt}=Pe;Ye.value=[...new Set([...Ye.value,tt])];try{await s.value(bt),Ye.value=Ye.value.filter(Pt=>Pt!==tt),Fe(!0,tt),Ce.value.includes(tt)&&ht(!0,tt)}catch(Pt){Ye.value=Ye.value.filter(Ut=>Ut!==tt),console.error("[tree]load data error: ",Pt)}}:void 0),ut=Ht({treeProps:e,switcherIcon:Y,loadingIcon:re,dragIcon:te,nodeIcon:X,nodeTitle:K,nodeExtra:J,treeData:ie,flattenTreeData:se,key2TreeNode:ae,checkedKeys:Ce,indeterminateKeys:ke,selectedKeys:Ie,expandedKeys:_e,loadingKeys:Ye,currentExpandKeys:Re,onLoadMore:St,filterTreeNode:A,onCheck:ht,onSelect:ze,onExpand:Fe,onExpandEnd:at,allowDrop(tt,Pe){const bt=ae.value.get(tt);return bt&&pn(M.value)?!!M.value({dropNode:bt.treeNodeData,dropPosition:Pe}):!0},onDragStart(tt,Pe){const bt=ae.value.get(tt);Ze.value=bt,bt&&t("dragStart",Pe,bt.treeNodeData)},onDragEnd(tt,Pe){const bt=ae.value.get(tt);Ze.value=void 0,bt&&t("dragEnd",Pe,bt.treeNodeData)},onDragOver(tt,Pe){const bt=ae.value.get(tt);bt&&t("dragOver",Pe,bt.treeNodeData)},onDragLeave(tt,Pe){const bt=ae.value.get(tt);bt&&t("dragLeave",Pe,bt.treeNodeData)},onDrop(tt,Pe,bt){const Pt=ae.value.get(tt);Ze.value&&Pt&&!(Pt.key===Ze.value.key||Pt.pathParentKeys.includes(Ze.value.key||""))&&t("drop",{e:bt,dragNode:Ze.value.treeNodeData,dropNode:Pt.treeNodeData,dropPosition:Pe})}});return Gr(ppe,ut),{classNames:G,visibleTreeNodeList:je,treeContext:ut,virtualListRef:pe(),computedSelectedKeys:Ie,computedExpandedKeys:_e,computedCheckedKeys:Ce,computedIndeterminateKeys:ke,getPublicCheckedKeys:Qe,getNodes:rt,internalCheckNodes:Jt,internalSetCheckedKeys:Tt,internalSelectNodes:rn,internalSetSelectedKeys:Wt,internalExpandNodes:qe,internalSetExpandedKeys:Gt}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:o}=this.treeContext,a=!o.includes(e),s=n.get(e);s&&rg(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&&rg(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&&rg(f)&&(r||!n||eUe(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&&hj(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&&hj(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&&Rne(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&&Rne(s)});this.internalExpandNodes(o,t,r?void 0:e)}}});function EUe(e,t,n,r,o,a){const s=Me("TreeNode"),l=Me("VirtualList");return H(),Q("div",{class:le(e.classNames)},[e.virtualListProps?(H(),Xe(l,Nt({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:de(({item:c})=>[(H(),Xe(s,Nt({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(H(!0),Q(Ft,{key:1},fn(e.visibleTreeNodeList,c=>(H(),Xe(s,Nt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var P6=$e(CUe,[["render",EUe]]);const yj=Object.assign(P6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+P6.name,P6)}}),xUe=be({name:"Typography",setup(){return{classNames:[Te("typography")]}}});function TUe(e,t,n,r,o,a){return H(),Q("article",{class:le(e.classNames)},[ft(e.$slots,"default")],2)}var R6=$e(xUe,[["render",TUe]]);const AUe=be({name:"TypographyEditContent",components:{Input:Cv},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const r=[`${Te("typography")}-edit-content`],o=pe();function a(l){t("update:text",l),t("change",l)}function s(){t("end")}return dn(()=>{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 IUe(e,t,n,r,o,a){const s=Me("Input");return H(),Q("div",{class:le(e.classNames)},[O(s,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:vh(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var LUe=$e(AUe,[["render",IUe]]);const PUe=be({name:"IconCopy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RUe=["stroke-width","stroke-linecap","stroke-linejoin"];function MUe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,RUe)}var M6=$e(PUe,[["render",MUe]]);const Z3=Object.assign(M6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M6.name,M6)}}),DUe=be({name:"IconEdit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OUe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Ue(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,OUe)}var D6=$e(DUe,[["render",$Ue]]);const zz=Object.assign(D6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D6.name,D6)}}),NUe=be({name:"TypographyOperations",components:{Tooltip:jc,IconCheckCircleFill:Fh,IconCopy:Z3,IconEdit:zz},props:{editable:Boolean,copyable:Boolean,expandable:Boolean,isCopied:Boolean,isEllipsis:Boolean,expanded:Boolean,forceRenderExpand:Boolean,editTooltipProps:Object,copyTooltipProps:Object},emits:{edit:()=>!0,copy:()=>!0,expand:()=>!0},setup(e,{emit:t}){const n=Te("typography"),r=j(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:o}=Ao();return{prefixCls:n,showExpand:r,t:o,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function BUe(e,t,n,r,o,a){const s=Me("IconEdit"),l=Me("Tooltip"),c=Me("IconCheckCircleFill"),f=Me("IconCopy");return H(),Q(Ft,null,[e.editable?(H(),Xe(l,Nt({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:de(()=>[I("span",{class:le(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=es((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[O(s)],2)]),_:1},16,["content"])):Oe("v-if",!0),e.copyable?(H(),Xe(l,Ni(Nt({key:1},e.copyTooltipProps)),{content:de(()=>[ft(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[We(Be(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:de(()=>[I("span",{class:le({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=es((...h)=>e.onCopyClick&&e.onCopyClick(...h),["stop"]))},[ft(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(H(),Xe(c,{key:0})):(H(),Xe(f,{key:1}))])],2)]),_:3},16)):Oe("v-if",!0),e.showExpand?(H(),Q("a",{key:2,class:le(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=es((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[ft(e.$slots,"expand-node",{expanded:e.expanded},()=>[We(Be(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Oe("v-if",!0)],64)}var Dne=$e(NUe,[["render",BUe]]);let $s;function FUe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function O6(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var jUe=(e,t,n,r)=>{$s||($s=document.createElement("div"),document.body.appendChild($s));const{rows:o,suffix:a,ellipsisStr:s}=t,l=window.getComputedStyle(e),c=FUe(l),f=O6(l.lineHeight),h=Math.round(f*o+O6(l.paddingTop)+O6(l.paddingBottom));$s.setAttribute("style",c),$s.setAttribute("aria-hidden","true"),$s.style.height="auto",$s.style.minHeight="auto",$s.style.maxHeight="auto",$s.style.position="fixed",$s.style.left="0",$s.style.top="-99999999px",$s.style.zIndex="-200",$s.style.whiteSpace="normal";const p=v1({render(){return O("span",null,[n])}});p.mount($s);const m=Array.prototype.slice.apply($s.childNodes[0].cloneNode(!0).childNodes);p.unmount(),$s.innerHTML="";const g=document.createTextNode(`${s}${a}`);$s.appendChild(g),m.forEach(C=>{$s.appendChild(C)});const b=document.createTextNode(r);$s.insertBefore(b,g);function S(){return $s.offsetHeight<=h}if(S())return{ellipsis:!1,text:r};function k(C,E=0,x=r.length,_=0){const A=Math.floor((E+x)/2),R=r.slice(0,A);if(C.textContent=R,E>=x-1)for(let M=x;M>=E;M-=1){const D=r.slice(0,M);if(C.textContent=D,S()||!D)return}S()?k(C,A,x,A):k(C,E,A,_)}return k(b),{text:b.textContent,ellipsis:!0}};const UUe=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 VUe(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 bpe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}function zUe(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 One(e,t){const{mark:n}=e,r=zUe(e),o=lr(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>O(s,s==="mark"?{style:o}:{},bpe(a)?a:{default:()=>[a]}),t)}function HUe(e){const t=!!e.showTooltip,n=lr(e.showTooltip)&&e.showTooltip.type==="popover"?cz:jc,r=lr(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...va(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var Hz=be({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}=Zt(e),g=Te("typography"),b=j(()=>[g,{[`${g}-${e.type}`]:e.type,[`${g}-disabled`]:e.disabled}]),S=pe(),k=pe(""),[C,E]=oa(a.value,Ht({value:o})),x=j(()=>c.value&&C.value);function _(){n("update:editing",!0),n("editStart"),E(!0)}function A(Ce){n("update:editText",Ce),n("change",Ce)}function R(){C.value&&(n("update:editing",!1),n("editEnd"),E(!1))}const M=pe(!1);let D=null;function $(){var Ce;const ke=(Ce=f.value)!=null?Ce:k.value;UUe(ke||""),M.value=!0,n("copy",ke),D=setTimeout(()=>{M.value=!1},p.value)}hi(()=>{D&&clearTimeout(D),D=null});const L=pe(!1),B=pe(!1),F=pe(""),U=j(()=>HUe(lr(s.value)&&s.value||{}));let z=null;function G(){const Ce=!B.value;B.value=Ce,n("expand",Ce)}function Y(Ce=!1){return U.value.css?O(Dne,{editable:c.value,copyable:l.value,expandable:U.value.expandable,isCopied:M.value,isEllipsis:ie.value,expanded:B.value,forceRenderExpand:Ce||B.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:G},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):O(Dne,{editable:c.value,copyable:l.value,expandable:U.value.expandable,isCopied:M.value,isEllipsis:L.value,expanded:B.value,forceRenderExpand:Ce,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:G},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function re(){if(!S.value)return;const{ellipsis:Ce,text:ke}=jUe(S.value,U.value,Y(!!U.value.expandable),k.value);L.value!==Ce&&(L.value=Ce,U.value.css||n("ellipsis",Ce)),F.value!==ke&&(F.value=ke||"")}function te(){s.value&&!B.value&&(BA(z),z=rfe(()=>{re()}))}hi(()=>{BA(z)}),Dt(()=>U.value.rows,()=>{te()}),Dt(s,Ce=>{Ce?te():L.value=!1});let X=[];const K=()=>{if(s.value||l.value||c.value){const Ce=VUe(X);Ce!==k.value&&(k.value=Ce,te())}};dn(K),za(K);const J=pe(),ie=pe(!1),se=()=>{if(S.value&&J.value){const Ce=J.value.offsetHeight>S.value.offsetHeight;Ce!==ie.value&&(ie.value=Ce,n("ellipsis",Ce))}},ae=j(()=>B.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":U.value.rows,"-webkit-box-orient":"vertical"});return()=>{var Ce,ke;if(X=((Ce=t.default)==null?void 0:Ce.call(t))||[],x.value){const je=(ke=h.value)!=null?ke:k.value;return O(LUe,{text:je,onChange:Qe=>{Qe!==je&&A(Qe)},onEnd:R},null)}const{suffix:ve,ellipsisStr:Ie,showTooltip:Ne,tooltipProps:Ye,TooltipComponent:Ze}=U.value,Ge=L.value&&!B.value,_e=Ge&&!Ne?{title:k.value}:{},ye=m.value;if(U.value.css){const je=One(e,X),Qe=O(ye,Nt({class:b.value,ref:S,style:ae.value},_e,r),{default:()=>[O("span",{ref:J},[je])]});return ie.value?O(Ze,Nt(Ye,{onResize:()=>se()}),{default:()=>[Qe],content:()=>k.value}):O(Sd,{onResize:()=>{se()}},bpe(Qe)?Qe:{default:()=>[Qe]})}const Re=One(e,Ge?F.value:X);return O(Sd,{onResize:()=>te()},{default:()=>[O(ye,Nt({class:b.value,ref:S},_e,r),{default:()=>[Ge&&Ne?O(Ze,Ye,{default:()=>[O("span",null,[Re])],content:()=>k.value}):Re,Ge?Ie:null,ve,Y()]})]})}}}),L4=be({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=Zt(e),r=Te("typography"),o=j(()=>t?.value?"blockquote":"div"),a=j(()=>[{[`${r}-spacing-close`]:n?.value==="close"}]);return{component:o,classNames:a}},render(){const{component:e,classNames:t}=this;return O(Hz,Nt({class:t},this.$attrs,{component:e}),this.$slots)}}),P4=be({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=Zt(e);return{component:j(()=>`h${t?.value}`)}},render(){const{component:e}=this;return O(Hz,Nt(this.$attrs,{component:e}),this.$slots)}}),R4=be({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=Zt(e);return{component:j(()=>t?.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return O(Hz,Nt(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const WUe=Object.assign(R6,{Paragraph:L4,Title:P4,Text:R4,install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+R6.name,R6),e.component(n+L4.name,L4),e.component(n+P4.name,P4),e.component(n+R4.name,R4)}}),$ne=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},GUe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},Nne=(e,t)=>pn(e)?e(t):e,KUe=({fileItem:e,action:t,name:n,data:r,headers:o={},withCredentials:a=!1,onProgress:s=Vy,onSuccess:l=Vy,onError:c=Vy})=>{const f=Nne(n,e)||"file",h=Nne(r,e),p=new XMLHttpRequest;a&&(p.withCredentials=!0),p.upload.onprogress=g=>{const b=g.total>0?Fl.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($ne(p));return}l($ne(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()}}},_pe=(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},qUe=(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,_pe(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()))},YUe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},$6=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(r=>_pe(r,t)):n},XUe=be({name:"IconUpload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZUe=["stroke-width","stroke-linecap","stroke-linejoin"];function JUe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ZUe)}var N6=$e(XUe,[["render",JUe]]);const Y1=Object.assign(N6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N6.name,N6)}});var QUe=be({name:"UploadButton",props:{disabled:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},accept:String,listType:{type:String},tip:String,draggable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},uploadFiles:{type:Function,required:!0},hide:Boolean,onButtonClick:{type:Function}},setup(e,{slots:t}){const n=Te("upload"),{t:r}=Ao(),o=pe(!1),a=pe(null),s=pe(null),l=pe(0),c=k=>{k==="subtract"?l.value-=1:k==="add"?l.value+=1:k==="reset"&&(l.value=0)},f=k=>{if(!e.disabled){if(pn(e.onButtonClick)){const C=e.onButtonClick(k);if(mg(C)){C.then(E=>{e.uploadFiles($6(E))});return}}a.value&&a.value.click()}},h=k=>{const C=k.target;C.files&&e.uploadFiles($6(C.files)),C.value=""},p=k=>{var C,E;if(k.preventDefault(),o.value=!1,c("reset"),!e.disabled)if(e.directory&&((C=k.dataTransfer)!=null&&C.items))qUe(k.dataTransfer.items,e.accept,x=>{e.uploadFiles(x)});else{const x=$6((E=k.dataTransfer)==null?void 0:E.files,e.accept);e.uploadFiles(e.multiple?x:x.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(vf,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(vf,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(Uo,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>O(Y1,null,null)}),S=j(()=>[n,{[`${n}-type-picture-card`]:e.listType==="picture-card",[`${n}-draggable`]:e.draggable,[`${n}-disabled`]:e.disabled,[`${n}-hide`]:e.hide}]);return()=>O("span",{ref:s,class:S.value,onClick:f,onDragenter:()=>{c("add")},onDrop:p,onDragover:g,onDragleave:m},[O("input",Nt({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 eVe=be({name:"IconPause",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tVe=["stroke-width","stroke-linecap","stroke-linejoin"];function nVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,tVe)}var B6=$e(eVe,[["render",nVe]]);const Spe=Object.assign(B6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B6.name,B6)}}),rVe=be({name:"IconPlayArrowFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iVe=["stroke-width","stroke-linecap","stroke-linejoin"];function oVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,iVe)}var F6=$e(rVe,[["render",oVe]]);const kpe=Object.assign(F6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F6.name,F6)}}),J3=Symbol("ArcoUpload");var wpe=be({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Te("upload-progress"),{t:n}=Ao(),r=xn(J3,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(Ug,null,null)]):e.file.status==="init"?O(jc,{content:n("upload.start")},{default:()=>{var C,E,x,_,A,R;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-start`],onClick:()=>r?.onUpload(e.file)},[(R=(A=(E=r==null?void 0:(C=r.slots)["start-icon"])==null?void 0:E.call(C))!=null?A:(_=(x=r?.customIcon)==null?void 0:x.startIcon)==null?void 0:_.call(x))!=null?R:O(kpe,null,null)])]}}):r?.showCancelButton&&O(jc,{content:n("upload.cancel")},{default:()=>{var C,E,x,_,A,R;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-cancel`],onClick:()=>r?.onAbort(e.file)},[(R=(A=(E=r==null?void 0:(C=r.slots)["cancel-icon"])==null?void 0:E.call(C))!=null?A:(_=(x=r?.customIcon)==null?void 0:x.cancelIcon)==null?void 0:_.call(x))!=null?R:O(Spe,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=GUe(e.file.status);return O(Jhe,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>O("span",{class:t},[a(),o()])}});const sVe=be({name:"IconFilePdf",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aVe=["stroke-width","stroke-linecap","stroke-linejoin"];function lVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,aVe)}var j6=$e(sVe,[["render",lVe]]);const Cpe=Object.assign(j6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j6.name,j6)}}),uVe=be({name:"IconFileImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),cVe=["stroke-width","stroke-linecap","stroke-linejoin"];function dVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,cVe)}var U6=$e(uVe,[["render",dVe]]);const Epe=Object.assign(U6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U6.name,U6)}}),fVe=be({name:"IconFileVideo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hVe=["stroke-width","stroke-linecap","stroke-linejoin"];function pVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,hVe)}var V6=$e(fVe,[["render",pVe]]);const xpe=Object.assign(V6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V6.name,V6)}}),vVe=be({name:"IconFileAudio",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mVe=["stroke-width","stroke-linecap","stroke-linejoin"];function gVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,mVe)}var z6=$e(vVe,[["render",gVe]]);const Tpe=Object.assign(z6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z6.name,z6)}});var Bne=be({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${Te("upload-list")}-item`,{t:r}=Ao(),o=xn(J3,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(Epe,null,null):c.includes("pdf")?O(Cpe,null,null):c.includes("audio")?O(Tpe,null,null):c.includes("video")?O(xpe,null,null):O(Vz,null,null)};return()=>{var s,l,c,f,h,p,m,g,b,S,k,C,E,x,_,A,R,M,D,$,L,B,F;return O("div",{class:[n,`${n}-${e.file.status}`]},[O("div",{class:`${n}-content`},[o?.listType==="picture"&&O("span",{class:`${n}-thumbnail`},[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",Nt({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",Nt({class:`${n}-name-link`,target:"_blank",href:e.file.url},o?.download?{download:e.file.name}:void 0),[(_=(x=(k=o==null?void 0:(S=o.slots)["file-name"])==null?void 0:k.call(S,{fileItem:e.file}))!=null?x:(E=(C=o?.customIcon)==null?void 0:C.fileName)==null?void 0:E.call(C,e.file))!=null?_:e.file.name]):O("span",{class:`${n}-name-text`,onClick:()=>o?.onPreview(e.file)},[(L=($=(R=o==null?void 0:(A=o.slots)["file-name"])==null?void 0:R.call(A,{fileItem:e.file}))!=null?$:(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(jc,{content:r("upload.error")},{default:()=>{var U,z,G,Y,re,te;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(te=(re=(z=o==null?void 0:(U=o.slots)["error-icon"])==null?void 0:z.call(U))!=null?re:(Y=(G=o?.customIcon)==null?void 0:G.errorIcon)==null?void 0:Y.call(G))!=null?te:O(Sf,null,null)])]}})]),O(wpe,{file:e.file,listType:e.listType},null)]),o?.showRemoveButton&&O("span",{class:`${n}-operation`},[O(_o,{onClick:()=>{var U;return(U=o?.onRemove)==null?void 0:U.call(o,e.file)}},{default:()=>{var U,z,G,Y,re,te;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`]},[(te=(re=(z=o==null?void 0:(U=o.slots)["remove-icon"])==null?void 0:z.call(U))!=null?re:(Y=(G=o?.customIcon)==null?void 0:G.removeIcon)==null?void 0:Y.call(G))!=null?te:O(rc,null,null)])]}})]),(F=o==null?void 0:(B=o.slots)["extra-button"])==null?void 0:F.call(B,{fileItem:e.file})])}}}),Fne=be({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${Te("upload-list")}-picture`,r=j(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),o=xn(J3,void 0),a=()=>{var s,l,c,f,h,p,m,g,b,S,k,C,E,x,_,A,R,M,D,$,L,B,F,U,z,G,Y,re,te;return e.file.status==="uploading"?O(wpe,{file:e.file,listType:"picture-card"},null):O(Ft,null,[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",Nt({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(O3,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)},[(_=(x=(k=o==null?void 0:(S=o.slots)["preview-icon"])==null?void 0:k.call(S))!=null?x:(E=(C=o?.customIcon)==null?void 0:C.previewIcon)==null?void 0:E.call(C))!=null?_:O(uv,null,null)]),["init","error"].includes(e.file.status)&&o?.showRetryButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-upload`],onClick:()=>o?.onUpload(e.file)},[(L=($=(R=o==null?void 0:(A=o.slots)["retry-icon"])==null?void 0:R.call(A))!=null?$:(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=(G=(F=o==null?void 0:(B=o.slots)["remove-icon"])==null?void 0:F.call(B))!=null?G:(z=(U=o?.customIcon)==null?void 0:U.removeIcon)==null?void 0:z.call(U))!=null?Y:O(rc,null,null)]),(te=o==null?void 0:(re=o.slots)["extra-button"])==null?void 0:te.call(re,e.file)])])])};return()=>O("span",{class:r.value},[a()])}}),yVe=be({name:"UploadList",components:{UploadListItem:Bne,UploadPictureItem:Fne},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=Te("upload"),r=j(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),o=(a,s)=>pn(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?O(Fne,{file:a,key:`item-${s}`},null):O(Bne,{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))]}})}}),H6=be({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}=Zt(e),b=Te("upload"),{mergedDisabled:S,eventHandlers:k}=So({disabled:o}),C=pe([]),E=new Map,x=new Map,_=j(()=>e.limit>0&&C.value.length>=e.limit),A=ae=>{E.clear();const Ce=ae?.map((ke,ve)=>{var Ie,Ne,Ye;const Ze=(Ie=ke.status)!=null?Ie:"done",Ge=Ht({...ke,uid:(Ne=ke.uid)!=null?Ne:`${Date.now()}${ve}`,status:Ze,percent:(Ye=ke.percent)!=null?Ye:["error","init"].indexOf(Ze)>-1?0:1});return E.set(Ge.uid,Ge),Ge});C.value=Ce??[]};A(e.defaultFileList),Dt(r,ae=>{ae&&A(ae)},{immediate:!0,deep:!0});const R=ae=>{var Ce,ke;t("update:fileList",C.value),t("change",C.value,ae),(ke=(Ce=k.value)==null?void 0:Ce.onChange)==null||ke.call(Ce)},M=(ae,Ce)=>{for(const ke of C.value)if(ke.uid===ae){ke.file=Ce,R(ke);break}},D=ae=>{const Ce=(Ye,Ze)=>{const Ge=E.get(ae.uid);Ge&&(Ge.status="uploading",Ge.percent=Ye,t("progress",Ge,Ze),R(Ge))},ke=Ye=>{const Ze=E.get(ae.uid);Ze&&(Ze.status="done",Ze.percent=1,Ze.response=Ye,e.responseUrlKey&&(pn(e.responseUrlKey)?Ze.url=e.responseUrlKey(Ze):Ye[e.responseUrlKey]&&(Ze.url=Ye[e.responseUrlKey])),x.delete(Ze.uid),t("success",Ze),R(Ze))},ve=Ye=>{const Ze=E.get(ae.uid);Ze&&(Ze.status="error",Ze.percent=0,Ze.response=Ye,x.delete(Ze.uid),t("error",Ze),R(Ze))},Ie={fileItem:ae,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:Ce,onSuccess:ke,onError:ve};ae.status="uploading",ae.percent=0;const Ne=pn(e.customRequest)?e.customRequest(Ie):KUe(Ie);x.set(ae.uid,Ne),R(ae)},$=ae=>{var Ce;const ke=x.get(ae.uid);if(ke){(Ce=ke.abort)==null||Ce.call(ke),x.delete(ae.uid);const ve=E.get(ae.uid);ve&&(ve.status="error",ve.percent=0,R(ve))}},L=ae=>{if(ae){const Ce=E.get(ae.uid);Ce&&D(Ce)}else for(const Ce of C.value)Ce.status==="init"&&D(Ce)},B=async(ae,Ce)=>{const ke=`${Date.now()}-${Ce}`,ve=YUe(ae)?URL.createObjectURL(ae):void 0,Ie=Ht({uid:ke,file:ae,url:ve,name:ae.name,status:"init",percent:0});E.set(ke,Ie),C.value=[...C.value,Ie],R(Ie),e.autoUpload&&D(Ie)},F=ae=>{if(e.limit>0&&C.value.length+ae.length>e.limit){t("exceedLimit",C.value,ae);return}for(let Ce=0;Ce{ve&&B(ml(ve)?ke:ve,Ce)}).catch(ve=>{console.error(ve)}):B(ke,Ce)}},U=ae=>{C.value=C.value.filter(Ce=>Ce.uid!==ae.uid),R(ae)},z=ae=>{pn(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(ae)).then(Ce=>{Ce&&U(ae)}).catch(Ce=>{console.error(Ce)}):U(ae)},G=ae=>{if(e.imagePreview&&ae.url){const Ce=ie.value.indexOf(ae.url);Ce>-1&&(X.value=Ce,te.value=!0)}t("preview",ae)};Gr(J3,Ht({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:$,onRemove:z,onPreview:G}));const Y=j(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),re=()=>{const ae=O(QUe,{key:"arco-upload-button",disabled:S.value,draggable:e.draggable,listType:e.listType,uploadFiles:F,multiple:e.multiple,directory:e.directory,tip:e.tip,hide:!e.showUploadButton||_.value&&!(lr(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,[ae,O("div",{class:`${b}-tip`},[e.tip])]):ae},te=pe(!1),X=pe(0),K=ae=>{X.value=ae},J=ae=>{te.value=ae},ie=j(()=>C.value.filter(ae=>!!ae.url).map(ae=>ae.url));return{prefixCls:b,render:()=>e.showFileList?O("div",{class:[`${b}-wrapper`,`${b}-wrapper-type-${e.listType}`]},[e.imagePreview&&ie.value.length>0&&O(VS,{srcList:ie.value,visible:te.value,current:X.value,onChange:K,onVisibleChange:J},null),e.listType!=="picture-card"&&e.showUploadButton&&re(),O(yVe,{fileList:C.value,listType:e.listType},{"upload-button":re,"upload-item":n["upload-item"]})]):e.showUploadButton&&re(),innerSubmit:L,innerAbort:$,innerUpdateFile:M,innerUpload:F}},methods:{submit(e){return this.innerSubmit(e)},abort(e){return this.innerAbort(e)},updateFile(e,t){return this.innerUpdateFile(e,t)},upload(e){return this.innerUpload(e)}},render(){return this.render()}});const bVe=Object.assign(H6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+H6.name,H6)}});var W6=be({name:"OverflowList",props:{min:{type:Number,default:0},margin:{type:Number,default:8},from:{type:String,default:"end"}},emits:{change:e=>!0},setup(e,{emit:t,slots:n}){const r=Te("overflow-list"),o=pe(),a=pe(),s=pe(),l={},c=[],f=pe(0),h=pe(0),p=j(()=>h.value>0),m=pe(0),g=j(()=>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,E;if(o.value&&l.value&&s.value){const x=s.value.offsetWidth;if(x>1&&(h.value===0||xb(),{flush:"post"}),dn(()=>{s.value&&s.value.offsetWidth<1&&b()});const S=()=>{var k,C;const E=g.value?{marginRight:`${e.margin}px`}:void 0;return O("div",{ref:a,class:`${r}-overflow`,style:E},[(C=(k=n.overflow)==null?void 0:k.call(n,{number:h.value}))!=null?C:O(hz,null,{default:()=>[We("+"),h.value]})])};return()=>{var k,C;l.value=cf((k=n.default)==null?void 0:k.call(n)),f.value!==l.value.length&&(f.value=l.value.length,c.length=f.value);let E=l.value;h.value>0&&(E=g.value?l.value.slice(h.value):l.value.slice(0,-h.value));const x=h.value===0||g.value?E.length-1:E.length;for(let _=0;_0&&S(),E,!g.value&&h.value>0&&S(),O(cv,{onResize:b},{default:()=>[O("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const _Ve=Object.assign(W6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+W6.name,W6)}});var G6=be({name:"VerificationCode",props:{modelValue:String,defaultValue:{type:String,default:""},length:{type:Number,default:6},size:{type:String},disabled:Boolean,masked:Boolean,readonly:Boolean,error:{type:Boolean,default:!1},separator:{type:Function},formatter:{type:Function}},emits:{"update:modelValue":e=>!0,change:e=>!0,finish:e=>!0,input:(e,t,n)=>!0},setup(e,{emit:t}){const n=Te("verification-code"),r=Te("input"),o=pe([]),a=j(()=>{var k;return(k=e.modelValue)!=null?k:e.defaultValue}),s=j(()=>e.masked?"password":"text"),l=j(()=>[r,{[`${r}-size-${e.size}`]:e.size}]),c=j(()=>{const k=String(a.value).split("");return new Array(e.length).fill("").map((C,E)=>Dte(k[E])?String(k[E]):"")}),f=pe(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(!(Dte(k)&&f.value[k])){for(let C=0;C{k.preventDefault();const{clipboardData:E}=k,x=E?.getData("text");x&&(x.split("").forEach((_,A)=>{if(!(C+A>=e.length)){if(pn(e.formatter)){const R=e.formatter(_,C+A,f.value.join(""));if(R===!1){C-=1;return}ts(R)&&(_=R.charAt(0))}f.value[C+A]=_}}),h())},b=(k,C)=>{const E=C.code||C.key;E===ufe.code&&!f.value[k]?(C.preventDefault(),f.value[Math.max(k-1,0)]="",h()):E===bRe.code&&k>0?(C.preventDefault(),p(k-1)):E===_Re.code&&f.value[k]&&k{let x=(C||"").trim().charAt(C.length-1);if(t("input",x,k,E),pn(e.formatter)){const _=e.formatter(x,k,f.value.join(""));if(_===!1)return;ts(_)&&(x=_.charAt(0))}f.value[k]=x,h()};return()=>O("div",{class:n},[f.value.map((k,C)=>{var E;return O(Ft,null,[O(Cv,{key:C,ref:x=>o.value[C]=x,type:s.value,class:l.value,modelValue:k,size:e.size,error:e.error,disabled:e.disabled,readonly:e.readonly,onFocus:()=>m(C),onInput:(x,_)=>S(C,x,_),onKeydown:x=>b(C,x),onPaste:x=>g(x,C)},null),(E=e.separator)==null?void 0:E.call(e,C,k)])})])}});const SVe=Object.assign(G6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+G6.name,G6)}}),kVe=typeof window<"u"?window:void 0;function wVe(e){var t;const n=st(e);return(t=n?.$el)!=null?t:n}function CVe(e){return a3()?(AV(e),!0):!1}function Ape(e,t,n={}){const{window:r=kVe,...o}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=Dt(()=>wVe(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),f=()=>{l(),c()};return CVe(f),{isSupported:a,stop:f}}const K6="arco-theme",rx={Dark:"dark",Light:"light"},EVe=e=>{const t=pe(rx.Light),n=o=>{t.value=o},r=o=>o.getAttribute(K6)===rx.Dark?rx.Dark:rx.Light;return Ape(document.body,o=>{for(const a of o)if(a.type==="attributes"&&a.attributeName===K6){n(r(a.target)),e?.();break}},{attributes:!0,attributeFilter:[K6],subtree:!1,childList:!1,characterData:!1}),n(r(document.body)),{theme:t,setTheme:n}};function xVe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function TVe(e){return Object.entries(e).map(([t,n])=>`${xVe(t)}:${n}`).join(";")}function AVe(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}=Zt(e),h=Te("watermark"),p=window.devicePixelRatio||1,m=Xm(),g=pe(new Map),b=j(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontSize)!=null?K:16}),S=j(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontWeight)!=null?K:"normal"}),k=j(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontStyle)!=null?K:"normal"}),C=j(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.fontFamily)!=null?K:"sans-serif"}),E=j(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.textAlign)!=null?K:"center"}),x=j(()=>qn(e.content)?e.content:[e.content]),_=j(()=>{var X,K;return(K=(X=e.font)==null?void 0:X.color)!=null?K:te.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),A=j(()=>{var X,K;return(K=(X=e.gap)==null?void 0:X[0])!=null?K:90}),R=j(()=>{var X,K;return(K=(X=e.gap)==null?void 0:X[1])!=null?K:90}),M=j(()=>A.value/2),D=j(()=>R.value/2),$=j(()=>{var X,K;return(K=(X=e.offset)==null?void 0:X[0])!=null?K:M.value}),L=j(()=>{var X,K;return(K=(X=e.offset)==null?void 0:X[1])!=null?K:D.value}),B=j(()=>{var X;const K=$.value-M.value,J=L.value-D.value;return{position:"absolute",left:K>0?`${K}px`:0,top:J>0?`${J}px`:0,width:K>0?`calc(100% - ${K}px)`:"100%",height:J>0?`calc(100% - ${J}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${K>0?0:K}px ${J>0?0:J}px`,zIndex:(X=e.zIndex)!=null?X:6}}),F=j(()=>e.repeat&&e.staggered),U=(X,K)=>{var J;if(m.value){const ie=g.value.get(m.value);ie&&(m.value.contains(ie)&&m.value.removeChild(ie),g.value.delete(m.value));const se=document.createElement("div");se.setAttribute("style",TVe({...B.value,backgroundImage:`url('${X}')`,backgroundSize:`${K}px`})),(J=m.value)==null||J.append(se),g.value.set(m.value,se)}},z=X=>{var K,J;let ie=120,se=28;if(!a.value&&X.measureText){X.font=`${b.value}px ${C.value}`;const ae=x.value.map(Ce=>X.measureText(Ce).width);ie=Math.ceil(Math.max(...ae)),se=b.value*x.value.length+(x.value.length-1)*3}return[(K=r.value)!=null?K:ie,(J=o.value)!=null?J:se]},G=()=>{var X;const K=document.createElement("canvas"),J=K.getContext("2d");if(!J)return;const[ie,se]=z(J),ae=ie*p,Ce=se*p,ke=(A.value+ie)*p,ve=(R.value+se)*p,Ie=A.value/2*p,Ne=R.value/2*p,Ye=ke/2,Ze=ve/2,Ge=F.value?2:1,_e=(A.value+ie)*Ge;K.width=ke*Ge,K.height=ve*Ge,J.globalAlpha=l.value,J.save(),J.translate(Ye,Ze),J.rotate(Math.PI/180*s.value),J.translate(-Ye,-Ze);const ye=()=>{J.restore(),F.value&&J.drawImage(K,0,0,ke,ve,ke,ve,ke,ve),f.value&&AVe(K),U(K.toDataURL(),_e)};if(a.value){const Re=new Image;Re.onload=()=>{J.drawImage(Re,Ie,Ne,ae,Ce),ye()},Re.crossOrigin="anonymous",Re.referrerPolicy="no-referrer",Re.src=a.value}else{const Re=Number(b.value)*p;J.font=`${k.value} normal ${S.value} ${Re}px/${se}px ${C.value}`,J.fillStyle=_.value,J.textAlign=E.value,J.textBaseline="top",J.translate(ae/2,0),(X=x.value)==null||X.forEach((je,Qe)=>{J.fillText(je??"",Ie,Ne+Qe*(Re+3*p))}),ye()}},Y=X=>Array.from(g.value.values()).includes(X),re=X=>{if(e.antiTamper)for(const K of X){const J=Array.from(K.removedNodes).some(se=>Y(se)),ie=K.type==="attributes"&&Y(K.target);if(J||ie){G();break}}},{theme:te}=EVe(G);return dn(()=>{G(),Ape(m.value,re,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),Dt(e,G,{deep:!0,flush:"post"}),()=>{var X;return O("div",Nt({ref:m,class:h,style:{position:"relative",overflow:"hidden"}},n),[(X=t.default)==null?void 0:X.call(t)])}}});const IVe=Object.assign(q6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+q6.name,q6)}});function LVe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Di(e)}var PVe=be({name:"TreeSelectPanel",components:{Tree:yj},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}=Zt(e),{displayScrollbar:s,scrollbarProps:l}=R3(a),c=Te("tree-select"),f=pe(),h=j(()=>({...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(yj,Nt({ref:f},h.value,{onSelect:p,onCheck:m}),e.treeSlots);return()=>{if(s.value){let b;return O(wd,Nt({class:`${c}-tree-wrapper`},l.value),LVe(b=g())?b:{default:()=>[b]})}return O("div",{class:`${c}-tree-wrapper`},[g()])}}});function Wz(e){return lr(e)}function Ipe(e){return e!=null&&e!==""}function Gz(e){return Wz(e)?e.value:e}function RVe(e){return Wz(e)?e.label:void 0}function jne(e){const t=Gz(e);return Ipe(t)}function Une(e){return e.map(Gz).filter(Ipe)}function MVe(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:o,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=Zt(e);function f(_){const A=(qn(_)?_:[_]).filter(jne);return a?.value||s?.value?A:A.slice(0,1)}function h(_,A){const R=[],M=_?_.filter(jne):[];if(M.length){const D=new Map;A?.forEach($=>{D.set($.value,$)}),M.forEach($=>{var L,B,F,U,z;const G=Gz($),Y=D.get(G),re=o.value.get(G);let te=null;const X=((L=c?.value)==null?void 0:L.title)||"title";if(!re){const K=pn(l?.value)?l?.value(G):l?.value;if(K===!1)return;lr(K)&&(te=K)}R.push({...Wz($)?$:{},...Y||{},value:G,label:(z=(U=(F=(B=RVe($))!=null?B:re?.title)!=null?F:Y?.label)!=null?U:te?.[X])!=null?z:G})})}return R}const p=pe(),m=pe();Cs(()=>{var _;const A=r?.value!==void 0,R=f((_=r?.value)!=null?_:[]),M=Une(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=Une(g),S=h(b,h(g)),k=pe(b||[]),C=pe(S);Dt(k,()=>{C.value=h(k.value,S)}),Dt([p,m],([_,A])=>{k.value=_||[],C.value=A||[]});const E=j(()=>{var _;return(_=p.value)!=null?_:k.value}),x=j(()=>{var _;return(_=m.value)!=null?_:C.value});return{selectedKeys:E,selectedValue:x,setLocalSelectedKeys(_){k.value=_},localSelectedKeys:k,localSelectedValue:C}}function DVe(e){const{searchValue:t,flattenTreeData:n,filterMethod:r,disableFilter:o,fieldNames:a}=Zt(e),s=j(()=>{var b;return((b=a.value)==null?void 0:b.key)||"key"}),l=(b,S)=>{const k=S[s.value];return!mn(k)&&String(k).indexOf(b)>-1},c=j(()=>r?.value||l),f=pe(),h=j(()=>!!t.value),p=j(()=>!o?.value&&h.value&&f.value&&f.value.size===0),m=j(()=>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=j2((b,S)=>{const k=b.filter(E=>c.value(S,E.treeNodeData)),C=new Set;k.forEach(E=>{C.add(E.key),E.pathParentKeys.forEach(x=>{C.add(x)})}),f.value=C},100);return Cs(()=>{o?.value?f.value=void 0:g(n.value,t.value)}),{isEmptyFilterResult:p,filterTreeNode:m}}function OVe(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 $Ve=be({name:"TreeSelect",components:{Trigger:sa,SelectView:jA,Panel:PVe,Empty:jh,Spin:kd},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:E,dropdownStyle:x,treeProps:_,fallbackOption:A,selectable:R,dropdownClassName:M}=Zt(e),{mergedDisabled:D,eventHandlers:$}=So({disabled:S}),L=Te("tree-select"),B=xn(Fa,void 0),F=(a=(o=B==null?void 0:(r=B.slots).empty)==null?void 0:o.call(r,{component:"tree-select"}))==null?void 0:a[0],U=j(()=>c.value||p.value),z=(ct,Et)=>{var Tt;return R.value==="leaf"?Et.isLeaf:pn(R.value)?R.value(ct,Et):(Tt=R.value)!=null?Tt:!1},G=j(()=>p.value?z:!1),Y=j(()=>lr(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:re,key2TreeNode:te}=ype(Ht({treeData:g,fieldNames:b,selectable:z,checkable:G})),{selectedKeys:X,selectedValue:K,setLocalSelectedKeys:J,localSelectedKeys:ie,localSelectedValue:se}=MVe(Ht({defaultValue:s,modelValue:l,key2TreeNode:te,multiple:c,treeCheckable:p,treeCheckStrictly:m,fallbackOption:A,fieldNames:b}));function ae(ct){return p.value?rg(ct):hj(ct)}const Ce=j(()=>mn(K.value)?[]:U.value&&!D.value?K.value.map(ct=>{const Et=te.value.get(ct.value);return{...ct,closable:!Et||ae(Et)}}):K.value),ke=ct=>{J(ct),kn(()=>{var Et,Tt;const Wt=(k.value?se.value:ie.value)||[],Gt=U.value?Wt:Wt[0];t("update:modelValue",Gt),t("change",Gt),(Tt=(Et=$.value)==null?void 0:Et.onChange)==null||Tt.call(Et)})},ve=pe(e.defaultInputValue),Ie=j(()=>{var ct;return(ct=e.inputValue)!=null?ct:ve.value}),Ne=ct=>{ve.value=ct,t("update:inputValue",ct),t("inputValueChange",ct)},Ye=ct=>{ct!==Ie.value&&(_e(!0),Ne(ct),e.allowSearch&&t("search",ct))},[Ze,Ge]=oa(h.value,Ht({value:f})),_e=ct=>{ct!==Ze.value&&(Ge(ct),t("popup-visible-change",ct),t("update:popupVisible",ct)),ct||Qe.value&&Qe.value.blur&&Qe.value.blur()},{isEmptyFilterResult:ye,filterTreeNode:Re}=DVe(Ht({searchValue:Ie,flattenTreeData:re,filterMethod:C,disableFilter:E,fieldNames:b})),je=j(()=>!re.value.length||ye.value),Qe=pe(),rt=j(()=>{var ct;return[x?.value||{},(ct=_?.value)!=null&&ct.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:Qe,prefixCls:L,TreeSelectEmpty:F,selectedValue:K,selectedKeys:X,mergedDisabled:D,searchValue:Ie,panelVisible:Ze,isEmpty:je,computedFilterTreeNode:Re,isMultiple:U,selectViewValue:Ce,computedDropdownStyle:rt,onSearchValueChange:Ye,onSelectChange(ct){ke(ct),!Y.value&&Ie.value&&Ne(""),U.value||_e(!1)},onVisibleChange:_e,onInnerClear(){ke([]),t("clear")},pickSubCompSlots:OVe,isSelectable:z,isCheckable:G,onBlur:()=>{!Y.value&&Ie.value&&Ne("")},onItemRemove(ct){if(D.value)return;const Et=te.value.get(ct);if(p.value&&Et){if(ae(Et)){const[Tt]=mj({node:Et,checked:!1,checkedKeys:X.value,indeterminateKeys:[],checkStrictly:m.value});ke(Tt)}}else{const Tt=X.value.filter(Wt=>Wt!==ct);ke(Tt)}}}}});function NVe(e,t,n,r,o,a){const s=Me("SelectView"),l=Me("Spin"),c=Me("Panel"),f=Me("Trigger");return H(),Xe(f,Nt({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:le([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:Ve(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(H(),Q("div",{key:0,class:le(`${e.prefixCls}-header`)},[ft(e.$slots,"header")],2)):Oe("v-if",!0),e.loading?ft(e.$slots,"loader",{key:1},()=>[O(l)]):e.isEmpty?ft(e.$slots,"empty",{key:2},()=>[(H(),Xe($a(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(H(),Xe(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(),Q("div",{key:4,class:le(`${e.prefixCls}-footer`)},[ft(e.$slots,"footer")],2)):Oe("v-if",!0)],6)]),default:de(()=>[ft(e.$slots,"trigger",{},()=>[O(s,Nt({ref:"refSelectView","model-value":e.selectViewValue,"input-value":e.searchValue,"allow-search":!!e.allowSearch,"allow-clear":e.allowClear,loading:e.loading,size:e.size,"max-tag-count":e.maxTagCount,disabled:e.mergedDisabled,opened:e.panelVisible,error:e.error,bordered:e.border,placeholder:e.placeholder,multiple:e.isMultiple},e.$attrs,{onInputValueChange:e.onSearchValueChange,onClear:e.onInnerClear,onRemove:e.onItemRemove,onBlur:e.onBlur}),yo({_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[ft(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:de(h=>[ft(e.$slots,"label",Ni(ha(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 Y6=$e($Ve,[["render",NVe]]);const BVe=Object.assign(Y6,{install:(e,t)=>{Un(e,t);const n=jn(t);e.component(n+Y6.name,Y6)}}),bj={Button:Uo,Link:ahe,Typography:WUe,Divider:l$e,Grid:hS,Layout:TBe,Space:SFe,Avatar:OMe,Badge:WMe,Calendar:Mfe,Card:vDe,Carousel:IDe,Collapse:KDe,Comment:E6e,ColorPicker:y6e,Descriptions:a$e,Empty:jh,Image:nBe,Scrollbar:wd,List:Hhe,Popover:cz,Statistic:RFe,Table:bje,Tabs:Rje,Tag:hz,Timeline:Uje,Tooltip:jc,AutoComplete:EMe,Cascader:BDe,Checkbox:bd,DatePicker:r$e,Form:oNe,Input:Cv,InputNumber:Dk,InputTag:Pfe,Mention:JBe,Radio:b1,Rate:B9e,Select:U2,Slider:_Fe,Switch:UFe,Textarea:Whe,TimePicker:Nje,Transfer:Zje,Tree:yj,Upload:bVe,TreeSelect:BVe,Alert:sfe,Drawer:sj,Message:Lt,Modal:mf,Notification:dj,Popconfirm:Y7e,Progress:Jhe,Result:q9e,Spin:kd,Skeleton:tFe,Breadcrumb:m8e,Dropdown:kfe,Menu:x7e,PageHeader:G7e,Pagination:Iz,Steps:NFe,Affix:k5e,Anchor:hRe,BackTop:UMe,ConfigProvider:A6e,ResizeBox:Uhe,Trigger:sa,Split:EFe,Icon:Ehe,OverflowList:_Ve,Watermark:IVe,VerificationCode:SVe},FVe=(e,t)=>{for(const n of Object.keys(bj))e.use(bj[n],t)},jVe={...bj,Alter:sfe,AnchorLink:LT,AvatarGroup:NT,BreadcrumbItem:BS,ButtonGroup:NS,Calendar:Mfe,CardMeta:JT,CardGrid:QT,CarouselItem:e4,CascaderPanel:t4,CheckboxGroup:OT,CollapseItem:n4,DescriptionsItem:u4,WeekPicker:i4,MonthPicker:o4,YearPicker:s4,QuarterPicker:a4,RangePicker:l4,Doption:Hy,Dgroup:FT,Dsubmenu:jT,DropdownButton:UT,FormItem:f4,Row:jS,Col:US,GridItem:d4,ImagePreview:Wy,ImagePreviewAction:qA,ImagePreviewGroup:VS,InputGroup:zy,InputSearch:PT,InputPassword:RT,LayoutHeader:p4,LayoutContent:v4,LayoutFooter:m4,LayoutSider:g4,ListItem:y4,ListItemMeta:b4,MenuItem:_4,MenuItemGroup:S4,SubMenu:zS,RadioGroup:ZT,Option:Qm,Optgroup:FS,SkeletonLine:C4,SkeletonShape:E4,Countdown:x4,Step:T4,Thead:WS,Td:Kp,Th:KS,Tr:ph,Tbody:GS,TableColumn:A4,TabPane:I4,TimelineItem:Ky,TypographyParagraph:L4,TypographyTitle:P4,TypographyText:R4,install:FVe,addI18nMessages:zPe,useLocale:HPe,getLocale:WPe,useFormItem:So},UVe=be({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VVe=["stroke-width","stroke-linecap","stroke-linejoin"];function zVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,VVe)}var X6=$e(UVe,[["render",zVe]]);const _j=Object.assign(X6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X6.name,X6)}}),HVe=be({name:"IconArrowFall",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WVe=["stroke-width","stroke-linecap","stroke-linejoin"];function GVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,WVe)}var Z6=$e(HVe,[["render",GVe]]);const KVe=Object.assign(Z6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z6.name,Z6)}}),qVe=be({name:"IconArrowLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YVe=["stroke-width","stroke-linecap","stroke-linejoin"];function XVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,YVe)}var J6=$e(qVe,[["render",XVe]]);const Kz=Object.assign(J6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J6.name,J6)}}),ZVe=be({name:"IconArrowRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 QVe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 Q6=$e(ZVe,[["render",QVe]]);const eze=Object.assign(Q6,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q6.name,Q6)}}),tze=be({name:"IconArrowRise",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,nze)}var eO=$e(tze,[["render",rze]]);const ize=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),oze=be({name:"IconArrowUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,sze)}var tO=$e(oze,[["render",aze]]);const Sj=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),lze=be({name:"IconDoubleDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 cze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,uze)}var nO=$e(lze,[["render",cze]]);const dze=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),fze=be({name:"IconDoubleUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 pze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,hze)}var rO=$e(fze,[["render",pze]]);const vze=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),mze=be({name:"IconDownCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gze=["stroke-width","stroke-linecap","stroke-linejoin"];function yze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,gze)}var iO=$e(mze,[["render",yze]]);const bze=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),_ze=be({name:"IconDragArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 kze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Sze)}var oO=$e(_ze,[["render",kze]]);const Lpe=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),wze=be({name:"IconExpand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Eze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Cze)}var sO=$e(wze,[["render",Eze]]);const xze=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),Tze=be({name:"IconLeftCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Aze=["stroke-width","stroke-linecap","stroke-linejoin"];function Ize(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,Aze)}var aO=$e(Tze,[["render",Ize]]);const Lze=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),Pze=be({name:"IconRightCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Mze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,Rze)}var lO=$e(Pze,[["render",Mze]]);const Dze=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),Oze=be({name:"IconShrink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$ze=["stroke-width","stroke-linecap","stroke-linejoin"];function Nze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,$ze)}var uO=$e(Oze,[["render",Nze]]);const Bze=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),Fze=be({name:"IconSwap",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jze=["stroke-width","stroke-linecap","stroke-linejoin"];function Uze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,jze)}var cO=$e(Fze,[["render",Uze]]);const Ppe=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),Vze=be({name:"IconToBottom",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zze=["stroke-width","stroke-linecap","stroke-linejoin"];function Hze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,zze)}var dO=$e(Vze,[["render",Hze]]);const Wze=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),Gze=be({name:"IconToLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 qze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Kze)}var fO=$e(Gze,[["render",qze]]);const Yze=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),Xze=be({name:"IconToRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zze=["stroke-width","stroke-linecap","stroke-linejoin"];function Jze(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Zze)}var hO=$e(Xze,[["render",Jze]]);const Qze=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),eHe=be({name:"IconUpCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tHe=["stroke-width","stroke-linecap","stroke-linejoin"];function nHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,tHe)}var pO=$e(eHe,[["render",nHe]]);const rHe=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),iHe=be({name:"IconExclamationPolygonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oHe=["stroke-width","stroke-linecap","stroke-linejoin"];function sHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,oHe)}var vO=$e(iHe,[["render",sHe]]);const aHe=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),lHe=be({name:"IconMinusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uHe=["stroke-width","stroke-linecap","stroke-linejoin"];function cHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,uHe)}var mO=$e(lHe,[["render",cHe]]);const dHe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),fHe=be({name:"IconPlusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hHe=["stroke-width","stroke-linecap","stroke-linejoin"];function pHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,hHe)}var gO=$e(fHe,[["render",pHe]]);const vHe=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),mHe=be({name:"IconQuestionCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gHe=["stroke-width","stroke-linecap","stroke-linejoin"];function yHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,gHe)}var yO=$e(mHe,[["render",yHe]]);const bHe=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),_He=be({name:"IconCheckCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 kHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,SHe)}var bO=$e(_He,[["render",kHe]]);const Cc=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),wHe=be({name:"IconCheckSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 EHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,CHe)}var _O=$e(wHe,[["render",EHe]]);const xHe=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),THe=be({name:"IconCloseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AHe=["stroke-width","stroke-linecap","stroke-linejoin"];function IHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,AHe)}var SO=$e(THe,[["render",IHe]]);const LHe=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),PHe=be({name:"IconExclamationCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RHe=["stroke-width","stroke-linecap","stroke-linejoin"];function MHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,RHe)}var kO=$e(PHe,[["render",MHe]]);const ch=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),DHe=be({name:"IconInfoCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OHe=["stroke-width","stroke-linecap","stroke-linejoin"];function $He(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,OHe)}var wO=$e(DHe,[["render",$He]]);const oh=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),NHe=be({name:"IconMinusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BHe=["stroke-width","stroke-linecap","stroke-linejoin"];function FHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,BHe)}var CO=$e(NHe,[["render",FHe]]);const jHe=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),UHe=be({name:"IconPlusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VHe=["stroke-width","stroke-linecap","stroke-linejoin"];function zHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,VHe)}var EO=$e(UHe,[["render",zHe]]);const HHe=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),WHe=be({name:"IconQuestion",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GHe=["stroke-width","stroke-linecap","stroke-linejoin"];function KHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,GHe)}var xO=$e(WHe,[["render",KHe]]);const qHe=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),YHe=be({name:"IconStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 ZHe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,XHe)}var TO=$e(YHe,[["render",ZHe]]);const JHe=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),QHe=be({name:"IconHeartFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eWe=["stroke-width","stroke-linecap","stroke-linejoin"];function tWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,eWe)}var AO=$e(QHe,[["render",tWe]]);const qz=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),nWe=be({name:"IconThumbDownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rWe=["stroke-width","stroke-linecap","stroke-linejoin"];function iWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,rWe)}var IO=$e(nWe,[["render",iWe]]);const oWe=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),sWe=be({name:"IconThumbUpFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aWe=["stroke-width","stroke-linecap","stroke-linejoin"];function lWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,aWe)}var LO=$e(sWe,[["render",lWe]]);const uWe=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),cWe=be({name:"IconAt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 fWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,dWe)}var PO=$e(cWe,[["render",fWe]]);const hWe=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),pWe=be({name:"IconCloudDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vWe=["stroke-width","stroke-linecap","stroke-linejoin"];function mWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,vWe)}var RO=$e(pWe,[["render",mWe]]);const gWe=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),yWe=be({name:"IconCodeBlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bWe=["stroke-width","stroke-linecap","stroke-linejoin"];function _We(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,bWe)}var MO=$e(yWe,[["render",_We]]);const Rpe=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),SWe=be({name:"IconCodeSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kWe=["stroke-width","stroke-linecap","stroke-linejoin"];function wWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,kWe)}var DO=$e(SWe,[["render",wWe]]);const CWe=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),EWe=be({name:"IconCode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xWe=["stroke-width","stroke-linecap","stroke-linejoin"];function TWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,xWe)}var OO=$e(EWe,[["render",TWe]]);const fv=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),AWe=be({name:"IconCustomerService",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 LWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,IWe)}var $O=$e(AWe,[["render",LWe]]);const PWe=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),RWe=be({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 DWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,MWe)}var NO=$e(RWe,[["render",DWe]]);const Mpe=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),OWe=be({name:"IconExport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 NWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,$We)}var BO=$e(OWe,[["render",NWe]]);const Q3=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),BWe=be({name:"IconHeart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 jWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,FWe)}var FO=$e(BWe,[["render",jWe]]);const eL=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),UWe=be({name:"IconHistory",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VWe=["stroke-width","stroke-linecap","stroke-linejoin"];function zWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,VWe)}var jO=$e(UWe,[["render",zWe]]);const S1=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),HWe=be({name:"IconHome",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 GWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,WWe)}var UO=$e(HWe,[["render",GWe]]);const tL=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),KWe=be({name:"IconImport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 YWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,qWe)}var VO=$e(KWe,[["render",YWe]]);const nL=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),XWe=be({name:"IconLaunch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 JWe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ZWe)}var zO=$e(XWe,[["render",JWe]]);const Dpe=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),QWe=be({name:"IconList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eGe=["stroke-width","stroke-linecap","stroke-linejoin"];function tGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,eGe)}var HO=$e(QWe,[["render",tGe]]);const Yz=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),nGe=be({name:"IconMessageBanned",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rGe=["stroke-width","stroke-linecap","stroke-linejoin"];function iGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,rGe)}var WO=$e(nGe,[["render",iGe]]);const oGe=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),sGe=be({name:"IconMessage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aGe=["stroke-width","stroke-linecap","stroke-linejoin"];function lGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,aGe)}var GO=$e(sGe,[["render",lGe]]);const uGe=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),cGe=be({name:"IconMoreVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 fGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,dGe)}var KO=$e(cGe,[["render",fGe]]);const hGe=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),pGe=be({name:"IconPoweroff",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 mGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,vGe)}var qO=$e(pGe,[["render",mGe]]);const gGe=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),yGe=be({name:"IconRefresh",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bGe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ge(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,bGe)}var YO=$e(yGe,[["render",_Ge]]);const nf=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),SGe=be({name:"IconReply",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kGe=["stroke-width","stroke-linecap","stroke-linejoin"];function wGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,kGe)}var XO=$e(SGe,[["render",wGe]]);const CGe=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),EGe=be({name:"IconSave",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xGe=["stroke-width","stroke-linecap","stroke-linejoin"];function TGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,xGe)}var ZO=$e(EGe,[["render",TGe]]);const Lm=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),AGe=be({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 LGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,IGe)}var JO=$e(AGe,[["render",LGe]]);const PGe=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),RGe=be({name:"IconSelectAll",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 DGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,MGe)}var QO=$e(RGe,[["render",DGe]]);const OGe=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),$Ge=be({name:"IconSend",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NGe=["stroke-width","stroke-linecap","stroke-linejoin"];function BGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,NGe)}var e$=$e($Ge,[["render",BGe]]);const FGe=Object.assign(e$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e$.name,e$)}}),jGe=be({name:"IconSettings",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UGe=["stroke-width","stroke-linecap","stroke-linejoin"];function VGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,UGe)}var t$=$e(jGe,[["render",VGe]]);const Vh=Object.assign(t$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t$.name,t$)}}),zGe=be({name:"IconShareAlt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HGe=["stroke-width","stroke-linecap","stroke-linejoin"];function WGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,HGe)}var n$=$e(zGe,[["render",WGe]]);const GGe=Object.assign(n$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n$.name,n$)}}),KGe=be({name:"IconShareExternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qGe=["stroke-width","stroke-linecap","stroke-linejoin"];function YGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,qGe)}var r$=$e(KGe,[["render",YGe]]);const XGe=Object.assign(r$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r$.name,r$)}}),ZGe=be({name:"IconShareInternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JGe=["stroke-width","stroke-linecap","stroke-linejoin"];function QGe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 i$=$e(ZGe,[["render",QGe]]);const eKe=Object.assign(i$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i$.name,i$)}}),tKe=be({name:"IconStar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nKe=["stroke-width","stroke-linecap","stroke-linejoin"];function rKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,nKe)}var o$=$e(tKe,[["render",rKe]]);const Xz=Object.assign(o$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o$.name,o$)}}),iKe=be({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oKe=["stroke-width","stroke-linecap","stroke-linejoin"];function sKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,oKe)}var s$=$e(iKe,[["render",sKe]]);const aKe=Object.assign(s$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s$.name,s$)}}),lKe=be({name:"IconThumbDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uKe=["stroke-width","stroke-linecap","stroke-linejoin"];function cKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,uKe)}var a$=$e(lKe,[["render",cKe]]);const dKe=Object.assign(a$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a$.name,a$)}}),fKe=be({name:"IconThumbUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hKe=["stroke-width","stroke-linecap","stroke-linejoin"];function pKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,hKe)}var l$=$e(fKe,[["render",pKe]]);const vKe=Object.assign(l$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l$.name,l$)}}),mKe=be({name:"IconTranslate",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gKe=["stroke-width","stroke-linecap","stroke-linejoin"];function yKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,gKe)}var u$=$e(mKe,[["render",yKe]]);const bKe=Object.assign(u$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u$.name,u$)}}),_Ke=be({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SKe=["stroke-width","stroke-linecap","stroke-linejoin"];function kKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,SKe)}var c$=$e(_Ke,[["render",kKe]]);const wKe=Object.assign(c$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c$.name,c$)}}),CKe=be({name:"IconAlignCenter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 xKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 d$=$e(CKe,[["render",xKe]]);const TKe=Object.assign(d$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d$.name,d$)}}),AKe=be({name:"IconAlignLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IKe=["stroke-width","stroke-linecap","stroke-linejoin"];function LKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,IKe)}var f$=$e(AKe,[["render",LKe]]);const PKe=Object.assign(f$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f$.name,f$)}}),RKe=be({name:"IconAlignRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MKe=["stroke-width","stroke-linecap","stroke-linejoin"];function DKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,MKe)}var h$=$e(RKe,[["render",DKe]]);const OKe=Object.assign(h$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h$.name,h$)}}),$Ke=be({name:"IconAttachment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NKe=["stroke-width","stroke-linecap","stroke-linejoin"];function BKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,NKe)}var p$=$e($Ke,[["render",BKe]]);const FKe=Object.assign(p$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p$.name,p$)}}),jKe=be({name:"IconBgColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UKe=["stroke-width","stroke-linecap","stroke-linejoin"];function VKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,UKe)}var v$=$e(jKe,[["render",VKe]]);const Ope=Object.assign(v$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v$.name,v$)}}),zKe=be({name:"IconBold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HKe=["stroke-width","stroke-linecap","stroke-linejoin"];function WKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,HKe)}var m$=$e(zKe,[["render",WKe]]);const GKe=Object.assign(m$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m$.name,m$)}}),KKe=be({name:"IconBrush",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qKe=["stroke-width","stroke-linecap","stroke-linejoin"];function YKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,qKe)}var g$=$e(KKe,[["render",YKe]]);const XKe=Object.assign(g$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g$.name,g$)}}),ZKe=be({name:"IconEraser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JKe=["stroke-width","stroke-linecap","stroke-linejoin"];function QKe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 y$=$e(ZKe,[["render",QKe]]);const eqe=Object.assign(y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y$.name,y$)}}),tqe=be({name:"IconFindReplace",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nqe=["stroke-width","stroke-linecap","stroke-linejoin"];function rqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,nqe)}var b$=$e(tqe,[["render",rqe]]);const iqe=Object.assign(b$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b$.name,b$)}}),oqe=be({name:"IconFontColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function aqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,sqe)}var _$=$e(oqe,[["render",aqe]]);const $pe=Object.assign(_$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_$.name,_$)}}),lqe=be({name:"IconFormula",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uqe=["stroke-width","stroke-linecap","stroke-linejoin"];function cqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,uqe)}var S$=$e(lqe,[["render",cqe]]);const dqe=Object.assign(S$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S$.name,S$)}}),fqe=be({name:"IconH1",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hqe=["stroke-width","stroke-linecap","stroke-linejoin"];function pqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,hqe)}var k$=$e(fqe,[["render",pqe]]);const vqe=Object.assign(k$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k$.name,k$)}}),mqe=be({name:"IconH2",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gqe=["stroke-width","stroke-linecap","stroke-linejoin"];function yqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,gqe)}var w$=$e(mqe,[["render",yqe]]);const bqe=Object.assign(w$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w$.name,w$)}}),_qe=be({name:"IconH3",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function kqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Sqe)}var C$=$e(_qe,[["render",kqe]]);const wqe=Object.assign(C$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C$.name,C$)}}),Cqe=be({name:"IconH4",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 xqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 E$=$e(Cqe,[["render",xqe]]);const Tqe=Object.assign(E$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E$.name,E$)}}),Aqe=be({name:"IconH5",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Lqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Iqe)}var x$=$e(Aqe,[["render",Lqe]]);const Pqe=Object.assign(x$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x$.name,x$)}}),Rqe=be({name:"IconH6",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Dqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Mqe)}var T$=$e(Rqe,[["render",Dqe]]);const Oqe=Object.assign(T$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T$.name,T$)}}),$qe=be({name:"IconH7",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Nqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Bqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Nqe)}var A$=$e($qe,[["render",Bqe]]);const Fqe=Object.assign(A$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A$.name,A$)}}),jqe=be({name:"IconHighlight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Uqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Vqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Uqe)}var I$=$e(jqe,[["render",Vqe]]);const zqe=Object.assign(I$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I$.name,I$)}}),Hqe=be({name:"IconItalic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Gqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Wqe)}var L$=$e(Hqe,[["render",Gqe]]);const Kqe=Object.assign(L$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L$.name,L$)}}),qqe=be({name:"IconLineHeight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Xqe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Yqe)}var P$=$e(qqe,[["render",Xqe]]);const Zqe=Object.assign(P$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P$.name,P$)}}),Jqe=be({name:"IconOrderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Qqe=["stroke-width","stroke-linecap","stroke-linejoin"];function eYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Qqe)}var R$=$e(Jqe,[["render",eYe]]);const tYe=Object.assign(R$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R$.name,R$)}}),nYe=be({name:"IconPaste",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rYe=["stroke-width","stroke-linecap","stroke-linejoin"];function iYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,rYe)}var M$=$e(nYe,[["render",iYe]]);const oYe=Object.assign(M$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M$.name,M$)}}),sYe=be({name:"IconQuote",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aYe=["stroke-width","stroke-linecap","stroke-linejoin"];function lYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,aYe)}var D$=$e(sYe,[["render",lYe]]);const uYe=Object.assign(D$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D$.name,D$)}}),cYe=be({name:"IconRedo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 fYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,dYe)}var O$=$e(cYe,[["render",fYe]]);const hYe=Object.assign(O$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O$.name,O$)}}),pYe=be({name:"IconScissor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 mYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,vYe)}var $$=$e(pYe,[["render",mYe]]);const gYe=Object.assign($$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$$.name,$$)}}),yYe=be({name:"IconSortAscending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 _Ye(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,bYe)}var N$=$e(yYe,[["render",_Ye]]);const Npe=Object.assign(N$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N$.name,N$)}}),SYe=be({name:"IconSortDescending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kYe=["stroke-width","stroke-linecap","stroke-linejoin"];function wYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,kYe)}var B$=$e(SYe,[["render",wYe]]);const Bpe=Object.assign(B$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B$.name,B$)}}),CYe=be({name:"IconSort",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 xYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 F$=$e(CYe,[["render",xYe]]);const TYe=Object.assign(F$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F$.name,F$)}}),AYe=be({name:"IconStrikethrough",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 LYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,IYe)}var j$=$e(AYe,[["render",LYe]]);const PYe=Object.assign(j$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j$.name,j$)}}),RYe=be({name:"IconUnderline",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 DYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,MYe)}var U$=$e(RYe,[["render",DYe]]);const OYe=Object.assign(U$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U$.name,U$)}}),$Ye=be({name:"IconUndo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NYe=["stroke-width","stroke-linecap","stroke-linejoin"];function BYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,NYe)}var V$=$e($Ye,[["render",BYe]]);const FYe=Object.assign(V$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V$.name,V$)}}),jYe=be({name:"IconUnorderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UYe=["stroke-width","stroke-linecap","stroke-linejoin"];function VYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,UYe)}var z$=$e(jYe,[["render",VYe]]);const zYe=Object.assign(z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z$.name,z$)}}),HYe=be({name:"IconMuteFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 GYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,WYe)}var H$=$e(HYe,[["render",GYe]]);const KYe=Object.assign(H$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H$.name,H$)}}),qYe=be({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YYe=["stroke-width","stroke-linecap","stroke-linejoin"];function XYe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,YYe)}var W$=$e(qYe,[["render",XYe]]);const ZYe=Object.assign(W$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W$.name,W$)}}),JYe=be({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QYe=["stroke-width","stroke-linecap","stroke-linejoin"];function eXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,QYe)}var G$=$e(JYe,[["render",eXe]]);const tXe=Object.assign(G$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G$.name,G$)}}),nXe=be({name:"IconSkipNextFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rXe=["stroke-width","stroke-linecap","stroke-linejoin"];function iXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,rXe)}var K$=$e(nXe,[["render",iXe]]);const oXe=Object.assign(K$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K$.name,K$)}}),sXe=be({name:"IconSkipPreviousFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aXe=["stroke-width","stroke-linecap","stroke-linejoin"];function lXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,aXe)}var q$=$e(sXe,[["render",lXe]]);const uXe=Object.assign(q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q$.name,q$)}}),cXe=be({name:"IconSoundFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 fXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,dXe)}var Y$=$e(cXe,[["render",fXe]]);const hXe=Object.assign(Y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y$.name,Y$)}}),pXe=be({name:"IconBackward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 mXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,vXe)}var X$=$e(pXe,[["render",mXe]]);const gXe=Object.assign(X$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X$.name,X$)}}),yXe=be({name:"IconForward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 _Xe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,bXe)}var Z$=$e(yXe,[["render",_Xe]]);const SXe=Object.assign(Z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z$.name,Z$)}}),kXe=be({name:"IconFullscreenExit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 CXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,wXe)}var J$=$e(kXe,[["render",CXe]]);const Zz=Object.assign(J$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J$.name,J$)}}),EXe=be({name:"IconLiveBroadcast",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xXe=["stroke-width","stroke-linecap","stroke-linejoin"];function TXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,xXe)}var Q$=$e(EXe,[["render",TXe]]);const YA=Object.assign(Q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q$.name,Q$)}}),AXe=be({name:"IconMusic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 LXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,IXe)}var eN=$e(AXe,[["render",LXe]]);const PXe=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),RXe=be({name:"IconMute",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 DXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,MXe)}var tN=$e(RXe,[["render",DXe]]);const OXe=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),$Xe=be({name:"IconPauseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NXe=["stroke-width","stroke-linecap","stroke-linejoin"];function BXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,NXe)}var nN=$e($Xe,[["render",BXe]]);const FXe=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),jXe=be({name:"IconPlayArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UXe=["stroke-width","stroke-linecap","stroke-linejoin"];function VXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,UXe)}var rN=$e(jXe,[["render",VXe]]);const hl=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),zXe=be({name:"IconPlayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HXe=["stroke-width","stroke-linecap","stroke-linejoin"];function WXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,HXe)}var iN=$e(zXe,[["render",WXe]]);const z2=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),GXe=be({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KXe=["stroke-width","stroke-linecap","stroke-linejoin"];function qXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,KXe)}var oN=$e(GXe,[["render",qXe]]);const YXe=Object.assign(oN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oN.name,oN)}}),XXe=be({name:"IconRecord",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZXe=["stroke-width","stroke-linecap","stroke-linejoin"];function JXe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,ZXe)}var sN=$e(XXe,[["render",JXe]]);const QXe=Object.assign(sN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sN.name,sN)}}),eZe=be({name:"IconSkipNext",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tZe=["stroke-width","stroke-linecap","stroke-linejoin"];function nZe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,tZe)}var aN=$e(eZe,[["render",nZe]]);const rZe=Object.assign(aN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aN.name,aN)}}),iZe=be({name:"IconSkipPrevious",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oZe=["stroke-width","stroke-linecap","stroke-linejoin"];function sZe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,oZe)}var lN=$e(iZe,[["render",sZe]]);const aZe=Object.assign(lN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lN.name,lN)}}),lZe=be({name:"IconSound",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 cZe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,uZe)}var uN=$e(lZe,[["render",cZe]]);const dZe=Object.assign(uN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uN.name,uN)}}),fZe=be({name:"IconBytedanceColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 pZe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,hZe)}var cN=$e(fZe,[["render",pZe]]);const vZe=Object.assign(cN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cN.name,cN)}}),mZe=be({name:"IconLarkColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gZe=["stroke-width","stroke-linecap","stroke-linejoin"];function yZe(e,t,n,r,o,a){return H(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,gZe)}var dN=$e(mZe,[["render",yZe]]);const bZe=Object.assign(dN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dN.name,dN)}}),_Ze=be({name:"IconTiktokColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 kZe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[pg('',5)]),14,SZe)}var fN=$e(_Ze,[["render",kZe]]);const wZe=Object.assign(fN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fN.name,fN)}}),CZe=be({name:"IconXiguaColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 xZe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 hN=$e(CZe,[["render",xZe]]);const TZe=Object.assign(hN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hN.name,hN)}}),AZe=be({name:"IconFaceBookCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,IZe)}var pN=$e(AZe,[["render",LZe]]);const PZe=Object.assign(pN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pN.name,pN)}}),RZe=be({name:"IconFacebookSquareFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,MZe)}var vN=$e(RZe,[["render",DZe]]);const OZe=Object.assign(vN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vN.name,vN)}}),$Ze=be({name:"IconGoogleCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,NZe)}var mN=$e($Ze,[["render",BZe]]);const FZe=Object.assign(mN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mN.name,mN)}}),jZe=be({name:"IconQqCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,UZe)}var gN=$e(jZe,[["render",VZe]]);const zZe=Object.assign(gN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gN.name,gN)}}),HZe=be({name:"IconTwitterCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WZe=["stroke-width","stroke-linecap","stroke-linejoin"];function GZe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,WZe)}var yN=$e(HZe,[["render",GZe]]);const KZe=Object.assign(yN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yN.name,yN)}}),qZe=be({name:"IconWeiboCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 XZe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,YZe)}var bN=$e(qZe,[["render",XZe]]);const ZZe=Object.assign(bN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bN.name,bN)}}),JZe=be({name:"IconAlipayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 eJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,QZe)}var _N=$e(JZe,[["render",eJe]]);const tJe=Object.assign(_N,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_N.name,_N)}}),nJe=be({name:"IconCodeSandbox",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,rJe)}var SN=$e(nJe,[["render",iJe]]);const oJe=Object.assign(SN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SN.name,SN)}}),sJe=be({name:"IconCodepen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aJe=["stroke-width","stroke-linecap","stroke-linejoin"];function lJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,aJe)}var kN=$e(sJe,[["render",lJe]]);const uJe=Object.assign(kN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kN.name,kN)}}),cJe=be({name:"IconFacebook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 fJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,dJe)}var wN=$e(cJe,[["render",fJe]]);const hJe=Object.assign(wN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wN.name,wN)}}),pJe=be({name:"IconGithub",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vJe=["stroke-width","stroke-linecap","stroke-linejoin"];function mJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,vJe)}var CN=$e(pJe,[["render",mJe]]);const Fpe=Object.assign(CN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CN.name,CN)}}),gJe=be({name:"IconGitlab",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yJe=["stroke-width","stroke-linecap","stroke-linejoin"];function bJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,yJe)}var EN=$e(gJe,[["render",bJe]]);const _Je=Object.assign(EN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EN.name,EN)}}),SJe=be({name:"IconGoogle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kJe=["stroke-width","stroke-linecap","stroke-linejoin"];function wJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,kJe)}var xN=$e(SJe,[["render",wJe]]);const CJe=Object.assign(xN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xN.name,xN)}}),EJe=be({name:"IconQqZone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xJe=["stroke-width","stroke-linecap","stroke-linejoin"];function TJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,xJe)}var TN=$e(EJe,[["render",TJe]]);const AJe=Object.assign(TN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TN.name,TN)}}),IJe=be({name:"IconQq",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,LJe)}var AN=$e(IJe,[["render",PJe]]);const RJe=Object.assign(AN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AN.name,AN)}}),MJe=be({name:"IconTwitter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,DJe)}var IN=$e(MJe,[["render",OJe]]);const $Je=Object.assign(IN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IN.name,IN)}}),NJe=be({name:"IconWechat",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,BJe)}var LN=$e(NJe,[["render",FJe]]);const jJe=Object.assign(LN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LN.name,LN)}}),UJe=be({name:"IconWechatpay",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VJe=["stroke-width","stroke-linecap","stroke-linejoin"];function zJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,VJe)}var PN=$e(UJe,[["render",zJe]]);const HJe=Object.assign(PN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PN.name,PN)}}),WJe=be({name:"IconWeibo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GJe=["stroke-width","stroke-linecap","stroke-linejoin"];function KJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,GJe)}var RN=$e(WJe,[["render",KJe]]);const qJe=Object.assign(RN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RN.name,RN)}}),YJe=be({name:"IconChineseFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XJe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZJe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,XJe)}var MN=$e(YJe,[["render",ZJe]]);const JJe=Object.assign(MN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MN.name,MN)}}),QJe=be({name:"IconEnglishFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,eQe)}var DN=$e(QJe,[["render",tQe]]);const nQe=Object.assign(DN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DN.name,DN)}}),rQe=be({name:"IconMoonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,iQe)}var ON=$e(rQe,[["render",oQe]]);const sQe=Object.assign(ON,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ON.name,ON)}}),aQe=be({name:"IconPenFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-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,lQe)}var $N=$e(aQe,[["render",uQe]]);const cQe=Object.assign($N,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$N.name,$N)}}),dQe=be({name:"IconSunFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,fQe)}var NN=$e(dQe,[["render",hQe]]);const pQe=Object.assign(NN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NN.name,NN)}}),vQe=be({name:"IconApps",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,mQe)}var BN=$e(vQe,[["render",gQe]]);const jpe=Object.assign(BN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BN.name,BN)}}),yQe=be({name:"IconArchive",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,bQe)}var FN=$e(yQe,[["render",_Qe]]);const SQe=Object.assign(FN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FN.name,FN)}}),kQe=be({name:"IconBarChart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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(),Q("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,wQe)}var jN=$e(kQe,[["render",CQe]]);const Upe=Object.assign(jN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jN.name,jN)}}),EQe=be({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 TQe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,xQe)}var UN=$e(EQe,[["render",TQe]]);const rL=Object.assign(UN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UN.name,UN)}}),AQe=be({name:"IconBookmark",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 LQe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,IQe)}var VN=$e(AQe,[["render",LQe]]);const PQe=Object.assign(VN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VN.name,VN)}}),RQe=be({name:"IconBranch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 DQe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,MQe)}var zN=$e(RQe,[["render",DQe]]);const OQe=Object.assign(zN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zN.name,zN)}}),$Qe=be({name:"IconBug",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NQe=["stroke-width","stroke-linecap","stroke-linejoin"];function BQe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,NQe)}var HN=$e($Qe,[["render",BQe]]);const iL=Object.assign(HN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HN.name,HN)}}),FQe=be({name:"IconBulb",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jQe=["stroke-width","stroke-linecap","stroke-linejoin"];function UQe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,jQe)}var WN=$e(FQe,[["render",UQe]]);const VQe=Object.assign(WN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WN.name,WN)}}),zQe=be({name:"IconCalendarClock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HQe=["stroke-width","stroke-linecap","stroke-linejoin"];function WQe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,HQe)}var GN=$e(zQe,[["render",WQe]]);const GQe=Object.assign(GN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GN.name,GN)}}),KQe=be({name:"IconCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qQe=["stroke-width","stroke-linecap","stroke-linejoin"];function YQe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,qQe)}var KN=$e(KQe,[["render",YQe]]);const XQe=Object.assign(KN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KN.name,KN)}}),ZQe=be({name:"IconCloud",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JQe=["stroke-width","stroke-linecap","stroke-linejoin"];function QQe(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,JQe)}var qN=$e(ZQe,[["render",QQe]]);const eet=Object.assign(qN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qN.name,qN)}}),tet=be({name:"IconCommand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),net=["stroke-width","stroke-linecap","stroke-linejoin"];function ret(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,net)}var YN=$e(tet,[["render",ret]]);const iet=Object.assign(YN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YN.name,YN)}}),oet=be({name:"IconCommon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),set=["stroke-width","stroke-linecap","stroke-linejoin"];function aet(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,set)}var XN=$e(oet,[["render",aet]]);const uet=Object.assign(XN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XN.name,XN)}}),cet=be({name:"IconCompass",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 fet(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,det)}var ZN=$e(cet,[["render",fet]]);const het=Object.assign(ZN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZN.name,ZN)}}),pet=be({name:"IconComputer",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 met(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,vet)}var JN=$e(pet,[["render",met]]);const Jz=Object.assign(JN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JN.name,JN)}}),get=be({name:"IconCopyright",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yet=["stroke-width","stroke-linecap","stroke-linejoin"];function bet(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,yet)}var QN=$e(get,[["render",bet]]);const Vpe=Object.assign(QN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QN.name,QN)}}),_et=be({name:"IconDashboard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ket=["stroke-width","stroke-linecap","stroke-linejoin"];function wet(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ket)}var eB=$e(_et,[["render",wet]]);const Cet=Object.assign(eB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eB.name,eB)}}),Eet=be({name:"IconDesktop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Tet(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,xet)}var tB=$e(Eet,[["render",Tet]]);const XA=Object.assign(tB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tB.name,tB)}}),Aet=be({name:"IconDice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Iet=["stroke-width","stroke-linecap","stroke-linejoin"];function Let(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[pg('',11)]),14,Iet)}var nB=$e(Aet,[["render",Let]]);const Pet=Object.assign(nB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nB.name,nB)}}),Ret=be({name:"IconDriveFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Det(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Met)}var rB=$e(Ret,[["render",Det]]);const Oet=Object.assign(rB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rB.name,rB)}}),$et=be({name:"IconEar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Net=["stroke-width","stroke-linecap","stroke-linejoin"];function Bet(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Net)}var iB=$e($et,[["render",Bet]]);const Fet=Object.assign(iB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iB.name,iB)}}),jet=be({name:"IconEmail",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Uet=["stroke-width","stroke-linecap","stroke-linejoin"];function Vet(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,Uet)}var oB=$e(jet,[["render",Vet]]);const zet=Object.assign(oB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oB.name,oB)}}),Het=be({name:"IconExperiment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Get(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Wet)}var sB=$e(Het,[["render",Get]]);const Ket=Object.assign(sB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sB.name,sB)}}),qet=be({name:"IconFire",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Yet=["stroke-width","stroke-linecap","stroke-linejoin"];function Xet(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Yet)}var aB=$e(qet,[["render",Xet]]);const zpe=Object.assign(aB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aB.name,aB)}}),Zet=be({name:"IconFolderAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Qet(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 lB=$e(Zet,[["render",Qet]]);const ett=Object.assign(lB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lB.name,lB)}}),ttt=be({name:"IconFolderDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 rtt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ntt)}var uB=$e(ttt,[["render",rtt]]);const itt=Object.assign(uB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uB.name,uB)}}),ott=be({name:"IconFolder",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),stt=["stroke-width","stroke-linecap","stroke-linejoin"];function att(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,stt)}var cB=$e(ott,[["render",att]]);const ltt=Object.assign(cB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cB.name,cB)}}),utt=be({name:"IconGift",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ctt=["stroke-width","stroke-linecap","stroke-linejoin"];function dtt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ctt)}var dB=$e(utt,[["render",dtt]]);const ftt=Object.assign(dB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dB.name,dB)}}),htt=be({name:"IconIdcard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ptt=["stroke-width","stroke-linecap","stroke-linejoin"];function vtt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ptt)}var fB=$e(htt,[["render",vtt]]);const mtt=Object.assign(fB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fB.name,fB)}}),gtt=be({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 btt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ytt)}var hB=$e(gtt,[["render",btt]]);const oL=Object.assign(hB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hB.name,hB)}}),_tt=be({name:"IconInteraction",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Stt=["stroke-width","stroke-linecap","stroke-linejoin"];function ktt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Stt)}var pB=$e(_tt,[["render",ktt]]);const wtt=Object.assign(pB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pB.name,pB)}}),Ctt=be({name:"IconLanguage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 xtt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 vB=$e(Ctt,[["render",xtt]]);const Hpe=Object.assign(vB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vB.name,vB)}}),Ttt=be({name:"IconLayers",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Itt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Att)}var mB=$e(Ttt,[["render",Itt]]);const Ltt=Object.assign(mB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mB.name,mB)}}),Ptt=be({name:"IconLayout",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mtt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Rtt)}var gB=$e(Ptt,[["render",Mtt]]);const Dtt=Object.assign(gB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gB.name,gB)}}),Ott=be({name:"IconLocation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$tt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ntt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,$tt)}var yB=$e(Ott,[["render",Ntt]]);const Btt=Object.assign(yB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yB.name,yB)}}),Ftt=be({name:"IconLock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Utt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,jtt)}var bB=$e(Ftt,[["render",Utt]]);const Vtt=Object.assign(bB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bB.name,bB)}}),ztt=be({name:"IconLoop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Htt=["stroke-width","stroke-linecap","stroke-linejoin"];function Wtt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Htt)}var _B=$e(ztt,[["render",Wtt]]);const Gtt=Object.assign(_B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_B.name,_B)}}),Ktt=be({name:"IconMan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ytt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,qtt)}var SB=$e(Ktt,[["render",Ytt]]);const Xtt=Object.assign(SB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SB.name,SB)}}),Ztt=be({name:"IconMenu",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Qtt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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 kB=$e(Ztt,[["render",Qtt]]);const Wpe=Object.assign(kB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kB.name,kB)}}),ent=be({name:"IconMindMapping",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tnt=["stroke-width","stroke-linecap","stroke-linejoin"];function nnt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,tnt)}var wB=$e(ent,[["render",nnt]]);const rnt=Object.assign(wB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wB.name,wB)}}),int=be({name:"IconMobile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ont=["stroke-width","stroke-linecap","stroke-linejoin"];function snt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ont)}var CB=$e(int,[["render",snt]]);const Gpe=Object.assign(CB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CB.name,CB)}}),ant=be({name:"IconMoon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lnt=["stroke-width","stroke-linecap","stroke-linejoin"];function unt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,lnt)}var EB=$e(ant,[["render",unt]]);const cnt=Object.assign(EB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EB.name,EB)}}),dnt=be({name:"IconMosaic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fnt=["stroke-width","stroke-linecap","stroke-linejoin"];function hnt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,fnt)}var xB=$e(dnt,[["render",hnt]]);const pnt=Object.assign(xB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xB.name,xB)}}),vnt=be({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mnt=["stroke-width","stroke-linecap","stroke-linejoin"];function gnt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,mnt)}var TB=$e(vnt,[["render",gnt]]);const ynt=Object.assign(TB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TB.name,TB)}}),bnt=be({name:"IconNotificationClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_nt=["stroke-width","stroke-linecap","stroke-linejoin"];function Snt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,_nt)}var AB=$e(bnt,[["render",Snt]]);const knt=Object.assign(AB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AB.name,AB)}}),wnt=be({name:"IconNotification",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Cnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ent(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Cnt)}var IB=$e(wnt,[["render",Ent]]);const xnt=Object.assign(IB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IB.name,IB)}}),Tnt=be({name:"IconPalette",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ant=["stroke-width","stroke-linecap","stroke-linejoin"];function Int(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[pg('',5)]),14,Ant)}var LB=$e(Tnt,[["render",Int]]);const Qz=Object.assign(LB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LB.name,LB)}}),Lnt=be({name:"IconPen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Pnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Rnt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Pnt)}var PB=$e(Lnt,[["render",Rnt]]);const Mnt=Object.assign(PB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PB.name,PB)}}),Dnt=be({name:"IconPhone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ont=["stroke-width","stroke-linecap","stroke-linejoin"];function $nt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Ont)}var RB=$e(Dnt,[["render",$nt]]);const Nnt=Object.assign(RB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RB.name,RB)}}),Bnt=be({name:"IconPrinter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Fnt=["stroke-width","stroke-linecap","stroke-linejoin"];function jnt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Fnt)}var MB=$e(Bnt,[["render",jnt]]);const Unt=Object.assign(MB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MB.name,MB)}}),Vnt=be({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),znt=["stroke-width","stroke-linecap","stroke-linejoin"];function Hnt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,znt)}var DB=$e(Vnt,[["render",Hnt]]);const Wnt=Object.assign(DB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DB.name,DB)}}),Gnt=be({name:"IconPushpin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Knt=["stroke-width","stroke-linecap","stroke-linejoin"];function qnt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Knt)}var OB=$e(Gnt,[["render",qnt]]);const Ynt=Object.assign(OB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OB.name,OB)}}),Xnt=be({name:"IconQrcode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Znt=["stroke-width","stroke-linecap","stroke-linejoin"];function Jnt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Znt)}var $B=$e(Xnt,[["render",Jnt]]);const Qnt=Object.assign($B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$B.name,$B)}}),ert=be({name:"IconRelation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),trt=["stroke-width","stroke-linecap","stroke-linejoin"];function nrt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,trt)}var NB=$e(ert,[["render",nrt]]);const rrt=Object.assign(NB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NB.name,NB)}}),irt=be({name:"IconRobotAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ort=["stroke-width","stroke-linecap","stroke-linejoin"];function srt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,ort)}var BB=$e(irt,[["render",srt]]);const art=Object.assign(BB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BB.name,BB)}}),lrt=be({name:"IconRobot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),urt=["stroke-width","stroke-linecap","stroke-linejoin"];function crt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,urt)}var FB=$e(lrt,[["render",crt]]);const drt=Object.assign(FB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FB.name,FB)}}),frt=be({name:"IconSafe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 prt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,hrt)}var jB=$e(frt,[["render",prt]]);const kh=Object.assign(jB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jB.name,jB)}}),vrt=be({name:"IconSchedule",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 grt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,mrt)}var UB=$e(vrt,[["render",grt]]);const yrt=Object.assign(UB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UB.name,UB)}}),brt=be({name:"IconShake",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Srt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,_rt)}var VB=$e(brt,[["render",Srt]]);const krt=Object.assign(VB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VB.name,VB)}}),wrt=be({name:"IconSkin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 Ert(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Crt)}var zB=$e(wrt,[["render",Ert]]);const xrt=Object.assign(zB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zB.name,zB)}}),Trt=be({name:"IconStamp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Art=["stroke-width","stroke-linecap","stroke-linejoin"];function Irt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Art)}var HB=$e(Trt,[["render",Irt]]);const Lrt=Object.assign(HB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HB.name,HB)}}),Prt=be({name:"IconStorage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mrt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Rrt)}var WB=$e(Prt,[["render",Mrt]]);const kj=Object.assign(WB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WB.name,WB)}}),Drt=be({name:"IconSubscribeAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ort=["stroke-width","stroke-linecap","stroke-linejoin"];function $rt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Ort)}var GB=$e(Drt,[["render",$rt]]);const Nrt=Object.assign(GB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GB.name,GB)}}),Brt=be({name:"IconSubscribe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Frt=["stroke-width","stroke-linecap","stroke-linejoin"];function jrt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Frt)}var KB=$e(Brt,[["render",jrt]]);const Urt=Object.assign(KB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KB.name,KB)}}),Vrt=be({name:"IconSubscribed",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Hrt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,zrt)}var qB=$e(Vrt,[["render",Hrt]]);const Wrt=Object.assign(qB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qB.name,qB)}}),Grt=be({name:"IconSun",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Krt=["stroke-width","stroke-linecap","stroke-linejoin"];function qrt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,Krt)}var YB=$e(Grt,[["render",qrt]]);const Yrt=Object.assign(YB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YB.name,YB)}}),Xrt=be({name:"IconTag",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Jrt(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Zrt)}var XB=$e(Xrt,[["render",Jrt]]);const Qrt=Object.assign(XB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XB.name,XB)}}),eit=be({name:"IconTags",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tit=["stroke-width","stroke-linecap","stroke-linejoin"];function nit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,tit)}var ZB=$e(eit,[["render",nit]]);const rit=Object.assign(ZB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZB.name,ZB)}}),iit=be({name:"IconThunderbolt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oit=["stroke-width","stroke-linecap","stroke-linejoin"];function sit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,oit)}var JB=$e(iit,[["render",sit]]);const ait=Object.assign(JB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JB.name,JB)}}),lit=be({name:"IconTool",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uit=["stroke-width","stroke-linecap","stroke-linejoin"];function cit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,uit)}var QB=$e(lit,[["render",cit]]);const dit=Object.assign(QB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QB.name,QB)}}),fit=be({name:"IconTrophy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hit=["stroke-width","stroke-linecap","stroke-linejoin"];function pit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,hit)}var e7=$e(fit,[["render",pit]]);const vit=Object.assign(e7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e7.name,e7)}}),mit=be({name:"IconUnlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),git=["stroke-width","stroke-linecap","stroke-linejoin"];function yit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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,git)}var t7=$e(mit,[["render",yit]]);const bit=Object.assign(t7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t7.name,t7)}}),_it=be({name:"IconUserAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Sit=["stroke-width","stroke-linecap","stroke-linejoin"];function kit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Sit)}var n7=$e(_it,[["render",kit]]);const wit=Object.assign(n7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n7.name,n7)}}),Cit=be({name:"IconUserGroup",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${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 xit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"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 r7=$e(Cit,[["render",xit]]);const Tit=Object.assign(r7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r7.name,r7)}}),Ait=be({name:"IconUser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Iit=["stroke-width","stroke-linecap","stroke-linejoin"];function Lit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Iit)}var i7=$e(Ait,[["render",Lit]]);const Pit=Object.assign(i7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i7.name,i7)}}),Rit=be({name:"IconVideoCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Mit=["stroke-width","stroke-linecap","stroke-linejoin"];function Dit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,Mit)}var o7=$e(Rit,[["render",Dit]]);const Kpe=Object.assign(o7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o7.name,o7)}}),Oit=be({name:"IconWifi",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$it=["stroke-width","stroke-linecap","stroke-linejoin"];function Nit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,$it)}var s7=$e(Oit,[["render",Nit]]);const Bit=Object.assign(s7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s7.name,s7)}}),Fit=be({name:"IconWoman",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Te("icon"),r=j(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),o=j(()=>{const s={};return e.size&&(s.fontSize=Ke(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jit=["stroke-width","stroke-linecap","stroke-linejoin"];function Uit(e,t,n,r,o,a){return H(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ve(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":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,jit)}var a7=$e(Fit,[["render",Uit]]);const Vit=Object.assign(a7,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a7.name,a7)}}),wj={IconArrowDown:_j,IconArrowFall:KVe,IconArrowLeft:Kz,IconArrowRight:eze,IconArrowRise:ize,IconArrowUp:Sj,IconCaretDown:Nz,IconCaretLeft:_z,IconCaretRight:bz,IconCaretUp:dpe,IconDoubleDown:dze,IconDoubleLeft:Qfe,IconDoubleRight:ehe,IconDoubleUp:vze,IconDownCircle:bze,IconDown:xv,IconDragArrow:Lpe,IconExpand:xze,IconLeftCircle:Lze,IconLeft:Hl,IconMenuFold:Khe,IconMenuUnfold:qhe,IconRightCircle:Dze,IconRight:Mi,IconRotateLeft:Ihe,IconRotateRight:Lhe,IconShrink:Bze,IconSwap:Ppe,IconToBottom:Wze,IconToLeft:Yze,IconToRight:Qze,IconToTop:yfe,IconUpCircle:rHe,IconUp:Rk,IconCheckCircleFill:Fh,IconCloseCircleFill:Bg,IconExclamationCircleFill:Sf,IconExclamationPolygonFill:aHe,IconInfoCircleFill:z1,IconMinusCircleFill:dHe,IconPlusCircleFill:vHe,IconQuestionCircleFill:bHe,IconCheckCircle:Cc,IconCheckSquare:xHe,IconCheck:Ug,IconClockCircle:V3,IconCloseCircle:LHe,IconClose:xs,IconExclamationCircle:ch,IconExclamation:Mz,IconInfoCircle:oh,IconInfo:tpe,IconMinusCircle:jHe,IconMinus:_g,IconPlusCircle:HHe,IconPlus:vf,IconQuestionCircle:Che,IconQuestion:qHe,IconStop:JHe,IconHeartFill:qz,IconStarFill:Dz,IconThumbDownFill:oWe,IconThumbUpFill:uWe,IconAt:hWe,IconCloudDownload:gWe,IconCodeBlock:Rpe,IconCodeSquare:CWe,IconCode:fv,IconCustomerService:PWe,IconDownload:Mpe,IconExport:Q3,IconEyeInvisible:ffe,IconEye:uv,IconHeart:eL,IconHistory:S1,IconHome:tL,IconImport:nL,IconLaunch:Dpe,IconList:Yz,IconMessageBanned:oGe,IconMessage:uGe,IconMoreVertical:hGe,IconMore:Ev,IconPoweroff:gGe,IconRefresh:nf,IconReply:CGe,IconSave:Lm,IconScan:PGe,IconSearch:yg,IconSelectAll:OGe,IconSend:FGe,IconSettings:Vh,IconShareAlt:GGe,IconShareExternal:XGe,IconShareInternal:eKe,IconStar:Xz,IconSync:aKe,IconThumbDown:dKe,IconThumbUp:vKe,IconTranslate:bKe,IconUpload:Y1,IconVoice:wKe,IconAlignCenter:TKe,IconAlignLeft:PKe,IconAlignRight:OKe,IconAttachment:FKe,IconBgColors:Ope,IconBold:GKe,IconBrush:XKe,IconCopy:Z3,IconDelete:rc,IconEdit:zz,IconEraser:eqe,IconFilter:Bz,IconFindReplace:iqe,IconFontColors:$pe,IconFormula:dqe,IconH1:vqe,IconH2:bqe,IconH3:wqe,IconH4:Tqe,IconH5:Pqe,IconH6:Oqe,IconH7:Fqe,IconHighlight:zqe,IconItalic:Kqe,IconLineHeight:Zqe,IconLink:cd,IconObliqueLine:_fe,IconOrderedList:tYe,IconOriginalSize:Phe,IconPaste:oYe,IconQuote:uYe,IconRedo:hYe,IconScissor:gYe,IconSortAscending:Npe,IconSortDescending:Bpe,IconSort:TYe,IconStrikethrough:PYe,IconUnderline:OYe,IconUndo:FYe,IconUnorderedList:zYe,IconZoomIn:Ahe,IconZoomOut:The,IconMuteFill:KYe,IconPauseCircleFill:ZYe,IconPlayArrowFill:kpe,IconPlayCircleFill:tXe,IconSkipNextFill:oXe,IconSkipPreviousFill:uXe,IconSoundFill:hXe,IconBackward:gXe,IconForward:SXe,IconFullscreenExit:Zz,IconFullscreen:W3,IconLiveBroadcast:YA,IconMusic:PXe,IconMute:OXe,IconPauseCircle:FXe,IconPause:Spe,IconPlayArrow:hl,IconPlayCircle:z2,IconRecordStop:YXe,IconRecord:QXe,IconSkipNext:rZe,IconSkipPrevious:aZe,IconSound:dZe,IconBytedanceColor:vZe,IconLarkColor:bZe,IconTiktokColor:wZe,IconXiguaColor:TZe,IconFaceBookCircleFill:PZe,IconFacebookSquareFill:OZe,IconGoogleCircleFill:FZe,IconQqCircleFill:zZe,IconTwitterCircleFill:KZe,IconWeiboCircleFill:ZZe,IconAlipayCircle:tJe,IconCodeSandbox:oJe,IconCodepen:uJe,IconFacebook:hJe,IconGithub:Fpe,IconGitlab:_Je,IconGoogle:CJe,IconQqZone:AJe,IconQq:RJe,IconTwitter:$Je,IconWechat:jJe,IconWechatpay:HJe,IconWeibo:qJe,IconChineseFill:JJe,IconEnglishFill:nQe,IconFaceFrownFill:epe,IconFaceMehFill:fj,IconFaceSmileFill:Qhe,IconMoonFill:sQe,IconPenFill:cQe,IconSunFill:pQe,IconApps:jpe,IconArchive:SQe,IconBarChart:Upe,IconBook:rL,IconBookmark:PQe,IconBranch:OQe,IconBug:iL,IconBulb:VQe,IconCalendarClock:GQe,IconCalendar:$k,IconCamera:XQe,IconCloud:eet,IconCommand:iet,IconCommon:uet,IconCompass:het,IconComputer:Jz,IconCopyright:Vpe,IconDashboard:Cet,IconDesktop:XA,IconDice:Pet,IconDragDotVertical:G3,IconDragDot:Nhe,IconDriveFile:Oet,IconEar:Fet,IconEmail:zet,IconEmpty:sz,IconExperiment:Ket,IconFileAudio:Tpe,IconFileImage:Epe,IconFilePdf:Cpe,IconFileVideo:xpe,IconFile:Vz,IconFire:zpe,IconFolderAdd:ett,IconFolderDelete:itt,IconFolder:ltt,IconGift:ftt,IconIdcard:mtt,IconImageClose:O3,IconImage:oL,IconInteraction:wtt,IconLanguage:Hpe,IconLayers:Ltt,IconLayout:Dtt,IconLoading:ja,IconLocation:Btt,IconLock:Vtt,IconLoop:Gtt,IconMan:Xtt,IconMenu:Wpe,IconMindMapping:rnt,IconMobile:Gpe,IconMoon:cnt,IconMosaic:pnt,IconNav:ynt,IconNotificationClose:knt,IconNotification:xnt,IconPalette:Qz,IconPen:Mnt,IconPhone:Nnt,IconPrinter:Unt,IconPublic:Wnt,IconPushpin:Ynt,IconQrcode:Qnt,IconRelation:rrt,IconRobotAdd:art,IconRobot:drt,IconSafe:kh,IconSchedule:yrt,IconShake:krt,IconSkin:xrt,IconStamp:Lrt,IconStorage:kj,IconSubscribeAdd:Nrt,IconSubscribe:Urt,IconSubscribed:Wrt,IconSun:Yrt,IconTag:Qrt,IconTags:rit,IconThunderbolt:ait,IconTool:dit,IconTrophy:vit,IconUnlock:bit,IconUserAdd:wit,IconUserGroup:Tit,IconUser:Pit,IconVideoCamera:Kpe,IconWifi:Bit,IconWoman:Vit},zit=(e,t)=>{for(const n of Object.keys(wj))e.use(wj[n],t)},Hit={...wj,install:zit},_r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Wit=be({components:{},setup(){return{showConfirmModal:pe(!1)}},methods:{goBack(){Lt.info("前进按钮")},goForward(){Lt.info("后退按钮")},refreshPage(){Lt.info("刷新页面"),window.location.reload()},onSearch(e){Lt.info(`搜索内容: ${e}`)},minimize(){Lt.info("最小化窗口"),this.exitFullScreen()},maximize(){Lt.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},confirmClose(){this.showConfirmModal=!1,Lt.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(Lt.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),Lt.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()}}}),Git={class:"header-left"},Kit={class:"header-center"},qit={class:"header-right"},Yit={class:"modal-header"},Xit={class:"modal-footer"};function Zit(e,t,n,r,o,a){const s=Me("icon-left"),l=Me("a-button"),c=Me("icon-right"),f=Me("icon-refresh"),h=Me("a-input-search"),p=Me("icon-shrink"),m=Me("icon-expand"),g=Me("icon-close"),b=Me("icon-exclamation-circle-fill"),S=Me("a-layout-header");return H(),Xe(S,{class:"header"},{default:de(()=>[I("div",Git,[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",Kit,[O(h,{placeholder:"搜索内容...","enter-button":"搜索",onSearch:e.onSearch},null,8,["onSearch"])]),I("div",qit,[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(),Q("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]=es(()=>{},["stop"]))},[I("div",Yit,[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",Xit,[O(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:de(()=>[...t[3]||(t[3]=[We(" 取消 ",-1)])]),_:1},8,["onClick"]),O(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:de(()=>[...t[4]||(t[4]=[We(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Oe("",!0)]),_:1})}const Jit=_r(Wit,[["render",Zit],["__scopeId","data-v-3ed03fa9"]]);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let qpe;const sL=e=>qpe=e,Ype=Symbol();function Cj(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var qS;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(qS||(qS={}));function Qit(){const e=TV(!0),t=e.run(()=>pe({}));let n=[],r=[];const o=h3({install(a){sL(o),o._a=a,a.provide(Ype,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 Xpe=()=>{};function Vne(e,t,n,r=Xpe){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&a3()&&AV(o),o}function q0(e,...t){e.slice().forEach(n=>{n(...t)})}const eot=e=>e(),zne=Symbol(),l7=Symbol();function Ej(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];Cj(o)&&Cj(r)&&e.hasOwnProperty(n)&&!To(r)&&!uf(r)?e[n]=Ej(o,r):e[n]=r}return e}const tot=Symbol();function not(e){return!Cj(e)||!e.hasOwnProperty(tot)}const{assign:Mp}=Object;function rot(e){return!!(To(e)&&e.effect)}function iot(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=Zt(n.state.value[e]);return Mp(h,a,Object.keys(s||{}).reduce((p,m)=>(p[m]=h3(j(()=>{sL(n);const g=n._s.get(e);return s[m].call(g,g)})),p),{}))}return c=Zpe(e,f,t,n,r,!0),c}function Zpe(e,t,n={},r,o,a){let s;const l=Mp({actions:{}},n),c={deep:!0};let f,h,p=[],m=[],g;const b=r.state.value[e];!a&&!b&&(r.state.value[e]={}),pe({});let S;function k(D){let $;f=h=!1,typeof D=="function"?(D(r.state.value[e]),$={type:qS.patchFunction,storeId:e,events:g}):(Ej(r.state.value[e],D),$={type:qS.patchObject,payload:D,storeId:e,events:g});const L=S=Symbol();kn().then(()=>{S===L&&(f=!0)}),h=!0,q0(p,$,r.state.value[e])}const C=a?function(){const{state:$}=n,L=$?$():{};this.$patch(B=>{Mp(B,L)})}:Xpe;function E(){s.stop(),p=[],m=[],r._s.delete(e)}const x=(D,$="")=>{if(zne in D)return D[l7]=$,D;const L=function(){sL(r);const B=Array.from(arguments),F=[],U=[];function z(re){F.push(re)}function G(re){U.push(re)}q0(m,{args:B,name:L[l7],store:A,after:z,onError:G});let Y;try{Y=D.apply(this&&this.$id===e?this:A,B)}catch(re){throw q0(U,re),re}return Y instanceof Promise?Y.then(re=>(q0(F,re),re)).catch(re=>(q0(U,re),Promise.reject(re))):(q0(F,Y),Y)};return L[zne]=!0,L[l7]=$,L},_={_p:r,$id:e,$onAction:Vne.bind(null,m),$patch:k,$reset:C,$subscribe(D,$={}){const L=Vne(p,D,$.detached,()=>B()),B=s.run(()=>Dt(()=>r.state.value[e],F=>{($.flush==="sync"?h:f)&&D({storeId:e,type:qS.direct,events:g},F)},Mp({},c,$)));return L},$dispose:E},A=Ht(_);r._s.set(e,A);const M=(r._a&&r._a.runWithContext||eot)(()=>r._e.run(()=>(s=TV()).run(()=>t({action:x}))));for(const D in M){const $=M[D];if(To($)&&!rot($)||uf($))a||(b&¬($)&&(To($)?$.value=b[D]:Ej($,b[D])),r.state.value[e][D]=$);else if(typeof $=="function"){const L=x($,D);M[D]=L,l.actions[D]=$}}return Mp(A,M),Mp(Ti(A),M),Object.defineProperty(A,"$state",{get:()=>r.state.value[e],set:D=>{k($=>{Mp($,D)})}}),r._p.forEach(D=>{Mp(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 Vg(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=$ce();return l=l||(f?xn(Ype,null):null),l&&sL(l),l=qpe,l._s.has(r)||(a?Zpe(r,t,o,l):iot(r,o,l)),l._s.get(r)}return s.$id=r,s}const Fk=Vg("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"}}),oot={class:"footer-content"},sot={key:0,class:"pagination-stats"},aot={class:"stats-text"},lot={key:1,class:"default-footer"},uot={class:"footer-info"},cot={class:"copyright-section"},dot={class:"copyright-text"},fot={class:"project-section"},hot={class:"license-section"},pot={__name:"Footer",setup(e){const t=Fk(),n=j(()=>new Date().getFullYear()),r=()=>{Lt.success("正在跳转到项目主页...")};return(o,a)=>(H(),Q("div",oot,[st(t).shouldShow?(H(),Q("div",sot,[I("span",aot,Be(st(t).statsText),1)])):(H(),Q("div",lot,[I("div",uot,[I("div",cot,[O(st(Vpe),{class:"footer-icon"}),I("span",dot,Be(n.value)+" DrPlayer",1)]),a[1]||(a[1]=I("div",{class:"separator"},"|",-1)),I("div",fot,[O(st(Fpe),{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",hot,[O(st(kh),{class:"footer-icon"}),a[0]||(a[0]=I("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},vot=_r(pot,[["__scopeId","data-v-3b2cc39c"]]),mot="/apps/drplayer/assets/logo-5LtmOeIe.png",got=Ehe.addFromIconFontCn({src:"//at.alicdn.com/t/c/font_5032989_t69caiom2lh.js"}),yot=be({components:{IconCaretRight:bz,IconCaretLeft:_z,IconHome:tL,IconCalendar:$k,Header:Jit,Footer:vot,IconFont:got},setup(){const e=w3(),t=Fk(),n=pe(!1),r=pe([{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=pe(mot),a=pe("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)}}}}),bot={class:"app-container"},_ot={class:"fixed-header"},Sot={class:"logo"},kot={class:"content-wrapper"},wot={class:"fixed-footer"};function Cot(e,t,n,r,o,a){const s=Me("Header"),l=Me("a-image"),c=Me("a-popover"),f=Me("icon-font"),h=Me("a-menu-item"),p=Me("router-link"),m=Me("a-menu"),g=Me("IconCaretRight"),b=Me("IconCaretLeft"),S=Me("a-layout-sider"),k=Me("Footer"),C=Me("a-layout");return H(),Q("div",bot,[I("div",_ot,[O(s)]),O(C,{class:"layout-demo"},{default:de(()=>[O(S,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:de(({collapsed:E})=>[E?(H(),Xe(g,{key:0})):(H(),Xe(b,{key:1}))]),default:de(()=>[I("div",Sot,[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),Q(Ft,null,fn(e.menuItems,(E,x)=>(H(),Xe(p,{key:x,to:E.route,class:"menu-item"},{default:de(()=>[(H(),Xe(h,{key:E.id},{default:de(()=>[O(f,{type:E.icon,size:16},null,8,["type"]),We(" "+Be(E.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),I("div",{class:le(["main-content",{"sider-collapsed":e.siderCollapsed}])},[I("div",kot,[ft(e.$slots,"default",{},void 0,!0)]),I("div",wot,[O(k)])],2)]),_:3})])}const Eot=_r(yot,[["render",Cot],["__scopeId","data-v-e7f9dcb2"]]),YS=pe({show:!1,message:"",type:"success",duration:3e3});function Xn(e,t="success",n=3e3){YS.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{xot()},n)}function xot(){YS.value.show=!1}const Tot={__name:"GlobalToast",setup(e){return(t,n)=>(H(),Xe(Og,{to:"body"},[O(Es,{name:"action-toast"},{default:de(()=>[st(YS).show?(H(),Q("div",{key:0,class:le(["action-toast",st(YS).type])},Be(st(YS).message),3)):Oe("",!0)]),_:1})]))}},Aot=_r(Tot,[["__scopeId","data-v-0de7c39c"]]),aL=Vg("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()}}}}),Iot={name:"App",components:{Layout:Eot,GlobalToast:Aot},setup(){const e=aL();return dn(()=>{e.loadFromStorage()}),{}}};function Lot(e,t,n,r,o,a){const s=Me("router-view"),l=Me("Layout"),c=Me("GlobalToast");return H(),Q(Ft,null,[O(l,null,{default:de(()=>[O(s)]),_:1}),O(c)],64)}const Pot=_r(Iot,[["render",Lot]]);/*! ***************************************************************************** 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 xj=function(e,t){return xj=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])},xj(e,t)};function Rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xj(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Rot=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Mot=(function(){function e(){this.browser=new Rot,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})(),Rr=new Mot;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Rr.wxa=!0,Rr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Rr.worker=!0:!Rr.hasGlobalWindow||"Deno"in window?(Rr.node=!0,Rr.svgSupported=!0):Dot(navigator.userAgent,Rr);function Dot(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 eH=12,Oot="sans-serif",Sg=eH+"px "+Oot,$ot=20,Not=100,Bot="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Fot(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 ust(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?Kne(l,s):Kne(s,l))}function ove(e){return e.nodeName.toUpperCase()==="CANVAS"}var cst=/([&<>"'])/g,dst={"&":"&","<":"<",">":">",'"':""","'":"'"};function du(e){return e==null?"":(e+"").replace(cst,function(t,n){return dst[n]})}var fst=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,f7=[],hst=Rr.browser.firefox&&+Rr.browser.version.split(".")[0]<39;function Mj(e,t,n,r){return n=n||{},r?Yne(e,t,n):hst&&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):Yne(e,t,n),n}function Yne(e,t,n){if(Rr.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(ove(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=o-a.top;return}else if(Rj(f7,e,r,o)){n.zrX=f7[0],n.zrY=f7[1];return}}n.zrX=n.zrY=0}function oH(e){return e||window.event}function Sc(e,t,n){if(t=oH(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&&Mj(e,s,t,n)}else{Mj(e,t,t,n);var a=pst(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&fst.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function pst(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 vst(e,t,n,r){e.addEventListener(t,n,r)}function mst(e,t,n,r){e.removeEventListener(t,n,r)}var sve=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},gst=(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=Xne(r)/Xne(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=yst(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 sH(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function bst(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 Dj(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 aH(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 _st(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 lH(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 Or=(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})(),ox=Math.min,sx=Math.max,rm=new Or,im=new Or,om=new Or,sm=new Or,M_=new Or,D_=new Or,Ji=(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=ox(t.x,this.x),r=ox(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=sx(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=sx(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 Dj(a,a,[-n.x,-n.y]),_st(a,a,[r,o]),Dj(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=x,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}rm.x=om.x=n.x,rm.y=sm.y=n.y,im.x=sm.x=n.x+n.width,im.y=om.y=n.y+n.height,rm.transform(r),sm.transform(r),im.transform(r),om.transform(r),t.x=ox(rm.x,im.x,om.x,sm.x),t.y=ox(rm.y,im.y,om.y,sm.y);var c=sx(rm.x,im.x,om.x,sm.x),f=sx(rm.y,im.y,om.y,sm.y);t.width=c-t.x,t.height=f-t.y},e})(),ave="silent";function Sst(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:kst}}function kst(){sve(this.event)}var wst=(function(e){Rn(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})(wf),O_=(function(){function e(t,n){this.x=t,this.y=n}return e})(),Cst=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p7=new Ji(0,0,0,0),lve=(function(e){Rn(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 wst,l.proxy=null,l.setHandlerProxy(o),l._draggingMgr=new ost(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(wt(Cst,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=uve(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=Sst(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(Zne(a,s,n,r,o),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,f=c/2,h=new Ji(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)&&(p7.copy(m.getBoundingRect()),m.transform&&p7.applyTransform(m.transform),p7.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?ave:!0}return!1}function Zne(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!==ave)){t.target=s;break}}}function uve(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var cve=32,$_=7;function xst(e){for(var t=0;e>=cve;)t|=e&1,e>>=1;return e+t}function Jne(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 Tst(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 v7(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 m7(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 Ast(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[x];return}for(var M=n;;){var D=0,$=0,L=!1;do if(t(s[x],e[E])<0){if(e[_--]=e[E--],D++,$=0,--b===0){L=!0;break}}else if(e[_--]=s[x--],$++,D=0,--k===1){L=!0;break}while((D|$)=0;C--)e[R+C]=e[A+C];if(b===0){L=!0;break}}if(e[_--]=s[x--],--k===1){L=!0;break}if($=k-v7(e[E],s,0,k,k-1,t),$!==0){for(_-=$,x-=$,k-=$,R=_+1,A=x+1,C=0;C<$;C++)e[R+C]=s[A+C];if(k<=1){L=!0;break}}if(e[_--]=e[E--],--b===0){L=!0;break}M--}while(D>=$_||$>=$_);if(L)break;M<0&&(M=0),M+=2}if(n=M,n<1&&(n=1),k===1){for(_-=b,E-=b,R=_+1,A=E+1,C=b-1;C>=0;C--)e[R+C]=e[A+C];e[_]=s[x]}else{if(k===0)throw new Error;for(A=_-(k-1),C=0;Cl&&(c=l),Qne(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 Xu=1,pS=2,ky=4,ere=!1;function g7(){ere||(ere=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function tre(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Ist=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=tre}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(g7(),h.z=0),isNaN(h.z2)&&(g7(),h.z2=0),isNaN(h.zlevel)&&(g7(),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})(),JA;JA=Rr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var JS={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-JS.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?JS.bounceIn(e*2)*.5:JS.bounceOut(e*2-1)*.5+.5}},ax=Math.pow,nv=Math.sqrt,QA=1e-8,dve=1e-4,nre=nv(3),lx=1/3,Jd=Z1(),Ec=Z1(),Zy=Z1();function qp(e){return e>-QA&&eQA||e<-QA}function Ra(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 rre(e,t,n,r,o){var a=1-o;return 3*(((t-e)*a+2*(n-t)*o)*a+(r-n)*o*o)}function eI(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(qp(h)&&qp(p))if(qp(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(qp(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 E=nv(S),x=h*l+1.5*s*(-p+E),_=h*l+1.5*s*(-p-E);x<0?x=-ax(-x,lx):x=ax(x,lx),_<0?_=-ax(-_,lx):_=ax(_,lx);var b=(-l-(x+_))/(3*s);b>=0&&b<=1&&(a[g++]=b)}else{var A=(2*h*l-3*s*p)/(2*nv(h*h*h)),R=Math.acos(A)/3,M=nv(h),D=Math.cos(R),b=(-l-2*M*D)/(3*s),C=(-l+M*(D+nre*Math.sin(R)))/(3*s),$=(-l+M*(D-nre*Math.sin(R)))/(3*s);b>=0&&b<=1&&(a[g++]=b),C>=0&&C<=1&&(a[g++]=C),$>=0&&$<=1&&(a[g++]=$)}}return g}function hve(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(qp(s)){if(fve(a)){var f=-l/a;f>=0&&f<=1&&(o[c++]=f)}}else{var h=a*a-4*s*l;if(qp(h))o[0]=-a/(2*s);else if(h>0){var p=nv(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 tI(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 Lst(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 E=0;E<1;E+=.05)Ec[0]=Ra(e,n,o,s,E),Ec[1]=Ra(t,r,a,l,E),k=qy(Jd,Ec),k=0&&k=0&&f<=1&&(o[c++]=f)}}else{var h=s*s-4*a*l;if(qp(h)){var f=-s/(2*a);f>=0&&f<=1&&(o[c++]=f)}else if(h>0){var p=nv(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 pve(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function nI(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 Mst(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]=fu(e,n,o,m),Ec[1]=fu(t,r,a,m);var g=qy(Jd,Ec);g=0&&g=1?1:eI(0,r,a,1,c,l)&&Ra(0,o,s,1,l[0])}}}var $st=(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||_u,this.ondestroy=t.ondestroy||_u,this.onrestart=t.onrestart||_u,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=Wr(t)?t:JS[t]||vve(t)},e})(),mve=(function(){function e(t){this.value=t}return e})(),Nst=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new mve(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})(),Uk=(function(){function e(t){this._list=new Nst,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 mve(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})(),ore={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 rv(e){return e=Math.round(e),e<0?0:e>255?255:e}function Oj(e){return e<0?0:e>1?1:e}function y7(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?rv(parseFloat(t)/100*255):rv(parseInt(t,10))}function QS(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Oj(parseFloat(t)/100):Oj(parseFloat(t))}function b7(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 ux(e,t,n){return e+(t-e)*n}function _c(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function $j(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var gve=new Uk(20),cx=null;function X0(e,t){cx&&$j(cx,t),cx=gve.put(e,cx||t.slice())}function wh(e,t){if(e){t=t||[];var n=gve.get(e);if(n)return $j(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in ore)return $j(t,ore[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)){_c(t,0,0,0,1);return}return _c(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)){_c(t,0,0,0,1);return}return _c(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?_c(t,+f[0],+f[1],+f[2],1):_c(t,0,0,0,1);h=QS(f.pop());case"rgb":if(f.length>=3)return _c(t,y7(f[0]),y7(f[1]),y7(f[2]),f.length===3?h:QS(f[3])),X0(e,t),t;_c(t,0,0,0,1);return;case"hsla":if(f.length!==4){_c(t,0,0,0,1);return}return f[3]=QS(f[3]),sre(f,t),X0(e,t),t;case"hsl":if(f.length!==3){_c(t,0,0,0,1);return}return sre(f,t),X0(e,t),t;default:return}}_c(t,0,0,0,1)}}function sre(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=QS(e[1]),o=QS(e[2]),a=o<=.5?o*(r+1):o+r-o*r,s=o*2-a;return t=t||[],_c(t,rv(b7(s,a,n+1/3)*255),rv(b7(s,a,n)*255),rv(b7(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function are(e,t){var n=wh(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 dL(n,n.length===4?"rgba":"rgb")}}function Bst(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=wh(t[o]),l=wh(t[a]),c=r-o,f=dL([rv(ux(s[0],l[0],c)),rv(ux(s[1],l[1],c)),rv(ux(s[2],l[2],c)),Oj(ux(s[3],l[3],c))],"rgba");return n?{color:f,leftIndex:o,rightIndex:a,value:r}:f}}function dL(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 rI(e,t){var n=wh(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var lre=new Uk(100);function ure(e){if(cr(e)){var t=lre.get(e);return t||(t=are(e,-.1),lre.put(e,t)),t}else if(uL(e)){var n=cn({},e);return n.colorStops=vr(e.colorStops,function(r){return{offset:r.offset,color:are(r.color,-.1)}}),n}return e}function Fst(e){return e.type==="linear"}function jst(e){return e.type==="radial"}(function(){return Rr.hasGlobalWindow&&Wr(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 Nj=Array.prototype.slice;function sh(e,t,n){return(t-e)*n+e}function _7(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=dre,c=n;if(Cu(n)){var f=Hst(n);l=f,(f===1&&!bo(n[0])||f===2&&!bo(n[0][0]))&&(s=!0)}else if(bo(n)&&!ZA(n))l=fx;else if(cr(n))if(!isNaN(+n))l=fx;else{var h=wh(n);h&&(c=h,l=vS)}else if(uL(n)){var p=cn({},c);p.colorStops=vr(n.colorStops,function(g){return{offset:g.offset,color:wh(g.color)}}),Fst(n)?l=Bj:jst(n)&&(l=Fj),c=p}a===0?this.valType=l:(l!==this.valType||l===dre)&&(s=!0),this.discrete=this.discrete||s;var m={time:t,value:c,rawValue:n,percent:0};return r&&(m.easing=r,m.easingFunc=Wr(r)?r:JS[r]||vve(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=hx(o),f=fre(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 E=r?this._additiveValue:f?N_:t[c];if((hx(a)||f)&&!E&&(E=this._additiveValue=[]),this.discrete)t[c]=C<1?g.rawValue:b.rawValue;else if(hx(a))a===$4?_7(E,g[o],b[o],C):Ust(E,g[o],b[o],C);else if(fre(a)){var x=g[o],_=b[o],A=a===Bj;t[c]={type:A?"linear":"radial",x:sh(x.x,_.x,C),y:sh(x.y,_.y,C),colorStops:vr(x.colorStops,function(M,D){var $=_.colorStops[D];return{offset:sh(M.offset,$.offset,C),color:O4(_7([],M.color,$.color,C))}}),global:_.global},A?(t[c].x2=sh(x.x2,_.x2,C),t[c].y2=sh(x.y2,_.y2,C)):t[c].r=sh(x.r,_.r,C)}else if(f)_7(E,g[o],b[o],C),r||(t[c]=O4(E));else{var R=sh(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===fx?t[r]=t[r]+o:n===vS?(wh(t[r],N_),dx(N_,N_,o,1),t[r]=O4(N_)):n===$4?dx(t[r],t[r],o,1):n===yve&&cre(t[r],t[r],o,1)},e})(),uH=(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){rH("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,Ho(n),r)},e.prototype.whenWithKeys=function(t,n,r,o){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,D4(f),o),this._trackKeys.push(l)}c.addKeyframe(t,D4(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 Gst=(function(e){Rn(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&&(JA(r),!n._paused&&n.update())}JA(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 uH(n,r.loop);return this.addAnimator(o),o},t})(wf),Kst=300,S7=Rr.domSupported,k7=(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=vr(e,function(o){var a=o.replace("mouse","pointer");return n.hasOwnProperty(a)?a:o});return{mouse:e,touch:t,pointer:r}})(),hre={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},pre=!1;function jj(e){var t=e.pointerType;return t==="pen"||t==="touch"}function qst(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 w7(e){e&&(e.zrByTouch=!0)}function Yst(e,t){return Sc(e.dom,new Xst(e,t),!0)}function bve(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 Xst=(function(){function e(t,n){this.stopPropagation=_u,this.stopImmediatePropagation=_u,this.preventDefault=_u,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),sd={mousedown:function(e){e=Sc(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Sc(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=Sc(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Sc(this.dom,e);var t=e.toElement||e.relatedTarget;bve(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){pre=!0,e=Sc(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){pre||(e=Sc(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Sc(this.dom,e),w7(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),sd.mousemove.call(this,e),sd.mousedown.call(this,e)},touchmove:function(e){e=Sc(this.dom,e),w7(e),this.handler.processGesture(e,"change"),sd.mousemove.call(this,e)},touchend:function(e){e=Sc(this.dom,e),w7(e),this.handler.processGesture(e,"end"),sd.mouseup.call(this,e),+new Date-+this.__lastTouchMomentgre||e<-gre}var lm=[],Z0=[],E7=Yy(),x7=Math.abs,cH=(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 am(this.rotation)||am(this.x)||am(this.y)||am(this.scaleX-1)||am(this.scaleY-1)||am(this.skewX)||am(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(mre(r),this.invTransform=null);return}r=r||Yy(),n?this.getLocalTransform(r):mre(r),t&&(n?Xy(r,t,r):bst(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(lm);var r=lm[0]<0?-1:1,o=lm[1]<0?-1:1,a=((lm[0]-r)*n+r)/lm[0]||0,s=((lm[1]-o)*n+o)/lm[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||Yy(),lH(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)&&(E7[4]=r,E7[5]=o,Xy(Z0,n,E7),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&&Mc(r,r,o),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],o=this.transform;return o&&Mc(r,r,o),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&x7(t[0]-1)>1e-10&&x7(t[3]-1)>1e-10?Math.sqrt(x7(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){tat(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&&aH(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})(),G2=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tat(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function oI(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+=pv(r[0],n.width),f+=pv(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 T7="__zr_normal__",A7=G2.concat(["ignore"]),nat=hv(G2,function(e,t){return e[t]=!0,e},{ignore:!1}),J0={},rat=new Ji(0,0,0,0),fL=(function(){function e(t){this.id=eve(),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=rat;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(J0,r,h):oI(J0,r,h),a.x=J0.x,a.y=J0.y,s=J0.align,l=J0.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=pv(p[0],h.width),g=pv(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,E=void 0,x=void 0;S&&this.canBeInsideText()?(C=r.insideFill,E=r.insideStroke,(C==null||C==="auto")&&(C=this.getInsideTextFill()),(E==null||E==="auto")&&(E=this.getInsideTextStroke(C),x=!0)):(C=r.outsideFill,E=r.outsideStroke,(C==null||C==="auto")&&(C=this.getOutsideFill()),(E==null||E==="auto")&&(E=this.getOutsideStroke(C),x=!0)),C=C||"#000",(C!==k.fill||E!==k.stroke||x!==k.autoStroke||s!==k.align||l!==k.verticalAlign)&&(c=!0,k.fill=C,k.stroke=E,k.autoStroke=x,k.align=s,k.verticalAlign=l,n.setDefaultTextStyle(k)),n.__dirty|=Xu,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()?Hj:zj},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&wh(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,dL(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||{},cn(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(br(t))for(var r=t,o=Ho(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(T7,!1,t)},e.prototype.useState=function(t,n,r,o){var a=t===T7,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!(so(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){rH("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&=~Xu),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&=~Xu)}},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=so(o,t),s=so(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,$=void 0,L=void 0;if(l){$={},m&&(D={});for(var _=0;_=0&&(o.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var o=so(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=so(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 zo(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 cr(e)?fat(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Vs(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),wve),e=(+e).toFixed(t),n?e:+e}function mh(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 hat(e)}function hat(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 pat(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 vat(e,t){var n=hv(e,function(g,b){return g+(isNaN(b)?0:b)},0);if(n===0)return[];for(var r=Math.pow(10,t),o=vr(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=vr(o,function(g){return Math.floor(g)}),l=hv(s,function(g,b){return g+b},0),c=vr(o,function(g,b){return g-s[b]});lf&&(f=c[p],h=p);++s[h],c[h]=0,++l}return vr(s,function(g){return g/r})}function mat(e,t){var n=Math.max(mh(e),mh(t)),r=e+t;return n>wve?r:Vs(r,n)}function Cve(e){var t=Math.PI*2;return(e%t+t)%t}function sI(e){return e>-Sre&&e=10&&t++,t}function Eve(e,t){var n=hH(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 aI(e){var t=parseFloat(e);return t==e&&(t!==0||!cr(e)||e.indexOf("x")<=0)?t:NaN}function bat(e){return!isNaN(aI(e))}function xve(){return Math.round(Math.random()*9)}function Tve(e,t){return t===0?e:Tve(t,e%t)}function kre(e,t){return e==null?t:t==null?e:e*t/Tve(e,t)}function hu(e){throw new Error(e)}function wre(e,t,n){return(t-e)*n+e}var Ave="series\0",_at="\0_ec_\0";function jl(e){return e instanceof Array?e:e==null?[]:[e]}function Gj(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&&so(a,c)<0)){var f=r.getShallow(c,t);f!=null&&(s[e[l][0]]=f)}}return s}}var zat=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Hat=q2(zat),Wat=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Hat(this,t,n)},e})(),Kj=new Uk(50);function Gat(e){if(typeof e=="string"){var t=Kj.get(e);return t&&t.image}else return e}function Mve(e,t,n,r,o){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=Kj.get(e),s={hostEl:n,cb:r,cbPayload:o};return a?(t=a.image,!pL(t)&&a.pending.push(s)):(t=X1.loadImage(e,Ere,Ere),t.__zrImageSrc=e,Kj.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Ere(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;c++)l-=s;var f=ec(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 Ove(e,t,n){var r=n.containerWidth,o=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=ec(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?qat(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=ec(t,o)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function qat(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=Dve(p,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),C={},E=0;El&&M7(n,e.substring(l,f),t,s),M7(n,c[2],t,s,c[1]),l=R7.lastIndex}lo){var U=n.lines.length;R>0?(x.tokens=x.tokens.slice(0,R),C(x,A,_),n.lines=n.lines.slice(0,E+1)):n.lines=n.lines.slice(0,E),n.isTruncated=n.isTruncated||n.lines.length0&&b+r.accumWidth>r.width&&(h=t.split(` `),f=!0),r.accumWidth=b}else{var S=$ve(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 elt=hv(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function tlt(e){return Qat(e)?!!elt[e]:!0}function $ve(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 qj="__zr_style_"+Math.round(Math.random()*10),ig={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vL={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ig[qj]=!0;var Tre=["z","z2","invisible"],nlt=["invisible"],Hk=(function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Ho(n),o=0;o1e-4){l[0]=e-n,l[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(px[0]=N7(o)*n+e,px[1]=$7(o)*r+t,vx[0]=N7(a)*n+e,vx[1]=$7(a)*r+t,f(l,px,vx),h(c,px,vx),o=o%cm,o<0&&(o=o+cm),a=a%cm,a<0&&(a=a+cm),o>a&&!s?a+=cm:oo&&(mx[0]=N7(g)*n+e,mx[1]=$7(g)*r+t,f(l,mx,l),h(c,mx,c))}var Yi={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},dm=[],fm=[],Fd=[],yp=[],jd=[],Ud=[],B7=Math.min,F7=Math.max,hm=Math.cos,pm=Math.sin,Jf=Math.abs,Yj=Math.PI,Dp=Yj*2,j7=typeof Float32Array<"u",B_=[];function U7(e){var t=Math.round(e/Yj*1e8)/1e8;return t%2*Yj}function Nve(e,t){var n=U7(e[0]);n<0&&(n+=Dp);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=Dp?o=n+Dp:t&&n-o>=Dp?o=n-Dp:!t&&n>o?o=n+(Dp-U7(n-o)):t&&n0&&(this._ux=Jf(r/iI/t)||0,this._uy=Jf(r/iI/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(Yi.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(Yi.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(Yi.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(Yi.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,Nve(B_,s),o=B_[0],a=B_[1];var l=a-o;return this.addData(Yi.A,t,n,r,r,o,l,0,s?0:1),this._ctx&&this._ctx.arc(t,n,r,o,a,s),this._xi=hm(a)*r+t,this._yi=pm(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(Yi.R,t,n,r,o),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Yi.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)&&j7&&(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(){Fd[0]=Fd[1]=jd[0]=jd[1]=Number.MAX_VALUE,yp[0]=yp[1]=Ud[0]=Ud[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,o=0,a=0,s;for(s=0;sr||Jf(x)>o||m===n-1)&&(S=Math.sqrt(E*E+x*x),a=k,s=C);break}case Yi.C:{var _=t[m++],A=t[m++],k=t[m++],C=t[m++],R=t[m++],M=t[m++];S=Pst(a,s,_,A,k,C,R,M,10),a=R,s=M;break}case Yi.Q:{var _=t[m++],A=t[m++],k=t[m++],C=t[m++];S=Dst(a,s,_,A,k,C,10),a=k,s=C;break}case Yi.A:var D=t[m++],$=t[m++],L=t[m++],B=t[m++],F=t[m++],U=t[m++],z=U+F;m+=1,b&&(l=hm(F)*L+D,c=pm(F)*B+$),S=F7(L,B)*B7(Dp,Math.abs(U)),a=hm(z)*L+D,s=pm(z)*B+$;break;case Yi.R:{l=a=t[m++],c=s=t[m++];var G=t[m++],Y=t[m++];S=G*2+Y*2;break}case Yi.Z:{var E=l-a,x=c-s;S=Math.sqrt(E*E+x*x),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,E,x=0,_,A;if(!(g&&(this._pathSegLen||this._calculateLength(),b=this._pathSegLen,S=this._pathLen,E=n*S,!E)))e:for(var R=0;R0&&(t.lineTo(_,A),x=0),M){case Yi.M:l=f=r[R++],c=h=r[R++],t.moveTo(f,h);break;case Yi.L:{p=r[R++],m=r[R++];var $=Jf(p-f),L=Jf(m-h);if($>o||L>a){if(g){var B=b[C++];if(k+B>E){var F=(E-k)/B;t.lineTo(f*(1-F)+p*F,h*(1-F)+m*F);break e}k+=B}t.lineTo(p,m),f=p,h=m,x=0}else{var U=$*$+L*L;U>x&&(_=p,A=m,x=U)}break}case Yi.C:{var z=r[R++],G=r[R++],Y=r[R++],re=r[R++],te=r[R++],X=r[R++];if(g){var B=b[C++];if(k+B>E){var F=(E-k)/B;tI(f,z,Y,te,F,dm),tI(h,G,re,X,F,fm),t.bezierCurveTo(dm[1],fm[1],dm[2],fm[2],dm[3],fm[3]);break e}k+=B}t.bezierCurveTo(z,G,Y,re,te,X),f=te,h=X;break}case Yi.Q:{var z=r[R++],G=r[R++],Y=r[R++],re=r[R++];if(g){var B=b[C++];if(k+B>E){var F=(E-k)/B;nI(f,z,Y,F,dm),nI(h,G,re,F,fm),t.quadraticCurveTo(dm[1],fm[1],dm[2],fm[2]);break e}k+=B}t.quadraticCurveTo(z,G,Y,re),f=Y,h=re;break}case Yi.A:var K=r[R++],J=r[R++],ie=r[R++],se=r[R++],ae=r[R++],Ce=r[R++],ke=r[R++],ve=!r[R++],Ie=ie>se?ie:se,Ne=Jf(ie-se)>.001,Ye=ae+Ce,Ze=!1;if(g){var B=b[C++];k+B>E&&(Ye=ae+Ce*(E-k)/B,Ze=!0),k+=B}if(Ne&&t.ellipse?t.ellipse(K,J,ie,se,ke,ae,Ye,ve):t.arc(K,J,Ie,ae,Ye,ve),Ze)break e;D&&(l=hm(ae)*ie+K,c=pm(ae)*se+J),f=hm(Ye)*ie+K,h=pm(Ye)*se+J;break;case Yi.R:l=f=r[R],c=h=r[R+1],p=r[R++],m=r[R++];var Ge=r[R++],_e=r[R++];if(g){var B=b[C++];if(k+B>E){var ye=E-k;t.moveTo(p,m),t.lineTo(p+B7(ye,Ge),m),ye-=Ge,ye>0&&t.lineTo(p+Ge,m+B7(ye,_e)),ye-=_e,ye>0&&t.lineTo(p+F7(Ge-ye,0),m+_e),ye-=Ge,ye>0&&t.lineTo(p,m+F7(_e-ye,0));break e}k+=B}t.rect(p,m,Ge,_e);break;case Yi.Z:if(g){var B=b[C++];if(k+B>E){var F=(E-k)/B;t.lineTo(f*(1-F)+l*F,h*(1-F)+c*F);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=Yi,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function Q0(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 vm(e,t,n,r,o,a){if(a>t&&a>r||ao?l:0}var bp=Cg.CMD,mm=Math.PI*2,clt=1e-4;function dlt(e,t){return Math.abs(e-t)t&&f>r&&f>a&&f>l||f1&&flt(),g=Ra(t,r,a,l,wc[0]),m>1&&(b=Ra(t,r,a,l,wc[1]))),m===2?kt&&l>r&&l>a||l=0&&f<=1){for(var h=0,p=fu(t,r,a,f),m=0;mn||l<-n)return 0;var c=Math.sqrt(n*n-l*l);Ll[0]=-c,Ll[1]=c;var f=Math.abs(r-o);if(f<1e-4)return 0;if(f>=mm-1e-4){r=0,o=mm;var h=a?1:-1;return s>=Ll[0]+e&&s<=Ll[1]+e?h:0}if(r>o){var p=r;r=o,o=p}r<0&&(r+=mm,o+=mm);for(var m=0,g=0;g<2;g++){var b=Ll[g];if(b+e>s){var S=Math.atan2(l,b),h=a?1:-1;S<0&&(S=mm+S),(S>=r&&S<=o||S+mm>=r&&S+mm<=o)&&(S>Math.PI/2&&S1&&(n||(l+=vm(c,f,h,p,r,o))),k&&(c=a[b],f=a[b+1],h=c,p=f),S){case bp.M:h=a[b++],p=a[b++],c=h,f=p;break;case bp.L:if(n){if(Q0(c,f,a[b],a[b+1],t,r,o))return!0}else l+=vm(c,f,a[b],a[b+1],r,o)||0;c=a[b++],f=a[b++];break;case bp.C:if(n){if(alt(c,f,a[b++],a[b++],a[b++],a[b++],a[b],a[b+1],t,r,o))return!0}else l+=hlt(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 bp.Q:if(n){if(llt(c,f,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+1],r,o)||0;c=a[b++],f=a[b++];break;case bp.A:var C=a[b++],E=a[b++],x=a[b++],_=a[b++],A=a[b++],R=a[b++];b+=1;var M=!!(1-a[b++]);m=Math.cos(A)*x+C,g=Math.sin(A)*_+E,k?(h=m,p=g):l+=vm(c,f,m,g,r,o);var D=(r-C)*_/x+C;if(n){if(ult(C,E,_,A,A+R,M,t,D,o))return!0}else l+=vlt(C,E,_,A,A+R,M,D,o);c=Math.cos(A+R)*x+C,f=Math.sin(A+R)*_+E;break;case bp.R:h=c=a[b++],p=f=a[b++];var $=a[b++],L=a[b++];if(m=h+$,g=p+L,n){if(Q0(h,p,m,p,t,r,o)||Q0(m,p,m,g,t,r,o)||Q0(m,g,h,g,t,r,o)||Q0(h,g,h,p,t,r,o))return!0}else l+=vm(m,p,m,g,r,o),l+=vm(h,g,h,p,r,o);break;case bp.Z:if(n){if(Q0(c,f,h,p,t,r,o))return!0}else l+=vm(c,f,h,p,r,o);c=h,f=p;break}}return!n&&!dlt(f,p)&&(l+=vm(c,f,h,p,r,o)||0),l!==0}function mlt(e,t,n){return Bve(e,0,!1,t,n)}function glt(e,t,n,r){return Bve(e,t,!0,n,r)}var Fve=Qi({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ig),ylt={style:Qi({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},vL.style)},V7=G2.concat(["invisible","culling","z","z2","zlevel","parent"]),ro=(function(e){Rn(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?zj:r>.2?eat:Hj}else if(n)return Hj}return zj},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(cr(r)){var o=this.__zr,a=!!(o&&o.isDarkMode()),s=rI(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)),glt(l,c/f,n,r)))return!0}if(this.hasFill())return mlt(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:cn(o,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ky)},t.prototype.createStyle=function(n){return cL(Fve,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=cn({},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=cn({},o.shape),cn(f,r.shape)):(f=cn({},a?this.shape:o.shape),cn(f,r.shape)):c&&(f=o.shape),f)if(s){this.shape=cn({},this.shape);for(var h={},p=Ho(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 cL(blt,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=dH(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})(Hk);lI.prototype.type="tspan";var _lt=Qi({x:0,y:0},ig),Slt={style:Qi({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},vL.style)};function klt(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Tv=(function(e){Rn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return cL(_lt,n)},t.prototype._getSize=function(n){var r=this.style,o=r[n];if(o!=null)return o;var a=klt(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 Slt},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Ji(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Hk);Tv.prototype.type="image";function wlt(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 jve(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=Fm(r,l,!0)),Ry(a*2)===Ry(s*2)&&(e.y1=e.y2=Fm(a,l,!0))),e}}function Uve(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=Fm(r,l,!0),e.y=Fm(o,l,!0),e.width=Math.max(Fm(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(Fm(o+s,l,!1)-e.y,s===0?0:1)),e}}function Fm(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 Clt=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),Elt={},zs=(function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Clt},t.prototype.buildPath=function(n,r){var o,a,s,l;if(this.subPixelOptimize){var c=Uve(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?wlt(n,r):n.rect(o,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ro);zs.prototype.type="rect";var Rre={fill:"#000"},Mre=2,xlt={style:Qi({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},vL.style)},Va=(function(e){Rn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Rre,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,F=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),U=s.calculatedLineHeight,z=0;z=0&&(z=R[U],z.align==="right");)this._placeToken(z,n,D,C,F,"right",x),$-=z.width,F-=z.width,U--;for(B+=(a-(B-k)-(E-F)-$)/2;L<=U;)z=R[L],this._placeToken(z,n,D,C,B+z.width/2,"center",x),B+=z.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&&z7(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=Fre(s,l,b),p-=n.height/2-b[0]-n.innerHeight/2);var S=this._getOrCreateChild(lI),k=S.createStyle();S.useStyle(k);var C=this._defaultStyle,E=!1,x=0,_=Bre("fill"in f?f.fill:"fill"in r?r.fill:(E=!0,C.fill)),A=Nre("stroke"in f?f.stroke:"stroke"in r?r.stroke:!g&&!c&&(!C.autoStroke||E)?(x=Mre,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||Sg,k.opacity=XS(f.opacity,r.opacity,1),Ore(k,f),A&&(k.lineWidth=XS(f.lineWidth,r.lineWidth,x),k.lineDash=si(f.lineDash,r.lineDash),k.lineDashOffset=r.lineDashOffset||0,k.stroke=A),_&&(k.fill=_);var M=n.contentWidth,D=n.contentHeight;S.setBoundingRect(new Ji(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(zs),S.useStyle(S.createStyle()),S.style.fill=null;var C=S.shape;C.x=o,C.y=a,C.width=s,C.height=l,C.r=g,S.dirtyShape()}if(m){var E=S.style;E.fill=c||null,E.fillOpacity=si(n.fillOpacity,1)}else if(p){k=this._getOrCreateChild(Tv),k.onload=function(){b.dirtyStyle()};var x=k.style;x.image=c.image,x.x=o,x.y=a,x.width=s,x.height=l}if(f&&h){var E=S.style;E.lineWidth=f,E.stroke=h,E.strokeOpacity=si(n.strokeOpacity,1),E.lineDash=n.borderDash,E.lineDashOffset=n.borderDashOffset||0,S.strokeContainThreshold=0,S.hasFill()&&S.hasStroke()&&(E.strokeFirst=!0,E.lineWidth*=2)}var _=(S||k).style;_.shadowBlur=n.shadowBlur||0,_.shadowColor=n.shadowColor||"transparent",_.shadowOffsetX=n.shadowOffsetX||0,_.shadowOffsetY=n.shadowOffsetY||0,_.opacity=XS(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Llt(n)&&(r=[n.fontStyle,n.fontWeight,Ilt(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&rf(r)||n.textFont||n.font},t})(Hk),Tlt={left:!0,right:1,center:1},Alt={top:1,bottom:1,middle:1},Dre=["fontStyle","fontWeight","fontSize","fontFamily"];function Ilt(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?eH+"px":e+"px"}function Ore(e,t){for(var n=0;n=0,a=!1;if(e instanceof ro){var s=Vve(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=cn({},r),f=cn({},f),f.fill=l):!ey(f.fill)&&ey(l)?(a=!0,r=cn({},r),f=cn({},f),f.fill=ure(l)):!ey(f.stroke)&&ey(c)&&(a||(r=cn({},r),f=cn({},f)),f.stroke=ure(c)),r.style=f}}if(r&&r.z2==null){a||(r=cn({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??Mlt)}return r}function Flt(e,t,n){if(n&&n.z2==null){n=cn({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Dlt)}return n}function jlt(e,t,n){var r=so(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:Nlt(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=cn({},n),s=cn({opacity:r?o:a.opacity*.1},s),n.style=s),n}function H7(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Blt(this,e,t,n);if(e==="blur")return jlt(this,e,n);if(e==="select")return Flt(this,e,n)}return n}function Ult(e){e.stateProxy=H7;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=H7),n&&(n.stateProxy=H7)}function Wre(e,t){!Yve(e,t)&&!e.__highByOuter&&zh(e,zve)}function Gre(e,t){!Yve(e,t)&&!e.__highByOuter&&zh(e,Hve)}function cI(e,t){e.__highByOuter|=1<<(t||0),zh(e,zve)}function dI(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&zh(e,Hve)}function Vlt(e){zh(e,bH)}function Gve(e){zh(e,Wve)}function Kve(e){zh(e,Olt)}function qve(e){zh(e,$lt)}function Yve(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Xve(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(o,a){var s=gH(a),l=o==="series",c=l?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(f){Wve(f)}),l&&n.push(a)),s.isBlured=!1}),wt(r,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(n,!1,t)})}function Xj(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 Jj(e,t,n){Zve(e,!0),zh(e,Ult),Ylt(e,t,n)}function qlt(e){Zve(e,!1)}function Y2(e,t,n,r){r?qlt(e):Jj(e,t,n)}function Ylt(e,t,n){var r=Bi(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var qre=["emphasis","blur","select"],Xlt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fI(e,t,n,r){n=n||"itemStyle";for(var o=0;o1&&(s*=W7(b),l*=W7(b));var S=(o===a?-1:1)*W7((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,E=(e+n)/2+bx(p)*k-yx(p)*C,x=(t+r)/2+yx(p)*k+bx(p)*C,_=Jre([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=Jre(A,R);if(tU(A,R)<=-1&&(M=j_),tU(A,R)>=1&&(M=0),M<0){var D=Math.round(M/j_*1e6)/1e6;M=j_*2+D%2*j_}h.addData(f,E,x,s,l,_,M,p,a)}var nut=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,rut=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function iut(e){var t=new Cg;if(!e)return t;var n=0,r=0,o=n,a=r,s,l=Cg.CMD,c=e.match(nut);if(!c)return t;for(var f=0;fz*z+G*G&&(D=L,$=B),{cx:D,cy:$,x0:-h,y0:-p,x1:D*(o/A-1),y1:$*(o/A-1)}}function fut(e){var t;if(Gn(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 hut(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=eie(f-c),b=g>G7&&g%G7;if(b>id&&(g=b),!(r>id))e.moveTo(h,p);else if(g>G7-id)e.moveTo(h+r*ny(c),p+r*gm(c)),e.arc(h,p,r,c,f,!m),o>id&&(e.moveTo(h+o*ny(f),p+o*gm(f)),e.arc(h,p,o,f,c,m));else{var S=void 0,k=void 0,C=void 0,E=void 0,x=void 0,_=void 0,A=void 0,R=void 0,M=void 0,D=void 0,$=void 0,L=void 0,B=void 0,F=void 0,U=void 0,z=void 0,G=r*ny(c),Y=r*gm(c),re=o*ny(f),te=o*gm(f),X=g>id;if(X){var K=t.cornerRadius;K&&(n=fut(K),S=n[0],k=n[1],C=n[2],E=n[3]);var J=eie(r-o)/2;if(x=Vd(J,C),_=Vd(J,E),A=Vd(J,S),R=Vd(J,k),$=M=gS(x,_),L=D=gS(A,R),(M>id||D>id)&&(B=r*ny(f),F=r*gm(f),U=o*ny(c),z=o*gm(c),gid){var Ne=Vd(C,$),Ye=Vd(E,$),Ze=_x(U,z,G,Y,r,Ne,m),Ge=_x(B,F,re,te,r,Ye,m);e.moveTo(h+Ze.cx+Ze.x0,p+Ze.cy+Ze.y0),$0&&e.arc(h+Ze.cx,p+Ze.cy,Ne,Za(Ze.y0,Ze.x0),Za(Ze.y1,Ze.x1),!m),e.arc(h,p,r,Za(Ze.cy+Ze.y1,Ze.cx+Ze.x1),Za(Ge.cy+Ge.y1,Ge.cx+Ge.x1),!m),Ye>0&&e.arc(h+Ge.cx,p+Ge.cy,Ye,Za(Ge.y1,Ge.x1),Za(Ge.y0,Ge.x0),!m))}else e.moveTo(h+G,p+Y),e.arc(h,p,r,c,f,!m);if(!(o>id)||!X)e.lineTo(h+re,p+te);else if(L>id){var Ne=Vd(S,L),Ye=Vd(k,L),Ze=_x(re,te,B,F,o,-Ye,m),Ge=_x(G,Y,U,z,o,-Ne,m);e.lineTo(h+Ze.cx+Ze.x0,p+Ze.cy+Ze.y0),L0&&e.arc(h+Ze.cx,p+Ze.cy,Ye,Za(Ze.y0,Ze.x0),Za(Ze.y1,Ze.x1),!m),e.arc(h,p,o,Za(Ze.cy+Ze.y1,Ze.cx+Ze.x1),Za(Ge.cy+Ge.y1,Ge.cx+Ge.x1),m),Ne>0&&e.arc(h+Ge.cx,p+Ge.cy,Ne,Za(Ge.y1,Ge.x1),Za(Ge.y0,Ge.x0),!m))}else e.lineTo(h+re,p+te),e.arc(h,p,o,f,c,m)}e.closePath()}}}var put=(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})(),Av=(function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new put},t.prototype.buildPath=function(n,r){hut(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ro);Av.prototype.type="sector";var vut=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),kH=(function(e){Rn(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){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})(ro);kH.prototype.type="ring";function mut(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=mut(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;lbm[1]){if(l=!1,a)return l;var h=Math.abs(bm[0]-ym[1]),p=Math.abs(ym[0]-bm[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 zl(e,t,n,r,o,a){EH("update",e,t,n,r,o,a)}function Dc(e,t,n,r,o,a){EH("enter",e,t,n,r,o,a)}function i2(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 rie(e){return!e.isGroup}function But(e){return e.shape!=null}function lme(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){rie(c)&&c.anid&&(l[c.anid]=c)}),l}function o(s){var l={x:s.x,y:s.y,rotation:s.rotation};return But(s)&&(l.shape=cn({},s.shape)),l}var a=r(e);t.traverse(function(s){if(rie(s)&&s.anid){var l=a[s.anid];if(l){var c=o(s);s.attr(o(l)),zl(s,c,n,Bi(s).dataIndex)}}})}function Fut(e,t){return vr(e,function(n){var r=n[0];r=mI(r,t.x),r=gI(r,t.x+t.width);var o=n[1];return o=mI(o,t.y),o=gI(o,t.y+t.height),[r,o]})}function jut(e,t){var n=mI(e.x,t.x),r=gI(e.x+e.width,t.x+t.width),o=mI(e.y,t.y),a=gI(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 IH(e,t,n){var r=cn({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),Qi(o,n),new Tv(r)):TH(e.replace("path://",""),r,n,"center")}function Uut(e,t,n,r,o){for(var a=0,s=o[o.length-1];a1)return!1;var k=K7(g,b,h,p)/m;return!(k<0||k>1)}function K7(e,t,n,r){return e*r-n*t}function Vut(e){return e<=1e-6&&e>=-1e-6}function SL(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=cr(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&&wt(Ho(c),function(h){kg(l,h)||(l[h]=c[h],l.$vars.push(h))});var f=Bi(e.el);f.componentMainType=a,f.componentIndex=s,f.tooltipConfig={name:r,option:Qi({content:r,encodeHTMLContent:!0,formatterParams:l},o)}}function iie(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function kL(e,t){if(e)if(Gn(e))for(var n=0;n=0&&l.push(c)}),l}}function fme(e,t){return Zi(Zi({},e,!0),t,!0)}const ict={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:". "}}}},oct={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 yI="ZH",LH="EN",Jy=LH,U4={},PH={},hme=Rr.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Jy).toUpperCase();return e.indexOf(yI)>-1?yI:Jy})():Jy;function pme(e,t){e=e.toUpperCase(),PH[e]=new fs(t),U4[e]=t}function sct(e){if(cr(e)){var t=U4[e.toUpperCase()]||{};return e===yI||e===LH?Pi(t):Zi(Pi(t),Pi(U4[Jy]),!1)}else return Zi(Pi(e),Pi(U4[Jy]),!1)}function act(e){return PH[e]}function lct(){return PH[Jy]}pme(LH,ict);pme(yI,oct);var RH=1e3,MH=RH*60,o2=MH*60,Ic=o2*24,die=Ic*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}"},Cx="{yyyy}-{MM}-{dd}",fie={year:"{yyyy}",month:"{yyyy}-{MM}",day:Cx,hour:Cx+" "+yS.hour,minute:Cx+" "+yS.minute,second:Cx+" "+yS.second,millisecond:yS.none},X7=["year","month","day","hour","minute","second","millisecond"],vme=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _p(e,t){return e+="","0000".substr(0,t-e.length)+e}function Qy(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 uct(e){return e===Qy(e)}function cct(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function xL(e,t,n,r){var o=Oh(e),a=o[DH(n)](),s=o[e1(n)]()+1,l=Math.floor((s-1)/3)+1,c=o[TL(n)](),f=o["get"+(n?"UTC":"")+"Day"](),h=o[Z2(n)](),p=(h-1)%12+1,m=o[AL(n)](),g=o[IL(n)](),b=o[LL(n)](),S=h>=12?"pm":"am",k=S.toUpperCase(),C=r instanceof fs?r:act(r||hme)||lct(),E=C.getModel("time"),x=E.get("month"),_=E.get("monthAbbr"),A=E.get("dayOfWeek"),R=E.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,S+"").replace(/{A}/g,k+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,_p(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,x[s-1]).replace(/{MMM}/g,_[s-1]).replace(/{MM}/g,_p(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,_p(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,A[f]).replace(/{ee}/g,R[f]).replace(/{e}/g,f+"").replace(/{HH}/g,_p(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,_p(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,_p(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,_p(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,_p(b,3)).replace(/{S}/g,b+"")}function dct(e,t,n,r,o){var a=null;if(cr(n))a=n;else if(Wr(n))a=n(e.value,t,{level:e.level});else{var s=cn({},yS);if(e.level>0)for(var l=0;l=0;--l)if(c[f]){a=c[f];break}a=a||s.none}if(Gn(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 xL(new Date(e.value),a,o,r)}function mme(e,t){var n=Oh(e),r=n[e1(t)]()+1,o=n[TL(t)](),a=n[Z2(t)](),s=n[AL(t)](),l=n[IL(t)](),c=n[LL(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 hie(e,t,n){var r=bo(e)?Oh(e):e;switch(t=t||mme(e,n),t){case"year":return r[DH(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[TL(n)]();case"half-day":return r[Z2(n)]()/24;case"hour":return r[Z2(n)]();case"minute":return r[AL(n)]();case"second":return r[IL(n)]();case"millisecond":return r[LL(n)]()}}function DH(e){return e?"getUTCFullYear":"getFullYear"}function e1(e){return e?"getUTCMonth":"getMonth"}function TL(e){return e?"getUTCDate":"getDate"}function Z2(e){return e?"getUTCHours":"getHours"}function AL(e){return e?"getUTCMinutes":"getMinutes"}function IL(e){return e?"getUTCSeconds":"getSeconds"}function LL(e){return e?"getUTCMilliseconds":"getMilliseconds"}function fct(e){return e?"setUTCFullYear":"setFullYear"}function gme(e){return e?"setUTCMonth":"setMonth"}function yme(e){return e?"setUTCDate":"setDate"}function bme(e){return e?"setUTCHours":"setHours"}function _me(e){return e?"setUTCMinutes":"setMinutes"}function Sme(e){return e?"setUTCSeconds":"setSeconds"}function kme(e){return e?"setUTCMilliseconds":"setMilliseconds"}function wme(e){if(!bat(e))return cr(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Cme(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 PL=tve;function rU(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&rf(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?Oh(e):e;if(isNaN(+c)){if(l)return"-"}else return xL(c,r,n)}if(t==="ordinal")return Tj(e)?o(e):bo(e)&&a(e)?e+"":"-";var f=aI(e);return a(f)?wme(f):Tj(e)?o(e):typeof e=="boolean"?e+"":"-"}var pie=["a","b","c","d","e","f","g"],Z7=function(e,t){return"{"+e+(t??"")+"}"};function Eme(e,t,n){Gn(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",cr(e)?e:br(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function vie(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var V4=wt,pct=["left","right","top","bottom","width","height"],Ex=[["width","left","right"],["height","top","bottom"]];function OH(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 s2=OH;Ss(OH,"vertical");Ss(OH,"horizontal");function k1(e,t,n){n=PL(n||0);var r=t.width,o=t.height,a=zo(e.left,r),s=zo(e.top,o),l=zo(e.right,r),c=zo(e.bottom,o),f=zo(e.width,r),h=zo(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 Ji(a+n[3],s+n[0],f,h);return b.margin=n,b}function J2(e){var t=e.layoutMode||e.constructor.layoutMode;return br(t)?t:t?{type:t}:null}function w1(e,t,n){var r=n&&n.ignoreSize;!Gn(r)&&(r=[r,r]);var o=s(Ex[0],0),a=s(Ex[1],1);f(Ex[0],e,o),f(Ex[1],e,a);function s(h,p){var m={},g=0,b={},S=0,k=2;if(V4(h,function(x){b[x]=e[x]}),V4(h,function(x){l(t,x)&&(m[x]=b[x]=t[x]),c(m,x)&&g++,c(b,x)&&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=Zi(l,o[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var o=n+"Index",a=n+"Id";return zk(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})(fs);Rve(to,fs);hL(to);nct(to);rct(to,gct);function gct(e){var t=[];return wt(to.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=vr(t,function(n){return of(n).main}),e!=="dataset"&&so(t,"dataset")<=0&&t.unshift("dataset"),t}var xme="";typeof navigator<"u"&&(xme=navigator.platform||"");var ry="rgba(0, 0, 0, 0.2)";const yct={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:xme.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 Tme=di(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Hc="original",xu="arrayRows",Id="objectRows",Cf="keyedColumns",iv="typedArray",Ame="unknown",Ch="column",J1="row",Ta={Must:1,Might:2,Not:3},Ime=Ts();function bct(e){Ime(e).datasetMap=di()}function _ct(e,t,n){var r={},o=$H(t);if(!o||!e)return r;var a=[],s=[],l=t.ecModel,c=Ime(l).datasetMap,f=o.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),wt(e,function(S,k){var C=br(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});wt(e,function(S,k){var C=S.name,E=b(S);if(h==null){var x=m.valueWayDim;g(r[C],x,E),g(s,x,E),m.valueWayDim+=E}else if(h===k)g(r[C],0,E),g(a,0,E);else{var x=m.categoryWayDim;g(r[C],x,E),g(s,x,E),m.categoryWayDim+=E}});function g(S,k,C){for(var E=0;Et)return e[r];return e[n-1]}function xct(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 Tct(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var xx,U_,gie,yie="\0_ec_inner",Act=1,BH=(function(e){Rn(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 fs(a),this._locale=new fs(s),this._optionManager=l},t.prototype.setOption=function(n,r,o){var a=Sie(r);this._optionManager.setOption(n,o,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,Sie(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"?gie(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&&wt(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=di(),f=r&&r.replaceMergeMainTypeMap;bct(this),wt(n,function(p,m){p!=null&&(to.hasClass(m)?m&&(l.push(m),c.set(m,!0)):o[m]=o[m]==null?Pi(p):Zi(o[m],p,!0))}),f&&f.each(function(p,m){to.hasClass(m)&&!c.get(m)&&(l.push(m),c.set(m,!0))}),to.topologicalTravel(l,to.getAllClassMainTypes(),h,this);function h(p){var m=Cct(this,p,jl(n[p])),g=a.get(p),b=g?f&&f.get(p)?"replaceMerge":"normalMerge":"replaceAll",S=kat(g,m,b);Iat(S,p,to),o[p]=null,a.set(p,null),s.set(p,0);var k=[],C=[],E=0,x;wt(S,function(_,A){var R=_.existing,M=_.newOption;if(!M)R&&(R.mergeOption({},this),R.optionUpdated({},!1));else{var D=p==="series",$=to.getClass(p,_.keyInfo.subType,!D);if(!$)return;if(p==="tooltip"){if(x)return;x=!0}if(R&&R.constructor===$)R.name=_.keyInfo.name,R.mergeOption(M,this),R.optionUpdated(M,!1);else{var L=cn({componentIndex:A},_.keyInfo);R=new $(M,this,this,L),cn(R,L),_.brandNew&&(R.__requireNewView=!0),R.init(M,this,this),R.optionUpdated(null,!0)}}R?(k.push(R.option),C.push(R),E++):(k.push(void 0),C.push(void 0))},this),o[p]=k,a.set(p,C),s.set(p,E),p==="series"&&xx(this)}this._seriesIndices||xx(this)},t.prototype.getOption=function(){var n=Pi(this.option);return wt(n,function(r,o){if(to.hasClass(o)){for(var a=jl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!K2(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[o]=a}}),delete n[yie],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 Nct(e,t){return e.join(",")===t.join(",")}var Qc=wt,Q2=br,kie=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Q7(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=kie.length;n=0;k--){var C=e[k];if(l||(b=C.data.rawIndexOf(C.stackedByDimension,g)),b>=0){var E=C.data.getByRawIndex(C.stackResultDimension,b);if(c==="all"||c==="positive"&&E>0||c==="negative"&&E<0||c==="samesign"&&m>=0&&E>0||c==="samesign"&&m<=0&&E<0){m=mat(m,E),S=E;break}}}return r[0]=m,r[1]=S,r})})}var ML=(function(){function e(t){this.data=t.data||(t.sourceFormat===Cf?{}:[]),this.sourceFormat=t.sourceFormat||Ame,this.seriesLayoutBy=t.seriesLayoutBy||Ch,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=x)}g[0]=b,g[1]=S}},o=function(){return this._data?this._data.length/this._dimSize:0};Iie=(t={},t[xu+"_"+Ch]={pure:!0,appendData:a},t[xu+"_"+J1]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Id]={pure:!0,appendData:a},t[Cf]={pure:!0,appendData:function(s){var l=this._data;wt(s,function(c,f){for(var h=l[f]||(l[f]=[]),p=0;p<(c||[]).length;p++)h.push(c[p])})}},t[Hc]={appendData:a},t[iv]={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 Mie(e){var t,n;return br(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function a2(e){return new tdt(e)}var tdt=(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(E){return!(E>=1)&&(E=1),E}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})(),rdt=(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 z4(t,n)},e})();function idt(e,t){var n=new rdt,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==Ch&&hu(s);var l=[],c={},f=e.dimensionsDefine;if(f)wt(f,function(S,k){var C=S.name,E={index:k,name:C,displayName:S.displayName};if(l.push(E),C!=null){var x="";kg(c,C)&&hu(x),c[C]=E}});else for(var h=0;h65535?fdt:hdt}function oy(){return[1/0,-1/0]}function pdt(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function $ie(e,t,n,r,o){var a=Hme[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=vr(s,function(E){return E.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&&E<=m||isNaN(E))&&(c[f++]=S),S++}b=!0}else if(a===2){for(var k=g[o[0]],x=g[o[1]],_=t[o[1]][0],A=t[o[1]][1],C=0;C=p&&E<=m||isNaN(E))&&(R>=_&&R<=A||isNaN(R))&&(c[f++]=S),S++}b=!0}}if(!b)if(a===1)for(var C=0;C=p&&E<=m||isNaN(E))&&(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=E,g=h+k)}var x=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++]=E}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 z4(n[a],this._dimensions[a])}n9={arrayRows:t,objectRows:function(n,r,o,a){return z4(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,o,a){var s=n&&(n.value==null?n:n.value);return z4(s instanceof Array?s[a]:s,this._dimensions[a])},typedArray:function(n,r,o,a){return n[a]}}})(),e})(),vdt=(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(Tx(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)?iv:Hc,a=[];var p=this._getSourceMetaRawOption()||{},m=f&&f.metaRawOption||{},g=si(p.seriesLayoutBy,m.seriesLayoutBy)||null,b=si(p.sourceHeader,m.sourceHeader),S=si(p.dimensions,m.dimensions),k=g!==m.seriesLayoutBy||!!b!=!!m.sourceHeader||S;o=k?[iU(l,{seriesLayoutBy:g,sourceHeader:b,dimensions:S},c)]:[]}else{var C=t;if(r){var E=this._applyTransform(n);o=E.sourceList,a=E.upstreamSignList}else{var x=C.get("source",!0);o=[iU(x,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&&Nie(a)}var s,l=[],c=[];return wt(t,function(f){f.prepareSource();var h=f.getSource(o||0),p="";o!=null&&!h&&Nie(p),l.push(h),c.push(f._getVersionSign())}),r?s=cdt(r,l,{datasetIndex:n.componentIndex}):o!=null&&(s=[Kct(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 wt(e.blocks,function(o){var a=qme(o);a>=t&&(t=a+ +(r&&(!a||sU(o)&&!o.noHeader)))}),t}return 0}function bdt(e,t,n,r){var o=t.noHeader,a=Sdt(qme(t)),s=[],l=t.blocks||[];Dh(!l||Gn(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var f={valueAsc:"asc",valueDesc:"desc"};if(kg(f,c)){var h=new ndt(f[c],null);l.sort(function(S,k){return h.evaluate(S.sortParam,k.sortParam)})}else c==="seriesDesc"&&l.reverse()}wt(l,function(S,k){var C=t.valueFormatter,E=Kme(S)(C?cn(cn({},e),{valueFormatter:C}):e,S,k>0?a.html:0,r);E!=null&&s.push(E)});var p=e.renderMode==="richText"?s.join(a.richText):aU(r,s.join(""),o?n:a.html);if(o)return p;var m=rU(t.header,"ordinal",e.useUTC),g=Gme(r,e.renderMode).nameStyle,b=Wme(r);return e.renderMode==="richText"?Yme(e,m,g)+a.richText+p:aU(r,'
'+du(m)+"
"+p,n)}function _dt(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 _=Gn(_)?_:[_],vr(_,function(A,R){return rU(A,Gn(g)?g[R]:g,f)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),m=a?"":rU(c,"ordinal",f),g=t.valueType,b=s?[]:h(t.value,t.dataIndex),S=!l||!a,k=!l&&a,C=Gme(r,o),E=C.nameStyle,x=C.valueStyle;return o==="richText"?(l?"":p)+(a?"":Yme(e,m,E))+(s?"":Cdt(e,b,S,k,x)):aU(r,(l?"":p)+(a?"":kdt(m,!l,E))+(s?"":wdt(b,S,k,x)),n)}}function Bie(e,t,n,r,o,a){if(e){var s=Kme(e),l={useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function Sdt(e){return{html:gdt[e],richText:ydt[e]}}function aU(e,t,n){var r='
',o="margin: "+n+"px 0 0",a=Wme(e);return'
'+t+r+"
"}function kdt(e,t,n){var r=t?"margin-left:2px":"";return''+du(e)+""}function wdt(e,t,n,r){var o=n?"10px":"20px",a=t?"float:right;margin-left:"+o:"";return e=Gn(e)?e:[e],''+vr(e,function(s){return du(s)}).join("  ")+""}function Yme(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Cdt(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(Gn(t)?t.join(" "):t,a)}function Edt(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Eg(r)}function Xme(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var r9=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=xve()}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=hct({color:n,type:t,renderMode:r,markerId:o});return cr(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Gn(n)?wt(n,function(a){return cn(r,a)}):cn(r,n);var o=this._generateStyleName();return this.richTextStyles[o]=r,"{"+o+"|"+t+"}"},e})();function xdt(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=Gn(l),f=Edt(t,n),h,p,m,g;if(s>1||c&&!s){var b=Tdt(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=pH(t),C=k&&t.name||"",E=o.getName(n),x=r?C:E;return ek("section",{header:C,noHeader:r||!k,sortParam:g,blocks:[ek("nameValue",{markerType:"item",markerColor:f,name:x,noName:!rf(x),value:h,valueType:p,dataIndex:n})].concat(m||[])})}function Tdt(e,t,n,r,o){var a=t.getData(),s=hv(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?wt(r,function(p){h(C1(a,n,p),p)}):wt(e,h);function h(p,m){var g=a.getDimensionInfo(m);!g||g.otherDims.tooltip===!1||(s?f.push(ek("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 Sp=Ts();function Ax(e,t){return e.getName(t)||e.getId(t)}var Adt="__universalTransitionEnabled",Cd=(function(e){Rn(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=a2({count:Ldt,reset:Pdt}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,o);var a=Sp(this).sourceManager=new vdt(this);a.prepareSource();var s=this.getInitialData(n,o);jie(s,this),this.dataTask.context.data=s,Sp(this).dataBeforeProcessed=s,Fie(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var o=J2(this),a=o?RL(n):{},s=this.subType;to.hasClass(s)&&(s+="Series"),Zi(n,r.getTheme().get(this.subType)),Zi(n,this.getDefaultOption()),Gj(n,"label",["show"]),this.fillDataTextStyle(n.data),o&&w1(n,a,o)},t.prototype.mergeOption=function(n,r){n=Zi(this.option,n,!0),this.fillDataTextStyle(n.data);var o=J2(this);o&&w1(this.option,n,o);var a=Sp(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);jie(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Sp(this).dataBeforeProcessed=s,Fie(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=NH.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[Ax(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Adt])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"){br(s.selectedMap)||(s.selectedMap={});for(var f=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return to.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})(to);kf(Cd,edt);kf(Cd,NH);Rve(Cd,to);function Fie(e){var t=e.name;pH(e)||(e.name=Idt(e)||t)}function Idt(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return wt(n,function(o){var a=t.getDimensionInfo(o);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Ldt(e){return e.model.getRawData().count()}function Pdt(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Rdt}function Rdt(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function jie(e,t){wt(Zot(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Ss(Mdt,t))})}function Mdt(e,t){var n=lU(e);return n&&n.setOutputEnd((t||this).count()),t}function lU(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 Ua,this.uid=EL("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})();mH(Ed);hL(Ed);function zH(){var e=Ts();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 Zme=Ts(),Ddt=zH(),Oc=(function(){function e(){this.group=new Ua,this.uid=EL("viewChart"),this.renderTask=a2({plan:Odt,reset:$dt}),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&&Vie(a,o,"emphasis")},e.prototype.downplay=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&Vie(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){kL(this.group,t)},e.markUpdateMethod=function(t,n){Zme(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Uie(e,t,n){e&&Qj(e)&&(t==="emphasis"?cI:dI)(e,n)}function Vie(e,t,n){var r=wg(e,t),o=t&&t.highlightKey!=null?Zlt(t.highlightKey):null;r!=null?wt(jl(r),function(a){Uie(e.getItemGraphicEl(a),n,o)}):e.eachItemGraphicEl(function(a){Uie(a,n,o)})}mH(Oc);hL(Oc);function Odt(e){return Ddt(e.model)}function $dt(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=o&&Zme(o).updateMethod,c=a?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](t,n,r,o),Ndt[c]}var Ndt={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)}}},bI="\0__throttleOriginMethod",zie="\0__throttleRate",Hie="\0__throttleType";function OL(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 Jme(e,t,n,r){var o=e[t];if(o){var a=o[bI]||o,s=o[Hie],l=o[zie];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;o=e[t]=OL(a,n,r==="debounce"),o[bI]=a,o[Hie]=r,o[zie]=n}return o}}function uU(e,t){var n=e[t];n&&n[bI]&&(n.clear&&n.clear(),e[t]=n[bI])}var Wie=Ts(),Gie={itemStyle:q2(dme,!0),lineStyle:q2(cme,!0)},Bdt={lineStyle:"stroke",itemStyle:"fill"};function Qme(e,t){var n=e.visualStyleMapper||Gie[t];return n||(console.warn("Unknown style type '"+t+"'."),Gie.itemStyle)}function ege(e,t){var n=e.visualDrawType||Bdt[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Fdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),a=Qme(e,r),s=a(o),l=o.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=ege(e,r),f=s[c],h=Wr(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"||Wr(s.fill)?m:s.fill,s.stroke=s.stroke==="auto"||Wr(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=cn({},s);k[c]=h(S),g.setItemVisual(b,"style",k)}}}},z_=new fs,jdt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=Qme(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");cn(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}}}},Udt={performRawSeries:!0,overallReset:function(e){var t=di();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)),Wie(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),o={},a=n.getData(),s=Wie(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=ege(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)}})}})}},Ix=Math.PI;function Vdt(e,t){t=t||{},Qi(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 Ua,r=new zs({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var o=new Va({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new zs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(a);var s;return t.showSpinner&&(s=new _L({shape:{startAngle:-Ix/2,endAngle:-Ix/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:Ix*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:Ix*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 tge=(function(){function e(t,n,r,o){this._stageTaskMap=di(),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=di();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;wt(this._allHandlers,function(o){var a=t.get(o.uid)||t.set(o.uid,{}),s="";Dh(!(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;wt(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 E=s.getPerformArgs(k,o.block);E.skip=!c.performRawSeries&&n.isSeriesFiltered(k.context.model),s.updatePayload(k,r),k.perform(E)&&(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=di(),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)||a2({plan:Kdt,reset:qdt,count:Xdt}));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||a2({reset:zdt});s.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=di(),f=t.seriesType,h=t.getTargetSeries,p=!0,m=!1,g="";Dh(!t.createOnAllSeries,g),f?r.eachRawSeriesByType(f,b):h?h(r,o).each(b):(p=!1,wt(r.getSeries(),b));function b(S){var k=S.uid,C=c.set(k,l&&l.get(k)||(m=!0,a2({reset:Hdt,onDirty:Gdt})));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 Wr(t)&&(t={overallReset:t,seriesType:Zdt(t)}),t.uid=EL("stageHandler"),n&&(t.visualType=n),t},e})();function zdt(e){e.overallReset(e.ecModel,e.api,e.payload)}function Hdt(e){return e.overallProgress&&Wdt}function Wdt(){this.agent.dirty(),this.getDownstream().dirty()}function Gdt(){this.agent&&this.agent.dirty()}function Kdt(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function qdt(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=jl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?vr(t,function(n,r){return nge(r)}):Ydt}var Ydt=nge(0);function nge(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})(),cU=["symbol","symbolSize","symbolRotate","symbolOffset"],Xie=cU.concat(["symbolKeepAspect"]),eft={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&&jm(c)?c:.5;var f=e.createRadialGradient(s,l,0,s,l,c);return f}function fU(e,t,n){for(var r=t.type==="radial"?bft(e,t,n):yft(e,t,n),o=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:bo(e)?[e]:Gn(e)?e:null}function age(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Sft(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(n=vr(n,function(a){return a/o}),r/=o)}return[n,r]}var kft=new Cg(!0);function SI(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Zie(e){return typeof e=="string"&&e!=="none"}function kI(e){var t=e.fill;return t!=null&&t!=="none"}function Jie(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 Qie(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 hU(e,t,n){var r=Mve(t.image,t.__image,n);if(pL(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 wft(e,t,n,r){var o,a=SI(n),s=kI(n),l=n.strokePercent,c=l<1,f=!t.path;(!t.silent||c)&&f&&t.createPathProxy();var h=t.path||kft,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,E=void 0,x=void 0,_=void 0,A=void 0,R=void 0;(b||S)&&(R=t.getBoundingRect()),b&&(E=p?fU(e,m,R):t.__canvasFillGradient,t.__canvasFillGradient=E),S&&(x=p?fU(e,g,R):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),k&&(_=p||!t.__canvasFillPattern?hU(e,m,t):t.__canvasFillPattern,t.__canvasFillPattern=_),C&&(A=p||!t.__canvasStrokePattern?hU(e,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),b?e.fillStyle=E:k&&(_?e.fillStyle=_:s=!1),S?e.strokeStyle=x:C&&(A?e.strokeStyle=A:a=!1)}var M=t.getGlobalScale();h.setScale(M[0],M[1],t.segmentIgnoreThreshold);var D,$;e.setLineDash&&n.lineDash&&(o=age(t),D=o[0],$=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=$),r||(n.strokeFirst?(a&&Qie(e,n),s&&Jie(e,n)):(s&&Jie(e,n),a&&Qie(e,n))),D&&e.setLineDash([])}function Cft(e,t,n){var r=t.__image=Mve(n.image,t.__image,t,t.onload);if(!(!r||!pL(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||Sg,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=age(t),a=r[0],s=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=s),n.strokeFirst?(SI(n)&&e.strokeText(o,n.x,n.y),kI(n)&&e.fillText(o,n.x,n.y)):(kI(n)&&e.fillText(o,n.x,n.y),SI(n)&&e.strokeText(o,n.x,n.y)),a&&e.setLineDash([])}}var eoe=["shadowBlur","shadowOffsetX","shadowOffsetY"],toe=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lge(e,t,n,r,o){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){pu(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?ig.opacity:s}(r||t.blend!==n.blend)&&(a||(pu(e,o),a=!0),e.globalCompositeOperation=t.blend||ig.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[Ja]){if(this._disposed){this.id;return}var a,s,l;if(br(r)&&(o=r.lazyUpdate,a=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[Ja]=!0,!this._model||r){var c=new Mct(this._api),f=this._theme,h=this._model=new BH;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,f,this._locale,c)}this._model.setOption(n,{replaceMerge:s},mU);var p={seriesTransition:l,optionChanged:!0};if(o)this[iu]={silent:a,updateParams:p},this[Ja]=!1,this.getZr().wakeUp();else{try{ay(this),kp.update.call(this,null,p)}catch(m){throw this[iu]=null,this[Ja]=!1,m}this._ssr||this._zr.flush(),this[iu]=null,this[Ja]=!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||Rr.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(Rr.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return wt(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;wt(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 wt(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(moe[o]){var c=l,f=l,h=-l,p=-l,m=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();wt(u2,function(x,_){if(x.group===o){var A=r?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Pi(n)),R=x.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=_re(k,{renderer:r?"svg":"canvas"});if(C.resize({width:b,height:S}),r){var E="";return wt(m,function(x){var _=x.left-c,A=x.top-f;E+=''+x.dom+""}),C.painter.getSvgRoot().innerHTML=E,n.connectedBackgroundColor&&C.painter.setBackgroundColor(n.connectedBackgroundColor),C.refreshImmediately(),C.painter.toDataURL()}else return n.connectedBackgroundColor&&C.add(new zs({shape:{x:0,y:0,width:b,height:S},style:{fill:n.connectedBackgroundColor}})),wt(m,function(x){var _=new Tv({style:{x:x.left*g-c,y:x.top*g-f,image:x.dom}});C.add(_)}),C.refreshImmediately(),k.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return l9(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return l9(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var o=this._model,a,s=P7(o,n);return wt(s,function(l,c){c.indexOf("Models")>=0&&wt(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=P7(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?nft(l,c,r):rft(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;wt(Xft,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=Bi(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=cn({},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)}),wt(l2,function(r,o){n._messageCenter.on(o,function(a){this.trigger(o,a)},n)}),wt(["selectchanged"],function(r){n._messageCenter.on(r,function(o){this.trigger(r,o)},n)}),oft(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&&Lve(this.getDom(),GH,"");var r=this,o=r._api,a=r._model;wt(r._componentsViews,function(s){s.dispose(a,o)}),wt(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 u2[r.id]},t.prototype.resize=function(n){if(!this[Ja]){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[iu]&&(a==null&&(a=this[iu].silent),o=!0,this[iu]=null),this[Ja]=!0;try{o&&ay(this),kp.update.call(this,{type:"resize",animation:cn({duration:0},n&&n.animation)})}catch(s){throw this[Ja]=!1,s}this[Ja]=!1,H_.call(this,a),W_.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(br(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!gU[n]){var o=gU[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=cn({},n);return r.type=l2[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(br(r)||(r={silent:!!r}),!!wI[n.type]&&this._model){if(this[Ja]){this._pendingActions.push(n);return}var o=r.silent;c9.call(this,n,o);var a=r.flush;a?this._zr.flush():a!==!1&&Rr.browser.weChat&&this._throttledZrFlush(),H_.call(this,o),W_.call(this,o)}},t.prototype.updateLabelLayout=function(){ad.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(),a9(p,!0),a9(p,!1),m.plan()},a9=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,E=p._api,x=0;xm.get("hoverLayerThreshold")&&!Rr.node&&!Rr.worker&&m.eachSeries(function(k){if(!k.preventUsingHoverLayer){var C=p._chartsMap[k.__viewId];C.__alive&&C.eachRendered(function(E){E.states.emphasis&&(E.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 E=p.childrenRef(),x=0;x0?{duration:S,delay:g.get("delay"),easing:g.get("easing")}:null;m.eachRendered(function(C){if(C.states&&C.states.emphasis){if(i2(C))return;if(C instanceof ro&&Jlt(C),C.__dirty){var E=C.prevStates;E&&C.useStates(E)}if(b){C.stateTransition=k;var x=C.getTextContent(),_=C.getTextGuideLine();x&&(x.stateTransition=k),_&&(_.stateTransition=k)}C.__dirty&&o(C)}})}poe=function(p){return new((function(m){Rn(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){cI(b,S),mc(p)},g.prototype.leaveEmphasis=function(b,S){dI(b,S),mc(p)},g.prototype.enterBlur=function(b){Vlt(b),mc(p)},g.prototype.leaveBlur=function(b){Gve(b),mc(p)},g.prototype.enterSelect=function(b){Kve(b),mc(p)},g.prototype.leaveSelect=function(b){qve(b),mc(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})(Rme))(p)},wge=function(p){function m(g,b){for(var S=0;S=0)){goe.push(n);var a=tge.wrapStageHandler(n,o);a.__prio=t,a.__raw=n,e.push(a)}}function Ige(e,t){gU[e]=t}function iht(e,t,n){var r=Oft("registerMap");r&&r(e,t,n)}var oht=udt;zg(HH,Fdt);zg($L,jdt);zg($L,Udt);zg(HH,eft);zg($L,tft);zg(gge,Mft);Tge(Dme);Age(Bft,Wct);Ige("default",Vdt);Q1({type:og,event:og,update:og},_u);Q1({type:F4,event:F4,update:F4},_u);Q1({type:t2,event:t2,update:t2},_u);Q1({type:j4,event:j4,update:j4},_u);Q1({type:n2,event:n2,update:n2},_u);xge("light",Jdt);xge("dark",oge);function G_(e){return e==null?0:e.length||1}function yoe(e){return e}var sht=(function(){function e(t,n,r,o,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||yoe,this._newKeyGetter=o||yoe,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_=br,wp=vr,hht=typeof Int32Array>"u"?Array:Int32Array,pht="e\0\0",boe=-1,vht=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],mht=["_approximateExtent"],_oe,Ox,q_,Y_,h9,X_,p9,Oge=(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;Pge(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===Hc;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),Gn(a)?a=a.slice():K_(a)&&(a=cn({},a)),o[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,K_(n)?cn(o,n):o[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){K_(t)?cn(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?cn(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;Rlt(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){wt(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:wp(this.dimensions,this._getDimInfo,this),this.hostModel)),h9(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Wr(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=r.apply(this,arguments);return n.apply(this,[o].concat(iH(arguments)))})},e.internalField=(function(){_oe=function(t){var n=t._invertedIndicesMap;wt(n,function(r,o){var a=t._dimInfos[o],s=a.ordinalMeta,l=t._store;if(s){r=n[o]=new hht(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),o[n]=c}}})(),e})();function $ge(e,t){jH(e)||(e=Ome(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=di(),a=[],s=yht(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&Dge(s),c=r===e.dimensionsDefine,f=c?Mge(e):Rge(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=di(h),m=new zme(s),g=0;g0&&(r.name=o+(a-1)),a++,t.set(o,a)}}function yht(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return wt(t,function(a){var s;br(a)&&(s=a.dimsDef)&&(o=Math.max(o,s.length))}),o}function bht(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 _ht=(function(){function e(t){this.coordSysDims=[],this.axisMap=di(),this.categoryAxisMap=di(),this.coordSysName=t}return e})();function Sht(e){var t=e.get("coordinateSystem"),n=new _ht(t),r=kht[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var kht={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",vd).models[0],a=e.getReferringComponents("yAxis",vd).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",vd).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",vd).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();wt(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 wht(e,t,n){n=n||{};var r=n.byIndex,o=n.stackedCoordDimension,a,s,l;Cht(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),f,h,p,m;if(wt(a,function(E,x){cr(E)&&(a[x]=E={name:E}),c&&!E.isExtraCoord&&(!r&&!f&&E.ordinalMeta&&(f=E),!h&&E.type!=="ordinal"&&E.type!=="time"&&(!o||o===E.coordDim)&&(h=E))}),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;wt(a,function(E){E.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 Cht(e){return!Pge(e.schema)}function x1(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Eht(e,t){return x1(e,t)?e.getCalculationInfo("stackResultDimension"):t}function xht(e,t){var n=e.get("coordinateSystem"),r=FH.get(n),o;return t&&t.coordSysDims&&(o=vr(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=uht(c)}return s})),o||(o=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),o}function Tht(e,t,n){var r,o;return n&&wt(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 YH(e,t,n){n=n||{};var r=t.getSourceManager(),o,a=!1;o=r.getSource(),a=o.sourceFormat===Hc;var s=Sht(t),l=xht(t,s),c=n.useEncodeDefaulter,f=Wr(c)?c:c?Ss(_ct,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:f,canOmitUnusedDimensions:!a},p=$ge(o,h),m=Tht(p.dimensions,n.createInvertedIndices,s),g=a?null:r.getSharedDataStore(p),b=wht(t,{schema:p,store:g}),S=new Oge(p,t);S.setCalculationInfo(b);var k=m!=null&&Aht(o)?function(C,E,x,_){return _===m?x:this.defaultDimValueGetter(C,E,x,_)}:null;return S.hasItemOption=!1,S.initData(a?o:g,null,k),S}function Aht(e){if(e.sourceFormat===Hc){var t=Iht(e.data||[]);return!Gn(Vk(t))}}function Iht(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})();hL(Ef);var Lht=0,yU=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Lht}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&vr(r,Pht);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(!cr(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=di(this.categories))},e})();function Pht(e){return br(e)&&e.value!=null?e.value:e+""}function bU(e){return e.type==="interval"||e.type==="log"}function Rht(e,t,n,r){var o={},a=e[1]-e[0],s=o.interval=Eve(a/t);n!=null&&sr&&(s=o.interval=r);var l=o.intervalPrecision=Nge(s),c=o.niceTickExtent=[Vs(Math.ceil(e[0]/s)*s,l),Vs(Math.floor(e[1]/s)*s,l)];return Mht(c,e),o}function v9(e){var t=Math.pow(10,hH(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Vs(n*t)}function Nge(e){return mh(e)+2}function Soe(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Mht(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Soe(e,0,t),Soe(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function NL(e,t){return e>=t[0]&&e<=t[1]}function BL(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function FL(e,t){return e*(t[1]-t[0])+t[0]}var XH=(function(e){Rn(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var o=r.getSetting("ordinalMeta");return o||(o=new yU({})),Gn(o)&&(o=new yU({categories:vr(o,function(a){return br(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:cr(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),NL(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),BL(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(FL(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(XH);var wm=Vs,eb=(function(e){Rn(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 NL(n,this._extent)},t.prototype.normalize=function(n){return BL(n,this._extent)},t.prototype.scale=function(n){return FL(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=Nge(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:wm(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 Uge(e){var t=$ht(e),n=[];return wt(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=zo(r.get("barWidth"),l),S=zo(r.get("barMaxWidth"),l),k=zo(r.get("barMinWidth")||(zge(r)?.5:1),l),C=r.get("barGap"),E=r.get("barCategoryGap");n.push({bandWidth:l,barWidth:b,barMaxWidth:S,barMinWidth:k,barGap:C,barCategoryGap:E,axisKey:ZH(a),stackId:Fge(r)})}),Nht(n)}function Nht(e){var t={};wt(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 wt(t,function(r,o){n[o]={};var a=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=Ho(a).length;l=Math.max(35-c*4,15)+"%"}var f=zo(l,s),h=zo(r.gap,1),p=r.remainedWidth,m=r.autoWidthCount,g=(p-f)/(m+(m-1)*h);g=Math.max(g,0),wt(a,function(C){var E=C.maxWidth,x=C.minWidth;if(C.width){var _=C.width;E&&(_=Math.min(_,E)),x&&(_=Math.max(_,x)),C.width=_,p-=_+h*_,m--}else{var _=g;E&&E<_&&(_=Math.min(E,p)),x&&x>_&&(_=x),_!==g&&(C.width=_,p-=_+h*_,m--)}}),g=(p-f)/(m+(m-1)*h),g=Math.max(g,0);var b=0,S;wt(a,function(C,E){C.width||(C.width=g),S=C,b+=C.width*(1+h)}),S&&(b-=S.width*h);var k=-b/2;wt(a,function(C,E){n[o][E]=n[o][E]||{bandWidth:s,offset:k,width:C.width},k+=C.width*(1+h)})}),n}function Bht(e,t,n){if(e&&t){var r=e[ZH(t)];return r}}function Fht(e,t){var n=jge(e,t),r=Uge(n);wt(n,function(o){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=Fge(o),f=r[ZH(l)][c],h=f.offset,p=f.width;a.setLayout({bandWidth:f.bandWidth,offset:h,size:p})})}function jht(e){return{seriesType:e,plan:zH(),reset:function(t){if(Vge(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=x1(n,f)&&!!n.getCalculationInfo("stackedOnSeries"),m=a.isHorizontal(),g=Uht(o,a),b=zge(t),S=t.get("barMinHeight")||0,k=h&&n.getDimensionIndex(h),C=n.getLayout("size"),E=n.getLayout("offset");return{progress:function(x,_){for(var A=x.count,R=b&&gh(A*3),M=b&&c&&gh(A*3),D=b&&gh(A),$=r.master.getRect(),L=m?$.width:$.height,B,F=_.getStore(),U=0;(B=x.next())!=null;){var z=F.get(p?k:s,B),G=F.get(l,B),Y=g,re=void 0;p&&(re=+z-F.get(s,B));var te=void 0,X=void 0,K=void 0,J=void 0;if(m){var ie=r.dataToPoint([z,G]);if(p){var se=r.dataToPoint([re,G]);Y=se[0]}te=Y,X=ie[1]+E,K=ie[0]-Y,J=C,Math.abs(K)0?n:1:n))}var Vht=function(e,t,n,r){for(;n>>1;e[o][1]o&&(this._approxInterval=o);var l=$x.length,c=Math.min(Vht($x,this._approxInterval,0,l),l-1);this._interval=$x[c][1],this._minLevelUnit=$x[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return bo(n)?n:+Oh(n)},t.prototype.contain=function(n){return NL(this.parse(n),this._extent)},t.prototype.normalize=function(n){return BL(this.parse(n),this._extent)},t.prototype.scale=function(n){return FL(n,this._extent)},t.type="time",t})(eb),$x=[["second",RH],["minute",MH],["hour",o2],["quarter-day",o2*6],["half-day",o2*12],["day",Ic*1.2],["half-week",Ic*3.5],["week",Ic*7],["month",Ic*31],["quarter",Ic*95],["half-year",die/2],["year",die]];function zht(e,t,n,r){var o=Oh(t),a=Oh(n),s=function(b){return hie(o,b,r)===hie(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 Hht(e,t){return e/=Ic,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Wht(e){var t=30*Ic;return e/=t,e>6?6:e>3?3:e>2?2:1}function Ght(e){return e/=o2,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function koe(e,t){return e/=t?MH:RH,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Kht(e){return Eve(e)}function qht(e,t,n){var r=new Date(e);switch(Qy(t)){case"year":case"month":r[gme(n)](0);case"day":r[yme(n)](1);case"hour":r[bme(n)](0);case"minute":r[_me(n)](0);case"second":r[Sme(n)](0),r[kme(n)](0)}return r.getTime()}function Yht(e,t,n,r){var o=1e4,a=vme,s=0;function l(L,B,F,U,z,G,Y){for(var re=new Date(B),te=B,X=re[U]();te1&&G===0&&F.unshift({value:F[0].value-te})}}for(var G=0;G=r[0]&&E<=r[1]&&p++)}var x=(r[1]-r[0])/t;if(p>x*1.5&&m>x/1.5||(f.push(k),p>x||e===a[g]))break}h=[]}}}for(var _=Pa(vr(f,function(L){return Pa(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=[Vs(Jht(r[0]/a)*a),Vs(Zht(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){c2.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=ed(n)/ed(this.base),NL(n,this._extent)},t.prototype.normalize=function(n){return n=ed(n)/ed(this.base),BL(n,this._extent)},t.prototype.scale=function(n){return n=FL(n,this._extent),Nx(this.base,n)},t.type="log",t})(Ef),Wge=JH.prototype;Wge.getMinorTicks=c2.getMinorTicks;Wge.getLabel=c2.getLabel;function Bx(e,t){return Xht(e,mh(t))}Ef.registerClass(JH);var Qht=(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[tpt[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=ept[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),ept={min:"_determinedMin",max:"_determinedMax"},tpt={min:"_dataMin",max:"_dataMax"};function npt(e,t,n){var r=e.rawExtentInfo;return r||(r=new Qht(e,t,n),e.rawExtentInfo=r,r)}function Fx(e,t){return t==null?null:ZA(t)?NaN:e.parse(t)}function Gge(e,t){var n=e.type,r=npt(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=jge("bar",s),c=!1;if(wt(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var f=Uge(l),h=rpt(o,a,t,f);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function rpt(e,t,n,r){var o=n.axis.getExtent(),a=Math.abs(o[1]-o[0]),s=Bht(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;wt(s,function(g){l=Math.min(g.offset,l)});var c=-1/0;wt(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 Coe(e,t){var n=t,r=Gge(e,n),o=r.extent,a=n.get("splitNumber");e instanceof JH&&(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 ipt(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new XH({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Hge({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ef.getClass(t)||eb)}}function opt(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):cr(t)?(function(r){return function(o){var a=e.scale.getLabel(o),s=r.replace("{value}",a??"");return s}})(t):Wr(t)?(function(r){return function(o,a){return n!=null&&(a=o.value-n),r(QH(e,o),a,o.level!=null?{level:o.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function QH(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function spt(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,o,a=n.getExtent();n instanceof XH?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||(Eoe.push(e),Wr(e)&&(e={install:e}),e.install(cpt))}var rk=Ts();function qge(e,t){var n=vr(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 dpt(e){var t=e.getLabelModel().get("customValues");if(t){var n=tb(e),r=e.scale.getExtent(),o=qge(e,t),a=Pa(o,function(s){return s>=r[0]&&s<=r[1]});return{labels:vr(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?hpt(e):vpt(e)}function fpt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),o=qge(e,n);return{ticks:Pa(o,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?ppt(e,t):{ticks:vr(e.scale.getTicks(),function(a){return a.value})}}function hpt(e){var t=e.getLabelModel(),n=Yge(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Yge(e,t){var n=Xge(e,"labels"),r=eW(t),o=Zge(n,r);if(o)return o;var a,s;return Wr(r)?a=e0e(e,r):(s=r==="auto"?mpt(e):r,a=Qge(e,s)),Jge(n,r,{labels:a,labelCategoryInterval:s})}function ppt(e,t){var n=Xge(e,"ticks"),r=eW(t),o=Zge(n,r);if(o)return o;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Wr(r))a=e0e(e,r,!0);else if(r==="auto"){var l=Yge(e,e.getLabelModel());s=l.labelCategoryInterval,a=vr(l.labels,function(c){return c.tickValue})}else s=r,a=Qge(e,s,!0);return Jge(n,r,{ticks:a,tickCategoryInterval:s})}function vpt(e){var t=e.scale.getTicks(),n=tb(e);return{labels:vr(t,function(r,o){return{level:r.level,formattedLabel:n(r,o),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function Xge(e,t){return rk(e)[t]||(rk(e)[t]=[])}function Zge(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=dH(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,E=g/p;isNaN(C)&&(C=1/0),isNaN(E)&&(E=1/0);var x=Math.max(0,Math.floor(Math.min(C,E))),_=rk(e.model),A=e.getExtent(),R=_.lastAutoInterval,M=_.lastTickCount;return R!=null&&M!=null&&Math.abs(R-x)<=1&&Math.abs(M-s)<=1&&R>x&&_.axisExtent0===A[0]&&_.axisExtent1===A[1]?x=R:(_.lastTickCount=s,_.lastAutoInterval=x,_.axisExtent0=A[0],_.axisExtent1=A[1]),x}function ypt(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 Qge(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=Kge(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 e0e(e,t,n){var r=e.scale,o=tb(e),a=[];return wt(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 xoe=[0,1],bpt=(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 pat(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(),Toe(r,o.count())),Wj(t,xoe,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(r=r.slice(),Toe(r,o.count()));var a=Wj(t,r,xoe,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=fpt(this,n),o=r.ticks,a=vr(o,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return _pt(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=vr(r,function(a){return vr(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return o},e.prototype.getViewLabels=function(){return dpt(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 gpt(this)},e})();function Toe(e,t){var n=e[1]-e[0],r=t,o=n/r/2;e[0]+=o,e[1]-=o}function _pt(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;wt(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=Vs(g),b=Vs(b),p?g>b:g0){t=t/180*Math.PI,Yp.fromArray(e[0]),ls.fromArray(e[1]),Ia.fromArray(e[2]),Or.sub(Xp,Yp,ls),Or.sub(Qd,Ia,ls);var n=Xp.len(),r=Qd.len();if(!(n<.001||r<.001)){Xp.scale(1/n),Qd.scale(1/r);var o=Xp.dot(Qd),a=Math.cos(t);if(a1&&Or.copy(Pl,Ia),Pl.toArray(e[1])}}}}function kpt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Yp.fromArray(e[0]),ls.fromArray(e[1]),Ia.fromArray(e[2]),Or.sub(Xp,ls,Yp),Or.sub(Qd,Ia,ls);var r=Xp.len(),o=Qd.len();if(!(r<.001||o<.001)){Xp.scale(1/r),Qd.scale(1/o);var a=Xp.dot(t),s=Math.cos(n);if(a=c)Or.copy(Pl,Ia);else{Pl.scaleAndAdd(Qd,l/Math.tan(Math.PI/2-h));var p=Ia.x!==ls.x?(Pl.x-ls.x)/(Ia.x-ls.x):(Pl.y-ls.y)/(Ia.y-ls.y);if(isNaN(p))return;p<0?Or.copy(Pl,ls):p>1&&Or.copy(Pl,Ia)}Pl.toArray(e[1])}}}}function m9(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 wpt(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=Lj(r[0],r[1]),a=Lj(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=c7([],r[1],r[0],s/o),c=c7([],r[1],r[2],s/a),f=c7([],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){x($*D,0,s);var L=$+R;L<0&&_(-L*D,1)}else _(-R*D,1)}}function x(R,M,D){R!==0&&(f=!0);for(var $=M;$0)for(var L=0;L0;L--){var z=D[L-1]*U;x(-z,L,s)}}}function A(R){var M=R<0?-1:1;R=Math.abs(R);for(var D=Math.ceil(R/(s-1)),$=0;$0?x(D,0,$+1):x(-D,s-$-1,s),R-=D,R<=0)return}return f}function Apt(e,t,n,r){return Tpt(e,"y","height",t,n)}function Ipt(e){var t=[];e.sort(function(S,k){return k.priority-S.priority});var n=new Ji(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}}z.prevElClipPaths&&C.restore()};if(E)if(E.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?jx:0),this._needsManuallyCompositing),h.__builtin__||rH("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&Xu&&!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,wt(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Zi(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})(Cd);function tW(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 nW=(function(e){Rn(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=E1(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Opt,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(){cI(this.childAt(0))},t.prototype.downplay=function(){dI(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):zl(m,g,l,r),xH(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,Dc(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 E=a&&a.itemModel?a.itemModel:n.getItemModel(r),x=E.getModel("emphasis");f=x.getModel("itemStyle").getItemStyle(),p=E.getModel(["select","itemStyle"]).getItemStyle(),h=E.getModel(["blur","itemStyle"]).getItemStyle(),m=x.get("focus"),g=x.get("blurScope"),b=x.get("disabled"),S=Kk(E),k=x.getShallow("scale"),C=E.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(_||0)*Math.PI/180||0);var A=sge(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 Tv){var D=l.style;l.useStyle(cn({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},R))}else l.__isEmptyBrush?l.useStyle(cn({},R)):l.useStyle(R),l.style.decal=null,l.setColor(M,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var $=n.getItemVisual(r,"liftZ"),L=this._z2;$!=null?L==null&&(this._z2=l.z2,l.z2+=$):L!=null&&(l.z2=L,this._z2=null);var B=s&&s.useNameLabel;Gk(l,S,{labelFetcher:c,labelDataIndex:r,defaultText:F,inheritColor:M,defaultOpacity:R.opacity});function F(G){return B?n.getName(G):tW(n,G)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var U=l.ensureState("emphasis");U.style=f,l.ensureState("select").style=p,l.ensureState("blur").style=h;var z=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;U.scaleX=this._sizeX*z,U.scaleY=this._sizeY*z,this.setSymbolScale(1),Y2(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=Bi(this).dataIndex,l=o&&o.animation;if(this.silent=a.silent=!0,o&&o.fadeLabel){var c=a.getTextContent();c&&pI(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();pI(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},t.getSymbolSize=function(n,r){return gft(n.getItemVisual(r,"symbolSize"))},t})(Ua);function Opt(e,t){this.parent.drift(e,t)}function y9(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 Loe(e){return e!=null&&!br(e)&&(e={isIgnore:e}),e||{}}function Poe(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:Kk(t),cursorStyle:t.get("cursor")}}var $pt=(function(){function e(t){this.group=new Ua,this._SymbolCtor=t||nW}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Loe(n);var r=this.group,o=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=Poe(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(y9(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(!y9(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):zl(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=Poe(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Loe(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 o0e(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 Bpt(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 Fpt(e,t,n,r,o,a,s,l){for(var c=Bpt(e,t),f=[],h=[],p=[],m=[],g=[],b=[],S=[],k=i0e(o,t,s),C=e.getLayout("points")||[],E=t.getLayout("points")||[],x=0;x=o||S<0)break;if(sg(C,E)){if(c){S+=a;continue}break}if(S===n)e[a>0?"moveTo":"lineTo"](C,E),p=C,m=E;else{var x=C-f,_=E-h;if(x*x+_*_<.5){S+=a;continue}if(s>0){for(var A=S+a,R=t[A*2],M=t[A*2+1];R===C&&M===E&&k=r||sg(R,M))g=C,b=E;else{L=R-f,B=M-h;var z=C-f,G=R-C,Y=E-h,re=M-E,te=void 0,X=void 0;if(l==="x"){te=Math.abs(z),X=Math.abs(G);var K=L>0?1:-1;g=C-K*te*s,b=E,F=C+K*X*s,U=E}else if(l==="y"){te=Math.abs(Y),X=Math.abs(re);var J=B>0?1:-1;g=C,b=E-J*te*s,F=C,U=E+J*X*s}else te=Math.sqrt(z*z+Y*Y),X=Math.sqrt(G*G+re*re),$=X/(X+te),g=C-L*s*(1-$),b=E-B*s*(1-$),F=C+L*s*$,U=E+B*s*$,F=Cp(F,Ep(R,C)),U=Cp(U,Ep(M,E)),F=Ep(F,Cp(R,C)),U=Ep(U,Cp(M,E)),L=F-C,B=U-E,g=C-L*te/X,b=E-B*te/X,g=Cp(g,Ep(f,C)),b=Cp(b,Ep(h,E)),g=Ep(g,Cp(f,C)),b=Ep(b,Cp(h,E)),L=C-g,B=E-b,F=C+L*X/te,U=E+B*X/te}e.bezierCurveTo(p,m,g,b,C,E),p=F,m=U}else e.lineTo(C,E)}f=C,h=E,S+=a}return k}var s0e=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),jpt=(function(e){Rn(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 s0e},t.prototype.buildPath=function(n,r){var o=r.points,a=0,s=o.length/2;if(r.connectNulls){for(;s>0&&sg(o[s*2-2],o[s*2-1]);s--);for(;a=0){var _=f?(b-c)*x+c:(g-l)*x+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++],E=a[p++];var A=f?eI(l,g,S,C,n,h):eI(c,b,k,E,n,h);if(A>0)for(var R=0;R=0){var _=f?Ra(c,b,k,E,M):Ra(l,g,S,C,M);return f?[n,_]:[_,n]}}l=C,c=E;break}}},t})(ro),Upt=(function(e){Rn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(s0e),Vpt=(function(e){Rn(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 Upt},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&&sg(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 Gpt(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=vr(a.stops,function(x){return{coord:c.toGlobalCoord(c.dataToCoord(x.value)),color:x.color}}),h=f.length,p=a.outerColors.slice();h&&f[0].coord>f[h-1].coord&&(f.reverse(),p.reverse());var m=Wpt(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";wt(m,function(x){x.offset=(x.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 E=new ime(0,0,0,0,m,!0);return E[o]=S,E[o+"2"]=k,E}}}function Kpt(e,t,n){var r=e.get("showAllSymbol"),o=r==="auto";if(!(r&&!o)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(o&&qpt(a,t))){var s=t.mapDimension(a.dim),l={};return wt(a.getViewLabels(),function(c){var f=a.scale.getRawOrdinalNumber(c.tickValue);l[f]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function qpt(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 Ypt(e,t){return isNaN(e)||isNaN(t)}function Xpt(e){for(var t=e.length/2;t>0&&Ypt(e[t*2-2],e[t*2-1]);t--);return t-1}function $oe(e,t){return[e[t*2],e[t*2+1]]}function Zpt(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 u0e(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}Bi(b).seriesIndex=n.seriesIndex,Y2(b,Y,re,te);var K=Ooe(n.get("smooth")),J=n.get("smoothMonotone");if(b.setShape({smooth:K,smoothMonotone:J,connectNulls:M}),S){var ie=l.getCalculationInfo("stackedOnSeries"),se=0;S.useStyle(Qi(f.getAreaStyle(),{fill:F,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ie&&(se=Ooe(ie.get("smooth"))),S.setShape({smooth:K,stackedOnSmooth:se,smoothMonotone:J,connectNulls:M}),fI(S,n,"areaStyle"),Bi(S).seriesIndex=n.seriesIndex,Y2(S,Y,re,te)}var ae=this._changePolyState;l.eachItemGraphicEl(function(Ce){Ce&&(Ce.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=a,this._stackedOnPoints=A,this._points=h,this._step=L,this._valueOrigin=x,n.get("triggerLineEvent")&&(this.packEventData(n,b),S&&this.packEventData(n,S))},t.prototype.packEventData=function(n,r){Bi(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=wg(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 nW(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 Oc.prototype.highlight.call(this,n,r,o,a)},t.prototype.downplay=function(n,r,o,a){var s=n.getData(),l=wg(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 Oc.prototype.downplay.call(this,n,r,o,a)},t.prototype._changePolyState=function(n){var r=this._polygon;Hre(this._polyline,n),r&&Hre(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new jpt({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 Vpt({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");Wr(h)&&(h=h(null));var p=f.get("animationDelay")||0,m=Wr(p)?p(null):p;n.eachItemGraphicEl(function(g,b){var S=g;if(S){var k=[g.x,g.y],C=void 0,E=void 0,x=void 0;if(o)if(s){var _=o,A=r.pointToCoord(k);a?(C=_.startAngle,E=_.endAngle,x=-A[1]/180*Math.PI):(C=_.r0,E=_.r,x=A[0])}else{var R=o;a?(C=R.x,E=R.x+R.width,x=g.x):(C=R.y+R.height,E=R.y,x=g.y)}var M=E===C?0:(x-C)/(E-C);c&&(M=1-M);var D=Wr(p)?p(b):h*M+m,$=S.getSymbolPath(),L=$.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}),$.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,o){var a=n.getModel("endLabel");if(u0e(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 Va({z2:200}),f.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=Xpt(c);h>=0&&(Gk(l,Kk(n,"endLabel"),{inheritColor:o,labelFetcher:n,labelDataIndex:h,defaultText:function(p,m,g){return g!=null?r0e(s,g):tW(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(),E=k.inverse,x=r.shape,_=E?C?x.x:x.y+x.height:C?x.x+x.width:x.y,A=(C?S:0)*(E?-1:1),R=(C?0:-S)*(E?-1:1),M=C?"x":"y",D=Zpt(p,_,M),$=D.range,L=$[1]-$[0],B=void 0;if(L>=1){if(L>1&&!g){var F=$oe(p,$[0]);f.attr({x:F[0]+A,y:F[1]+R}),s&&(B=m.getRawValue($[0]))}else{var F=h.getPointOn(_,M);F&&f.attr({x:F[0]+A,y:F[1]+R});var U=m.getRawValue($[0]),z=m.getRawValue($[1]);s&&(B=Dat(o,b,U,z,D.t))}a.lastFrameIndex=$[0]}else{var G=n===1||a.lastFrameIndex>0?$[0]:0,F=$oe(p,G);s&&(B=m.getRawValue(G)),f.attr({x:F[0]+A,y:F[1]+R})}if(s){var Y=CL(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=Fpt(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=xp(m.stackedOnCurrent,m.current,o,s,c),g=xp(m.current,null,o,s,c),k=xp(m.stackedOnNext,m.next,o,s,c),S=xp(m.next,null,o,s,c)),Doe(g,S)>3e3||h&&Doe(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(),zl(f,C,p),h&&(h.setShape({points:g,stackedOnPoints:b}),h.stopAnimation(),zl(h,{shape:{stackedOnPoints:k}},p),f.shape.points!==h.shape.points&&(h.shape.points=f.shape.points));for(var E=[],x=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;cr(a)?b=tvt[a]:Wr(a)&&(b=a),b&&t.setData(o.downSample(o.mapDimension(f.dim),1/g,b,nvt))}}}}}function d0e(e){e.registerChartView(Qpt),e.registerSeriesModel(Dpt),e.registerLayout(evt("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,c0e("line"))}var SU=(function(e){Rn(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 YH(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)wt(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 E=void 0,x=void 0,_=1,A=0;Ak){x=(R+E)/2;break}A===1&&(_=M-b[0].tickValue)}x==null&&(E?E&&(x=b[b.length-1].coord):x=b[0].coord),l[g]=m.toGlobalCoord(x)}});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})(Cd);Cd.registerClass(SU);var rvt=(function(e){Rn(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 YH(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=fme(SU.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})(SU),ivt=(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})(),Noe=(function(e){Rn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new ivt},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){vI(a,n,Bi(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})(Oc),Boe={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=_9(t.x,e.x),l=S9(t.x+t.width,o),c=_9(t.y,e.y),f=S9(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=S9(t.r,e.r),a=_9(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}},Foe={cartesian2d:function(e,t,n,r,o,a,s,l,c){var f=new zs({shape:cn({},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?Noe:Av,h=new f({shape:r,z2:1});h.name="item";var p=f0e(o);if(h.calculateTextPosition=ovt(p,{isRoundCap:f===Noe}),a){var m=h.shape,g=o?"r":"endAngle",b={};m[g]=o?r.r0:r.startAngle,b[g]=r[g],(l?zl:Dc)(h,{shape:b},a)}return h}};function uvt(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 joe(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?zl:Dc)(n,{shape:c},t,o,null);var h=t?e.baseAxis.model:null;(s?zl:Dc)(n,{shape:f},h,o)}function Uoe(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 fvt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function f0e(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 zoe(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);cn(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=Kk(r);Gk(e,b,{labelFetcher:a,labelDataIndex:n,defaultText:tW(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,svt(e,k==="outside"?g:k,f0e(s),r.get(["label","rotate"]))}qut(S,b,a.getRawValue(n),function(E){return r0e(t,E)});var C=r.getModel(["emphasis"]);Y2(e,C.get("focus"),C.get("blurScope"),C.get("disabled")),fI(e,r),fvt(o)&&(e.style.fill="none",e.style.stroke="none",wt(e.states,function(E){E.style&&(E.style.fill=E.style.stroke="none")}))}function hvt(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 pvt=(function(){function e(){}return e})(),Hoe=(function(e){Rn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new pvt},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 vvt(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 h0e(e,t,n){if(rW(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 mvt(e,t,n){var r=e.type==="polar"?Av:zs;return new r({shape:h0e(t,n,e),silent:!0,z2:0})}function p0e(e){e.registerChartView(lvt),e.registerSeriesModel(rvt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ss(Fht,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,jht("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,c0e("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 Koe=Math.PI*2,Hx=Math.PI/180;function v0e(e,t){return k1(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function m0e(e,t){var n=v0e(e,t),r=e.get("center"),o=e.get("radius");Gn(o)||(o=[0,o]);var a=zo(n.width,t.getWidth()),s=zo(n.height,t.getHeight()),l=Math.min(a,s),c=zo(o[0],l/2),f=zo(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 Gn(r)||(r=[r,r]),h=zo(r[0],a)+n.x,p=zo(r[1],s)+n.y;return{cx:h,cy:p,r0:c,r:f}}function gvt(e,t,n){t.eachSeriesByType(e,function(r){var o=r.getData(),a=o.mapDimension("value"),s=v0e(r,n),l=m0e(r,n),c=l.cx,f=l.cy,h=l.r,p=l.r0,m=-r.get("startAngle")*Hx,g=r.get("endAngle"),b=r.get("padAngle")*Hx;g=g==="auto"?m-Koe:-g*Hx;var S=r.get("minAngle")*Hx,k=S+b,C=0;o.each(a,function(re){!isNaN(re)&&C++});var E=o.getSum(a),x=Math.PI/(E||C)*2,_=r.get("clockwise"),A=r.get("roseType"),R=r.get("stillShowZeroSum"),M=o.getDataExtent(a);M[0]=0;var D=_?1:-1,$=[m,g],L=D*b/2;Nve($,!_),m=$[0],g=$[1];var B=g0e(r);B.startAngle=m,B.endAngle=g,B.clockwise=_;var F=Math.abs(g-m),U=F,z=0,G=m;if(o.setLayout({viewRect:s,r:h}),o.each(a,function(re,te){var X;if(isNaN(re)){o.setItemLayout(te,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:f,r0:p,r:A?NaN:h});return}A!=="area"?X=E===0&&R?x:re*x:X=F/C,XX?(J=G+D*X/2,ie=J):(J=G+L,ie=K-L),o.setItemLayout(te,{angle:X,startAngle:J,endAngle:ie,clockwise:_,cx:c,cy:f,r0:p,r:A?Wj(re,M,[p,h]):h}),G=K}),Un?C:k,A=Math.abs(x.label.y-n);if(A>=_.maxY){var R=x.label.x-t-x.len2*o,M=r+x.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 k9(e){return e.position==="center"}function Svt(e){var t=e.getData(),n=[],r,o,a=!1,s=(e.get("minShowLabelAngle")||0)*bvt,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,$=M.getTextContent(),L=M.getTextGuideLine(),B=t.getItemModel(R),F=B.getModel("label"),U=F.get("position")||B.get(["emphasis","label","position"]),z=F.get("distanceToLabelLine"),G=F.get("alignTo"),Y=zo(F.get("edgeDistance"),f),re=F.get("bleedMargin"),te=B.getModel("labelLine"),X=te.get("length");X=zo(X,f);var K=te.get("length2");if(K=zo(K,f),Math.abs(D.endAngle-D.startAngle)0?"right":"left":ie>0?"left":"right"}var Re=Math.PI,je=0,Qe=F.get("rotate");if(bo(Qe))je=Qe*(Re/180);else if(U==="center")je=0;else if(Qe==="radial"||Qe===!0){var rt=ie<0?-J+Re:-J;je=rt}else if(Qe==="tangential"&&U!=="outside"&&U!=="outer"){var yt=Math.atan2(ie,se);yt<0&&(yt=Re*2+yt);var ct=se>0;ct&&(yt=Re+yt),je=yt-Re}if(a=!!je,$.x=ae,$.y=Ce,$.rotation=je,$.setStyle({verticalAlign:"middle"}),Ie){$.setStyle({align:ve});var Wt=$.states.select;Wt&&(Wt.x+=$.x,Wt.y+=$.y)}else{var Et=$.getBoundingRect().clone();Et.applyTransform($.getComputedTransform());var Tt=($.style.margin||0)+2.1;Et.y-=Tt/2,Et.height+=Tt,n.push({label:$,labelLine:L,position:U,len:X,len2:K,minTurnAngle:te.get("minTurnAngle"),maxSurfaceAngle:te.get("maxSurfaceAngle"),surfaceNormal:new Or(ie,se),linePoints:ke,textAlign:ve,labelDistance:z,labelAlignTo:G,edgeDistance:Y,bleedMargin:re,rect:Et,unconstrainedWidth:Et.width,labelStyleWidth:$.style.width})}M.setTextConfig({inside:Ie})}}),!a&&e.get("avoidLabelOverlap")&&_vt(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})(Oc);function Cvt(e,t,n){t=Gn(t)&&{coordDimensions:t}||cn({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=$ge(r,t).dimensions,a=new Oge(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})(),xvt=Ts(),Tvt=(function(e){Rn(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(Co(this.getData,this),Co(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Cvt(this,{coordDimensions:["value"],encodeDefaulter:Ss(Sct,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),o=xvt(r),a=o.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=o.seats=vat(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){Gj(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})(Cd);function Avt(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!(bo(s)&&!isNaN(s)&&s<0)})}}}function b0e(e){e.registerChartView(wvt),e.registerSeriesModel(Tvt),ift("pie",e.registerAction),e.registerLayout(Ss(gvt,"pie")),e.registerProcessor(yvt("pie")),e.registerProcessor(Avt("pie"))}var Ivt=(function(e){Rn(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})(to),kU=(function(e){Rn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",vd).models[0]},t.type="cartesian2dAxis",t})(to);kf(kU,upt);var _0e={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)"]}}},Lvt=Zi({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},_0e),iW=Zi({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}}},_0e),Pvt=Zi({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},iW),Rvt=Qi({logBase:10},iW);const Mvt={category:Lvt,value:iW,time:Pvt,log:Rvt};var Dvt={value:1,category:1,time:1,log:1};function Yoe(e,t,n,r){wt(Dvt,function(o,a){var s=Zi(Zi({},Mvt[a],!0),r,!0),l=(function(c){Rn(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=J2(this),g=m?RL(h):{},b=p.getTheme();Zi(h,b.get(a+"Axis")),Zi(h,this.getDefaultOption()),h.type=Xoe(h),m&&w1(h,g,m)},f.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=yU.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",Xoe)}function Xoe(e){return e.type||(e.data?"category":"value")}var Ovt=(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 vr(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Pa(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})(),wU=["x","y"];function Zoe(e){return e.type==="interval"||e.type==="time"}var $vt=(function(e){Rn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=wU,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Zoe(n)||!Zoe(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=lH([],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 Ji(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 Mc(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 Mc(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 Ji(a,s,l,c)},t})(Ovt),Nvt=(function(e){Rn(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})(bpt);function CU(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),W2(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 Joe(e){return e.get("coordinateSystem")==="cartesian2d"}function Qoe(e){var t={xAxisModel:null,yAxisModel:null};return wt(t,function(n,r){var o=r.replace(/Model$/,""),a=e.getReferringComponents(o,vd).models[0];t[r]=a}),t}var w9=Math.log;function Bvt(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=Gge(e,t),f=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var m=w9(e.base);f=[w9(f[0])/m,w9(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=v9(b),S=f[1]-b*s;else{var C=e.getTicks().length-1;C>s&&(b=v9(b));var E=b*s;k=Math.ceil(f[1]/b)*b,S=Vs(k-E),S<0&&f[0]>=0?(S=0,k=Vs(E)):k>0&&f[1]<=0&&(k=0,S=-Vs(E))}var x=(o[0].value-a[0].value)/l,_=(o[s].value-a[s].value)/l;r.setExtent.call(e,S+b*x,k+b*_),r.setInterval.call(e,b),(x||_)&&r.setNiceExtent.call(e,S+b,k-b)}var Fvt=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wU,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=Ho(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;bU(S)&&b.get("alignTicks")&&b.get("interval")==null?h.push(g):(Coe(S,b),bU(S)&&(l=g))}h.length&&(l||(l=h.pop(),Coe(l.scale,l.model)),wt(h,function(k){Bvt(k.scale,k.model,l.scale)}))}}o(r.x),o(r.y);var a={};wt(r.x,function(s){ese(r,"y",s,a)}),wt(r.y,function(s){ese(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&&(wt(l,function(f){if(!f.model.get(["axisLabel","inside"])){var h=spt(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()),wt(this._coordsList,function(f){f.calcAffineTransform()});function c(){wt(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]),jvt(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]}br(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var o=0,a=this._coordsList;o0?"top":"bottom",a="center"):sI(o-Zp)?(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})(),nse={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&&(Mc(l,l,s),Mc(c,c,s));var h=cn({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new vv({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});X2(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"]);cr(m)&&(m=[m,m]),(cr(g)||bo(g))&&(g=[g,g]);var b=sge(t.get(["axisLine","symbolOffset"])||0,g),S=g[0],k=g[1];wt([{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,E){if(m[E]!=="none"&&m[E]!=null){var x=E1(m[E],-S/2,-k/2,S,k,h.stroke,!0),_=C.r+C.offset,A=f?c:l;x.attr({rotation:C.rotate,x:A[0]+_*Math.cos(e.rotation),y:A[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),n.add(x)}})}}},axisTickLabel:function(e,t,n,r){var o=zvt(n,r,t,e),a=Wvt(n,r,t,e);if(Vvt(t,a,o),Hvt(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=xpt(vr(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));Ipt(s)}},axisName:function(e,t,n,r){var o=W2(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,ise(a)?e.labelOffset+s*c:0],m,g=t.get("nameRotate");g!=null&&(g=g*Zp/180);var b;ise(a)?m=ov.innerTextLayout(e.rotation,g??e.rotation,s):(m=Uvt(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,E=W2(e.nameTruncateMaxWidth,k.maxWidth,b),x=new Va({x:p[0],y:p[1],rotation:m.rotation,silent:ov.isLabelSilent(t),style:mv(l,{text:o,font:S,overflow:"truncate",width:E,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(SL({el:x,componentModel:t,itemName:o}),x.__fullText=o,x.anid="name",t.get("triggerEvent")){var _=ov.makeAxisEventDataBase(t);_.targetType="axisName",_.name=o,Bi(x).eventData=_}r.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function Uvt(e,t,n,r){var o=Cve(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return sI(o-Zp/2)?(s=c?"bottom":"top",a="center"):sI(o-Zp*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",oZp/2?a=c?"left":"right":a=c?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:s}}function Vvt(e,t,n){if(!Kge(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?(gc(a),gc(f)):rse(a,s)&&(r?(gc(s),gc(h)):(gc(a),gc(f))),o===!1?(gc(l),gc(p)):rse(c,l)&&(o?(gc(c),gc(m)):(gc(l),gc(p)))}}function gc(e){e&&(e.ignore=!0)}function rse(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var o=sH([]);return aH(o,o,-e.rotation),n.applyTransform(Xy([],o,e.getLocalTransform())),r.applyTransform(Xy([],o,t.getLocalTransform())),n.intersect(r)}}function ise(e){return e==="middle"||e==="center"}function S0e(e,t,n,r,o){for(var a=[],s=[],l=[],c=0;c=0||e===t}function Zvt(e){var t=oW(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=EU(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=oW(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=Dm(t).pointerEl=new zut[a.type](ase(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,o){if(n.label){var a=Dm(t).labelEl=new Va(ase(n.label));t.add(a),use(a,o)}},e.prototype.updatePointerEl=function(t,n,r){var o=Dm(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=Dm(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),use(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=IH(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(f){sve(f.event)},onmousedown:x9(this._onHandleDragMove,this,0,0),drift:x9(this._onHandleDragMove,this),ondragend:x9(this._onHandleDragEnd,this)}),r.add(o)),cse(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");Gn(c)||(c=[c,c]),o.scaleX=c[0]/2,o.scaleY=c[1]/2,Jme(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){lse(this._axisPointerModel,!n&&this._moveAnimation,this._handle,T9(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(T9(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=o,r.stopAnimation(),r.attr(T9(o)),Dm(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),uU(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 lse(e,t,n,r){E0e(Dm(n).lastProp,r)||(Dm(n).lastProp=r,t?zl(n,r,e):(n.stopAnimation(),n.attr(r)))}function E0e(e,t){if(br(e)&&br(t)){var n=!0;return wt(t,function(r,o){n=n&&E0e(e[o],r)}),!!n}else return e===t}function use(e,t){e[t.get(["label","show"])?"show":"hide"]()}function T9(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function cse(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 lmt(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 umt(e,t,n,r,o){var a=n.get("value"),s=x0e(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=PL(l.get("padding")||0),f=l.getFont(),h=dH(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),cmt(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:mv(l,{text:s,font:f,fill:l.getTextColor(),padding:c,backgroundColor:k}),z2:10}}function cmt(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 x0e(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:QH(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};wt(r,function(c){var f=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=f&&f.getDataParams(h);p&&l.seriesData.push(p)}),cr(s)?a=s.replace("{value}",a):Wr(s)&&(a=s(l))}return a}function T0e(e,t,n){var r=Yy();return aH(r,r,n.rotation),Dj(r,r,n.position),AH([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function dmt(e,t,n,r,o,a){var s=ov.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),umt(t,r,o,a,{position:T0e(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function fmt(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function hmt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var pmt=(function(e){Rn(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=dse(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(f&&f!=="none"){var m=lmt(a),g=vmt[f](l,p,h);g.style=m,n.graphicKey=g.type,n.pointer=g}var b=CU(c.model,o);dmt(r,n,b,o,a,s)},t.prototype.getHandleTransform=function(n,r,o){var a=CU(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=o.get(["handle","margin"]);var s=T0e(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=dse(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})(amt);function dse(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var vmt={line:function(e,t,n){var r=fmt([t,n[0]],[t,n[1]],fse(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:hmt([t-r/2,n[0]],[r,o],fse(e))}}};function fse(e){return e.dim==="x"?0:1}var mmt=(function(e){Rn(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})(to),yh=Ts(),gmt=wt;function A0e(e,t,n){if(!Rr.node){var r=t.getZr();yh(r).records||(yh(r).records={}),ymt(r,t);var o=yh(r).records[e]||(yh(r).records[e]={});o.handler=n}}function ymt(e,t){if(yh(e).initialized)return;yh(e).initialized=!0,n("click",Ss(hse,"click")),n("mousemove",Ss(hse,"mousemove")),n("globalout",_mt);function n(r,o){e.on(r,function(a){var s=Smt(t);gmt(yh(e).records,function(l){l&&o(l,a,s.dispatchAction)}),bmt(s.pendings,t)})}}function bmt(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 _mt(e,t,n){e.handler("leave",null,n)}function hse(e,t,n,r){t.handler(e,n,r)}function Smt(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 TU(e,t){if(!Rr.node){var n=t.getZr(),r=(yh(n).records||{})[e];r&&(yh(n).records[e]=null)}}var kmt=(function(e){Rn(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";A0e("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){TU("axisPointer",r)},t.prototype.dispose=function(n,r){TU("axisPointer",r)},t.type="axisPointer",t})(Ed);function I0e(e,t){var n=[],r=e.seriesIndex,o;if(r==null||!(o=t.getSeriesByIndex(r)))return{point:[]};var a=o.getData(),s=wg(a,e);if(s==null||s<0||Gn(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(vr(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 pse=Ts();function wmt(e,t,n){var r=e.currTrigger,o=[e.x,e.y],a=e,s=e.dispatchAction||Co(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){W4(o)&&(o=I0e({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=W4(o),f=a.axesInfo,h=l.axesInfo,p=r==="leave"||W4(o),m={},g={},b={list:[],map:{}},S={showPointer:Ss(Emt,g),showTooltip:Ss(xmt,b)};wt(l.coordSysMap,function(C,E){var x=c||C.containPoint(o);wt(l.coordSysAxesInfo[E],function(_,A){var R=_.axis,M=Lmt(f,_);if(!p&&x&&(!f||M)){var D=M&&M.value;D==null&&!c&&(D=R.pointToData(o)),D!=null&&vse(_,D,S,!1,m)}})});var k={};return wt(h,function(C,E){var x=C.linkGroup;x&&!g[E]&&wt(x.axesInfo,function(_,A){var R=g[A];if(_!==C&&R){var M=R.value;x.mapper&&(M=C.axis.scale.parse(x.mapper(M,mse(_),mse(C)))),k[C.key]=M}})}),wt(k,function(C,E){vse(h[E],C,S,!0,m)}),Tmt(g,h,m),Amt(b,o,e,s),Imt(h,s,n),m}}function vse(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=Cmt(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&o.seriesIndex==null&&cn(o,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function Cmt(e,t){var n=t.axis,r=n.dim,o=e,a=[],s=Number.MAX_VALUE,l=-1;return wt(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),wt(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 xmt(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=ik(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 Tmt(e,t,n){var r=n.axesInfo=[];wt(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 Amt(e,t,n,r){if(W4(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 Imt(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",a=pse(r)[o]||{},s=pse(r)[o]={};wt(e,function(f,h){var p=f.axisPointerModel.option;p.status==="show"&&f.triggerEmphasis&&wt(p.seriesDataIndices,function(m){var g=m.seriesIndex+" | "+m.dataIndex;s[g]=m})});var l=[],c=[];wt(a,function(f,h){!s[h]&&c.push(f)}),wt(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 Lmt(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 mse(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 W4(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function L0e(e){k0e.registerAxisPointerClass("CartesianAxisPointer",pmt),e.registerComponentModel(mmt),e.registerComponentView(kmt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Gn(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Gvt(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},wmt)}function P0e(e){$h(smt),$h(L0e)}function Pmt(e,t){var n=PL(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new zs({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Rmt=(function(e){Rn(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})(to);function R0e(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function M0e(e){if(Rr.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 Fmt(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+=Rr.transformSupported?","+sW+r:",left"+r+",top"+r),Omt+":"+o}function gse(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!Rr.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var a=Rr.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+sW+":"+s+";":[["top",0],["left",0],[D0e,s]]}function jmt(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var o=si(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),wt(["decoration","align"],function(f){var h=e.get(f);h&&t.push("text-"+f+":"+h)}),t.join(";")}function Umt(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=Xme(e,"html"),m=c+"px "+f+"px "+s+"px "+l;return r.push("box-shadow:"+m),t&&o&&r.push(Fmt(o,n)),a&&r.push("background-color:"+a),wt(["width","color","radius"],function(g){var b="border-"+g,S=Cme(b),k=e.get(S);k!=null&&r.push(b+":"+k+(g==="color"?"":"px"))}),r.push(jmt(h)),p!=null&&r.push("padding:"+PL(p).join("px ")+"px"),r.join(";")+";"}function yse(e,t,n,r,o){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&ast(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 Vmt=(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,Rr.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&&(cr(a)?document.querySelector(a):H2(a)?a:Wr(a)&&a(t.getDom()));yse(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();Sc(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=Dmt(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=$mt+Umt(t,!this._firstShow,this._longHide)+gse(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(cr(a)&&r.get("trigger")==="item"&&!R0e(r)&&(l=Bmt(r,o,a)),cr(t))s.innerHTML=t+l;else if(t){s.innerHTML="",Gn(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||Rr.node||!o.getDom())){var s=Sse(a,o);this._ticket="";var l=a.dataByCoordSys,c=Ymt(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=Hmt;h.x=a.x,h.y=a.y,h.update(),Bi(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=I0e(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(Sse(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=Bi(o);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,f;_S(o,function(h){if(Bi(h).dataIndex!=null)return c=h,!0;if(Bi(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=Co(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=ek("section",{blocks:[],noHeader:!0}),p=[],m=new r9;wt(n,function(E){wt(E.dataByAxis,function(x){var _=o.getComponent(x.axisDim+"Axis",x.axisIndex),A=x.value;if(!(!_||A==null)){var R=x0e(A,_.axis,o,x.seriesDataIndices,x.valueLabelOpt),M=ek("section",{header:R,noHeader:!rf(R),sortBlocks:!0,blocks:[]});h.blocks.push(M),wt(x.seriesDataIndices,function(D){var $=o.getSeriesByIndex(D.seriesIndex),L=D.dataIndexInside,B=$.getDataParams(L);if(!(B.dataIndex<0)){B.axisDim=x.axisDim,B.axisIndex=x.axisIndex,B.axisType=x.axisType,B.axisId=x.axisId,B.axisValue=QH(_.axis,{value:A}),B.axisValueLabel=R,B.marker=m.makeTooltipMarker("item",Eg(B.color),c);var F=Mie($.formatTooltip(L,!0,null)),U=F.frag;if(U){var z=Z_([$],a).get("valueFormatter");M.blocks.push(z?cn({valueFormatter:z},U):U)}F.text&&p.push(F.text),f.push(B)}})}})}),h.blocks.reverse(),p.reverse();var g=r.position,b=l.get("order"),S=Bie(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=Bi(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),E=new r9;C.marker=E.makeTooltipMarker("item",Eg(C.color),g);var x=Mie(f.formatTooltip(h,!1,p)),_=S.get("order"),A=S.get("valueFormatter"),R=x.frag,M=R?Bie(A?cn({valueFormatter:A},R):R,E,g,_,a.get("useUTC"),S.get("textStyle")):x.text,D="item_"+f.name+"_"+h;this._showOrMove(S,function(){this._showTooltipContent(S,M,C,D,n.offsetX,n.offsetY,n.position,n.target,E)}),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=Bi(r),l=s.tooltipConfig,c=l.option||{},f=c.encodeHTMLContent;if(cr(c)){var h=c;c={content:h,formatter:h},f=!0}f&&a&&c.content&&(c=Pi(c),c.content=du(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 r9;this._showOrMove(b,function(){var E=Pi(b.get("formatterParams")||{});this._showTooltipContent(b,S,E,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(cr(m)){var k=n.ecModel.get("useUTC"),C=Gn(o)?o[0]:o,E=C&&C.axisType&&C.axisType.indexOf("time")>=0;g=m,E&&(g=xL(C.axisValue,g,k)),g=Eme(g,o,!0)}else if(Wr(m)){var x=Co(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,x)}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"||Gn(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Gn(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),Wr(r)&&(r=r([o,a],l,s.el,b,{viewSize:[f,h],contentSize:p.slice()})),Gn(r))o=zo(r[0],f),a=zo(r[1],h);else if(br(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(cr(r)&&c){var C=qmt(r,b,p,n.get("borderWidth"));o=C[0],a=C[1]}else{var C=Gmt(o,a,s,f,h,m?null:20,g?null:20);o=C[0],a=C[1]}if(m&&(o-=kse(m)?p[0]/2:m==="right"?p[0]:0),g&&(a-=kse(g)?p[1]/2:g==="bottom"?p[1]:0),R0e(n)){var C=Kmt(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&&wt(o,function(l,c){var f=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&f.length===p.length,s&&wt(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&&wt(S,function(C,E){var x=k[E];s=s&&C.seriesIndex===x.seriesIndex&&C.dataIndex===x.dataIndex}),a&&wt(m.seriesDataIndices,function(C){var E=C.seriesIndex,x=r[E],_=a[E];x&&_&&_.data!==x.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){Rr.node||!r.getDom()||(uU(this,"_updatePosition"),this._tooltipContent.dispose(),TU("itemTooltip",r))},t.type="tooltip",t})(Ed);function Z_(e,t,n){var r=t.ecModel,o;n?(o=new fs(n,r,r),o=new fs(t.option,o,r)):o=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof fs&&(s=s.get("tooltip",!0)),cr(s)&&(s={formatter:s}),s&&(o=new fs(s,o,r)))}return o}function Sse(e,t){return e.dispatchAction||Co(t.dispatchAction,t)}function Gmt(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 Kmt(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 qmt(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 kse(e){return e==="center"||e==="middle"}function Ymt(e,t,n){var r=vH(e).queryOptionMap,o=r.keys()[0];if(!(!o||o==="series")){var a=zk(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=Bi(f).tooltipConfig;if(h&&h.name===e.name)return c=f,!0}),c)return{componentMainType:o,componentIndex:s.componentIndex,el:c}}}}function $0e(e){$h(L0e),e.registerComponentModel(Rmt),e.registerComponentView(Wmt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_u),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_u)}var Xmt=(function(e){Rn(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})(to),Zmt=(function(e){Rn(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=si(n.get("textBaseline"),n.get("textVerticalAlign")),h=new Va({style:mv(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),m=n.get("subtext"),g=new Va({style:mv(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(){vie(b,"_"+n.get("target"))}),S&&g.on("click",function(){vie(S,"_"+n.get("subtarget"))}),Bi(h).eventData=Bi(g).eventData=k?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),m&&a.add(g);var C=a.getBoundingRect(),E=n.getBoxLayoutParams();E.width=C.width,E.height=C.height;var x=k1(E,{width:o.getWidth(),height:o.getHeight()},n.get("padding"));c||(c=n.get("left")||n.get("right"),c==="middle"&&(c="center"),c==="right"?x.x+=x.width:c==="center"&&(x.x+=x.width/2)),f||(f=n.get("top")||n.get("bottom"),f==="center"&&(f="middle"),f==="bottom"?x.y+=x.height:f==="middle"&&(x.y+=x.height/2),f=f||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var _={align:c,verticalAlign:f};h.setStyle(_),g.setStyle(_),C=a.getBoundingRect();var A=x.margin,R=n.getItemStyle(["color","opacity"]);R.fill=n.get("backgroundColor");var M=new zs({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 N0e(e){e.registerComponentModel(Xmt),e.registerComponentView(Zmt)}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"])}},AU=(function(e){Rn(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"]),Gn(r)&&wt(r,function(a,s){cr(a)&&(a={type:a}),r[s]=Zi(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})(to),uy=Ss,IU=wt,Wx=Ua,B0e=(function(e){Rn(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 Wx),this.group.add(this._selectorGroup=new Wx),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(Qi({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=Pmt(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=di(),p=r.get("selectedMode"),m=[];o.eachRawSeries(function(g){!g.get("legendHoverLink")&&m.push(g.id)}),IU(r.getData(),function(g,b){var S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` `)){var k=new Wx;k.newline=!0,f.add(k);return}var C=o.getSeriesByName(S)[0];if(!h.get(S))if(C){var E=C.getData(),x=E.getVisual("legendLineStyle")||{},_=E.getVisual("legendIcon"),A=E.getVisual("style"),R=this._createItem(C,S,b,g,r,n,x,A,_,p,a);R.on("click",uy(wse,S,null,a,m)).on("mouseover",uy(LU,C.name,null,a,m)).on("mouseout",uy(PU,C.name,null,a,m)),o.ssr&&R.eachChild(function(M){var D=Bi(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 $=D.indexOfName(S),L=D.getItemVisual($,"style"),B=D.getItemVisual($,"legendIcon"),F=wh(L.fill);F&&F[3]===0&&(F[3]=.2,L=cn(cn({},L),{fill:dL(F,"rgba")}));var U=this._createItem(M,S,b,g,r,n,{},L,B,p,a);U.on("click",uy(wse,null,S,a,m)).on("mouseover",uy(LU,null,S,a,m)).on("mouseout",uy(PU,null,S,a,m)),o.ssr&&U.eachChild(function(z){var G=Bi(z);G.seriesIndex=M.seriesIndex,G.dataIndex=b,G.ssrType="legend"}),h.set(S,!0)}},this)},this),s&&this._createSelector(s,r,a,l,c)},t.prototype._createSelector=function(n,r,o,a,s){var l=this.getSelectorGroup();IU(n,function(f){var h=f.type,p=new Va({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"]);Gk(p,{normal:m,emphasis:g},{defaultText:f.title}),Jj(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"),E=a.get("symbolKeepAspect"),x=a.get("icon");h=x||h||"roundRect";var _=Qmt(h,a,c,f,g,k,m),A=new Wx,R=a.getModel("textStyle");if(Wr(n.getLegendIcon)&&(!x||x==="inherit"))A.add(n.getLegendIcon({itemWidth:b,itemHeight:S,icon:h,iconRotate:C,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:E}));else{var M=x==="inherit"&&n.getData().getVisual("symbol")?C==="inherit"?n.getData().getVisual("symbolRotate"):C:0;A.add(egt({itemWidth:b,itemHeight:S,icon:h,iconRotate:M,itemStyle:_.itemStyle,symbolKeepAspect:E}))}var D=l==="left"?b+5:-5,$=l,L=s.get("formatter"),B=r;cr(L)&&L?B=L.replace("{name}",r??""):Wr(L)&&(B=L(r));var F=k?R.getTextColor():a.get("inactiveColor");A.add(new Va({style:mv(R,{text:B,x:D,y:S/2,fill:F,align:$,verticalAlign:"middle"},{inheritColor:F})}));var U=new zs({shape:A.getBoundingRect(),style:{fill:"transparent"}}),z=a.getModel("tooltip");return z.get("show")&&SL({el:U,componentModel:s,itemName:r,itemTooltipOption:z.option}),A.add(U),A.eachChild(function(G){G.silent=!0}),U.silent=!p,this.getContentGroup().add(A),Jj(A),A.__legendDataIndex=o,A},t.prototype.layoutInner=function(n,r,o,a,s,l){var c=this.getContentGroup(),f=this.getSelectorGroup();s2(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){s2("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",E=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 x={x:0,y:0};return x[k]=h[k]+b+m[k],x[C]=Math.max(h[C],m[C]),x[E]=Math.min(0,m[E]+g[1-S]),x}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 Qmt(e,t,n,r,o,a,s){function l(k,C){k.lineWidth==="auto"&&(k.lineWidth=C.lineWidth>0?2:0),IU(k,function(E,x){k[x]==="inherit"&&(k[x]=C[x])})}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:pU(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 egt(e){var t=e.icon||"roundRect",n=E1(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 wse(e,t,n,r){PU(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),LU(e,t,n,r)}function F0e(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],E=[-b.x,-b.y],x=si(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(S){var _=n.get("pageButtonPosition",!0);_==="end"?E[a]+=o[s]-b[s]:C[a]+=b[s]+x}E[1-a]+=g[l]/2-b[l]/2,h.setPosition(k),p.setPosition(C),m.setPosition(E);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]+E[1-a]),p.__rectSize=o[s],S){var R={x:0,y:0};R[s]=Math.max(o[s]-b[s]-x,0),R[l]=A[l],p.setClipPath(new zs({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&&zl(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;wt(["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",cr(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=A9[s],c=I9[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,E=S,x=null;k<=m;++k)x=_(h[k]),(!x&&E.e>C.s+a||x&&!A(x,C.s))&&(E.i>C.i?C=E:C=x,C&&(b.pageNextDataIndex==null&&(b.pageNextDataIndex=C.i),++b.pageCount)),E=x;for(var k=f-1,C=S,E=S,x=null;k>=-1;--k)x=_(h[k]),(!x||!A(E,x.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})(B0e);function ogt(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 sgt(e){$h(j0e),e.registerComponentModel(rgt),e.registerComponentView(igt),ogt(e)}function U0e(e){$h(j0e),$h(sgt)}const agt=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function lgt(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 agt.forEach(o=>{r[o]=t(o)}),r}return n()}function ugt(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?OL(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 cgt={autoresize:[Boolean,Object]},dgt=/^on[^a-z]/,V0e=e=>dgt.test(e);function fgt(e){const t={};for(const n in e)V0e(n)||(t[n]=e[n]);return t}function G4(e,t){const n=To(e)?st(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const hgt="ecLoadingOptions";function pgt(e,t,n){const r=xn(hgt,{}),o=j(()=>({...G4(r,{}),...n?.value}));Cs(()=>{const a=e.value;a&&(t.value?a.showLoading(o.value):a.hideLoading())})}const vgt={loading:Boolean,loadingOptions:Object};let Q_=null;const z0e="x-vue-echarts";function mgt(){if(Q_!=null)return Q_;if(typeof HTMLElement>"u"||typeof customElements>"u")return Q_=!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);")(z0e)}catch{return Q_=!1}return Q_=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} `;const ggt=mgt(),ygt="ecTheme",bgt="ecInitOptions",_gt="ecUpdateOptions",Tse=/(^&?~?!?)native:/;var H0e=be({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...cgt,...vgt},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=Xm(),r=Xm(),o=Xm(),a=xn(ygt,null),s=xn(bgt,null),l=xn(_gt,null),{autoresize:c,manualUpdate:f,loading:h,loadingOptions:p}=Zt(e),m=j(()=>o.value||e.option||null),g=j(()=>e.theme||G4(a,{})),b=j(()=>e.initOptions||G4(s,{})),S=j(()=>e.updateOptions||G4(l,{})),k=j(()=>fgt(t)),C={},E=uo().proxy.$listeners,x={};E?Object.keys(E).forEach($=>{Tse.test($)?C[$.replace(Tse,"$1")]=E[$]:x[$]=E[$]}):Object.keys(t).filter($=>V0e($)).forEach($=>{let L=$.charAt(2).toLowerCase()+$.slice(3);if(L.indexOf("native:")===0){const B=`on${L.charAt(7).toUpperCase()}${L.slice(8)}`;C[B]=t[$];return}L.substring(L.length-4)==="Once"&&(L=`~${L.substring(0,L.length-4)}`),x[L]=t[$]});function _($){if(!n.value)return;const L=r.value=Jft(n.value,g.value,b.value);e.group&&(L.group=e.group),Object.keys(x).forEach(U=>{let z=x[U];if(!z)return;let G=U.toLowerCase();G.charAt(0)==="~"&&(G=G.substring(1),z.__once__=!0);let Y=L;if(G.indexOf("zr:")===0&&(Y=L.getZr(),G=G.substring(3)),z.__once__){delete z.__once__;const re=z;z=(...te)=>{re(...te),Y.off(G,z)}}Y.on(G,z)});function B(){L&&!L.isDisposed()&&L.resize()}function F(){const U=$||m.value;U&&L.setOption(U,S.value)}c.value?kn(()=>{B(),F()}):F()}function A($,L){e.manualUpdate&&(o.value=$),r.value?r.value.setOption($,L||{}):_($)}function R(){r.value&&(r.value.dispose(),r.value=void 0)}let M=null;Dt(f,$=>{typeof M=="function"&&(M(),M=null),$||(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}),Cs(()=>{e.group&&r.value&&(r.value.group=e.group)});const D=lgt(r);return pgt(r,h,p),ugt(r,c,n),dn(()=>{_()}),$o(()=>{ggt&&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",ia(z0e,e)}});const gu={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},W0e=()=>new Date().toISOString().split("T")[0],Sgt=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},kgt=()=>{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},gf=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},xI=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},G0e=e=>{const t=W0e(),n=new Date().toISOString(),r=gf(gu.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),xI(gu.WATCH_HISTORY,r),aW(t),o},aW=e=>{const t=gf(gu.DAILY_STATS,{}),n=gf(gu.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()},xI(gu.DAILY_STATS,t)},K0e=()=>{const e=W0e(),t=gf(gu.DAILY_STATS,{});return t[e]?t[e]:(aW(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},q0e=()=>{const e=Sgt(),t=gf(gu.DAILY_STATS,{});return t[e]?t[e]:(aW(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},wgt=()=>{const e=kgt(),t=gf(gu.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}})},Cgt=()=>{const e=K0e(),t=q0e();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)=>gf(gu.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),xgt=(e=10)=>{const t=gf(gu.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)},Tgt=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],o=gf(gu.WATCH_HISTORY,[]).filter(l=>l.date>=n);xI(gu.WATCH_HISTORY,o);const a=gf(gu.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),xI(gu.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},Agt=()=>{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:"🎉"}}),X0e=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),Igt=()=>Ac.sort((e,t)=>new Date(t.date)-new Date(e.date)),Lgt=e=>Ac.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),Pgt=e=>Ac.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),Rgt=(e=5)=>Ac.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),Mgt=(e,t)=>{const n=new Date(e),r=new Date(t);return Ac.filter(o=>{const a=new Date(o.date);return a>=n&&a<=r}).sort((o,a)=>new Date(a.date)-new Date(o.date))},Dgt=e=>{const t=e.toLowerCase();return Ac.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))},Ogt=()=>{const e=Y0e(),t=X0e(),n={};Object.keys(e).forEach(a=>{n[a]=Ac.filter(s=>s.type===a).length});const r={};Object.keys(t).forEach(a=>{r[a]=Ac.filter(s=>s.importance===a).length});const o={};return Ac.forEach(a=>{const s=a.date.substring(0,7);o[s]=(o[s]||0)+1}),{total:Ac.length,byType:n,byImportance:r,byMonth:o,latestVersion:Ac[0]?.version||"v1.0.0",latestDate:Ac[0]?.date||new Date().toISOString().split("T")[0]}},$gt=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"})},Ngt=(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(aSi,Fgt=e=>Si[e]||[],jgt=(e=12)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),Ugt=(e=8)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),Vgt=(e,t=6)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].filter(r=>r.category===e).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),zgt=(e,t=6)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].filter(r=>r.tags.includes(e)).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),Hgt=e=>{const t=e.toLowerCase();return[...Si.movies,...Si.tvShows,...Si.anime,...Si.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)},Wgt=()=>jL.sort((e,t)=>t.count-e.count),Ggt=(e=10)=>jL.sort((t,n)=>n.count-t.count).slice(0,e),Kgt=(e=5)=>jL.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),qgt=(e=[],t=8)=>{const n=Ygt();return[...Si.movies,...Si.tvShows,...Si.anime,...Si.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)},Ygt=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),Xgt=()=>{const e=[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels],t={};Object.keys(Si).forEach(a=>{t[a]=Si[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:jL.length}},Zgt=(e=6)=>[...Si.movies,...Si.tvShows,...Si.anime,...Si.novels].sort(()=>.5-Math.random()).slice(0,e),tS={getAllRecommendations:Bgt,getRecommendationsByType:Fgt,getHotRecommendations:jgt,getTrendingRecommendations:Ugt,getRecommendationsByCategory:Vgt,getRecommendationsByTag:zgt,searchRecommendations:Hgt,getAllKeywords:Wgt,getHotKeywords:Ggt,getTrendingUpKeywords:Kgt,getPersonalizedRecommendations:qgt,getRecommendationStats:Xgt,getRandomRecommendations:Zgt},UL=Vg("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或专项动作指令,必须。字符型。",Qgt="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",e0t="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",t0t="标题。字符型。",n0t="宽度。整型。",r0t="高度。整型。",i0t="文本消息内容。字符型。",o0t="msgbox类动作的简单html消息内容。字符型。",s0t="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",a0t="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",l0t="图片URL。字符型。",u0t="图片高度。整型。",c0t="是否检测图片的点击坐标输入。逻辑型。",d0t="生成二维码的URL。字符型。",f0t="二维码的大小。整型。",h0t="超时时间(秒)。超时自动关闭窗口。整型。",p0t="T4源的动作网络访问超时时间(秒)。",v0t="输入确认后,窗口是否保持。逻辑型。",m0t="窗口弹出时自动发送的初始化动作指令。字符型。",g0t="窗口弹出时自动发送的初始化指令值。字符型。",y0t="按窗口的取消键时发送的取消动作指令。字符型。",b0t="按窗口的取消键时发送的取消动作指令值。字符型。",_0t="单项输入的输入提示,单项输入时必须。字符型。",S0t="单项输入的初始化值。字符型。",k0t="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",w0t=`多项输入的项目定义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。`,C0t="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",E0t="底部对齐和底边距。整型。",x0t="单项选择或多项选择窗口的列数。整型。",T0t=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 [#name]:选项名称。 [#action]:选项动作值。 [#selected]:选项默认是否已选。多项选择是可用。`,A0t=`源内搜索。 [#skey]:目标源key,可选,未设置或为空则使用当前源。 [#name]:搜索分类名称。 [#tid]:使用分类ID传递的搜索值。 [#flag]:列表视图参数。 [#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,I0t=`跳转到指定站源解析详情页播放。 [#skey]:目标源key。 [#ids]:传递给详情页的视频ids。`,L0t=`跳转到KTV播放器播放指定链接。 [#name]:歌名。 [#id]:歌曲的直链。`,P0t="刷新当前分类的列表。无其它参数。",R0t="把返回的内容复制到剪贴板。content:复制的内容",M0t=`保持窗口不关闭。 [#msg]:更新窗口里的文本消息内容。 [#reset]:窗口中的输入项目内容是否清空。`,D0t={使用帮助:`本帮助。长按则分项选择查看。 系统多数功能按键和选项,短按和长按有不同的功能。 [#影图根目录]:安全起见,影图的根目录为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:Qgt,canceledOnTouchOutside:e0t,title:t0t,width:n0t,height:r0t,msg:i0t,htmlMsg:o0t,help:s0t,button:a0t,imageUrl:l0t,imageHeight:u0t,imageClickCoord:c0t,qrcode:d0t,qrcodeSize:f0t,timeout:h0t,httpTimeout:p0t,keep:v0t,initAction:m0t,initValue:g0t,cancelAction:y0t,cancelValue:b0t,tip:_0t,value:S0t,selectData:k0t,input:w0t,dimAmount:C0t,bottom:E0t,column:x0t,option:T0t,单项输入:`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__:A0t,__detail__:I0t,__ktvplayer__:L0t,__refresh_list__:P0t,__copy__:R0t,__keep__:M0t,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的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'  }`},O0t={class:"action-doc-card"},$0t={class:"card-title"},N0t={class:"card-content"},B0t={class:"overview-section"},F0t={class:"overview-item"},j0t={class:"overview-value"},U0t={class:"overview-item"},V0t={class:"overview-value"},z0t={class:"overview-item"},H0t={class:"overview-value"},W0t={key:0,class:"quick-nav"},G0t={key:1,class:"expanded-content"},K0t={class:"section",id:"basic-concepts"},q0t={class:"section-title"},Y0t={class:"concept-grid"},X0t={class:"concept-title"},Z0t={class:"concept-desc"},J0t={class:"section",id:"action-types"},Q0t={class:"section-title"},eyt={class:"action-types-grid"},tyt={class:"action-type-header"},nyt={class:"action-type-code"},ryt={class:"action-type-desc"},iyt={key:0,class:"action-type-usage"},oyt={class:"section",id:"special-actions"},syt={class:"section-title"},ayt={class:"special-actions-list"},lyt={class:"special-action-header"},uyt={class:"action-id"},cyt={class:"action-name"},dyt={class:"special-action-desc"},fyt={key:0,class:"special-action-params"},hyt={class:"section",id:"config-params"},pyt={class:"section-title"},vyt={class:"params-grid"},myt={class:"param-header"},gyt={class:"param-name"},yyt={class:"param-desc"},byt={class:"section",id:"examples"},_yt={class:"section-title"},Syt={class:"code-block"},kyt={class:"code-block"},wyt={class:"code-block"},Cyt={__name:"ActionDocCard",setup(e){const t=pe(!1),n=pe(D0t),r=()=>{t.value=!t.value},o=k=>{t.value=!0,setTimeout(()=>{const C=document.getElementById(k);C&&C.scrollIntoView({behavior:"smooth"})},100)};dn(()=>{});const a=j(()=>Object.keys(n.value).length),s=j(()=>{const k=new Set;return Object.values(n.value).forEach(C=>{C.type&&k.add(C.type)}),Array.from(k)}),l=j(()=>Object.entries(n.value).filter(([k,C])=>C.special===!0).map(([k,C])=>({key:k,...C}))),c=pe([{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=j(()=>[{key:"interaction",title:"交互动作",description:n.value.交互动作||""},{key:"action-command",title:"动作指令",description:n.value.动作指令?.split(` `)[0]||""},{key:"video-vod",title:"视频VOD",description:n.value.视频VOD?.split("例如:")[0]||""},{key:"interface-action",title:"接口action",description:n.value.接口action||""}]),h=pe([{key:"basic",name:"基础动作",type:"string",color:"blue",description:"简单的动作指令字符串,用户点击时无信息输入窗口",usage:"直接发送指令"},{key:"input",name:"单项输入",type:"input",color:"green",description:"要求用户输入一个字段的动作",usage:"获取用户单个输入值"},{key:"edit",name:"多行编辑",type:"edit",color:"cyan",description:"要求用户在多行编辑区输入单个字段内容",usage:"长文本输入"},{key:"multiInput",name:"多项输入",type:"multiInput",color:"purple",description:"要求用户输入多个字段(5个以内)",usage:"少量多字段输入"},{key:"multiInputX",name:"增强多项输入",type:"multiInputX",color:"orange",description:"要求用户输入多个字段(不限制个数)",usage:"复杂表单输入"},{key:"menu",name:"单项选择",type:"menu",color:"lime",description:"要求用户在列表中选择一个项目",usage:"单选操作"},{key:"select",name:"多项选择",type:"select",color:"gold",description:"要求用户在列表中选择多个项目",usage:"多选操作"},{key:"msgbox",name:"消息弹窗",type:"msgbox",color:"red",description:"弹出窗口显示消息",usage:"信息展示"}]),p=j(()=>[{key:"self_search",actionId:"__self_search__",name:"源内搜索",description:n.value.__self_search__?.split(` `)[0]||"",params:["skey","name","tid","flag","folder"]},{key:"detail",actionId:"__detail__",name:"详情页跳转",description:n.value.__detail__?.split(` `)[0]||"",params:["skey","ids"]},{key:"ktvplayer",actionId:"__ktvplayer__",name:"KTV播放",description:n.value.__ktvplayer__?.split(` `)[0]||"",params:["name","id"]},{key:"refresh_list",actionId:"__refresh_list__",name:"刷新列表",description:n.value.__refresh_list__||"",params:[]},{key:"copy",actionId:"__copy__",name:"复制内容",description:n.value.__copy__||"",params:["content"]},{key:"keep",actionId:"__keep__",name:"保持窗口",description:n.value.__keep__?.split(` `)[0]||"",params:["msg","reset"]}]),m=pe([{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=pe(`{ "vod_id": "hello world", "vod_name": "基础动作", "vod_tag": "action" }`),b=pe(`{ "actionId": "动作路由ID", "type": "input", "width": 450, "title": "输入窗口标题", "tip": "输入提示", "value": "输入初始值", "msg": "窗口文本说明", "button": 2, "selectData": "1:=快速输入一,2:=快速输入二,3:=快速输入三" }`),S=pe(`{ "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 E=Me("a-button"),x=Me("a-tag"),_=Me("a-card"),A=Me("a-tab-pane"),R=Me("a-tabs");return H(),Q("div",O0t,[O(_,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:de(()=>[I("div",$0t,[O(st(rL),{class:"title-icon"}),C[0]||(C[0]=I("span",null,"Action 动作指令文档",-1))])]),extra:de(()=>[O(E,{type:"text",size:"small",onClick:r,class:"expand-btn"},{default:de(()=>[t.value?Oe("",!0):(H(),Xe(st(xv),{key:0})),t.value?(H(),Xe(st(Rk),{key:1})):Oe("",!0),We(" "+Be(t.value?"收起":"展开"),1)]),_:1})]),default:de(()=>[I("div",N0t,[I("div",B0t,[I("div",F0t,[C[1]||(C[1]=I("div",{class:"overview-label"},"总条目数",-1)),I("div",j0t,Be(a.value),1)]),I("div",U0t,[C[2]||(C[2]=I("div",{class:"overview-label"},"动作类型",-1)),I("div",V0t,Be(s.value.length),1)]),I("div",z0t,[C[3]||(C[3]=I("div",{class:"overview-label"},"专项动作",-1)),I("div",H0t,Be(l.value.length),1)])]),t.value?Oe("",!0):(H(),Q("div",W0t,[(H(!0),Q(Ft,null,fn(c.value,M=>(H(),Xe(x,{key:M.key,color:M.color,class:"nav-tag",onClick:D=>o(M.key)},{default:de(()=>[We(Be(M.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(H(),Q("div",G0t,[I("div",K0t,[I("h3",q0t,[O(st(oh),{class:"section-icon"}),C[4]||(C[4]=We(" 基础概念 ",-1))]),I("div",Y0t,[(H(!0),Q(Ft,null,fn(f.value,M=>(H(),Q("div",{class:"concept-item",key:M.key},[I("div",X0t,Be(M.title),1),I("div",Z0t,Be(M.description),1)]))),128))])]),I("div",J0t,[I("h3",Q0t,[O(st(Vh),{class:"section-icon"}),C[5]||(C[5]=We(" 动作类型 ",-1))]),I("div",eyt,[(H(!0),Q(Ft,null,fn(h.value,M=>(H(),Xe(_,{key:M.key,size:"small",class:"action-type-card",hoverable:!0},{default:de(()=>[I("div",tyt,[O(x,{color:M.color},{default:de(()=>[We(Be(M.name),1)]),_:2},1032,["color"]),I("span",nyt,Be(M.type),1)]),I("div",ryt,Be(M.description),1),M.usage?(H(),Q("div",iyt,[C[6]||(C[6]=I("strong",null,"用途:",-1)),We(Be(M.usage),1)])):Oe("",!0)]),_:2},1024))),128))])]),I("div",oyt,[I("h3",syt,[O(st(Xz),{class:"section-icon"}),C[7]||(C[7]=We(" 专项动作 ",-1))]),I("div",ayt,[(H(!0),Q(Ft,null,fn(p.value,M=>(H(),Q("div",{key:M.key,class:"special-action-item"},[I("div",lyt,[I("code",uyt,Be(M.actionId),1),I("span",cyt,Be(M.name),1)]),I("div",dyt,Be(M.description),1),M.params?(H(),Q("div",fyt,[C[8]||(C[8]=I("strong",null,"参数:",-1)),(H(!0),Q(Ft,null,fn(M.params,D=>(H(),Q("span",{key:D,class:"param-tag"},Be(D),1))),128))])):Oe("",!0)]))),128))])]),I("div",hyt,[I("h3",pyt,[O(st(fv),{class:"section-icon"}),C[9]||(C[9]=We(" 配置参数 ",-1))]),I("div",vyt,[(H(!0),Q(Ft,null,fn(m.value,M=>(H(),Q("div",{key:M.key,class:"param-item"},[I("div",myt,[I("code",gyt,Be(M.name),1),O(x,{size:"small",color:M.typeColor},{default:de(()=>[We(Be(M.type),1)]),_:2},1032,["color"])]),I("div",yyt,Be(M.description),1)]))),128))])]),I("div",byt,[I("h3",_yt,[O(st(Rpe),{class:"section-icon"}),C[10]||(C[10]=We(" 示例代码 ",-1))]),O(R,{type:"card",class:"example-tabs"},{default:de(()=>[O(A,{key:"basic",title:"基础动作"},{default:de(()=>[I("pre",Syt,Be(g.value),1)]),_:1}),O(A,{key:"input",title:"单项输入"},{default:de(()=>[I("pre",kyt,Be(b.value),1)]),_:1}),O(A,{key:"multi",title:"多项输入"},{default:de(()=>[I("pre",wyt,Be(S.value),1)]),_:1})]),_:1})])])):Oe("",!0)])]),_:1})])}}},Eyt=_r(Cyt,[["__scopeId","data-v-d143db2b"]]),xyt={class:"home-container"},Tyt={class:"dashboard-header"},Ayt={class:"header-content"},Iyt={class:"welcome-section"},Lyt={class:"dashboard-title"},Pyt={class:"quick-stats"},Ryt={class:"stat-item"},Myt={class:"stat-value"},Dyt={class:"stat-item"},Oyt={class:"stat-value"},$yt={class:"stat-item"},Nyt={class:"dashboard-content"},Byt={class:"content-grid"},Fyt={class:"dashboard-card watch-stats-card"},jyt={class:"card-header"},Uyt={class:"card-title"},Vyt={class:"card-content"},zyt={class:"dashboard-card update-log-card"},Hyt={class:"card-header"},Wyt={class:"card-title"},Gyt={class:"card-content"},Kyt={class:"timeline-content"},qyt={class:"timeline-header"},Yyt={class:"version-tag"},Xyt={class:"update-date"},Zyt={class:"update-title"},Jyt={class:"update-description"},Qyt={class:"update-changes"},e1t={key:0,class:"more-changes"},t1t={class:"dashboard-card recommend-card"},n1t={class:"card-header"},r1t={class:"card-title"},i1t={class:"card-content"},o1t={class:"recommend-grid"},s1t=["onClick"],a1t={class:"recommend-poster"},l1t={class:"recommend-overlay"},u1t={key:0,class:"trending-badge"},c1t={class:"recommend-info"},d1t={class:"recommend-title"},f1t={class:"recommend-meta"},h1t={class:"recommend-rating"},p1t={class:"recommend-tags"},v1t={class:"dashboard-card keywords-card"},m1t={class:"card-header"},g1t={class:"card-title"},y1t={class:"card-content"},b1t={class:"keywords-list"},_1t=["onClick"],S1t={class:"keyword-content"},k1t={class:"keyword-text"},w1t={class:"keyword-meta"},C1t={class:"keyword-count"},E1t={class:"dashboard-card system-status-card"},x1t={class:"card-header"},T1t={class:"card-title"},A1t={class:"card-content"},I1t={class:"status-grid"},L1t={class:"status-item"},P1t={class:"status-icon online"},R1t={class:"status-item"},M1t={class:"status-icon online"},D1t={class:"status-item"},O1t={class:"status-icon warning"},$1t={class:"status-item"},N1t={class:"status-icon online"},B1t={class:"update-log-modal"},F1t={class:"timeline-content"},j1t={class:"timeline-header"},U1t={class:"version-tag"},V1t={class:"update-date"},z1t={class:"update-title"},H1t={class:"update-description"},W1t={class:"update-changes"},G1t={class:"keywords-modal"},K1t={class:"keywords-list"},q1t=["onClick"],Y1t={class:"keyword-content"},X1t={class:"keyword-text"},Z1t={class:"keyword-meta"},J1t={class:"keyword-count"},Q1t={__name:"Home",setup(e){$h([n0e,p0e,d0e,b0e,P0e,$0e,U0e,N0e]);const t=UL(),n=w3(),r=gl(),o=pe("week"),a=pe("hot"),s=pe({watchCount:0,totalWatchTime:0}),l=pe({watchCount:0,totalWatchTime:0}),c=pe([]),f=pe(0),h=pe([]),p=pe([]),m=pe([]),g=j(()=>{const te=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 J=K[0];return`${J.name}
${J.seriesName}: ${J.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:te,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),b=te=>eS.getUpdateTypeConfig()[te]?.color||"#86909c",S=()=>eS.getUpdateTypeConfig(),k=te=>({feature:"green",improvement:"blue",optimization:"orange",security:"red",bugfix:"purple",release:"gold"})[te]||"gray",C=te=>({电影:"#4A90E2",电视剧:"#50C878",动漫:"#FF6B6B",小说:"#9B59B6"})[te]||"#86909C",E=te=>({电影:"blue",电视剧:"green",动漫:"orange",小说:"purple"})[te]||"gray",x=te=>eS.formatDate(te),_=te=>te>=1e4?(te/1e4).toFixed(1)+"w":te>=1e3?(te/1e3).toFixed(1)+"k":te.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=te=>{console.log("点击推荐内容:",te)},D=te=>{console.log("点击热搜关键词:",te)},$=pe(!1),L=pe(!1),B=pe([]),F=pe([]),U=()=>{B.value=eS.getAllUpdateLogs(),$.value=!0},z=()=>{F.value=tS.getAllKeywords(),L.value=!0},G=()=>{$.value=!1},Y=()=>{L.value=!1},re=()=>{s.value=Gx.getTodayStats(),l.value=Gx.getYesterdayStats(),c.value=Gx.getWeekStats(),f.value=Gx.calculateGrowthRate(),h.value=eS.getRecentUpdateLogs(4),R(),m.value=tS.getHotKeywords(8)};return dn(()=>{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})}re(),console.log("主页看板加载完成")}),(te,X)=>{const K=Me("a-option"),J=Me("a-select"),ie=Me("a-link"),se=Me("a-tag"),ae=Me("a-timeline-item"),Ce=Me("a-timeline"),ke=Me("a-modal");return H(),Q(Ft,null,[I("div",xyt,[I("div",Tyt,[I("div",Ayt,[I("div",Iyt,[I("h1",Lyt,[O(st(tL),{class:"title-icon"}),X[4]||(X[4]=We(" 数据看板 ",-1))]),X[5]||(X[5]=I("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),I("div",Pyt,[I("div",Ryt,[I("div",Myt,Be(s.value.watchCount),1),X[6]||(X[6]=I("div",{class:"stat-label"},"今日观看",-1))]),I("div",Dyt,[I("div",Oyt,Be(Math.round(s.value.totalWatchTime/60)),1),X[7]||(X[7]=I("div",{class:"stat-label"},"总时长(分钟)",-1))]),I("div",$yt,[I("div",{class:le(["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",Nyt,[I("div",Byt,[I("div",Fyt,[I("div",jyt,[I("h3",Uyt,[O(st(Upe),{class:"card-icon"}),X[9]||(X[9]=We(" 最近观看统计 ",-1))]),O(J,{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]=[We("本周",-1)])]),_:1}),O(K,{value:"month"},{default:de(()=>[...X[11]||(X[11]=[We("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",Vyt,[O(st(H0e),{class:"chart",option:g.value},null,8,["option"])])]),I("div",zyt,[I("div",Hyt,[I("h3",Wyt,[O(st(S1),{class:"card-icon"}),X[12]||(X[12]=We(" 更新日志 ",-1))]),O(ie,{onClick:U,size:"small"},{default:de(()=>[...X[13]||(X[13]=[We("查看全部",-1)])]),_:1})]),I("div",Gyt,[O(Ce,null,{default:de(()=>[(H(!0),Q(Ft,null,fn(h.value,ve=>(H(),Xe(ae,{key:ve.id,"dot-color":b(ve.type)},{default:de(()=>[I("div",Kyt,[I("div",qyt,[I("span",Yyt,Be(ve.version),1),I("span",Xyt,Be(x(ve.date)),1)]),I("h4",Zyt,Be(ve.title),1),I("p",Jyt,Be(ve.description),1),I("div",Qyt,[(H(!0),Q(Ft,null,fn(ve.changes.slice(0,2),(Ie,Ne)=>(H(),Xe(se,{key:Ne,size:"small",color:k(ve.type)},{default:de(()=>[We(Be(Ie),1)]),_:2},1032,["color"]))),128)),ve.changes.length>2?(H(),Q("span",e1t," +"+Be(ve.changes.length-2)+"项更新 ",1)):Oe("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),I("div",t1t,[I("div",n1t,[I("h3",r1t,[O(st(eL),{class:"card-icon"}),X[14]||(X[14]=We(" 猜你喜欢 ",-1))]),O(J,{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]=[We("热门",-1)])]),_:1}),O(K,{value:"trending"},{default:de(()=>[...X[16]||(X[16]=[We("趋势",-1)])]),_:1}),O(K,{value:"random"},{default:de(()=>[...X[17]||(X[17]=[We("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",i1t,[I("div",o1t,[(H(!0),Q(Ft,null,fn(p.value,ve=>(H(),Q("div",{key:ve.id,class:"recommend-item",onClick:Ie=>M(ve)},[I("div",a1t,[I("div",{class:"poster-placeholder",style:Ve({backgroundColor:C(ve.type)})},Be(ve.title.substring(0,2)),5),I("div",l1t,[O(st(hl),{class:"play-icon"})]),ve.trending?(H(),Q("div",u1t," 🔥 热门 ")):Oe("",!0)]),I("div",c1t,[I("h4",d1t,Be(ve.title),1),I("div",f1t,[O(se,{size:"small",color:E(ve.type)},{default:de(()=>[We(Be(ve.type),1)]),_:2},1032,["color"]),I("span",h1t,[O(st(Dz)),We(" "+Be(ve.rating),1)])]),I("div",p1t,[(H(!0),Q(Ft,null,fn(ve.tags.slice(0,2),Ie=>(H(),Xe(se,{key:Ie,size:"mini",color:"gray"},{default:de(()=>[We(Be(Ie),1)]),_:2},1024))),128))])])],8,s1t))),128))])])]),I("div",v1t,[I("div",m1t,[I("h3",g1t,[O(st(zpe),{class:"card-icon"}),X[18]||(X[18]=We(" 热搜关键词 ",-1))]),O(ie,{onClick:z,size:"small"},{default:de(()=>[...X[19]||(X[19]=[We("更多",-1)])]),_:1})]),I("div",y1t,[I("div",b1t,[(H(!0),Q(Ft,null,fn(m.value,(ve,Ie)=>(H(),Q("div",{key:ve.keyword,class:"keyword-item",onClick:Ne=>D(ve)},[I("div",{class:le(["keyword-rank",{"top-three":Ie<3}])},Be(Ie+1),3),I("div",S1t,[I("span",k1t,Be(ve.keyword),1),I("div",w1t,[I("span",C1t,Be(_(ve.count)),1),I("span",{class:le(["keyword-trend",ve.trend])},[ve.trend==="up"?(H(),Xe(st(Sj),{key:0})):ve.trend==="down"?(H(),Xe(st(_j),{key:1})):(H(),Xe(st(_g),{key:2}))],2)])])],8,_1t))),128))])])]),I("div",E1t,[I("div",x1t,[I("h3",T1t,[O(st(Jz),{class:"card-icon"}),X[20]||(X[20]=We(" 系统状态 ",-1))])]),I("div",A1t,[I("div",I1t,[I("div",L1t,[I("div",P1t,[O(st(Cc))]),X[21]||(X[21]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"播放服务"),I("div",{class:"status-value"},"正常")],-1))]),I("div",R1t,[I("div",M1t,[O(st(Cc))]),X[22]||(X[22]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"数据同步"),I("div",{class:"status-value"},"正常")],-1))]),I("div",D1t,[I("div",O1t,[O(st(ch))]),X[23]||(X[23]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"存储空间"),I("div",{class:"status-value"},"85%")],-1))]),I("div",$1t,[I("div",N1t,[O(st(Cc))]),X[24]||(X[24]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"网络连接"),I("div",{class:"status-value"},"良好")],-1))])])])]),O(Eyt)])])]),O(ke,{visible:$.value,"onUpdate:visible":X[2]||(X[2]=ve=>$.value=ve),title:"更新日志",width:"800px",footer:!1,onCancel:G},{default:de(()=>[I("div",B1t,[O(Ce,null,{default:de(()=>[(H(!0),Q(Ft,null,fn(B.value,ve=>(H(),Xe(ae,{key:ve.id,"dot-color":b(ve.type)},{default:de(()=>[I("div",F1t,[I("div",j1t,[I("span",U1t,Be(ve.version),1),I("span",V1t,Be(x(ve.date)),1),O(se,{size:"small",color:k(ve.type),class:"type-tag"},{default:de(()=>[We(Be(S()[ve.type]?.label||ve.type),1)]),_:2},1032,["color"])]),I("h4",z1t,Be(ve.title),1),I("p",H1t,Be(ve.description),1),I("div",W1t,[(H(!0),Q(Ft,null,fn(ve.changes,(Ie,Ne)=>(H(),Xe(se,{key:Ne,size:"small",color:k(ve.type),class:"change-tag"},{default:de(()=>[We(Be(Ie),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),O(ke,{visible:L.value,"onUpdate:visible":X[3]||(X[3]=ve=>L.value=ve),title:"热搜关键词",width:"600px",footer:!1,onCancel:Y},{default:de(()=>[I("div",G1t,[I("div",K1t,[(H(!0),Q(Ft,null,fn(F.value,(ve,Ie)=>(H(),Q("div",{key:ve.keyword,class:"keyword-item",onClick:Ne=>D(ve)},[I("div",{class:le(["keyword-rank",{"top-three":Ie<3}])},Be(Ie+1),3),I("div",Y1t,[I("span",X1t,Be(ve.keyword),1),I("div",Z1t,[I("span",J1t,Be(_(ve.count)),1),I("span",{class:le(["keyword-trend",ve.trend])},[ve.trend==="up"?(H(),Xe(st(Sj),{key:0})):ve.trend==="down"?(H(),Xe(st(_j),{key:1})):(H(),Xe(st(_g),{key:2}))],2)])])],8,q1t))),128))])])]),_:1},8,["visible"])],64)}}},ebt=_r(Q1t,[["__scopeId","data-v-217d9b8b"]]),tbt={class:"tag-container"},nbt={class:"search-section"},rbt={class:"search-row"},ibt={class:"source-count"},obt={class:"sources-section"},sbt={key:0,class:"empty-state"},abt={key:1,class:"button-container"},lbt={class:"source-info"},ubt={class:"source-name"},cbt={key:0,class:"current-icon"},dbt={class:"dialog-footer"},fbt={class:"footer-left"},hbt={class:"footer-right"},pbt={__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=pe(""),a=pe({new_site:{}}),s=pe(null),l=pe(!1),c=x=>{const _=x.match(/\[(.*?)\]/);return _?_[1]:null},f={ds:"(DS)",hipy:"(hipy)",cat:"(cat)"},h=j(()=>{const x=n.sites.filter(A=>A.type===4).map(A=>c(A.name)).filter(A=>A!==null);return[...[...new Set(x)],"ds","hipy","cat"]}),p=x=>{x==="全部"?o.value="":f[x]?o.value=f[x]:o.value=`[${x}]`,l.value=!1},m=j(()=>{const x=o.value.toLowerCase();return n.sites.filter(_=>_.type===4).filter(_=>_.name.toLowerCase().includes(x))}),g=j(()=>window.innerWidth<768?"95%":"700px"),b=x=>{a.value.new_site=x,r("change-rule",x)},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)},E=()=>{kn(()=>{if(s.value&&s.value.length>0){const x=s.value[0];x&&x.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}})};return Dt(()=>n.visible,x=>{x&&n.currentSiteKey&&setTimeout(()=>{E()},100)}),Dt(m,()=>{n.visible&&n.currentSiteKey&&o.value.trim()!==""&&m.value.some(_=>_.key===n.currentSiteKey)&&setTimeout(()=>{E()},50)}),(x,_)=>{const A=Me("a-button"),R=Me("a-modal"),M=Me("a-input");return H(),Q(Ft,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",tbt,[O(A,{type:"secondary",class:"tag-item",onClick:_[0]||(_[0]=D=>p("全部"))},{default:de(()=>[..._[4]||(_[4]=[We(" 全部 ",-1)])]),_:1}),(H(!0),Q(Ft,null,fn(h.value,(D,$)=>(H(),Xe(A,{key:$,type:"secondary",class:"tag-item",onClick:L=>p(D)},{default:de(()=>[We(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",dbt,[I("div",fbt,[O(A,{type:"outline",status:"danger",onClick:S},{default:de(()=>[O(st(nf)),_[7]||(_[7]=We(" 清除缓存 ",-1))]),_:1})]),I("div",hbt,[O(A,{onClick:C},{default:de(()=>[..._[8]||(_[8]=[We("取消",-1)])]),_:1}),O(A,{type:"primary",onClick:k,disabled:!a.value.new_site.key},{default:de(()=>[..._[9]||(_[9]=[We(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:de(()=>[I("div",nbt,[I("div",rbt,[O(M,{modelValue:o.value,"onUpdate:modelValue":_[2]||(_[2]=D=>o.value=D),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:de(()=>[O(st(yg))]),_:1},8,["modelValue"]),O(A,{type:"primary",status:"success",class:"tag-button",onClick:_[3]||(_[3]=D=>l.value=!0)},{default:de(()=>[..._[5]||(_[5]=[We(" TAG ",-1)])]),_:1})]),I("div",ibt," 共 "+Be(m.value.length)+" 个可用数据源 ",1)]),I("div",obt,[m.value.length===0?(H(),Q("div",sbt,[O(st(sz)),_[6]||(_[6]=I("p",null,"未找到匹配的数据源",-1))])):(H(),Q("div",abt,[(H(!0),Q(Ft,null,fn(m.value,(D,$)=>(H(),Q("div",{key:D.key||$,ref_for:!0,ref:D.key===e.currentSiteKey?"currentSourceRef":null,class:le(["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:le(["source-button",{"current-source-button":D.key===e.currentSiteKey}])},{default:de(()=>[I("div",lbt,[I("div",ubt,Be(D.name),1),D.key===e.currentSiteKey?(H(),Q("div",cbt,[O(st(Fh))])):Oe("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},vbt=_r(pbt,[["__scopeId","data-v-105ac4df"]]),mbt={class:"breadcrumb-container"},gbt={class:"header-left"},ybt={class:"navigation-title"},bbt={class:"header-center"},_bt={class:"header-right"},Sbt={class:"push-modal-content"},kbt={class:"push-description"},wbt={class:"push-hint"},Cbt={class:"hint-item"},Ebt={class:"hint-item"},xbt={__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=pe(""),o=pe(!1),a=pe(""),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=()=>{Lt.info({content:"全局动作功能开发中,敬请期待!",duration:3e3})},p=()=>{if(!a.value.trim()){Lt.error("推送内容不能为空");return}const g=a.value.split(` `).map(S=>S.trim()).filter(S=>S);if(g.length===0){Lt.error("请输入有效的推送内容");return}const b=g[0];g.length>1&&Lt.info(`检测到多行输入,将使用第一行内容: ${b}`),n("handlePush",b),o.value=!1,a.value=""},m=()=>{o.value=!1,a.value=""};return(g,b)=>{const S=Me("icon-apps"),k=Me("a-button"),C=Me("icon-refresh"),E=Me("a-input-search"),x=Me("icon-send"),_=Me("icon-thunderbolt"),A=Me("a-textarea"),R=Me("icon-info-circle"),M=Me("icon-bulb"),D=Me("a-modal");return H(),Q(Ft,null,[I("div",mbt,[I("div",gbt,[I("span",ybt,Be(e.navigation_title),1),O(k,{type:"outline",status:"success",shape:"round",onClick:s},{icon:de(()=>[O(S)]),default:de(()=>[We(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]=[We("重载源",-1)])]),_:1})]),I("div",bbt,[O(E,{modelValue:r.value,"onUpdate:modelValue":b[0]||(b[0]=$=>r.value=$),placeholder:"搜索视频","enter-button":"",onSearch:c,onPressEnter:c},null,8,["modelValue"])]),I("div",_bt,[O(k,{type:"outline",status:"success",shape:"round",onClick:f},{icon:de(()=>[O(x)]),default:de(()=>[...b[4]||(b[4]=[We("推送",-1)])]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:h},{icon:de(()=>[O(_)]),default:de(()=>[...b[5]||(b[5]=[We("全局动作",-1)])]),_:1}),ft(g.$slots,"default",{},void 0,!0)])]),O(D,{visible:o.value,"onUpdate:visible":b[2]||(b[2]=$=>o.value=$),title:"推送内容",width:600,onOk:p,onCancel:m,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!a.value.trim()}},{default:de(()=>[I("div",Sbt,[I("div",kbt,[O(x,{class:"push-icon"}),b[6]||(b[6]=I("span",null,"请输入要推送的内容(vod_id):",-1))]),O(A,{modelValue:a.value,"onUpdate:modelValue":b[1]||(b[1]=$=>a.value=$),placeholder:`请输入要推送的内容... 支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),I("div",wbt,[I("div",Cbt,[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)}}},Tbt=_r(xbt,[["__scopeId","data-v-20e05b46"]]);function Z0e(e,t){return function(){return e.apply(t,arguments)}}const{toString:Abt}=Object.prototype,{getPrototypeOf:lW}=Object,{iterator:VL,toStringTag:J0e}=Symbol,zL=(e=>t=>{const n=Abt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ld=e=>(e=e.toLowerCase(),t=>zL(t)===e),HL=e=>t=>typeof t===e,{isArray:nb}=Array,T1=HL("undefined");function qk(e){return e!==null&&!T1(e)&&e.constructor!==null&&!T1(e.constructor)&&Su(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Q0e=Ld("ArrayBuffer");function Ibt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Q0e(e.buffer),t}const Lbt=HL("string"),Su=HL("function"),eye=HL("number"),Yk=e=>e!==null&&typeof e=="object",Pbt=e=>e===!0||e===!1,K4=e=>{if(zL(e)!=="object")return!1;const t=lW(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(J0e in e)&&!(VL in e)},Rbt=e=>{if(!Yk(e)||qk(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Mbt=Ld("Date"),Dbt=Ld("File"),Obt=Ld("Blob"),$bt=Ld("FileList"),Nbt=e=>Yk(e)&&Su(e.pipe),Bbt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Su(e.append)&&((t=zL(e))==="formdata"||t==="object"&&Su(e.toString)&&e.toString()==="[object FormData]"))},Fbt=Ld("URLSearchParams"),[jbt,Ubt,Vbt,zbt]=["ReadableStream","Request","Response","Headers"].map(Ld),Hbt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xk(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 Vm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,nye=e=>!T1(e)&&e!==Vm;function RU(){const{caseless:e,skipUndefined:t}=nye(this)&&this||{},n={},r=(o,a)=>{const s=e&&tye(n,a)||a;K4(n[s])&&K4(o)?n[s]=RU(n[s],o):K4(o)?n[s]=RU({},o):nb(o)?n[s]=o.slice():(!t||!T1(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o(Xk(t,(o,a)=>{n&&Su(o)?e[a]=Z0e(o,n):e[a]=o},{allOwnKeys:r}),e),Gbt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Kbt=(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)},qbt=(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&&lW(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ybt=(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},Xbt=e=>{if(!e)return null;if(nb(e))return e;let t=e.length;if(!eye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Zbt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&lW(Uint8Array)),Jbt=(e,t)=>{const r=(e&&e[VL]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Qbt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},e_t=Ld("HTMLFormElement"),t_t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ase=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),n_t=Ld("RegExp"),rye=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Xk(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},r_t=e=>{rye(e,(t,n)=>{if(Su(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Su(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+"'")})}})},i_t=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return nb(e)?r(e):r(String(e).split(t)),n},o_t=()=>{},s_t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function a_t(e){return!!(e&&Su(e.append)&&e[J0e]==="FormData"&&e[VL])}const l_t=e=>{const t=new Array(10),n=(r,o)=>{if(Yk(r)){if(t.indexOf(r)>=0)return;if(qk(r))return r;if(!("toJSON"in r)){t[o]=r;const a=nb(r)?[]:{};return Xk(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)},u_t=Ld("AsyncFunction"),c_t=e=>e&&(Yk(e)||Su(e))&&Su(e.then)&&Su(e.catch),iye=((e,t)=>e?setImmediate:t?((n,r)=>(Vm.addEventListener("message",({source:o,data:a})=>{o===Vm&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Vm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Su(Vm.postMessage)),d_t=typeof queueMicrotask<"u"?queueMicrotask.bind(Vm):typeof process<"u"&&process.nextTick||iye,f_t=e=>e!=null&&Su(e[VL]),Xt={isArray:nb,isArrayBuffer:Q0e,isBuffer:qk,isFormData:Bbt,isArrayBufferView:Ibt,isString:Lbt,isNumber:eye,isBoolean:Pbt,isObject:Yk,isPlainObject:K4,isEmptyObject:Rbt,isReadableStream:jbt,isRequest:Ubt,isResponse:Vbt,isHeaders:zbt,isUndefined:T1,isDate:Mbt,isFile:Dbt,isBlob:Obt,isRegExp:n_t,isFunction:Su,isStream:Nbt,isURLSearchParams:Fbt,isTypedArray:Zbt,isFileList:$bt,forEach:Xk,merge:RU,extend:Wbt,trim:Hbt,stripBOM:Gbt,inherits:Kbt,toFlatObject:qbt,kindOf:zL,kindOfTest:Ld,endsWith:Ybt,toArray:Xbt,forEachEntry:Jbt,matchAll:Qbt,isHTMLForm:e_t,hasOwnProperty:Ase,hasOwnProp:Ase,reduceDescriptors:rye,freezeMethods:r_t,toObjectSet:i_t,toCamelCase:t_t,noop:o_t,toFiniteNumber:s_t,findKey:tye,global:Vm,isContextDefined:nye,isSpecCompliantForm:a_t,toJSONObject:l_t,isAsyncFn:u_t,isThenable:c_t,setImmediate:iye,asap:d_t,isIterable:f_t};function Hr(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)}Xt.inherits(Hr,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:Xt.toJSONObject(this.config),code:this.code,status:this.status}}});const oye=Hr.prototype,sye={};["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=>{sye[e]={value:e}});Object.defineProperties(Hr,sye);Object.defineProperty(oye,"isAxiosError",{value:!0});Hr.from=(e,t,n,r,o,a)=>{const s=Object.create(oye);Xt.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 Hr.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 h_t=null;function MU(e){return Xt.isPlainObject(e)||Xt.isArray(e)}function aye(e){return Xt.endsWith(e,"[]")?e.slice(0,-2):e}function Ise(e,t,n){return e?e.concat(t).map(function(o,a){return o=aye(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function p_t(e){return Xt.isArray(e)&&!e.some(MU)}const v_t=Xt.toFlatObject(Xt,{},null,function(t){return/^is[A-Z]/.test(t)});function WL(e,t,n){if(!Xt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Xt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,k){return!Xt.isUndefined(k[S])});const r=n.metaTokens,o=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Xt.isSpecCompliantForm(t);if(!Xt.isFunction(o))throw new TypeError("visitor must be a function");function f(b){if(b===null)return"";if(Xt.isDate(b))return b.toISOString();if(Xt.isBoolean(b))return b.toString();if(!c&&Xt.isBlob(b))throw new Hr("Blob is not supported. Use a Buffer instead.");return Xt.isArrayBuffer(b)||Xt.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(Xt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(Xt.isArray(b)&&p_t(b)||(Xt.isFileList(b)||Xt.endsWith(S,"[]"))&&(C=Xt.toArray(b)))return S=aye(S),C.forEach(function(x,_){!(Xt.isUndefined(x)||x===null)&&t.append(s===!0?Ise([S],_,a):s===null?S:S+"[]",f(x))}),!1}return MU(b)?!0:(t.append(Ise(k,S,a),f(b)),!1)}const p=[],m=Object.assign(v_t,{defaultVisitor:h,convertValue:f,isVisitable:MU});function g(b,S){if(!Xt.isUndefined(b)){if(p.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(b),Xt.forEach(b,function(C,E){(!(Xt.isUndefined(C)||C===null)&&o.call(t,C,Xt.isString(E)?E.trim():E,S,m))===!0&&g(C,S?S.concat(E):[E])}),p.pop()}}if(!Xt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Lse(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function uW(e,t){this._pairs=[],e&&WL(e,this,t)}const lye=uW.prototype;lye.append=function(t,n){this._pairs.push([t,n])};lye.toString=function(t){const n=t?function(r){return t.call(this,r,Lse)}:Lse;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function m_t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function uye(e,t,n){if(!t)return e;const r=n&&n.encode||m_t;Xt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Xt.isURLSearchParams(t)?t.toString():new uW(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Pse{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){Xt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const cye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},g_t=typeof URLSearchParams<"u"?URLSearchParams:uW,y_t=typeof FormData<"u"?FormData:null,b_t=typeof Blob<"u"?Blob:null,__t={isBrowser:!0,classes:{URLSearchParams:g_t,FormData:y_t,Blob:b_t},protocols:["http","https","file","blob","url","data"]},cW=typeof window<"u"&&typeof document<"u",DU=typeof navigator=="object"&&navigator||void 0,S_t=cW&&(!DU||["ReactNative","NativeScript","NS"].indexOf(DU.product)<0),k_t=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",w_t=cW&&window.location.href||"http://localhost",C_t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cW,hasStandardBrowserEnv:S_t,hasStandardBrowserWebWorkerEnv:k_t,navigator:DU,origin:w_t},Symbol.toStringTag,{value:"Module"})),cl={...C_t,...__t};function E_t(e,t){return WL(e,new cl.classes.URLSearchParams,{visitor:function(n,r,o,a){return cl.isNode&&Xt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function x_t(e){return Xt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T_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&&Xt.isArray(o)?o.length:s,c?(Xt.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!Xt.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&Xt.isArray(o[s])&&(o[s]=T_t(o[s])),!l)}if(Xt.isFormData(e)&&Xt.isFunction(e.entries)){const n={};return Xt.forEachEntry(e,(r,o)=>{t(x_t(r),o,n,0)}),n}return null}function A_t(e,t,n){if(Xt.isString(e))try{return(t||JSON.parse)(e),Xt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Zk={transitional:cye,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Xt.isObject(t);if(a&&Xt.isHTMLForm(t)&&(t=new FormData(t)),Xt.isFormData(t))return o?JSON.stringify(dye(t)):t;if(Xt.isArrayBuffer(t)||Xt.isBuffer(t)||Xt.isStream(t)||Xt.isFile(t)||Xt.isBlob(t)||Xt.isReadableStream(t))return t;if(Xt.isArrayBufferView(t))return t.buffer;if(Xt.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=Xt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return WL(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),A_t(t)):t}],transformResponse:[function(t){const n=this.transitional||Zk.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Xt.isResponse(t)||Xt.isReadableStream(t))return t;if(t&&Xt.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"?Hr.from(l,Hr.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:cl.classes.FormData,Blob:cl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Xt.forEach(["delete","get","head","post","put","patch"],e=>{Zk.headers[e]={}});const I_t=Xt.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"]),L_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]&&I_t[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Rse=Symbol("internals");function nS(e){return e&&String(e).trim().toLowerCase()}function q4(e){return e===!1||e==null?e:Xt.isArray(e)?e.map(q4):String(e)}function P_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 R_t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function L9(e,t,n,r,o){if(Xt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Xt.isString(t)){if(Xt.isString(r))return t.indexOf(r)!==-1;if(Xt.isRegExp(r))return r.test(t)}}function M_t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function D_t(e,t){const n=Xt.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 ku=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=Xt.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)=>Xt.forEach(l,(f,h)=>a(f,h,c));if(Xt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Xt.isString(t)&&(t=t.trim())&&!R_t(t))s(L_t(t),n);else if(Xt.isObject(t)&&Xt.isIterable(t)){let l={},c,f;for(const h of t){if(!Xt.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[f=h[0]]=(c=l[f])?Xt.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=Xt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return P_t(o);if(Xt.isFunction(n))return n.call(this,o,r);if(Xt.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=Xt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||L9(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=Xt.findKey(r,s);l&&(!n||L9(r,r[l],l,n))&&(delete r[l],o=!0)}}return Xt.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||L9(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Xt.forEach(this,(o,a)=>{const s=Xt.findKey(r,a);if(s){n[s]=q4(o),delete n[a];return}const l=t?M_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 Xt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Xt.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[Rse]=this[Rse]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=nS(s);r[l]||(D_t(o,s),r[l]=!0)}return Xt.isArray(t)?t.forEach(a):a(t),this}};ku.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Xt.reduceDescriptors(ku.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Xt.freezeMethods(ku);function P9(e,t){const n=this||Zk,r=t||n,o=ku.from(r.headers);let a=r.data;return Xt.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function fye(e){return!!(e&&e.__CANCEL__)}function rb(e,t,n){Hr.call(this,e??"canceled",Hr.ERR_CANCELED,t,n),this.name="CanceledError"}Xt.inherits(rb,Hr,{__CANCEL__:!0});function hye(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Hr("Request failed with status code "+n.status,[Hr.ERR_BAD_REQUEST,Hr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function O_t(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $_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 TI=(e,t,n=3)=>{let r=0;const o=$_t(50,250);return N_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)},Mse=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Dse=e=>(...t)=>Xt.asap(()=>e(...t)),B_t=cl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,cl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(cl.origin),cl.navigator&&/(msie|trident)/i.test(cl.navigator.userAgent)):()=>!0,F_t=cl.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];Xt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Xt.isString(r)&&s.push("path="+r),Xt.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 j_t(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function U_t(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pye(e,t,n){let r=!j_t(t);return e&&(r||n==!1)?U_t(e,t):t}const Ose=e=>e instanceof ku?{...e}:e;function xg(e,t){t=t||{};const n={};function r(f,h,p,m){return Xt.isPlainObject(f)&&Xt.isPlainObject(h)?Xt.merge.call({caseless:m},f,h):Xt.isPlainObject(h)?Xt.merge({},h):Xt.isArray(h)?h.slice():h}function o(f,h,p,m){if(Xt.isUndefined(h)){if(!Xt.isUndefined(f))return r(void 0,f,p,m)}else return r(f,h,p,m)}function a(f,h){if(!Xt.isUndefined(h))return r(void 0,h)}function s(f,h){if(Xt.isUndefined(h)){if(!Xt.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(Ose(f),Ose(h),p,!0)};return Xt.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||o,m=p(e[h],t[h],h);Xt.isUndefined(m)&&p!==l||(n[h]=m)}),n}const vye=e=>{const t=xg({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=ku.from(s),t.url=uye(pye(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Xt.isFormData(n)){if(cl.hasStandardBrowserEnv||cl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Xt.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(cl.hasStandardBrowserEnv&&(r&&Xt.isFunction(r)&&(r=r(t)),r||r!==!1&&B_t(t.url))){const c=o&&a&&F_t.read(a);c&&s.set(o,c)}return t},V_t=typeof XMLHttpRequest<"u",z_t=V_t&&function(e){return new Promise(function(n,r){const o=vye(e);let a=o.data;const s=ku.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 x=ku.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),A={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:x,config:e,request:k};hye(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 Hr("Request aborted",Hr.ECONNABORTED,e,k)),k=null)},k.onerror=function(_){const A=_&&_.message?_.message:"Network Error",R=new Hr(A,Hr.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||cye;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new Hr(_,A.clarifyTimeoutError?Hr.ETIMEDOUT:Hr.ECONNABORTED,e,k)),k=null},a===void 0&&s.setContentType(null),"setRequestHeader"in k&&Xt.forEach(s.toJSON(),function(_,A){k.setRequestHeader(A,_)}),Xt.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),f&&([m,b]=TI(f,!0),k.addEventListener("progress",m)),c&&k.upload&&([p,g]=TI(c),k.upload.addEventListener("progress",p),k.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(h=x=>{k&&(r(!x||x.type?new rb(null,e,k):x),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const E=O_t(o.url);if(E&&cl.protocols.indexOf(E)===-1){r(new Hr("Unsupported protocol "+E+":",Hr.ERR_BAD_REQUEST,e));return}k.send(a||null)})},H_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 Hr?h:new rb(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new Hr(`timeout ${t} of ms exceeded`,Hr.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=()=>Xt.asap(l),c}},W_t=function*(e,t){let n=e.byteLength;if(n{const o=G_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})},Nse=64*1024,{isFunction:Kx}=Xt,mye=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(Xt.global),{ReadableStream:Bse,TextEncoder:Fse}=Xt.global,jse=(e,...t)=>{try{return!!e(...t)}catch{return!1}},q_t=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},mye,e),o=Kx(t),a=Kx(n),s=Kx(r);if(!o)return!1;const l=o&&Kx(Bse),c=o&&(typeof Fse=="function"?(b=>S=>b.encode(S))(new Fse):async b=>new Uint8Array(await new n(b).arrayBuffer())),f=a&&l&&jse(()=>{let b=!1;const S=new n(cl.origin,{body:new Bse,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!S}),h=s&&l&&jse(()=>Xt.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 Hr(`Response type '${b}' is not supported`,Hr.ERR_NOT_SUPPORT,k)})});const m=async b=>{if(b==null)return 0;if(Xt.isBlob(b))return b.size;if(Xt.isSpecCompliantForm(b))return(await new n(cl.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(Xt.isArrayBufferView(b)||Xt.isArrayBuffer(b))return b.byteLength;if(Xt.isURLSearchParams(b)&&(b=b+""),Xt.isString(b))return(await c(b)).byteLength},g=async(b,S)=>{const k=Xt.toFiniteNumber(b.getContentLength());return k??m(S)};return async b=>{let{url:S,method:k,data:C,signal:E,cancelToken:x,timeout:_,onDownloadProgress:A,onUploadProgress:R,responseType:M,headers:D,withCredentials:$="same-origin",fetchOptions:L}=vye(b);M=M?(M+"").toLowerCase():"text";let B=H_t([E,x&&x.toAbortSignal()],_),F=null;const U=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let z;try{if(R&&f&&k!=="get"&&k!=="head"&&(z=await g(D,C))!==0){let K=new n(S,{method:"POST",body:C,duplex:"half"}),J;if(Xt.isFormData(C)&&(J=K.headers.get("content-type"))&&D.setContentType(J),K.body){const[ie,se]=Mse(z,TI(Dse(R)));C=$se(K.body,Nse,ie,se)}}Xt.isString($)||($=$?"include":"omit");const G=a&&"credentials"in n.prototype,Y={...L,signal:B,method:k.toUpperCase(),headers:D.normalize().toJSON(),body:C,duplex:"half",credentials:G?$:void 0};F=a&&new n(S,Y);let re=await(a?t(F,L):t(S,Y));const te=h&&(M==="stream"||M==="response");if(h&&(A||te&&U)){const K={};["status","statusText","headers"].forEach(ae=>{K[ae]=re[ae]});const J=Xt.toFiniteNumber(re.headers.get("content-length")),[ie,se]=A&&Mse(J,TI(Dse(A),!0))||[];re=new r($se(re.body,Nse,ie,()=>{se&&se(),U&&U()}),K)}M=M||"text";let X=await p[Xt.findKey(p,M)||"text"](re,b);return!te&&U&&U(),await new Promise((K,J)=>{hye(K,J,{data:X,headers:ku.from(re.headers),status:re.status,statusText:re.statusText,config:b,request:F})})}catch(G){throw U&&U(),G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new Hr("Network Error",Hr.ERR_NETWORK,b,F),{cause:G.cause||G}):Hr.from(G,G&&G.code,b,F)}}},Y_t=new Map,gye=e=>{let t=Xt.merge.call({skipUndefined:!0},mye,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=Y_t;for(;l--;)c=a[l],f=h.get(c),f===void 0&&h.set(c,f=l?new Map:q_t(t)),h=f;return f};gye();const OU={http:h_t,xhr:z_t,fetch:{get:gye}};Xt.forEach(OU,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Use=e=>`- ${e}`,X_t=e=>Xt.isFunction(e)||e===null||e===!1,yye={getAdapter:(e,t)=>{e=Xt.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(Use).join(` `):" "+Use(s[0]):"as no adapter specified";throw new Hr("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:OU};function R9(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rb(null,e)}function Vse(e){return R9(e),e.headers=ku.from(e.headers),e.data=P9.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),yye.getAdapter(e.adapter||Zk.adapter,e)(e).then(function(r){return R9(e),r.data=P9.call(e,e.transformResponse,r),r.headers=ku.from(r.headers),r},function(r){return fye(r)||(R9(e),r&&r.response&&(r.response.data=P9.call(e,e.transformResponse,r.response),r.response.headers=ku.from(r.response.headers))),Promise.reject(r)})}const bye="1.12.0",GL={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{GL[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const zse={};GL.transitional=function(t,n,r){function o(a,s){return"[Axios v"+bye+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new Hr(o(s," has been removed"+(n?" in "+n:"")),Hr.ERR_DEPRECATED);return n&&!zse[s]&&(zse[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}};GL.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Z_t(e,t,n){if(typeof e!="object")throw new Hr("options must be an object",Hr.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 Hr("option "+a+" must be "+c,Hr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Hr("Unknown option "+a,Hr.ERR_BAD_OPTION)}}const Y4={assertOptions:Z_t,validators:GL},zd=Y4.validators;let ag=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Pse,response:new Pse}}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=xg(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Y4.assertOptions(r,{silentJSONParsing:zd.transitional(zd.boolean),forcedJSONParsing:zd.transitional(zd.boolean),clarifyTimeoutError:zd.transitional(zd.boolean)},!1),o!=null&&(Xt.isFunction(o)?n.paramsSerializer={serialize:o}:Y4.assertOptions(o,{encode:zd.function,serialize:zd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Y4.assertOptions(n,{baseUrl:zd.spelling("baseURL"),withXsrfToken:zd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Xt.merge(a.common,a[n.method]);a&&Xt.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=ku.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=[Vse.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 _ye(function(o){t=o}),cancel:t}}};function Q_t(e){return function(n){return e.apply(null,n)}}function eSt(e){return Xt.isObject(e)&&e.isAxiosError===!0}const $U={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($U).forEach(([e,t])=>{$U[t]=e});function Sye(e){const t=new ag(e),n=Z0e(ag.prototype.request,t);return Xt.extend(n,ag.prototype,t,{allOwnKeys:!0}),Xt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Sye(xg(e,o))},n}const lo=Sye(Zk);lo.Axios=ag;lo.CanceledError=rb;lo.CancelToken=J_t;lo.isCancel=fye;lo.VERSION=bye;lo.toFormData=WL;lo.AxiosError=Hr;lo.Cancel=lo.CanceledError;lo.all=function(t){return Promise.all(t)};lo.spread=Q_t;lo.isAxiosError=eSt;lo.mergeConfig=xg;lo.AxiosHeaders=ku;lo.formToJSON=e=>dye(Xt.isHTMLForm(e)?new FormData(e):e);lo.getAdapter=yye.getAdapter;lo.HttpStatusCode=$U;lo.default=lo;const{Axios:tSt,AxiosError:nSt,CanceledError:rSt,isCancel:iSt,CancelToken:oSt,VERSION:sSt,all:aSt,Cancel:lSt,isAxiosError:uSt,spread:cSt,toFormData:dSt,AxiosHeaders:fSt,HttpStatusCode:hSt,formToJSON:pSt,getAdapter:vSt,mergeConfig:mSt}=lo,kye=Object.freeze(Object.defineProperty({__proto__:null,Axios:tSt,AxiosError:nSt,AxiosHeaders:fSt,Cancel:lSt,CancelToken:oSt,CanceledError:rSt,HttpStatusCode:hSt,VERSION:sSt,all:aSt,default:lo,formToJSON:pSt,getAdapter:vSt,isAxiosError:uSt,isCancel:iSt,mergeConfig:mSt,spread:cSt,toFormData:dSt},Symbol.toStringTag,{value:"Module"})),M9={BASE_URL:"http://localhost:5707",TIMEOUT:3e4,HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},dW={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},KL={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},gSt={SUCCESS:200},wye={DEFAULT_PAGE:1},fW=lo.create({baseURL:M9.BASE_URL,timeout:M9.TIMEOUT,headers:M9.HEADERS});fW.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)));fW.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!==gSt.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 qL=async(e,t={})=>{try{return await fW({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},Iv=(e,t={})=>qL(e,{method:"GET",params:t}),Cye=(e,t={})=>qL(e,{method:"POST",data:t}),ySt=(e,t={})=>qL(e,{method:"PUT",data:t}),bSt=(e,t={})=>qL(e,{method:"DELETE",params:t}),qx=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解析] 未知类型,返回空对象"),{}},Hg=e=>{if(e){if(typeof e=="object"&&e!==null)try{return JSON.stringify(e)}catch(t){console.warn("extend参数JSON序列化失败:",t);return}return e}},gv=e=>{const t=encodeURIComponent(e);return`${dW.MODULE}/${t}`},ib=async(e,t={})=>{try{return(await lo.get(e,{params:t,timeout:3e4,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},_St=async(e,t={})=>{const{filter:n=1,extend:r,apiUrl:o}=t,a={filter:n},s=Hg(r);return s&&(a.extend=s),o?ib(o,a):Iv(gv(e),a)},SSt=async(e,t)=>{const{t:n,pg:r=wye.DEFAULT_PAGE,ext:o,extend:a,apiUrl:s}=t,l={ac:KL.CATEGORY,t:n,pg:r};o&&(l.ext=o);const c=Hg(a);return c&&(l.extend=c),s?ib(s,l):Iv(gv(e),l)},kSt=async(e,t)=>{const{ids:n,extend:r,apiUrl:o}=t,a={ac:KL.DETAIL,ids:n},s=Hg(r);return s&&(a.extend=s),o?ib(o,a):Iv(gv(e),a)},Eye=async(e,t)=>{const{play:n,flag:r,extend:o,apiUrl:a}=t,s={ac:KL.PLAY,play:n};r&&(s.flag=r);const l=Hg(o);return l&&(s.extend=l),a?ib(a,s):Iv(gv(e),s)},wSt=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await Eye(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:""};return n&&typeof n=="object"?n.parse===0?(o.playType="direct",o.url=n.url||n.play_url||"",o.headers=qx(n.headers||n.header),o.needParse=!1,o.needSniff=!1,o.message="直链播放"):n.parse===1?(o.playType="sniff",o.url=n.url||n.play_url||"",o.headers=qx(n.headers||n.header),o.needSniff=!0,o.message="需要嗅探才能播放,尽情期待"):n.jx===1?(o.playType="parse",o.url=n.url||n.play_url||"",o.headers=qx(n.headers||n.header),o.needParse=!0,o.message="需要解析才能播放,尽情期待"):(o.url=n.url||n.play_url||n,o.headers=qx(n.headers||n.header),o.message="直链播放"):typeof n=="string"&&(o.url=n,o.headers={},o.message="直链播放"),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=wye.DEFAULT_PAGE,extend:o,apiUrl:a}=t,s={wd:n,pg:r},l=Hg(o);return l&&(s.extend=l),a?ib(a,s):Iv(gv(e),s)},YL=async(e,t)=>{const{action:n,extend:r,apiUrl:o,...a}=t,s={ac:KL.ACTION,action:n,...a},l=Hg(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 lo.get(o,{timeout:3e4,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",f.data),f.data}else{const f=await lo.post(o,s,{timeout:3e4,headers:{Accept:"application/json","Content-Type":"application/json"}});return console.log("API响应 (POST):",f.data),f.data}console.log("使用代理方式调用:",gv(e),s);const c=await Cye(gv(e),s);return console.log("代理响应:",c),c},ESt=async(e,t,n)=>{const r={refresh:"1"},o=Hg(t);return o&&(r.extend=o),n?ib(n,r):Iv(gv(e),r)},xSt=e=>`${dW.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}),Iv(xSt(e),s)},NU=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 NU(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},Tp=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(!Tp(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 _St(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(!Tp(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)),l&&(h.extend=l),s&&(h.apiUrl=s);const p=await SSt(t,h),m={videos:(p.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(p,o),filters:p.filters||{},total:p.total||0};return this.setCache(c,m),m}catch(h){throw console.error("获取分类视频失败:",h),h}}async getVideoDetails(t,n,r,o=!1,a=null){if(!Tp(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),a&&(l.extend=a);const c=await kSt(t,l);if(!c.list||c.list.length===0)throw new Error("视频不存在");const f=this.formatVideoInfo(c.list[0]);return f.vod_play_url&&(f.playList=this.parsePlayUrls(f.vod_play_url,f.vod_play_from)),this.setCache(s,f),f}catch(l){throw console.error("获取视频详情失败:",l),l}}async searchVideo(t,n){if(!Tp(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};a&&(l.extend=a),s&&(l.apiUrl=s);const c=await CSt(t,l);return{videos:(c.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(c,o),keyword:r.trim(),total:c.total||0,rawResponse:c}}catch(l){throw console.error("搜索视频失败:",l),l}}async getPlayUrl(t,n,r,o=null){if(!Tp(t))throw new Error("无效的模块名称");if(!n)throw new Error("播放地址不能为空");try{const a={play:n};r&&(a.apiUrl=r),o&&(a.extend=o);const s=await Eye(t,a);return{url:s.url||n,headers:s.headers||{},parse:s.parse||!1,jx:s.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(!Tp(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: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(!Tp(t))throw new Error("无效的模块名称");if(!n||n.trim().length===0)throw new Error("动作名称不能为空");try{const o={action:n.trim(),value:r.value||"",extend:r.extend,apiUrl:r.apiUrl};console.log("执行T4 action:",{module:t,actionData:o});const a=await YL(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(!Tp(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const o=await ESt(t,n,r);return{success:!0,message:o.msg||"刷新成功",lastUpdate:o.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=`${dW.PROXY}/${e}`;return t?`${n}/${t}`:n},OSt=async(e,t="",n={})=>{const r=XL(e,t);return Iv(r,n)},$St=async(e,t="",n={})=>{const r=XL(e,t);return Cye(r,n)},NSt=async(e,t="",n={})=>{const r=XL(e,t);return ySt(r,n)},BSt=async(e,t="",n={})=>{const r=XL(e,t);return bSt(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 lo.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{sl.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await sl.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 sl.getConfigStatus()}async setConfigUrl(t){try{const n=await sl.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return sl.getConfigUrl()}emitSitesUpdate(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("sitesUpdate",{detail:{sites:this.getAllSites(),count:this.sites.size}}))}}const Bs=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=j(()=>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=Me("a-button"),p=Me("a-tag");return e.filters?(H(),Q("div",VSt,[O(Es,{name:"collapse"},{default:de(()=>[wi(I("div",zSt,[I("div",HSt,[o.value?(H(),Xe(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:de(()=>[O(st(nf))]),_:1})):Oe("",!0)]),(H(!0),Q(Ft,null,fn(e.filters,m=>(H(),Q("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),Q(Ft,null,fn(m.value,g=>(H(),Xe(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(()=>[We(Be(g.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[Qo,e.visible]])]),_:1})])):Oe("",!0)}}},XSt=_r(YSt,[["__scopeId","data-v-90bc92fe"]]),ZSt={class:"category-nav-container"},JSt={key:0,class:"special-category-header"},QSt={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=pe(n.activeKey||o()),s=pe(null),l=pe({});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,E)=>{E&&l.value[E]&&(l.value[E]=!1)});const f=C=>{a.value=C,r("tab-change",C)},h=C=>{p(C)&&(l.value[C]=!l.value[C])},p=C=>{const E=n.filters[C];return E&&Object.keys(E).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 dn(()=>{const C=s.value;if(!C)return;const E=C.querySelector(".arco-tabs-nav-tab-list");E&&(c=x=>{Math.abs(x.deltaY)>Math.abs(x.deltaX)&&(E.scrollLeft+=x.deltaY,x.preventDefault())},E.addEventListener("wheel",c,{passive:!1}))}),$o(()=>{const E=s.value?.querySelector?.(".arco-tabs-nav-tab-list");E&&c&&E.removeEventListener("wheel",c)}),(C,E)=>{const x=Me("a-tab-pane"),_=Me("a-tabs");return H(),Q("div",ZSt,[I("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[e.specialCategoryState.isActive?(H(),Q("div",JSt,[I("div",QSt,[I("span",e2t,Be(e.specialCategoryState.categoryData?.type_name||"特殊分类"),1),E[1]||(E[1]=I("span",{class:"category-type"},"(源内搜索)",-1))])])):(H(),Xe(_,{key:1,"active-key":a.value,"onUpdate:activeKey":E[0]||(E[0]=A=>a.value=A),type:"line",position:"top",editable:!1,onChange:f},{default:de(()=>[e.hasRecommendVideos?(H(),Xe(x,{key:"recommendTuijian404"},{title:de(()=>[...E[2]||(E[2]=[I("span",null,"推荐",-1)])]),_:1})):Oe("",!0),(H(!0),Q(Ft,null,fn(e.classList?.class||[],A=>(H(),Xe(x,{key:A.type_id},{title:de(()=>[I("div",{class:"category-tab-title",onClick:es(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(),Xe(st(Bz),{key:0,class:le(["filter-icon",{"filter-icon-active":l.value[A.type_id]}])},null,8,["class"])):Oe("",!0)],8,t2t)]),_:2},1024))),128))]),_:1},8,["active-key"])),e.specialCategoryState.isActive?(H(),Q("div",{key:2,class:"special-category-close",onClick:k},[O(st(xs)),E[3]||(E[3]=I("span",null,"返回",-1))])):(H(),Q("div",{key:3,class:"category-manage",onClick:S},[O(st(jpe))]))],512),m(a.value)&&l.value[a.value]?(H(),Xe(XSt,{key:0,filters:m(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:g,onResetFilters:b},null,8,["filters","selectedFilters"])):Oe("",!0)])}}},i2t=_r(r2t,[["__scopeId","data-v-6611df74"]]),o2t="modulepreload",s2t=function(e){return"/apps/drplayer/"+e},Hse={},Hh=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 Hse)return;Hse[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,default:()=>({})},apiUrl:{type:String,default:""}},emits:["update:visible","close","open","opened","closed","toast","reset"],setup(e,{emit:t}){const n=pe(!1),r=pe(!1),o=()=>{r.value=window.innerWidth<=768},a=j(()=>{const p={};return r.value?(p.width="95vw",p.maxWidth="95vw",p.margin="0 auto",e.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=j(()=>{const p={};return e.height&&e.height!=="auto"&&(p.maxHeight="calc(100% - 120px)",p.overflowY="auto"),p}),l=()=>{e.canceledOnTouchOutside&&c()},c=async()=>{n.value||(t("close"),n.value=!0,await new Promise(p=>setTimeout(p,300)),t("update:visible",!1),n.value=!1,t("closed"))},f=p=>{p.key==="Escape"&&e.escapeToClose&&e.visible&&c()};return Dt(()=>e.visible,p=>{p?(t("open"),o(),kn(()=>{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(),Xe(Og,{to:"body"},[O(Es,{name:"action-mask",appear:""},{default:de(()=>[n.visible?(H(),Q("div",{key:0,class:le(["action-mask modal-backdrop",{closing:r.isClosing}]),style:Ve({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[O(Es,{name:"action-dialog",appear:""},{default:de(()=>[n.visible&&!r.isClosing?(H(),Q("div",{key:0,class:le(["action-dialog glass-effect card-modern animate-bounce-in",[n.customClass,{"action-dialog-mobile":r.isMobile}]]),style:Ve(r.dialogStyle),onClick:t[1]||(t[1]=es(()=>{},["stop"]))},[t[4]||(t[4]=I("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(H(),Q("button",{key:0,class:"action-dialog-close btn-modern-icon",onClick:t[0]||(t[0]=(...s)=>r.handleClose&&r.handleClose(...s)),title:"关闭"},[...t[3]||(t[3]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):Oe("",!0),n.title||e.$slots.header?(H(),Q("div",l2t,[ft(e.$slots,"header",{},()=>[I("h3",u2t,Be(n.title),1)],!0)])):Oe("",!0),I("div",{class:"action-dialog-content",style:Ve(r.contentStyle)},[ft(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(H(),Q("div",c2t,[ft(e.$slots,"footer",{},void 0,!0)])):Oe("",!0)],6)):Oe("",!0)]),_:3})],6)):Oe("",!0)]),_:3})])}const Wh=_r(a2t,[["render",d2t],["__scopeId","data-v-aaba4257"]]),vi={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"},oi={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},$c=e=>e==null?oi.OK_CANCEL:Object.values(oi).includes(e)?e:oi.CUSTOM,n1=(e,t,n=null)=>({type:e,message:t,details:n}),hW=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)}},xye=e=>{if(!e||typeof e!="object")throw n1(t1.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw n1(t1.VALIDATION_ERROR,"actionId是必需的");if(!Object.values(vi).includes(e.type))throw n1(t1.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},d2=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),[]}},Tye=(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)}`},Aye=(e,t)=>{let n;return function(...o){const a=()=>{clearTimeout(n),e(...o)};clearTimeout(n),n=setTimeout(a,t)}},f2t=$g(()=>Hh(()=>Promise.resolve().then(()=>iOt),void 0)),h2t=$g(()=>Hh(()=>Promise.resolve().then(()=>YOt),void 0)),p2t=$g(()=>Hh(()=>Promise.resolve().then(()=>Y$t),void 0)),v2t=$g(()=>Hh(()=>Promise.resolve().then(()=>jNt),void 0)),m2t=$g(()=>Hh(()=>Promise.resolve().then(()=>hBt),void 0)),g2t=$g(()=>Hh(()=>Promise.resolve().then(()=>g7t),void 0)),y2t={name:"ActionRenderer",components:{ActionDialog:Wh,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,default:()=>({})},apiUrl:{type:String,default:""}},emits:["action","close","error","success","special-action"],setup(e,{emit:t}){const n=pe(null),r=pe(null),o=pe(!1),a=pe(e.visible),s={[vi.INPUT]:"InputAction",[vi.EDIT]:"InputAction",[vi.MULTI_INPUT]:"MultiInputAction",[vi.MULTI_INPUT_X]:"MultiInputAction",[vi.MENU]:"MenuAction",[vi.SELECT]:"MenuAction",[vi.MSGBOX]:"MsgBoxAction",[vi.WEBVIEW]:"WebViewAction",[vi.HELP]:"HelpAction"},l=j(()=>{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=hW(R);console.log("ActionRenderer parseConfig 解析后的配置:",M),xye(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"),Xn("源内搜索参数不完整:缺少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 事件"),Xn(R.msg||"执行源内搜索","info"),t("special-action","__self_search__",D),console.log("🚀 [ActionRenderer DEBUG] special-action 事件已触发,关闭组件"),g();break;case"__detail__":Xn("跳转到详情页","info"),t("special-action","detail",R),g();break;case"__ktvplayer__":Xn("启动KTV播放","info"),t("special-action","ktv-player",R),g();break;case"__refresh_list__":Xn("刷新列表","info"),t("special-action","refresh-list",R),g();break;case"__copy__":if(R.content)try{await navigator.clipboard.writeText(R.content),Xn("已复制到剪贴板","success")}catch{Xn("复制失败","error")}g();break;case"__keep__":R.msg&&Xn(R.msg,"info"),R.reset&&(n.value=null);break;default:Xn(`未知的专项动作: ${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 x(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{Xn(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&&Xn(D.toast,"success"),(D.message||D.msg)&&Xn(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 $={...D.data};if($.action||$.actionId){if(console.log("在data字段中检测到action:",$),$.action){c($.action);return}if($.actionId){await h($);return}}}Xn(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,Xn(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},E=()=>{a.value=!1},x=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")=>{Xn(R,M)},handleReset:()=>{console.log("InputAction触发重置事件")},handleSpecialActionFromChild:k,clearError:S,show:C,hide:E,executeAction:x}}},b2t={class:"action-renderer"},_2t={class:"action-error"},S2t={key:0};function k2t(e,t,n,r,o,a){const s=Me("ActionDialog");return H(),Q("div",b2t,[r.parsedConfig?(H(),Xe($a(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"])):Oe("",!0),r.error?(H(),Xe(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(),Q("pre",S2t,Be(JSON.stringify(r.error.details,null,2)),1)):Oe("",!0)])]),_:1},8,["visible","onClose"])):Oe("",!0),r.isLoading?(H(),Xe(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"])):Oe("",!0)])}const Jk=_r(y2t,[["render",k2t],["__scopeId","data-v-6604cb48"]]),w2t=["onClick"],C2t={class:"video_list_item_img"},E2t=["innerHTML"],x2t={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,default:()=>({})},apiUrl:{type:String,default:""}},emits:["load-more","scroll-bottom","refresh-list","special-action"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=gl(),s=aL(),l=pe(null),c=pe(null),f=pe(0),h=pe(null),p=pe(!1),m=pe(null),g=async R=>{if(R&&R.vod_id){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 md.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?Xn("执行源内搜索","success"):Lt.error({content:`无法获取动作配置: ${R}`,duration:3e3,closable:!0})}catch(M){console.error("T4 action执行失败:",M),Lt.error({content:`动作执行失败: ${M.message}`,duration:3e3,closable:!0})}},S=()=>{kn(()=>{setTimeout(()=>{const R=l.value;if(!R)return;const M=R.closest(".content-area")||R.parentElement,D=R.querySelector(".stats-footer"),$=r.showStats&&D?D.offsetHeight:0,L=document.querySelector(".category-nav-container"),B=L?L.offsetHeight:0;let F=M?M.offsetHeight:0;F<=0&&(F=Math.max(window.innerHeight-120,500)),console.log(`CategoryNavigation高度: ${B}px, 内容区域高度: ${F}px`);const U=r.videos?r.videos.length:0,z=R.offsetWidth||Math.max(window.innerWidth-240,800),Y=Math.min(Math.floor(z/200),8),re=328,te=U>0?Math.ceil(U/Math.max(Y,1)):0,X=te*re+16;let K=4;if(U===0)K=Math.min(F*.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 $=D.scrollHeight-D.clientHeight,L=D.scrollTop;$-L<50&&(o("scroll-bottom"),o("load-more"))},C=()=>{kn(()=>{setTimeout(()=>{document.querySelectorAll(".video_list_item_title .title-text").forEach(M=>{const $=M.parentElement.offsetWidth-16;M.scrollWidth>$?M.setAttribute("data-overflow","true"):M.removeAttribute("data-overflow")})},100)})};dn(()=>{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)}),$o(()=>{window.removeEventListener("resize",S),l.value?._filterObserver&&l.value._filterObserver.disconnect()}),Dt(()=>[r.videos,r.showStats],()=>{S(),C()});const E=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))})},x=()=>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:E,getCurrentScrollPosition:x}),(R,M)=>{const D=Me("a-image"),$=Me("a-grid-item"),L=Me("a-grid"),B=Me("a-spin"),F=Me("a-scrollbar");return H(),Q("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[O(F,{onScroll:k,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:Ve("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),Q(Ft,null,fn(e.videos,U=>(H(),Xe($,{key:U.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:z=>g(U)},[I("div",C2t,[O(D,{preview:!1,class:"video_list_item_img_cover",fit:"cover",src:U.vod_pic},null,8,["src"]),U.vod_remarks?(H(),Q("div",{key:0,class:"video_remarks_overlay",innerHTML:U.vod_remarks},null,8,E2t)):Oe("",!0)]),I("div",x2t,[I("span",T2t,Be(U.vod_name),1)])],8,w2t)]),_:2},1024))),128))]),_:1}),e.loading?(H(),Q("div",A2t,[O(B),M[0]||(M[0]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(H(),Q("div",I2t," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(H(),Q("div",L2t," 暂无视频数据 ")):Oe("",!0),M[1]||(M[1]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),p.value?(H(),Xe(Jk,{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"])):Oe("",!0)],512)}}},X4=_r(P2t,[["__scopeId","data-v-08d996eb"]]),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=Me("a-modal");return H(),Xe(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:de(()=>[I("div",R2t,[e.hasRecommendVideos?(H(),Q("div",{key:0,class:le(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>o("recommendTuijian404"))}," 推荐 ",2)):Oe("",!0),(H(!0),Q(Ft,null,fn(e.classList.class,c=>(H(),Q("div",{key:c.type_id,class:le(["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={class:"video-list-container"},N2t={class:"content-area"},B2t={key:0,class:"tab-content"},F2t={key:1,class:"tab-content"},j2t={key:2,class:"tab-content"},U2t={__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,default:()=>({})},apiUrl:{type:String,default:""},specialCategoryState:{type:Object,default:()=>({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null})}},emits:["activeKeyChange","special-action","close-special-category"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=Fk(),s=pe(""),l=Ht({}),c=Ht({}),f=Ht({}),h=Ht({}),p=Ht({}),m=pe(!1),g=pe(null),b=j(()=>r.recommendVideos&&r.recommendVideos.length>0),S=()=>r.returnToActiveKey?r.returnToActiveKey:b.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",k=(z,G,Y)=>{p[s.value]||(p[s.value]={}),p[s.value][z]===G?(delete p[s.value][z],Object.keys(p[s.value]).length===0&&delete p[s.value]):p[s.value][z]=G,E(s.value)},C=z=>{delete p[z],E(z)},E=z=>{delete l[z],delete c[z],f[z]=!1,s.value===z&&_(z,!0)},x=z=>{const G=r.classList?.class?.find(K=>K.type_id===z)?.type_name||"",Y=c[z]?.page||1,re=l[z]?.length||0,te=c[z]?.total;let X=`${G}:当前第 ${Y} 页,已加载 ${re} 条`;return te&&(X+=` / 共 ${te} 条`),X},_=async(z,G=!1)=>{if(console.log(z,"选中分类id"),!l.hasOwnProperty(z)||G)try{const Y=await Bs.getCurrentSite();let re,te;if(z==="recommendTuijian404")re=r.recommendVideos||[],te={page:1,hasNext:!1};else{const X=p[z]||{},K=await md.getCategoryVideos(Y.key,{typeId:z,page:1,filters:X,extend:Y.ext,apiUrl:Y.api});re=K.videos||[],te=K.pagination||{page:1,hasNext:!1}}l[z]=re,c[z]=te,f[z]=!1,z===s.value&&a.updateStats(x(z))}catch(Y){console.error("获取视频列表失败:",Y),l[z]=[],c[z]={page:1,hasNext:!1},f[z]=!1}},A=z=>!z||z.length===0?!0:z.some(G=>G.vod_id==="no_data"),R=(z,G)=>{if(!G||G.length===0)return!0;if(!z||z.length===0)return!1;const Y=z.slice(-G.length).map(te=>te.vod_id),re=G.map(te=>te.vod_id);return JSON.stringify(Y)===JSON.stringify(re)},M=async z=>{if(!(f[z]||!c[z]?.hasNext)){f[z]=!0;try{const G=await Bs.getCurrentSite(),Y=c[z].page+1;let re=[],te={page:Y,hasNext:!1};if(z==="recommendTuijian404")return;{const X=p[z]||{},K=await md.getCategoryVideos(G.key,{typeId:z,page:Y,filters:X,extend:G.ext,apiUrl:G.api});re=K.videos||[],te=K.pagination||{page:Y,hasNext:!1}}if(A(re)||R(l[z],re)){console.log("检测到无效数据或重复数据,停止翻页"),c[z]={...c[z],hasNext:!1};return}l[z]=[...l[z],...re],c[z]=te,z===s.value&&a.updateStats(x(z))}catch(G){console.error("加载更多数据失败:",G),c[z]={...c[z],hasNext:!1}}finally{f[z]=!1}}},D=z=>{s.value=z,_(z),o("activeKeyChange",z)},$=z=>{const{filterKey:G,filterValue:Y,filterName:re}=z;k(G,Y)},L=()=>{C(s.value)},B=()=>{m.value=!0},F=z=>{s.value=z,_(z),o("activeKeyChange",z),setTimeout(()=>{a.updateStats(x(z))},100)};Dt(()=>r.recommendVideos,z=>{z&&z.length>0?(l.recommendTuijian404=z,c.recommendTuijian404={page:1,hasNext:!1},f.recommendTuijian404=!1,console.log("推荐数据已更新:",z.length,"条")):(l.recommendTuijian404=[],c.recommendTuijian404={page:1,hasNext:!1},f.recommendTuijian404=!1);const G=S();s.value!==G&&(s.value=G,_(G),o("activeKeyChange",G))},{immediate:!0}),Dt(()=>r.classList,(z,G)=>{z!==G&&(Object.keys(p).forEach(re=>{delete p[re]}),Object.keys(h).forEach(re=>{delete h[re]}));const Y=S();s.value!==Y&&(s.value=Y,_(Y),o("activeKeyChange",Y))},{immediate:!0}),dn(()=>{s.value=S(),r.returnToActiveKey||_(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:z=>{z.activeKey&&z.activeKey!==s.value&&(s.value=z.activeKey,o("activeKeyChange",z.activeKey),(!l[z.activeKey]||l[z.activeKey].length===0)&&_(z.activeKey))},restoreFullState:z=>{z.activeKey&&(s.value=z.activeKey,z.videos&&z.videos.length>0&&(l[z.activeKey]=[...z.videos],c[z.activeKey]={page:z.currentPage||1,hasNext:z.hasMore||!1},console.log(`恢复分类 ${z.activeKey} 的完整状态:`,{videos:z.videos.length,page:z.currentPage,hasMore:z.hasMore,scrollPosition:z.scrollPosition})),o("activeKeyChange",z.activeKey),setTimeout(()=>{a.updateStats(x(z.activeKey))},100),z.scrollPosition&&g.value&&setTimeout(()=>{g.value.restoreScrollPosition(z.scrollPosition)},200))},refreshCurrentCategory:()=>{s.value&&(console.log("刷新当前分类:",s.value),l[s.value]=[],c[s.value]={page:1,hasNext:!0},f[s.value]=!1,_(s.value))},setSpecialCategoryData:(z,G,Y)=>{console.log("设置特殊分类数据:",{categoryId:z,videosCount:G?.length,pagination:Y}),l[z]=G||[],c[z]={page:Y?.page||1,hasNext:Y?.hasNext||!1,total:Y?.total||0},f[z]=!1,setTimeout(()=>{a.updateStats(x(z))},100),console.log("特殊分类数据设置完成:",{categoryId:z,videosCount:l[z]?.length||0,pageInfo:c[z]})}});const U=()=>{console.log("VideoList收到刷新列表请求"),s.value&&(console.log("刷新当前分类:",s.value),l[s.value]=[],c[s.value]={page:1,hasNext:!0},f[s.value]=!1,_(s.value))};return(z,G)=>(H(),Q("div",$2t,[O(i2t,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:b.value,activeKey:s.value,filters:r.classList?.filters||{},selectedFilters:p,specialCategoryState:r.specialCategoryState,onTabChange:D,onOpenCategoryModal:B,onToggleFilter:$,onResetFilters:L,onCloseSpecialCategory:G[0]||(G[0]=()=>o("close-special-category"))},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters","specialCategoryState"]),I("div",N2t,[e.specialCategoryState.isActive?(H(),Q("div",B2t,[O(X4,{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:G[1]||(G[1]=Y=>M(e.specialCategoryState.categoryData?.type_id)),onScrollBottom:G[2]||(G[2]=Y=>M(e.specialCategoryState.categoryData?.type_id)),onRefreshList:U,onSpecialAction:G[3]||(G[3]=(Y,re)=>o("special-action",Y,re))},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url"])])):s.value==="recommendTuijian404"?(H(),Q("div",F2t,[O(X4,{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:U,onSpecialAction:G[4]||(G[4]=(Y,re)=>o("special-action",Y,re))},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"])])):(H(),Q("div",j2t,[O(X4,{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:G[5]||(G[5]=Y=>M(s.value)),onScrollBottom:G[6]||(G[6]=Y=>M(s.value)),onRefreshList:U,onSpecialAction:G[7]||(G[7]=(Y,re)=>o("special-action",Y,re))},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"])]))]),O(O2t,{visible:m.value,"onUpdate:visible":G[8]||(G[8]=Y=>m.value=Y),classList:e.classList,hasRecommendVideos:b.value,activeKey:s.value,onSelectCategory:F},null,8,["visible","classList","hasRecommendVideos","activeKey"])]))}},V2t=_r(U2t,[["__scopeId","data-v-c4dae545"]]),z2t={class:"search-results-container"},H2t={class:"search-header"},W2t={class:"search-info"},G2t={key:0,class:"search-keyword"},K2t={key:1,class:"search-count"},q2t={class:"search-actions"},Y2t={key:0,class:"error-container"},X2t={class:"error-text"},Z2t={key:1,class:"loading-container"},J2t=["onClick"],Q2t={class:"video_list_item_img"},ekt=["innerHTML"],tkt={class:"video_list_item_title"},nkt={class:"title-text"},rkt={key:3,class:"empty-state"},ikt={key:4,class:"loading-container"},okt={key:5,class:"no-more-data"},skt={__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=gl(),r=Fk(),o=UL(),a=aL(),s=e,l=t,c=pe(null),f=pe(null),h=pe(0),p=pe(null),m=pe(!1),g=pe(null),b=M=>{const D=M?.target||M?.srcElement,$=D?.closest?D.closest(".arco-scrollbar-container"):D;if(!$)return;const L=$.scrollHeight-$.clientHeight,B=$.scrollTop;L-B<50&&s.hasMore&&!s.loading&&l("load-more")},S=()=>{kn(()=>{setTimeout(()=>{const M=c.value;if(!M)return;const D=M.closest(".content-area")||M.parentElement;let $=D?D.offsetHeight:0;$<=0&&($=Math.max(window.innerHeight-120,500));const L=document.querySelector(".search-header"),B=L?L.offsetHeight:60,F=s.videos?s.videos.length:0,U=M.offsetWidth||Math.max(window.innerWidth-240,800),G=Math.min(Math.floor(U/200),8),Y=328,re=F>0?Math.ceil(F/Math.max(G,1)):0,te=re*Y+80;let X=4;const K=$-B;if(F===0)X=Math.min(K*.3,200),console.log(`无搜索结果数据,使用保守高度减值: ${X}px`);else if(te{if(!s.keyword)return"";const M=s.videos.length,D=s.currentPage,$=s.hasMore;if(M===0)return`搜索"${s.keyword}":无结果`;let L=`搜索"${s.keyword}":第${D}页,共${M}条`;return $?L+=",可继续加载":L+=",已全部加载",L},C=()=>{const M=k();M&&r.updateStats(M)},E=()=>{kn(()=>{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)})},x=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),Lt.info({content:M.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(M.vod_id,M.vod_name),s.keyword){const $=f.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0;o.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,$),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:$})}n.push({name:"VideoDetail",params:{id: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")};dn(()=>{E(),S(),C(),window.addEventListener("resize",S),s.scrollPosition>0&&kn(()=>{requestAnimationFrame(()=>{const M=f.value?.$el?.querySelector(".arco-scrollbar-container");M&&(M.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),$o(()=>{window.removeEventListener("resize",S)}),Dt(()=>s.videos,()=>{S(),E(),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 $=Me("icon-close"),L=Me("a-button"),B=Me("icon-exclamation-circle"),F=Me("a-spin"),U=Me("a-image"),z=Me("a-grid-item"),G=Me("a-grid"),Y=Me("icon-search"),re=Me("a-scrollbar");return H(),Q("div",z2t,[I("div",H2t,[I("div",W2t,[e.keyword?(H(),Q("span",G2t," 搜索结果:"+Be(e.keyword),1)):Oe("",!0),e.videos.length>0?(H(),Q("span",K2t," 共找到 "+Be(e.videos.length)+" 个结果 ",1)):Oe("",!0)]),I("div",q2t,[O(L,{type:"outline",size:"small",onClick:_},{icon:de(()=>[O($)]),default:de(()=>[D[0]||(D[0]=We(" 清除搜索 ",-1))]),_:1})])]),I("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[O(re,{ref_key:"scrollbarRef",ref:f,onScroll:b,class:"search-scroll-container",style:Ve("height:"+h.value+"px; overflow: auto;")},{default:de(()=>[e.error?(H(),Q("div",Y2t,[O(B,{class:"error-icon"}),I("p",X2t,Be(e.error),1)])):e.loading&&e.videos.length===0?(H(),Q("div",Z2t,[O(F,{size:"large"}),D[1]||(D[1]=I("p",{class:"loading-text"},"正在搜索...",-1))])):e.videos.length>0?(H(),Xe(G,{key:2,cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(H(!0),Q(Ft,null,fn(e.videos,te=>(H(),Xe(z,{key:te.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:X=>x(te)},[I("div",Q2t,[O(U,{preview:!1,class:"video_list_item_img_cover",fit:"cover",src:te.vod_pic},null,8,["src"]),te.vod_remarks?(H(),Q("div",{key:0,class:"video_remarks_overlay",innerHTML:te.vod_remarks},null,8,ekt)):Oe("",!0)]),I("div",tkt,[I("span",nkt,Be(te.vod_name),1)])],8,J2t)]),_:2},1024))),128))]),_:1})):!e.loading&&!e.error&&e.keyword?(H(),Q("div",rkt,[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))])):Oe("",!0),e.loading&&e.videos.length>0?(H(),Q("div",ikt,[O(F),D[4]||(D[4]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(H(),Q("div",okt," 没有更多数据了 ")):Oe("",!0),D[5]||(D[5]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"])],512),m.value?(H(),Xe(Jk,{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"])):Oe("",!0)])}}},Iye=_r(skt,[["__scopeId","data-v-b2a6ea57"]]),Qk=Vg("site",()=>{const e=pe(Bs.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&Bs.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=Bs.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}}),akt={class:"current-time"},lkt={class:"main-container"},ukt={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=Qk();Fk();const r=UL(),o=w3(),a=gl(),s=J=>{const ie=J.getFullYear(),se=String(J.getMonth()+1).padStart(2,"0"),ae=String(J.getDate()).padStart(2,"0"),Ce=String(J.getHours()).padStart(2,"0"),ke=String(J.getMinutes()).padStart(2,"0"),ve=String(J.getSeconds()).padStart(2,"0");return`${ie}-${se}-${ae} ${Ce}:${ke}:${ve}`},l=pe(s(new Date)),c=pe(""),f=pe(null),h=Ht({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=Ht({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),m=Ht({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null}),g=pe(null),b=async(J=!1)=>{try{if(Bs.getConfigStatus().hasConfigUrl)try{await Bs.loadSitesFromConfig(J),console.log("从配置地址加载站点数据成功")}catch(se){console.error("从配置地址加载站点数据失败:",se)}h.sites=Bs.getAllSites(),h.sites.length===0&&console.log("暂无站点配置,请在设置中配置数据源地址")}catch(ie){console.error("获取站点配置失败:",ie)}},S=()=>{const J=Bs.getCurrentSite();J?(h.now_site=J,h.now_site_title=J.name,n(J)):t&&t.name?(h.now_site=t,h.now_site_title=t.name,Bs.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},k=()=>{if(!h.now_site||!h.now_site.key){const J=Bs.getCurrentSite();if(J)h.now_site=J,h.now_site_title=J.name;else if(h.sites.length>0){const ie=h.sites.find(se=>se.type===4)||h.sites[0];h.now_site=ie,h.now_site_title=ie.name,Bs.setCurrentSite(ie.key)}}else if(!h.sites.some(ie=>ie.key===h.now_site.key)&&h.sites.length>0){const ie=h.sites.find(se=>se.type===4)||h.sites[0];h.now_site=ie,h.now_site_title=ie.name,Bs.setCurrentSite(ie.key)}h.new_site=h.now_site},C=()=>{g.value=setInterval(()=>{l.value=s(new Date)},1e3)},E=()=>{window.location.reload()},x=()=>{},_=()=>{},A=()=>{},R=J=>h.new_site=J,M=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,b(!0),k()},D=J=>{h.now_site=J,n(J),h.now_site_title=J.name,h.visible=!1,$(J)},$=async J=>{if(!J||!J.key){console.log("站点信息无效");return}console.log(J,"确认换源"),h.classList={class:[],filters:{}},h.recommendVideos=[];try{const ie=await md.getRecommendVideos(J.key,{extend:J.ext,apiUrl:J.api});h.classList={class:ie.categories,filters:ie.filters},h.recommendVideos=ie.videos||[],console.log("分类列表:",h.classList),console.log("推荐视频:",h.recommendVideos)}catch(ie){console.error("获取分类列表失败:",ie),h.classList={class:[],filters:{}},h.recommendVideos=[]}},L=async J=>{if(!J||!J.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const ie=J.trim();p.searchKeyword=ie,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 se=await md.searchVideo(h.now_site.key,{keyword:ie,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=se.videos||[],p.totalPages=se.pagination?.totalPages||1,p.hasMore=se.pagination?.hasNext||!1}catch(se){console.error("搜索失败:",se),p.searchError=se.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},B=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const J=p.currentPage+1;try{const ie=await md.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:J,extend:h.now_site.ext,apiUrl:h.now_site.api}),se=ie.videos||[],ae=new Set(p.searchResults.map(ke=>ke.vod_id)),Ce=se.filter(ke=>!ae.has(ke.vod_id)&&ke.vod_id!=="no_data"&&ke.vod_name!=="no_data");Ce.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...Ce],p.hasMore=ie.pagination?.hasNext!==!1),p.currentPage=J,p.totalPages=ie.pagination?.totalPages||p.totalPages}catch(ie){console.error("搜索加载更多失败:",ie),p.searchError=ie.message||"加载失败,请重试"}finally{p.searchLoading=!1}},F=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},U=J=>{c.value=J},z=J=>{if(J&&J.vod_id){let ie="false";p.isSearching?(console.log("从搜索结果点击视频,状态保存由SearchResults组件处理"),ie="true"):c.value&&(r.saveVideoState(c.value,1,[],!0,!1,window.scrollY),console.log("从分类列表点击视频,保存分类状态")),a.push({name:"VideoDetail",params:{id:J.vod_id},query:{name:J.vod_name,pic:J.vod_pic,year:J.vod_year,area:J.vod_area,type:J.vod_type,remarks:J.vod_remarks,content:J.vod_content,actor:J.vod_actor,director:J.vod_director,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify({...o.query,activeKey:c.value}),fromSearch:ie,sourcePic:J.vod_pic}})}},G=()=>{console.log("收到刷新列表请求"),p.isSearching?console.log("刷新搜索结果"):(console.log("刷新分类列表"),f.value&&f.value.refreshCurrentCategory())},Y=async(J,ie)=>{switch(console.log("🎯 [DEBUG] handleSpecialAction 被调用"),console.log("🎯 [DEBUG] actionType:",J),console.log("🎯 [DEBUG] actionData:",JSON.stringify(ie,null,2)),J){case"__self_search__":console.log("🎯 [DEBUG] 匹配到 __self_search__ 动作,调用 handleSelfSearchAction"),await re(ie);break;default:console.warn("🎯 [WARN] 未知的特殊动作类型:",J);break}},re=async J=>{try{console.log("🔍 [DEBUG] handleSelfSearchAction 被调用"),console.log("🔍 [DEBUG] 接收到的 categoryData:",JSON.stringify(J,null,2)),m.isActive||(console.log("🔍 [DEBUG] 保存当前状态"),m.originalClassList=h.classList,m.originalRecommendVideos=h.recommendVideos);const ie=J.tid||J.type_id||J.actionData?.tid,se=J.name||J.type_name||`搜索: ${ie}`;if(console.log("🔍 [DEBUG] 解析的参数:",{tid:ie,typeName:se,"categoryData.tid":J.tid,"categoryData.type_id":J.type_id,"categoryData.actionData?.tid":J.actionData?.tid,"categoryData.name":J.name,"categoryData.type_name":J.type_name}),!ie){console.error("🔍 [ERROR] 源内搜索参数不完整:缺少tid"),Lt.error("源内搜索参数不完整:缺少tid");return}const ae=await md.getCategoryVideos(h.now_site?.key||t?.key,{typeId:ie,page:1,filters:{},apiUrl:h.now_site?.api,extend:h.now_site?.ext});console.log("T4分类接口返回数据:",ae);const Ce={class:[{type_id:ie,type_name:se}],filters:{}};m.isActive=!0,m.categoryData={type_id:ie,type_name:se,originalData:J,videos:ae.videos||[],pagination:ae.pagination||{}},h.classList=Ce,h.recommendVideos=[],c.value=ie,console.log("特殊分类设置完成:",{tid:ie,categoryName:se,isActive:m.isActive,videosCount:ae.videos?.length||0,classList:h.classList}),await kn(),f.value&&ae.videos&&(console.log("直接设置VideoList组件的特殊分类数据"),f.value.setSpecialCategoryData(ie,ae.videos,ae.pagination))}catch(ie){console.error("处理源内搜索失败:",ie),Lt.error(`源内搜索失败: ${ie.message}`)}},te=()=>{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("特殊分类已关闭,恢复到推荐分类"))},X=()=>{h.visible=!0;const J=h.sites.filter(ie=>ie.type===4);h.form_title=`请选择数据源(${J.length})`,k()},K=async J=>{if(!J||!J.trim()){Lt.error("推送内容不能为空");return}const ie=h.sites.find(se=>se.key==="push_agent");if(!ie){Lt.error("没有找到push_agent服务,请检查源配置");return}try{console.log("推送功能,使用临时站源:",{siteName:ie.name,siteKey:ie.key,siteApi:ie.api}),a.push({name:"VideoDetail",params:{id:J.trim()},query:{name:`推送内容-${J.trim()}`,pic:"",year:"",area:"",type:"",type_name:"",remarks:"",content:"",actor:"",director:"",fromPush:"true",tempSiteName:ie.name,tempSiteApi:ie.api,tempSiteKey:ie.key,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify(o.query),sourcePic:""}}),Lt.success(`正在推送内容: ${J.trim()}`)}catch(se){console.error("推送失败:",se),Lt.error("推送失败,请重试")}};return dn(async()=>{b(),S();const J=o.query._restoreSearch,ie=o.query._returnToActiveKey;if(J==="true"){const ke=r.getPageState("search");if(ke&&ke.keyword&&!r.isStateExpired("search")){console.log("恢复搜索状态:",ke),p.isSearching=!0,p.searchKeyword=ke.keyword,p.searchResults=ke.videos||[],p.currentPage=ke.currentPage||1,p.hasMore=ke.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=ke.scrollPosition||0;const ve={...o.query};delete ve._restoreSearch,a.replace({query:ve}),await $(h.now_site),C(),console.log("搜索状态恢复完成,滚动位置由SearchResults组件处理");return}}const se=r.getPageState("video"),ae=r.isStateExpired("video");let Ce=!1;if(ie){c.value=ie,Ce=!0,console.log("从详情页返回,恢复到分类:",ie);const ke={...o.query};delete ke._returnToActiveKey,a.replace({query:ke})}else se&&se.activeKey&&!ae&&(c.value=se.activeKey,Ce=!0,console.log("恢复保存的分类状态:",se.activeKey));await $(h.now_site),C(),Ce&&setTimeout(()=>{f.value&&f.value.restoreFullState({activeKey:c.value,currentPage:se?.currentPage||1,videos:se?.videos||[],hasMore:se?.hasMore||!0,scrollPosition:se?.scrollPosition||0})},100)}),$o(()=>{if(g.value&&clearInterval(g.value),c.value&&f.value){const J=f.value.getCurrentState();r.saveVideoState(c.value,J.currentPage,J.videos,J.hasMore,!1,J.scrollPosition),console.log("保存Video页面状态:",{activeKey:c.value,currentPage:J.currentPage,videosCount:J.videos.length,hasMore:J.hasMore,hasData:J.hasData,scrollPosition:J.scrollPosition})}}),(J,ie)=>{const se=Me("a-layout-content");return H(),Q(Ft,null,[O(Tbt,{onHandleOpenForm:X,onRefreshPage:E,onMinimize:x,onMaximize:_,onCloseWindow:A,onOnSearch:L,onHandlePush:K,now_site_title:h.now_site_title},{default:de(()=>[I("div",akt,[I("span",null,Be(l.value),1)])]),_:1},8,["now_site_title"]),I("div",lkt,[O(se,{class:"content"},{default:de(()=>[p.isSearching?(H(),Xe(Iye,{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:st(o).name,params:st(o).params,query:st(o).query},module:h.now_site?.key||st(t)?.key,extend:h.now_site,"api-url":h.now_site?.api,onLoadMore:B,onExitSearch:F,onVideoClick:z,onRefreshList:G},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url"])):(H(),Xe(V2t,{key:1,ref_key:"videoListRef",ref:f,classList:h.classList,recommendVideos:h.recommendVideos,sourceRoute:{name:st(o).name,params:st(o).params,query:{...st(o).query,activeKey:c.value}},returnToActiveKey:st(o).query._returnToActiveKey,module:h.now_site?.key||st(t)?.key,extend:h.now_site,"api-url":h.now_site?.api,specialCategoryState:m,onActiveKeyChange:U,onSpecialAction:Y,onCloseSpecialCategory:te},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url","specialCategoryState"]))]),_:1})]),O(vbt,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":ie[0]||(ie[0]=ae=>h.visible=ae),onConfirmClear:M,onConfirmChange:D,onChangeRule:R},null,8,["visible","title","sites","currentSiteKey"])],64)}}},ckt=_r(ukt,[["__scopeId","data-v-4dcd723c"]]),dkt=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}},Lye=()=>{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}},Wse=()=>{const e=Lye();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},fkt=async(e,t={})=>{const n=Lye();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await dkt(e,r)},ZL=Vg("favorite",()=>{const e=pe([]),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 E=0;C.favorites.forEach(x=>{e.value.some(A=>A.id===x.id&&A.api_info.api_url===x.api_info.api_url)||(e.value.push({...x,updated_at:new Date().toISOString()}),E++)}),n(),g(E)}catch(C){b(C)}},S.onerror=()=>{b(new Error("文件读取失败"))},S.readAsText(m)}),h=j(()=>e.value.length),p=j(()=>{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}}),pW=Vg("history",()=>{const e=pe([]),t=j(()=>e.value.length),n=j(()=>[...e.value].sort((g,b)=>new Date(b.updated_at)-new Date(g.updated_at))),r=j(()=>{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(x=>x.id===g.id&&x.api_info.api_url===g.api_info.api_url),E={...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],...E},console.log("更新后的历史记录api_info:",e.value[C].api_info)):(E.created_at=k,e.value.push(E),console.log("新添加的历史记录api_info:",E.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(E=>E.id===k.id&&E.api_info.api_url===k.api_info.api_url);if(C===-1)e.value.push(k);else{const E=e.value[C],x=new Date(k.updated_at),_=new Date(E.updated_at);x>_&&(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}}}),Pn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},hkt=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=pkt},pkt=Number.MAX_SAFE_INTEGER||9007199254740991;let er=(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})({}),jt=(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})({}),xe=(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 ci={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Wn={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 vkt{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 mkt(e,t,n){return(t=ykt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):Up}function Kse(e,t,n){return t[e]?t[e].bind(t):_kt(e,n)}const FU=BU();function Skt(e,t,n){const r=BU();if(typeof console=="object"&&e===!0||typeof e=="object"){const o=["debug","log","info","warn","error"];o.forEach(a=>{r[a]=Kse(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return BU()}o.forEach(a=>{FU[a]=Kse(a,e)})}else ao(FU,r);return r}const no=FU;function yv(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function kkt(e){return typeof self<"u"&&e===self.ManagedMediaSource}function Pye(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 tc(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 Rl(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(!Pn(t)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=t}get ref(){return Fs(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 Ekt extends Mye{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 Dye(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||Dye(n,t)}}function xkt(e,t){const n=Dye(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const Yse=Math.pow(2,32)-1,Tkt=[].push,Oye={video:1,audio:2,id3:3,text:4};function ta(e){return String.fromCharCode.apply(null,e)}function $ye(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function Tr(e,t){const n=Nye(e,t);return n<0?4294967296+n:n}function Xse(e,t){let n=Tr(e,t);return n*=Math.pow(2,32),n+=Tr(e,t+4),n}function Nye(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function Akt(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 ii(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=ii(e.subarray(o+8,l),t.slice(1));c.length&&Tkt.apply(n,c)}o=l}return n}function Ikt(e){const t=[],n=e[0];let r=8;const o=Tr(e,r);r+=4;let a=0,s=0;n===0?(a=Tr(e,r),s=Tr(e,r+4),r+=8):(a=Xse(e,r),s=Xse(e,r+8),r+=16),r+=2;let l=e.length+s;const c=$ye(e,r);r+=2;for(let f=0;f>>31===1)return no.warn("SIDX has hierarchical references (not supported)"),null;const b=Tr(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 Bye(e){const t=[],n=ii(e,["moov","trak"]);for(let o=0;o{const a=Tr(o,4),s=t[a];s&&(s.default={duration:Tr(o,12),flags:Tr(o,20)})}),t}function Lkt(e){const t=e.subarray(8),n=t.subarray(86),r=ta(t.subarray(4,8));let o=r,a;const s=r==="enca"||r==="encv";if(s){const f=ii(t,[r])[0].subarray(r==="enca"?28:78);ii(f,["sinf"]).forEach(p=>{const m=ii(p,["schm"])[0];if(m){const g=ta(m.subarray(4,8));if(g==="cbcs"||g==="cenc"){const b=ii(p,["frma"])[0];b&&(o=ta(b))}}})}const l=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const c=ii(n,["avcC"])[0];c&&c.length>3&&(o+="."+Xx(c[1])+Xx(c[2])+Xx(c[3]),a=Yx(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=ii(t,[r])[0],f=ii(c.subarray(28),["esds"])[0];if(f&&f.length>7){let h=4;if(f[h++]!==3)break;h=$9(f,h),h+=2;const p=f[h++];if(p&128&&(h+=2),p&64&&(h+=f[h++]),f[h++]!==4)break;h=$9(f,h);const m=f[h++];if(m===64)o+="."+Xx(m);else break;if(h+=12,f[h++]!==5)break;h=$9(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=ii(n,["hvcC"])[0];if(c&&c.length>12){const f=c[1],h=["","A","B","C"][f>>6],p=f&31,m=Tr(c,2),g=(f&32)>>5?"H":"L",b=c[12],S=c.subarray(6,12);o+="."+h+p,o+="."+Pkt(m).toString(16).toUpperCase(),o+="."+g+b;let k="";for(let C=S.length;C--;){const E=S[C];(E||k)&&(k="."+E.toString(16).toUpperCase()+k)}o+=k}a=Yx(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{o=Yx(o,n)||o;break}case"vp09":{const c=ii(n,["vpcC"])[0];if(c&&c.length>6){const f=c[4],h=c[5],p=c[6]>>4&15;o+="."+qd(f)+"."+qd(h)+"."+qd(p)}break}case"av01":{const c=ii(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,E=c[2]&3;o+="."+f+"."+qd(h)+p+"."+qd(b)+"."+S+"."+k+C+E+"."+qd(1)+"."+qd(1)+"."+qd(1)+"."+0,a=Yx("dav1",n)}break}}return{codec:o,encrypted:s,supplemental:a}}function Yx(e,t){const n=ii(t,["dvvC"]),r=n.length?n[0]:ii(t,["dvcC"])[0];if(r){const o=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+qd(o)+"."+qd(a)}}function Pkt(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function $9(e,t){const n=t+5;for(;e[t++]&128&&t{const a=r.subarray(8,24);a.some(s=>s!==0)||(no.log(`[eme] Patching keyId in 'enc${o?"a":"v"}>sinf>>tenc' box: ${Rl(a)} -> ${Rl(n)}`),r.set(n,8))})}function Mkt(e){const t=[];return Fye(e,n=>t.push(n.subarray(8,24))),t}function Fye(e,t){ii(e,["moov","trak"]).forEach(r=>{const o=ii(r,["mdia","minf","stbl","stsd"])[0];if(!o)return;const a=o.subarray(8);let s=ii(a,["enca"]);const l=s.length>0;l||(s=ii(a,["encv"])),s.forEach(c=>{const f=l?c.subarray(28):c.subarray(78);ii(f,["sinf"]).forEach(p=>{const m=jye(p);m&&t(m,l)})})})}function jye(e){const t=ii(e,["schm"])[0];if(t){const n=ta(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=ii(e,["schi","tenc"])[0];if(r)return r}}}function Dkt(e,t,n){const r={},o=ii(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=ii(e,["sidx"]);for(let c=0;cp+m.info.duration||0,0);s=Math.max(s,h+f.earliestPresentationTime/f.timescale)}}s&&Pn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function Okt(e){const t={valid:null,remainder:null},n=ii(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 Vc(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Zse(e,t){const n=[],r=t.samples,o=t.timescale,a=t.id;let s=!1;return ii(r,["moof"]).map(c=>{const f=c.byteOffset-8;ii(c,["traf"]).map(p=>{const m=ii(p,["tfdt"]).map(g=>{const b=g[0];let S=Tr(g,4);return b===1&&(S*=Math.pow(2,32),S+=Tr(g,8)),S/o})[0];return m!==void 0&&(e=m),ii(p,["tfhd"]).map(g=>{const b=Tr(g,4),S=Tr(g,0)&16777215,k=(S&1)!==0,C=(S&2)!==0,E=(S&8)!==0;let x=0;const _=(S&16)!==0;let A=0;const R=(S&32)!==0;let M=8;b===a&&(k&&(M+=8),C&&(M+=4),E&&(x=Tr(g,M),M+=4),_&&(A=Tr(g,M),M+=4),R&&(M+=4),t.type==="video"&&(s=JL(t.codec)),ii(p,["trun"]).map(D=>{const $=D[0],L=Tr(D,0)&16777215,B=(L&1)!==0;let F=0;const U=(L&4)!==0,z=(L&256)!==0;let G=0;const Y=(L&512)!==0;let re=0;const te=(L&1024)!==0,X=(L&2048)!==0;let K=0;const J=Tr(D,4);let ie=8;B&&(F=Tr(D,ie),ie+=4),U&&(ie+=4);let se=F+f;for(let ae=0;ae>1&63;return n===39||n===40}else return(t&31)===6}function gW(e,t,n,r){const o=Uye(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){no.error(`Malformed SEI payload. ${l} is too small, only ${f} bytes left to parse.`);break}if(s===4){if(o[h++]===181){const m=$ye(o,h);if(h+=2,m===49){const g=Tr(o,h);if(h+=4,g===1195456820){const b=o[h++];if(b===3){const S=o[h++],k=31&S,C=64&S,E=C?2+k*3:0,x=new Uint8Array(E);if(C){x[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),Bkt([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,o,s,n)}function jkt(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=Rl(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 yW(e,t){const n=A1[t];return!!n&&!!n[e.slice(0,4)]}function ok(e,t,n=!0){return!e.split(",").some(r=>!bW(r,t,n))}function bW(e,t,n=!0){var r;const o=yv(n);return(r=o?.isTypeSupported(sk(e,t)))!=null?r:!1}function sk(e,t){return`${t}/mp4;codecs=${e}`}function Jse(e){if(e){const t=e.substring(0,4);return A1.video[t]}return 2}function AI(e){const t=Vye();return e.split(",").reduce((n,r)=>{const a=t&&JL(r)?9:A1.video[r];return a?(a*2+n)/(n?3:2):(A1.audio[r]+n)/(n?2:1)},0)}const N9={};function Vkt(e,t=!0){if(N9[e])return N9[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let o=0;oVkt(n.toLowerCase(),t))}function Hkt(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)&&(Qse(e,"audio")||Qse(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 Qse(e,t){return yW(e,t)&&bW(e,t)}function Wkt(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 Gkt(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 eae(e){const t=yv(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 jU(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Kkt={supported:!0,powerEfficient:!0,smooth:!0},qkt={supported:!1,smooth:!1,powerEfficient:!1},zye={supported:!0,configurations:[],decodingInfoResults:[Kkt]};function Hye(e,t){return{supported:!1,configurations:t,decodingInfoResults:[qkt],error:e}}function Ykt(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=>JL(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&&Pn(h)&&Object.keys(p).some(m=>parseInt(m)>h)}function Wye(e,t,n,r={}){const o=e.videoCodec;if(!o&&!e.audioCodec||!n)return Promise.resolve(zye);const a=[],s=Xkt(e),l=s.length,c=Zkt(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=>JL(p))&&Vye())return Promise.resolve(Hye(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=Qkt(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 Xkt(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=Gye(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:sk(Gkt(c),"video"),width:o,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(f.transferFunction=l),f}):[]}function Zkt(e,t,n){var r;const o=(r=e.audioCodec)==null?void 0:r.split(","),a=Gye(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:sk(g,"audio"),bitrate:n?Jkt(g,a):a};m&&(b.channels=""+m),h.push(b)})}return h},s):s},[]):[]}function Jkt(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 Gye(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function Qkt(e){let t="";const{audio:n,video:r}=e;if(r){const o=jU(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=jU(n.contentType);t+=`${r?"_":""}${o}_c${n.channels}`}return t}const UU=["NONE","TYPE-0","TYPE-1",null];function ewt(e){return UU.indexOf(e)>-1}const LI=["SDR","PQ","HLG"];function twt(e){return!!e&&LI.indexOf(e)>-1}var J4={No:"",Yes:"YES",v2:"v2"};function tae(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 rae(this._audioGroups,t)}hasSubtitleGroup(t){return rae(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 rae(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function nwt(){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 rwt(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||LI.slice(0);const o=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:o&&nwt(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const iwt=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}},go=(e,t)=>JSON.stringify(e,iwt(t));function owt(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:E,allowedVideoRanges:x}=rwt(t,o);for(let D=a.length;D--;){const $=e[a[D]];h||(h=$.channels[2]>0),m=Math.min(m,$.minHeight),g=Math.min(g,$.minFramerate),b=Math.min(b,$.minBitrate),x.filter(B=>$.videoRanges[B]>0).length>0&&(p=!0)}m=Pn(m)?m:0,g=Pn(g)?g:0;const _=Math.max(1080,m),A=Math.max(30,g);b=Pn(b)?b:n,n=Math.max(b,n),p||(t=void 0);const R=a.length>1;return{codecSet:a.reduce((D,$)=>{const L=e[$];if($===D)return D;if(C=p?x.filter(B=>L.videoRanges[B]>0):[],R){if(L.minBitrate>n)return Hd($,`min bitrate of ${L.minBitrate} > current estimate of ${n}`),D;if(!L.hasDefaultAudio)return Hd($,"no renditions with default or auto-select sound found"),D;if(l&&$.indexOf(l.substring(0,4))%5!==0)return Hd($,`audio codec preference "${l}" not found`),D;if(s&&!f){if(!L.channels[s])return Hd($,`no renditions with ${s} channel sound found (channels options: ${Object.keys(L.channels)})`),D}else if((!l||f)&&h&&L.channels[2]===0)return Hd($,"no renditions with stereo sound found"),D;if(L.minHeight>_)return Hd($,`min resolution of ${L.minHeight} > maximum of ${_}`),D;if(L.minFramerate>A)return Hd($,`min framerate of ${L.minFramerate} > maximum of ${A}`),D;if(!C.some(B=>L.videoRanges[B]>0))return Hd($,`no variants with VIDEO-RANGE of ${go(C)} found`),D;if(c&&$.indexOf(c.substring(0,4))%5!==0)return Hd($,`video codec preference "${c}" not found`),D;if(L.maxScore=AI(D)||L.fragmentError>e[D].fragmentError)?D:(S=L.minIndex,k=L.maxScore,$)},void 0),videoRanges:C,preferHDR:E,minFramerate:g,minBitrate:b,minIndex:S}}function Hd(e,t){no.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function Kye(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 swt(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 iae(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 sf(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 Pm(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 uwt(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=oae(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 sf(e,b,o)>-1});return p>-1?p:oae(t,r,m=>{const g=m.audioGroups,b=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return sf(e,b,o)>-1})}function oae(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 E=s.mainForwardBufferInfo;if(!C&&E===null)return;const x=this.bwEstimator.getEstimateTTFB(),_=Math.abs(c.playbackRate);if(m<=Math.max(x,1e3*(p/(_*2))))return;const A=E?E.len/_:0,R=h.loading.first?h.loading.first-h.loading.start:-1,M=h.loaded&&R>-1,D=this.getBwEstimate(),$=s.levels,L=$[b],B=Math.max(h.loaded,Math.round(p*(o.bitrate||L.averageBitrate)/8));let F=M?m-R:m;F<1&&M&&(F=Math.min(m,h.loaded*8/D));const U=M?h.loaded*1e3/F:0,z=x/1e3,G=U?(B-h.loaded)/U:B*8/D+z;if(G<=A)return;const Y=U?U*8:D,re=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,te=this.hls.config.abrBandWidthUpFactor;let X=Number.POSITIVE_INFINITY,K;for(K=b-1;K>g;K--){const ae=$[K].maxBitrate,Ce=!$[K].details||re;if(X=this.getTimeToLoadFrag(z,Y,p*ae,Ce),X=G||X>p*10)return;M?this.bwEstimator.sample(m-Math.min(x,R),h.loaded):this.bwEstimator.sampleTTFB(m);const J=$[K].maxBitrate;this.getBwEstimate()*te>J&&this.resetEstimator(J);const ie=this.findBestLevel(J,g,K,0,A,1,1);ie>-1&&(K=ie),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: ${G.toFixed(3)} s Estimated load time for down switch fragment: ${X.toFixed(3)} s TTFB estimate: ${R|0} ms Current BW estimate: ${Pn(D)?D|0:"Unknown"} bps New BW estimate: ${this.getBwEstimate()|0} bps Switching to level ${K} @ ${J|0} bps`),s.nextLoadLevel=s.nextAutoLevel=K,this.clearTimer();const se=()=>{if(this.clearTimer(),this.fragCurrent===o&&this.hls.loadLevel===K&&K>0){const ae=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${K>0?"and switching down":""} Fragment duration: ${o.duration.toFixed(3)} s Time to underbuffer: ${ae.toFixed(3)} s`),o.abortRequests(),this.fragCurrent=this.partCurrent=null,K>g){let Ce=this.findBestLevel(this.hls.levels[g].bitrate,g,K,0,ae,1,1);Ce===-1&&(Ce=g),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Ce,this.resetEstimator(this.hls.levels[Ce].bitrate)}}};k||G>X*2?se():this.timer=self.setInterval(se,X*1e3),s.trigger(xe.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 vkt(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.FRAG_LOADING,this.onFragLoading,this),t.on(xe.FRAG_LOADED,this.onFragLoaded,this),t.on(xe.FRAG_BUFFERED,this.onFragBuffered,this),t.on(xe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(xe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(xe.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(xe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.FRAG_LOADING,this.onFragLoading,this),t.off(xe.FRAG_LOADED,this.onFragLoaded,this),t.off(xe.FRAG_BUFFERED,this.onFragBuffered,this),t.off(xe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(xe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(xe.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(xe.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 jt.BUFFER_ADD_CODEC_ERROR:case jt.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case jt.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;Pn(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===Wn.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(xe.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!==Wn.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 G;const re=b[Y],te=Y>p;if(!re)continue;if(C.useMediaCapabilities&&!re.supportedResult&&!re.supportedPromise){const Ce=navigator.mediaCapabilities;typeof Ce?.decodingInfo=="function"&&Ykt(re,L,R,M,t,D)?(re.supportedPromise=Wye(re,L,Ce,this.supportedCache),re.supportedPromise.then(ke=>{if(!this.hls)return;re.supportedResult=ke;const ve=this.hls.levels,Ie=ve.indexOf(re);ke.error?this.warn(`MediaCapabilities decodingInfo error: "${ke.error}" for level ${Ie} ${go(ke)}`):ke.supported?ke.decodingInfoResults.some(Ne=>Ne.smooth===!1||Ne.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${Ie} not smooth or powerEfficient: ${go(ke)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Ie} ${go(ke)}`),Ie>-1&&ve.length>1&&(this.log(`Removing unsupported level ${Ie}`),this.hls.removeLevel(Ie),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(ke=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${ke}`)})):re.supportedResult=zye}if((A&&re.codecSet!==A||R&&re.videoRange!==R||te&&M>re.frameRate||!te&&M>0&&MCe.smooth===!1))&&(!_||Y!==B)){z.push(Y);continue}const X=re.details,K=(g?X?.partTarget:X?.averagetargetduration)||F;let J;te?J=l*t:J=s*t;const ie=F&&o>=F*2&&a===0?re.averageBitrate:re.maxBitrate,se=this.getTimeToLoadFrag(U,J,ie*K,X===void 0);if(J>=ie&&(Y===h||re.loadError===0&&re.fragmentError===0)&&(se<=U||!Pn(se)||x&&!this.bitrateTestDelay||se${Y} adjustedbw(${Math.round(J)})-bitrate=${Math.round(J-ie)} ttfb:${U.toFixed(1)} avgDuration:${K.toFixed(1)} maxFetchDuration:${f.toFixed(1)} fetchDuration:${se.toFixed(1)} firstSelection:${_} codecSet:${re.codecSet} videoRange:${re.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 qye={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 dwt(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!Pn(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)&&sae(n,r,a)===0||fwt(a,e,Math.min(o,r))))return a;const s=qye.search(t,sae.bind(null,n,r));return s&&(s!==e||!a)?s:a}function fwt(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 sae(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 hwt(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function Yye(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 qye.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function RI(e){switch(e.details){case jt.FRAG_LOAD_TIMEOUT:case jt.KEY_LOAD_TIMEOUT:case jt.LEVEL_LOAD_TIMEOUT:case jt.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Xye(e){return e.details.startsWith("key")}function Zye(e){return Xye(e)&&!!e.frag&&!e.frag.decryptdata}function aae(e,t){const n=RI(t);return e.default[`${n?"timeout":"error"}Retry`]}function _W(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function lae(e){return eo(eo({},e),{errorRetry:null,timeoutRetry:null})}function MI(e,t,n,r){if(!e)return!1;const o=r?.code,a=t499)}function VU(e){return e===0&&navigator.onLine===!1}var Aa={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},Gu={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class vwt extends Wc{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(xe.ERROR,this.onError,this),t.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(xe.ERROR,this.onError,this),t.off(xe.ERROR,this.onErrorOut,this),t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===Wn.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 jt.FRAG_LOAD_ERROR:case jt.FRAG_LOAD_TIMEOUT:case jt.KEY_LOAD_ERROR:case jt.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case jt.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=r1();return}case jt.FRAG_GAP:case jt.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Aa.SendAlternateToPenaltyBox;return}case jt.LEVEL_EMPTY_ERROR:case jt.LEVEL_PARSING_ERROR:{var s;const c=n.parent===Wn.MAIN?n.level:o.loadLevel;n.details===jt.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 jt.LEVEL_LOAD_ERROR:case jt.LEVEL_LOAD_TIMEOUT:typeof a?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case jt.AUDIO_TRACK_LOAD_ERROR:case jt.AUDIO_TRACK_LOAD_TIMEOUT:case jt.SUBTITLE_LOAD_ERROR:case jt.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=o.loadLevelObj;if(c&&(a.type===ci.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===ci.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,o.loadLevel),n.errorAction.action=Aa.SendAlternateToPenaltyBox,n.errorAction.flags=Gu.MoveAllAlternatesMatchingHost;return}}return;case jt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:Aa.SendAlternateToPenaltyBox,flags:Gu.MoveAllAlternatesMatchingHDCP};return;case jt.KEY_SYSTEM_SESSION_UPDATE_FAILED:case jt.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case jt.KEY_SYSTEM_NO_SESSION:n.errorAction={action:Aa.SendAlternateToPenaltyBox,flags:Gu.MoveAllAlternatesMatchingKey};return;case jt.BUFFER_ADD_CODEC_ERROR:case jt.REMUX_ALLOC_ERROR:case jt.BUFFER_APPEND_ERROR:if(!n.errorAction){var l;n.errorAction=this.getLevelSwitchAction(n,(l=n.level)!=null?l:o.loadLevel)}return;case jt.INTERNAL_EXCEPTION:case jt.BUFFER_APPENDING_ERROR:case jt.BUFFER_FULL_ERROR:case jt.LEVEL_SWITCH_ERROR:case jt.BUFFER_STALLED_ERROR:case jt.BUFFER_SEEK_OVER_HOLE:case jt.BUFFER_NUDGE_ON_STALL:n.errorAction=r1();return}n.type===er.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=r1())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,o=aae(r.config.playlistLoadPolicy,t),a=this.playlistError++;if(MI(o,a,RI(t),t.response))return{action:Aa.RetryRequest,flags:Gu.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=aae(Xye(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(o&&(t.details!==jt.FRAG_GAP&&o.fragmentError++,!Zye(t)&&MI(l,c,RI(t),t.response)))return{action:Aa.RetryRequest,flags:Gu.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===jt.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===Wn.AUDIO&&f===jt.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(f===jt.BUFFER_ADD_CODEC_ERROR||f===jt.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:R})=>o.audioCodec!==R),x=t.sourceBufferName==="video"&&(f===jt.BUFFER_ADD_CODEC_ERROR||f===jt.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===jt.FRAG_GAP&&S===Wn.MAIN&&t.frag){const $=p[M].details;if($){const L=Tg(t.frag,$.fragments,t.frag.start);if(L!=null&&L.gap)continue}}else{if(_===ci.AUDIO_TRACK&&D.hasAudioGroup(A)||_===ci.SUBTITLE_TRACK&&D.hasSubtitleGroup(A))continue;if(S===Wn.AUDIO&&(l=o.audioGroups)!=null&&l.some($=>D.hasAudioGroup($))||S===Wn.SUBTITLE&&(c=o.subtitleGroups)!=null&&c.some($=>D.hasSubtitleGroup($))||C&&o.audioCodec===D.audioCodec||x&&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:Aa.SendAlternateToPenaltyBox,flags:Gu.None,nextAutoLevel:h}}return{action:Aa.SendAlternateToPenaltyBox,flags:Gu.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case Aa.DoNothing:break;case Aa.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==jt.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 Gu.None:this.switchLevel(t,a);break;case Gu.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=UU[UU.indexOf(h)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}}case Gu.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) ${Rl(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),Zx(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=uae(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&&Zx(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||Zx(n))}getState(t){const n=dy(t),r=this.fragments[n];return r?r.buffered?Zx(r)?ra.PARTIAL:ra.OK:ra.APPENDING:ra.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]=uae(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 Zx(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 uae(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var bv={cbc:0,ctr:1};class gwt{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 bv.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case bv.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 ywt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class bwt{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 E=g[b],x=g[E],_=g[x];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^x*65537^E*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=E^g[g[g[_^E]]],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!==bv.cbc||n.byteLength!==16)return no.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=Vc(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 bwt),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 _wt(this.subtle,n,o)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new gwt(this.subtle,new Uint8Array(r),o).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(no.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%kwt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(no.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const cae=Math.pow(2,17);class wwt{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 ah({type:er.NETWORK_ERROR,details:jt.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(fae(t));return}else t.gap=!1;const f=this.loader=a?new a(o):new s(o),h=dae(t);t.loader=f;const p=lae(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:cae};t.stats=f.stats;const g={onSuccess:(b,S,k,C)=>{this.resetLoader(t,f);let E=b.data;k.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(E.slice(0,16)),E=E.slice(16)),l({frag:t,part:null,payload:E,networkDetails:C})},onError:(b,S,k,C)=>{this.resetLoader(t,f),c(new ah({type:er.NETWORK_ERROR,details:jt.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:eo({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 ah({type:er.NETWORK_ERROR,details:jt.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:k,stats:b}))},onTimeout:(b,S,k)=>{this.resetLoader(t,f),c(new ah({type:er.NETWORK_ERROR,details:jt.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(fae(t,n));return}const f=this.loader=a?new a(o):new s(o),h=dae(t,n);t.loader=f;const p=lae(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:cae};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 ah({type:er.NETWORK_ERROR,details:jt.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:eo({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 ah({type:er.NETWORK_ERROR,details:jt.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 ah({type:er.NETWORK_ERROR,details:jt.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 dae(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(Pn(o)&&Pn(a)){var s;let l=o,c=a;if(e.sn==="initSegment"&&Cwt((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 fae(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:er.MEDIA_ERROR,details:jt.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new ah(r)}function Cwt(e){return e==="AES-128"||e==="AES-256"}class ah extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class Jye extends Wc{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 kW{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=Jx(),this.buffering={audio:Jx(),video:Jx(),audiovideo:Jx()},this.level=t,this.sn=n,this.id=r,this.size=o,this.part=a,this.partial=s}}function Jx(){return{start:0,executeStart:0,executeEnd:0,end:0}}const hae={length:0,start:()=>0,end:()=>0};class Pr{static isBuffered(t,n){if(t){const r=Pr.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=Pr.getBuffered(t);return Pr.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 vae(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 Ewt(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 xwt=/^(\d+)x(\d+)$/,mae=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Yo{constructor(t,n){typeof t=="string"&&(t=Yo.parseAttrList(t,n)),ao(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=xwt.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(mae.lastIndex=0;(r=mae.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=zU(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":no.warn(`${t}: attribute ${s} is missing quotes`)}o[s]=l}return o}}const Twt="com.apple.hls.interstitial";function Awt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function Iwt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class e1e{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]){no.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=ao(new Yo({}),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"]);Pn(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?(no.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(Pn(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===Twt}get isValid(){return!!this.id&&!this._badValueForSameId&&Pn(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 Lwt=10;class Pwt{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?Pn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Lwt}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 DI(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function gae(e,t){return!e&&!t?!0:!e||!t?!1:DI(e,t)}function i1(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function wW(e){switch(e){case"AES-128":case"AES-256":return bv.cbc;case"AES-256-CTR":return bv.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function CW(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function HU(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function Rwt(e){const t=HU(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function t1e(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 n1e(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=CW(s)):n=Rwt(s)}}return n}const OI=typeof self<"u"?self:void 0;var Jo={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ma={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Q4(e){switch(e){case Ma.FAIRPLAY:return Jo.FAIRPLAY;case Ma.PLAYREADY:return Jo.PLAYREADY;case Ma.WIDEVINE:return Jo.WIDEVINE;case Ma.CLEARKEY:return Jo.CLEARKEY}}function B9(e){switch(e){case Jo.FAIRPLAY:return Ma.FAIRPLAY;case Jo.PLAYREADY:return Ma.PLAYREADY;case Jo.WIDEVINE:return Ma.WIDEVINE;case Jo.CLEARKEY:return Ma.CLEARKEY}}function kS(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[Jo.FAIRPLAY,Jo.WIDEVINE,Jo.PLAYREADY,Jo.CLEARKEY].filter(o=>!!t[o]):[];return!r[Jo.WIDEVINE]&&n&&r.push(Jo.WIDEVINE),r}const r1e=(function(e){return OI!=null&&(e=OI.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function Mwt(e,t,n,r){let o;switch(e){case Jo.FAIRPLAY:o=["cenc","sinf"];break;case Jo.WIDEVINE:case Jo.PLAYREADY:o=["cenc"];break;case Jo.CLEARKEY:o=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return Dwt(o,t,n,r)}function Dwt(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 Owt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function i1e(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=CW(l).subarray(0,16);return t1e(c),c}}return null}let Qx={};class ug{static clearKeyUriToKeyIdMap(){Qx={}}static setKeyIdForUri(t,n){Qx[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(Rye(s)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&DI(t.keyFormatVersions,this.keyFormatVersions)&&gae(t.iv,this.iv)&&gae(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 Ma.FAIRPLAY:case Ma.WIDEVINE:case Ma.PLAYREADY:case Ma.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"&&(no.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=Nwt(t)),new ug(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=Qx[this.uri];if(a&&!DI(this.keyId,a)&&ug.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=n1e(this.uri);if(r)switch(this.keyFormat){case Ma.WIDEVINE:if(this.pssh=r,!this.keyId){const a=jkt(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=yae(n));break;case Ma.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Fkt(a,null,r),this.keyId=i1e(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=$wt(n),a||(a=yae(n),a||(a=Qx[this.uri])),a&&(this.keyId=a,ug.setKeyIdForUri(this.uri,a))}return this}}function $wt(e){const t=e?.[Ma.WIDEVINE];return t?t.keyId:null}function yae(e){const t=e?.[Ma.PLAYREADY];if(t){const n=n1e(t.uri);if(n)return i1e(n)}return null}function Nwt(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const bae=/#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,_ae=/#EXT-X-MEDIA:(.*)/g,Bwt=/^#EXT(?:INF|-X-TARGETDURATION):/m,F9=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Fwt=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 af{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(_ae.lastIndex=0;(o=_ae.exec(t))!==null;){const f=new Yo(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"],E={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?af.resolve(f.URI,n):""};if(b&&(E.assocLang=b),S&&(E.channels=S),k&&(E.characteristics=k),C&&(E.instreamId=C),p!=null&&p.length){const x=af.findGroup(p,E.groupId)||p[0];Cae(E,x,"audioCodec"),Cae(E,x,"textCodec")}m.push(E)}}return a}static parseLevelPlaylist(t,n,r,o,a,s){var l;const c={url:n},f=new Pwt(n),h=f.fragments,p=[];let m=null,g=0,b=0,S=0,k=0,C=0,E=null,x=new O9(o,c),_,A,R,M=-1,D=!1,$=null,L;if(F9.lastIndex=0,f.m3u8=t,f.hasVariableRefs=pae(t),((l=F9.exec(t))==null?void 0:l[0])!=="#EXTM3U")return f.playlistParsingError=new Error("Missing format identifier #EXTM3U"),f;for(;(_=F9.exec(t))!==null;){D&&(D=!1,x=new O9(o,c),x.playlistOffset=S,x.setStart(S),x.sn=g,x.cc=k,C&&(x.bitrate=C),x.level=r,m&&(x.initSegment=m,m.rawProgramDateTime&&(x.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),$&&(x.setByteRange($),$=null)));const z=_[1];if(z){x.duration=parseFloat(z);const G=(" "+_[2]).slice(1);x.title=G||null,x.tagList.push(G?["INF",z,G]:["INF",z])}else if(_[3]){if(Pn(x.duration)){x.playlistOffset=S,x.setStart(S),R&&xae(x,R,f),x.sn=g,x.level=r,x.cc=k,h.push(x);const G=(" "+_[3]).slice(1);x.relurl=zU(f,G),WU(x,E,p),E=x,S+=x.duration,g++,b=0,D=!0}}else{if(_=_[0].match(Fwt),!_){no.warn("No matches on slow regex match for level playlist!");continue}for(A=1;A<_.length&&_[A]===void 0;A++);const G=(" "+_[A]).slice(1),Y=(" "+_[A+1]).slice(1),re=_[A+2]?(" "+_[A+2]).slice(1):null;switch(G){case"BYTERANGE":E?x.setByteRange(Y,E):x.setByteRange(Y);break;case"PROGRAM-DATE-TIME":x.rawProgramDateTime=Y,x.tagList.push(["PROGRAM-DATE-TIME",Y]),M===-1&&(M=h.length);break;case"PLAYLIST-TYPE":f.type&&eh(f,G,_),f.type=Y.toUpperCase();break;case"MEDIA-SEQUENCE":f.startSN!==0?eh(f,G,_):h.length>0&&Tae(f,G,_),g=f.startSN=parseInt(Y);break;case"SKIP":{f.skippedSegments&&eh(f,G,_);const te=new Yo(Y,f),X=te.decimalInteger("SKIPPED-SEGMENTS");if(Pn(X)){f.skippedSegments+=X;for(let J=X;J--;)h.push(null);g+=X}const K=te.enumeratedString("RECENTLY-REMOVED-DATERANGES");K&&(f.recentlyRemovedDateranges=(f.recentlyRemovedDateranges||[]).concat(K.split(" ")));break}case"TARGETDURATION":f.targetduration!==0&&eh(f,G,_),f.targetduration=Math.max(parseInt(Y),1);break;case"VERSION":f.version!==null&&eh(f,G,_),f.version=parseInt(Y);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":f.live||eh(f,G,_),f.live=!1;break;case"#":(Y||re)&&x.tagList.push(re?[Y,re]:[Y]);break;case"DISCONTINUITY":k++,x.tagList.push(["DIS"]);break;case"GAP":x.gap=!0,x.tagList.push([G]);break;case"BITRATE":x.tagList.push([G,Y]),C=parseInt(Y)*1e3,Pn(C)?x.bitrate=C:C=0;break;case"DATERANGE":{const te=new Yo(Y,f),X=new e1e(te,f.dateRanges[te.ID],f.dateRangeTagCount);f.dateRangeTagCount++,X.isValid||f.skippedSegments?f.dateRanges[X.id]=X:no.warn(`Ignoring invalid DATERANGE tag: "${Y}"`),x.tagList.push(["EXT-X-DATERANGE",Y]);break}case"DEFINE":{{const te=new Yo(Y,f);"IMPORT"in te?Ewt(f,te,s):vae(f,te,n)}break}case"DISCONTINUITY-SEQUENCE":f.startCC!==0?eh(f,G,_):h.length>0&&Tae(f,G,_),f.startCC=k=parseInt(Y);break;case"KEY":{const te=Sae(Y,n,f);if(te.isSupported()){if(te.method==="NONE"){R=void 0;break}R||(R={});const X=R[te.keyFormat];X!=null&&X.matches(te)||(X&&(R=ao({},R)),R[te.keyFormat]=te)}else no.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${Y}"`);break}case"START":f.startTimeOffset=kae(Y);break;case"MAP":{const te=new Yo(Y,f);if(x.duration){const X=new O9(o,c);Eae(X,te,r,R),m=X,x.initSegment=m,m.rawProgramDateTime&&!x.rawProgramDateTime&&(x.rawProgramDateTime=m.rawProgramDateTime)}else{const X=x.byteRangeEndOffset;if(X){const K=x.byteRangeStartOffset;$=`${X-K}@${K}`}else $=null;Eae(x,te,r,R),m=x,D=!0}m.cc=k;break}case"SERVER-CONTROL":{L&&eh(f,G,_),L=new Yo(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&&eh(f,G,_);const te=new Yo(Y);f.partTarget=te.decimalFloatingPoint("PART-TARGET");break}case"PART":{let te=f.partList;te||(te=f.partList=[]);const X=b>0?te[te.length-1]:void 0,K=b++,J=new Yo(Y,f),ie=new Ekt(J,x,c,K,X);te.push(ie),x.duration+=ie.duration;break}case"PRELOAD-HINT":{const te=new Yo(Y,f);f.preloadHint=te;break}case"RENDITION-REPORT":{const te=new Yo(Y,f);f.renditionReports=f.renditionReports||[],f.renditionReports.push(te);break}default:no.warn(`line parsed but not handled: ${_}`);break}}}E&&!E.relurl?(h.pop(),S-=E.duration,f.partList&&(f.fragmentHint=E)):f.partList&&(WU(x,E,p),x.cc=k,f.fragmentHint=x,R&&xae(x,R,f)),f.targetduration||(f.playlistParsingError=new Error("Missing Target Duration"));const B=h.length,F=h[0],U=h[B-1];if(S+=f.skippedSegments*f.targetduration,S>0&&B&&U){f.averagetargetduration=S/B;const z=U.sn;f.endSN=z!=="initSegment"?z:0,f.live||(U.endList=!0),M>0&&(Uwt(h,M),F&&p.unshift(F))}return f.fragmentHint&&(S+=f.fragmentHint.duration),f.totalduration=S,p.length&&f.dateRangeTagCount&&F&&o1e(p,f),f.endCC=k,f}}function o1e(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=>yW(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 Cae(e,t,n){const r=t[n];r&&(e[n]=r)}function Uwt(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 WU(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function Eae(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 xae(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 eh(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function Tae(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function j9(e,t){const n=t.startPTS;if(Pn(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 s1e(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(Pn(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}`):Pn(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--)j9(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;Wwt(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?s1e(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):a1e(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=ao({},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 e1e(r[c].attr,f);h.isValid?(a[c]=h,f||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${go(r[c].attr)}"`)}),a):r}function Hwt(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 Wwt(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&&Gwt(m,g)){t.playlistParsingError=Aae(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=Aae(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function Aae(e,t,n,r,o){return new Error(`${e} ${o.url} Playlist starting @${t.startSN} ${t.m3u8} Playlist starting @${n.startSN} ${n.m3u8}`)}function a1e(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 Gwt(e,t){return e!==t&&t?Lae(e)!==Lae(t):!1}function Lae(e){return e.replace(/\?[^?]*$/,"")}function f2(e,t){for(let r=0,o=e.length;re.startCC)}function Pae(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function f1e(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=Pr.bufferInfo(f||c,p,s.maxBufferHole),g=!m.len;if(this.log(`Media seeking to ${Pn(p)?p.toFixed(3):p}, state: ${h}, ${g?"out of":"in"} buffer`),this.state===Qt.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===Qt.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 wwt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new SW(t.config)}registerListeners(){const{hls:t}=this;t.on(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(xe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(xe.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===Qt.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=Qt.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=Pr.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===Qt.FRAG_LOADING||!this.fragCurrent&&s===Qt.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=Qt.IDLE);return}"payload"in a&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(xe.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===Qt.STOPPED||this.state===Qt.ERROR||(this.warn(`Frag error: ${a?.message||a}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===ra.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)===ra.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(xe.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,wW(l.method)).catch(f=>{throw o.trigger(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:a}),f}).then(f=>{const h=self.performance.now();return o.trigger(xe.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===Qt.STOPPED||this.state===Qt.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!==Qt.STOPPED&&(this.state=Qt.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(xe.ERROR,{type:er.KEY_SYSTEM_ERROR,details:jt.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?Ywt.toString(Pr.getBuffered(r)):"(detached)"})`),Fs(t)){var o;if(t.type!==Wn.SUBTITLE){const s=t.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=Qt.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=Qt.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 kW(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=Qt.KEY_LOADING,this.fragCurrent=t,l=this.keyLoader.load(t).then(m=>{if(!this.fragContextChanged(m.frag))return this.hls.trigger(xe.KEY_LOADED,m),this.state===Qt.KEY_LOADING&&(this.state=Qt.IDLE),m}),this.hls.trigger(xe.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(Fs(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&&Fs(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=Qt.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(xe.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(Fs(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))}`),Pn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=Qt.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(xe.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(xe.FRAG_LOADED,m);const b=Iae(r.details,t.sn,p.index+1)||c1e(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===jt.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===er.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(xe.ERROR,n)}else this.hls.trigger(xe.ERROR,{type:er.OTHER_ERROR,details:jt.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==Qt.PARSING){!this.fragCurrent&&this.state!==Qt.STOPPED&&this.state!==Qt.ERROR&&(this.state=Qt.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===Wn.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?Iae(c,a,s):null,h=f?f.fragment:u1e(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!==Qt.PARSING)return;const{data1:s,data2:l}=t;let c=s;if(l&&(c=Vc(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(xe.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!Pr.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,o=Pr.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(!Pn(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=Pr.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 Pr.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=Wn.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===ra.OK||r===ra.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(Rae(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(Rae(this.config)&&t.type!==Wn.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=dwt(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=Yye(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=Tg(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===ra.OK||S===ra.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&&Fs(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!==Qt.FRAG_LOADING_WAITING_RETRY)&&(this.state=Qt.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===jt.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(o,!0);const l=n.errorAction;if(!l){this.state=Qt.ERROR;return}const{action:c,flags:f,retryCount:h=0,retryConfig:p}=l,m=!!p,g=m&&c===Aa.RetryRequest,b=m&&!l.resolved&&f===Gu.MoveAllAlternatesMatchingHost,S=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!g&&b&&Fs(o)&&!o.endList&&S&&!Zye(n))this.resetFragmentErrors(t),this.treatAsGap(o),l.resolved=!0;else if((g||b)&&h=n||r&&!VU(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=Qt.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===Qt.PARSING||this.state===Qt.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===Wn.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Qt.STOPPED&&(this.state=Qt.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const o=Pr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,o,r),this.state===Qt.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Qt.STOPPED&&(this.state=Qt.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:s1e(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(xe.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(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.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=Qt.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(xe.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===Wn.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 Rae(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class p1e{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=Xwt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function Xwt(e,t){const n=new Uint8Array(t);let r=0;for(let o=0;o0)return e.subarray(n,n+r)}function rCt(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(xe.ERROR,xe.ERROR,{type:er.MEDIA_ERROR,details:jt.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 no.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 m1e(e,t){return e[t]===255&&(e[t+1]&246)===240}function g1e(e,t){return e[t+1]&1?7:9}function AW(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function iCt(e,t){return t+5=e.length)return!1;const r=AW(e,t);if(r<=n)return!1;const o=t+r;return o===e.length||NI(e,o)}return!1}function y1e(e,t,n,r,o){if(!e.samplerate){const a=rCt(t,n,r,o);if(!a)return;ao(e,a)}}function b1e(e){return 1024*9e4/e}function aCt(e,t){const n=g1e(e,t);if(t+n<=e.length){const r=AW(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function _1e(e,t,n,r,o){const a=b1e(e.samplerate),s=r+o*a,l=aCt(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 lCt(e,t){return TW(e,t)&&QL(e,t+6)+10<=e.length-t}function uCt(e){return e instanceof ArrayBuffer?e:e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function V9(e,t=0,n=1/0){return cCt(e,t,n,Uint8Array)}function cCt(e,t,n,r){const o=dCt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=fCt(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 dCt(e){return e instanceof ArrayBuffer?e:e.buffer}function fCt(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function hCt(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null},n=3;if(e.size<2)return;if(e.data[0]!==n){console.log("Ignore frame with unrecognized character encoding");return}const r=e.data.subarray(1).indexOf(0);if(r===-1)return;const o=tc(V9(e.data,1,r)),a=e.data[2+r],s=e.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=tc(V9(e.data,3+r,s));let c;return o==="-->"?c=tc(V9(e.data,4+r+s)):c=uCt(e.data.subarray(4+r+s)),t.mimeType=o,t.pictureType=a,t.description=l,t.data=c,t}function pCt(e){if(e.size<2)return;const t=tc(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function vCt(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=tc(e.data.subarray(n),!0);n+=r.length+1;const o=tc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=tc(e.data.subarray(1));return{key:e.type,info:"",data:t}}function mCt(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=tc(e.data.subarray(n),!0);n+=r.length+1;const o=tc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=tc(e.data);return{key:e.type,info:"",data:t}}function gCt(e){return e.type==="PRIV"?pCt(e):e.type[0]==="W"?mCt(e):e.type==="APIC"?hCt(e):vCt(e)}function yCt(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=QL(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}}const eT=10,bCt=10;function S1e(e){let t=0;const n=[];for(;TW(e,t);){const r=QL(e,t+6);e[t+5]>>6&1&&(t+=eT),t+=eT;const o=t+r;for(;t+bCt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Yu.audioId3,duration:Number.POSITIVE_INFINITY});o{if(Pn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let tT=null;const kCt=[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],wCt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],CCt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],ECt=[0,1,1,4];function w1e(e,t,n,r,o){if(n+24>t.length)return;const a=C1e(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 C1e(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=kCt[c*14+o-1]*1e3,p=wCt[(n===3?0:n===2?1:2)*3+a],m=l===3?1:2,g=CCt[n][r],b=ECt[r],S=g*8*b,k=Math.floor(g*f/p+s)*b;if(tT===null){const x=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);tT=x?parseInt(x[1]):0}return!!tT&&tT<=87&&r===2&&f>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:m,frameLength:k,samplesPerFrame:S}}}function PW(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function E1e(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,E=new Uint8Array([a<<6|k<<1|C>>2,(C&3)<<6|p<<3|g<<2|c>>4,c<<4&224]),x=1536/l*9e4,_=r+o*x,A=t.subarray(n,n+h);return e.config=E,e.channelCount=S,e.samplerate=l,e.samples.push({unit:A,pts:_}),h}class ICt extends LW{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=uk(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&IW(n)!==void 0&&T1e(t,r)<=16)return!1;for(let o=t.length;r{const s=Nkt(a);if(LCt.test(s.schemeIdUri)){const l=Dae(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:Yu.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Dae(s,n);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Yu.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 Dae(e,t){return Pn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class RCt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new SW(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,bv.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 I1e{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=Vc(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=Vc(b.data,n))}return t.naluState=a,l}}class h2{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&&no.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 MCt extends I1e{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,gW(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 E="avc1.";for(let x=0;x<3;x++){let _=C[x].toString(16);_.length<2&&(_="0"+_),E+=_}t.codec=E}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 h2(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,gW(f.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=ao(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 h2(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 h2(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(),E=[],x=[];for(let je=0;je0)for(let je=r;je<8;je++)n.readBits(2);for(let je=0;je1&&n.readEG();for(let Et=0;Et0&&Tt<16?(ie=Wt[Tt-1],se=Gt[Tt-1]):Tt===255&&(ie=n.readBits(16),se=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()&&(Ce=n.readBits(32),ke=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Gt=n.readBoolean(),Jt=n.readBoolean();let rn=!1;(Gt||Jt)&&(rn=n.readBoolean(),rn&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),rn&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let qe=0;qe<=r;qe++){ae=n.readBoolean();const ht=ae||n.readBoolean();let ze=!1;ht?n.readEG():ze=n.readBoolean();const Fe=ze?1:n.readUEG()+1;if(Gt)for(let at=0;at>je&1)<<31-je)>>>0;let ye=_e.toString(16);return s===1&&ye==="2"&&(ye="6"),{codecString:`hvc1.${Ze}${s}.${ye}.${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:F+8,bit_depth_luma_minus8:F,bit_depth_chroma_minus8:U,min_spatial_segmentation_idc:J,chroma_format_idc:_,frame_rate:{fixed:ae,fps:ke/Ce}},width:Ne,height:Ye,pixelRatio:[ie,se]}}readPPS(t){const n=new h2(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 fa=188;class Vp{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=Vp.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(fa*5,n-fa)+1,o=0;for(;o1&&(s===0&&l>2||c+fa>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:Oye[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=Vp.createTrack("video"),this._videoTrack.duration=o,this._audioTrack=Vp.createTrack("audio",o),this._id3Track=Vp.createTrack("id3"),this._txtTrack=Vp.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,E=this._pmtId,x=t.length;if(this.remainderData&&(t=Vc(this.remainderData,t),x=t.length,this.remainderData=null),x>4;let B;if(L>1){if(B=M+5+t[M+4],B===M+fa)continue}else B=M+4;switch($){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+fa)),p.size+=M+fa-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+fa)),b.size+=M+fa-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+fa)),S.size+=M+fa-B);break;case 0:D&&(B+=t[B]+1),E=this._pmtId=OCt(t,B);break;case E:{D&&(B+=t[B]+1);const F=$Ct(t,B,this.typeSupported,r,this.observer,this.logger);h=F.videoPid,h>0&&(s.pid=h,s.segmentCodec=F.segmentVideoCodec),m=F.audioPid,m>0&&(l.pid=m,l.segmentCodec=F.segmentAudioCodec),g=F.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=$;break}}else A++;A>0&&qU(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 RCt(this.observer,this.config,n);return this.decrypt(o,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new MCt:t==="hevc"&&(this.videoParser=new DCt))}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=Vc(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=ao({},n,{type:this._videoTrack?Yu.emsg:Yu.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function KU(e,t){return((e[t+1]&31)<<8)+e[t+2]}function OCt(e,t){return(e[t+10]&31)<<8|e[t+11]}function $Ct(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 qU(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 qU(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(xe.ERROR,xe.ERROR,{type:er.MEDIA_ERROR,details:jt.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function z9(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]=Vc(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 NCt{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 Ap=Math.pow(2,32)-1;class Bt{static init(){Bt.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 Bt.types)Bt.types.hasOwnProperty(t)&&(Bt.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]);Bt.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]);Bt.STTS=Bt.STSC=Bt.STCO=a,Bt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Bt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Bt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Bt.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]);Bt.FTYP=Bt.box(Bt.types.ftyp,s,c,s,l),Bt.DINF=Bt.box(Bt.types.dinf,Bt.box(Bt.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 Bt.box(Bt.types.mdia,Bt.mdhd(t.timescale||0,t.duration||0),Bt.hdlr(t.type),Bt.minf(t))}static mfhd(t){return Bt.box(Bt.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"?Bt.box(Bt.types.minf,Bt.box(Bt.types.smhd,Bt.SMHD),Bt.DINF,Bt.stbl(t)):Bt.box(Bt.types.minf,Bt.box(Bt.types.vmhd,Bt.VMHD),Bt.DINF,Bt.stbl(t))}static moof(t,n,r){return Bt.box(Bt.types.moof,Bt.mfhd(t),Bt.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=Bt.trak(t[n]);return Bt.box.apply(null,[Bt.types.moov,Bt.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(Bt.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=Bt.trex(t[n]);return Bt.box.apply(null,[Bt.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Ap+1)),o=Math.floor(n%(Ap+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 Bt.box(Bt.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=Bt.box(Bt.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 Bt.box(Bt.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,Bt.box(Bt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Bt.box(Bt.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 Bt.box(Bt.types.mp4a,Bt.audioStsd(t),Bt.box(Bt.types.esds,Bt.esds(t)))}static mp3(t){return Bt.box(Bt.types[".mp3"],Bt.audioStsd(t))}static ac3(t){return Bt.box(Bt.types["ac-3"],Bt.audioStsd(t),Bt.box(Bt.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return Bt.box(Bt.types.stsd,Bt.STSD,Bt.mp4a(t));if(n==="ac3"&&t.config)return Bt.box(Bt.types.stsd,Bt.STSD,Bt.ac3(t));if(n==="mp3"&&t.codec==="mp3")return Bt.box(Bt.types.stsd,Bt.STSD,Bt.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return Bt.box(Bt.types.stsd,Bt.STSD,Bt.avc1(t));if(n==="hevc"&&t.vps)return Bt.box(Bt.types.stsd,Bt.STSD,Bt.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/(Ap+1)),l=Math.floor(r%(Ap+1));return Bt.box(Bt.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=Bt.sdtp(t),o=t.id,a=Math.floor(n/(Ap+1)),s=Math.floor(n%(Ap+1));return Bt.box(Bt.types.traf,Bt.box(Bt.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255])),Bt.box(Bt.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])),Bt.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,Bt.box(Bt.types.trak,Bt.tkhd(t),Bt.mdia(t))}static trex(t){const n=t.id;return Bt.box(Bt.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 Bt.box(Bt.types.trun,s)}static initSegment(t){Bt.types||Bt.init();const n=Bt.moov(t);return Vc(Bt.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=Bt.box(Bt.types.hvcC,l),h=t.width,p=t.height,m=t.pixelRatio[0],g=t.pixelRatio[1];return Bt.box(Bt.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,Bt.box(Bt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Bt.box(Bt.types.pasp,new Uint8Array([m>>24,m>>16&255,m>>8&255,m&255,g>>24,g>>16&255,g>>8&255,g&255])))}}Bt.types=void 0;Bt.HDLR_TYPES=void 0;Bt.STTS=void 0;Bt.STSC=void 0;Bt.STCO=void 0;Bt.STSZ=void 0;Bt.VMHD=void 0;Bt.SMHD=void 0;Bt.STSD=void 0;Bt.FTYP=void 0;Bt.DINF=void 0;const L1e=9e4;function RW(e,t,n=1,r=!1){const o=e*t*n;return r?Math.round(o):o}function BCt(e,t,n=1,r=!1){return RW(e,t,1/n,r)}function rS(e,t=!1){return RW(e,1e3,1/L1e,t)}function FCt(e,t=1){return RW(e,L1e,1/t)}function Oae(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const jCt=10*1e3,UCt=1024,VCt=1152,zCt=1536;let hy=null,H9=null;function $ae(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 eA extends Wc{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(H9===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);H9=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&&Oae(n)} > ${t&&Oae(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=Ku(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,E=n.pid>-1,x=n.samples.length,_=t.samples.length>0,A=l&&x>0||x>1;if((!C||_)&&(!E||A)||this.ISGenerated||l){if(this.ISGenerated){var M,D,$,L;const z=this.videoTrackConfig;(z&&(n.width!==z.width||n.height!==z.height||((M=n.pixelRatio)==null?void 0:M[0])!==((D=z.pixelRatio)==null?void 0:D[0])||(($=n.pixelRatio)==null?void 0:$[1])!==((L=z.pixelRatio)==null?void 0:L[1]))||!z&&A||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const B=this.isVideoContiguous;let F=-1,U;if(A&&(F=HCt(n.samples),!B&&this.config.forceKeyFrameOnDiscontinuity))if(b=!0,F>0){this.warn(`Dropped ${F} out of ${x} video samples due to a missing keyframe`);const z=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(F),n.dropped+=F,k+=(n.samples[0].pts-z)/n.inputTimeScale,U=k}else F===-1&&(this.warn(`No keyframe found out of ${x} video samples`),b=!1);if(this.ISGenerated){if(_&&A){const z=this.getVideoStartPts(n.samples),Y=(Ku(t.samples[0].pts,z)-z)/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,E||A||c===Wn.AUDIO?k:void 0),A){const z=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,z)}}else A&&(f=this.remuxVideo(n,k,B,0));f&&(f.firstKeyFrame=F,f.independent=F!==-1,f.firstKeyFramePTS=U)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=P1e(r,a,this._initPTS,this._initDTS)),o.samples.length&&(m=R1e(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=Ku(t,a);if(s0?J-1:J].dts&&(E=!0)}E&&s.sort(function(J,ie){const se=J.dts-ie.dts,ae=J.pts-ie.pts;return se||ae}),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 J=b-x,ie=J>A,se=J<-1;if((ie||se)&&(ie?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${rS(J,!0)} ms (${J}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${rS(-J,!0)} ms (${J}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!se||x>=s[0].pts||hy)){b=x;const ae=s[0].pts-J;if(ie)s[0].dts=b,s[0].pts=ae;else{let Ce=!0;for(let ke=0;keae&&Ce);ke++){const ve=s[ke].pts;if(s[ke].dts-=J,s[ke].pts-=J,ke0?ie.dts-s[J-1].dts:A;if(Ce=J>0?ie.pts-s[J-1].pts:A,ve.stretchShortVideoTrack&&this.nextAudioTs!==null){const Ne=Math.floor(ve.maxBufferHole*a),Ye=(o?k+o*a:this.nextAudioTs+h)-ie.pts;Ye>Ne?(g=Ye-Ie,g<0?g=Ie:F=!0,this.log(`It is approximately ${Ye/90} ms to the next segment; using duration ${g/90} ms for the last video frame.`)):g=Ie}else g=Ie}const ke=Math.round(ie.pts-ie.dts);U=Math.min(U,g),G=Math.max(G,g),z=Math.min(z,Ce),Y=Math.max(Y,Ce),l.push($ae(ie.key,g,ae,ke))}if(l.length){if(hy){if(hy<70){const J=l[0].flags;J.dependsOn=2,J.isNonSync=0}}else if(H9&&Y-z0&&(o&&Math.abs(x-(C+E))<9e3||Math.abs(Ku(S[0].pts,x)-(C+E))<20*h),S.forEach(function(Y){Y.pts=Ku(Y.pts,x)}),!r||C<0){const Y=S.length;if(S=S.filter(re=>re.pts>=0),Y!==S.length&&this.warn(`Removed ${S.length-Y} of ${Y} samples (initPTS ${E} / ${s})`),!S.length)return;a===0?C=0:o&&!b?C=Math.max(0,x-E):C=S[0].pts-E}if(t.segmentCodec==="aac"){const Y=this.config.maxAudioFramesDrift;for(let re=0,te=C+E;re=Y*h&&ie0){M+=k;try{R=new Uint8Array(M)}catch(ie){this.observer.emit(xe.ERROR,xe.ERROR,{type:er.MUX_ERROR,details:jt.REMUX_ALLOC_ERROR,fatal:!1,error:ie,bytes:M,reason:`fail allocating audio mdat ${M}`});return}m||(new DataView(R.buffer).setUint32(0,M),R.set(Bt.types.mdat,4))}else return;R.set(X,k);const J=X.byteLength;k+=J,g.push($ae(!0,f,J,0)),A=K}const $=g.length;if(!$)return;const L=g[g.length-1];C=A-E,this.nextAudioTs=C+c*L.duration;const B=m?new Uint8Array(0):Bt.moof(t.sequenceNumber++,_/c,ao({},t,{samples:g}));t.samples=[];const F=(_-E)/s,U=C/s,G={data1:B,data2:R,startPTS:F,endPTS:U,startDTS:F,endDTS:U,type:"audio",hasAudio:!0,hasVideo:!1,nb:$};return this.isAudioContiguous=!0,G}}function Ku(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function HCt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class WCt extends Wc{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=Bye(t);if(n)Rkt(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=Nae(a,mo.AUDIO,this)),s&&(o=Nae(s,mo.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};Pn(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=Dkt(m,b,this),k=b.audio?S[b.audio.id]:null,C=b.video?S[b.video.id]:null,E=nT(C,1/0),x=nT(k,1/0),_=nT(C,0,!0),A=nT(k,0,!0);let R=a,M=0;const D=k&&(!C||!f&&x0?this.lastEndTime=B:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const F=!!b.audio,U=!!b.video;let z="";F&&(z+="audio"),U&&(z+="video");const G=(b.audio?b.audio.encrypted:!1)||(b.video?b.video.encrypted:!1),Y={data1:m,startPTS:L,startDTS:L,endPTS:B,endDTS:B,type:z,hasAudio:F,hasVideo:U,nb:1,dropped:0,encrypted:G};p.audio=F&&!U?Y:void 0,p.video=U?Y:void 0;const re=C?.sampleCount;if(re){const te=C.keyFrameIndex,X=te!==-1;Y.nb=re,Y.dropped=te===0||this.isVideoContiguous?0:X?te:re,Y.independent=X,Y.firstKeyFrame=te,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 ${te}/${re} dropped: ${Y.dropped} start: ${Y.firstKeyFramePTS||"NA"}`)}return p.initSegment=g,p.id3=P1e(r,a,f,f),o.samples.length&&(p.text=R1e(o,a,f)),p}}function nT(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function GCt(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 Nae(e,t,n){const r=e.codec;return r&&r.length>4?r:t===mo.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?II(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 lh;try{lh=self.performance.now.bind(self.performance)}catch{lh=Date.now}const tA=[{demux:PCt,remux:WCt},{demux:Vp,remux:eA},{demux:TCt,remux:eA},{demux:ICt,remux:eA}];tA.splice(2,0,{demux:ACt,remux:eA});class Bae{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=lh();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:E,initSegmentData:x}=c,_=KCt(s,n);if(_&&i1(_.method)){const D=this.getDecrypter(),$=wW(_.method);if(D.isSync()){let L=D.softwareDecrypt(s,_.key.buffer,_.iv.buffer,$);if(r.part>-1){const F=D.flush();L=F&&F.buffer}if(!L)return a.executeEnd=lh(),W9(r);s=new Uint8Array(L)}else return this.asyncResult=!0,this.decryptionPromise=D.webCryptoDecrypt(s,_.key.buffer,_.iv.buffer,$).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(xe.ERROR,xe.ERROR,{type:er.MEDIA_ERROR,details:jt.FRAG_PARSING_ERROR,fatal:!1,error:D,reason:D.message}),a.executeEnd=lh(),W9(r)}(h||p||b||A)&&this.resetInitSegment(x,S,k,E,n),(h||b||A)&&this.resetInitialTimestamp(C),f||this.resetContiguity();const R=this.transmux(s,_,g,m,r);this.asyncResult=ck(R);const M=this.currentTransmuxState;return M.contiguous=!0,M.discontinuity=!1,M.trackSwitch=!1,a.executeEnd=lh(),R}flush(t){const n=t.transmuxing;n.executeStart=lh();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=lh();const p=[W9(t)];return this.asyncResult?Promise.resolve(p):p}const h=c.flush(l);return ck(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===Wn.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=lh()}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=tA.length;p0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const W9=e=>({remuxResult:{},chunkMeta:e});function ck(e){return"then"in e&&e.then instanceof Function}class qCt{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 YCt{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 Fae=0;class M1e{constructor(t,n,r,o){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Fae++,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(xe.ERROR,{type:er.OTHER_ERROR,details:jt.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===xe.ERROR&&(f=f,f.parent=this.id,f.part=this.part,this.error=f.error),this.hls.trigger(c,f)};this.observer=new xW,this.observer.on(xe.FRAG_DECRYPTED,s),this.observer.on(xe.ERROR,s);const l=eae(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||Qwt()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=tCt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=eCt());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:go(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new Bae(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new Bae(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Fae++;const n=this.hls.config,r=eae(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:go(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),nCt(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,E=!(C&&a.cc===C.cc),x=!(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=!x&&(_===1||_===0&&(A===1||R&&A<=0)),D=self.performance.now();(x||_||a.stats.parsing.start===0)&&(a.stats.parsing.start=D),s&&(A||!M)&&(s.stats.parsing.start=D);const $=!(C&&((p=a.initSegment)==null?void 0:p.url)===((m=C.initSegment)==null?void 0:m.url)),L=new YCt(E,M,c,x,S,$);if(!M||E||$){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${f.sn}${f.part>-1?" part: "+f.part:""} ${this.id===Wn.MAIN?"level":"track"}: ${f.level} id: ${f.id} discontinuity: ${E} trackSwitch: ${x} contiguous: ${M} accurateTimeOffset: ${c} timeOffset: ${S} initSegmentChange: ${$}`);const B=new qCt(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);ck(B)?B.then(F=>{this.handleTransmuxComplete(F)}).catch(F=>{this.transmuxerError(F,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);ck(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(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.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 jae=100;class XCt extends EW{constructor(t,n,r){super(t,n,r,"audio-stream-controller",Wn.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(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(xe.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(xe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(xe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(xe.BUFFER_RESET,this.onBufferReset,this),t.on(xe.BUFFER_CREATED,this.onBufferCreated,this),t.on(xe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(xe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(xe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(xe.FRAG_LOADING,this.onFragLoading,this),t.on(xe.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(xe.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(xe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(xe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(xe.BUFFER_RESET,this.onBufferReset,this),t.off(xe.BUFFER_CREATED,this.onBufferCreated,this),t.off(xe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(xe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(xe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(xe.FRAG_LOADING,this.onFragLoading,this),t.off(xe.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){if(r===Wn.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===Qt.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===Qt.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=Yye(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===Qt.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=Qt.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(jae),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=Qt.IDLE):this.state=Qt.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case Qt.IDLE:this.doTickIdle();break;case Qt.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=Qt.WAITING_INIT_PTS}break}case Qt.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case Qt.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=Qt.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=Qt.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=Qt.WAITING_TRACK,this.startFragRequested=!1;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,mo.AUDIO,Wn.AUDIO));const h=this.getFwdBufferInfo(f,Wn.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(xe.BUFFER_EOS,{type:"audio"}),this.state=Qt.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 x=S;c.PTSKnown&&xb||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&&kE.end){const _=this.fragmentTracker.getFragAtPos(k,Wn.MAIN);_&&_.end>E.end&&(E=_,this.mainFragLoading={frag:_,targetBufferTime:null})}if(C.start>E.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 ak(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!==Qt.STOPPED&&(this.setInterval(jae),this.state=Qt.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(xe.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!==Qt.STOPPED&&(this.state=Qt.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||(h1e(a,f),a.alignedSliding||$I(a,f),p=a.fragmentStart)}h.details=a,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(f,p),this.hls.trigger(xe.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:n.groupId}),this.state===Qt.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=Qt.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 M1e(this.hls,Wn.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,E=new kW(r.level,r.sn,r.stats.chunkCount,a.byteLength,k,C);m.push(a,b,p,"",r,o,h.totalduration,!1,E,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 p1e,complete:!1};S.push(new Uint8Array(a)),this.state!==Qt.STOPPED&&(this.state=Qt.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===Wn.MAIN&&Fs(n.frag)&&(this.mainFragLoading=n,this.state===Qt.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:o}=n;if(r.type!==Wn.AUDIO){!this.audioOnly&&r.type===Wn.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(Fs(r)){this.fragPrevious=r;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(xe.AUDIO_TRACK_SWITCHED,eo({},a)))}this.fragBufferedComplete(r,o),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=Qt.ERROR;return}switch(n.details){case jt.FRAG_GAP:case jt.FRAG_PARSING_ERROR:case jt.FRAG_DECRYPT_ERROR:case jt.FRAG_LOAD_ERROR:case jt.FRAG_LOAD_TIMEOUT:case jt.KEY_LOAD_ERROR:case jt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Wn.AUDIO,n);break;case jt.AUDIO_TRACK_LOAD_ERROR:case jt.AUDIO_TRACK_LOAD_TIMEOUT:case jt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===Qt.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===ci.AUDIO_TRACK&&(this.state=Qt.IDLE);break;case jt.BUFFER_ADD_CODEC_ERROR:case jt.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case jt.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case jt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==mo.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==mo.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Qt.ENDED&&(this.state=Qt.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,Wn.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=Qt.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(xe.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:r,tracks:S.tracks})}if(m){const{startPTS:k,endPTS:C,startDTS:E,endDTS:x}=m;f&&(f.elementaryStreams[mo.AUDIO]={startPTS:k,endPTS:C,startDTS:E,endDTS:x}),c.setElementaryStreamInfo(mo.AUDIO,k,C,E,x),this.bufferFragmentData(m,c,f,s)}if(b!=null&&(n=b.samples)!=null&&n.length){const k=ao({id:r,frag:c,details:p},b);o.trigger(xe.FRAG_PARSING_METADATA,k)}if(g){const k=ao({id:r,frag:c,details:p},g);o.trigger(xe.FRAG_PARSING_USERDATA,k)}}_bufferInitSegment(t,n,r,o){if(this.state!==Qt.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const a=n.audio;a.id=Wn.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(xe.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(xe.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);if(this.switchingTrack||o===ra.NOT_LOADED||o===ra.PARTIAL){var a;if(!Fs(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=Qt.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==n.details.fragmentStart&&$I(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;lg({name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l},t,Pm)||(PI(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(xe.AUDIO_TRACK_SWITCHED,eo({},t))}}class MW extends Wc{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&&tae(r);return new nae(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){Vwt(r,o,this);const E=o.playlistParsingError;if(E){this.warn(E);const x=this.hls;if(!x.config.ignorePlaylistParsingErrors){var f;const{networkDetails:_}=n;x.trigger(xe.ERROR,{type:er.NETWORK_ERROR,details:jt.LEVEL_PARSING_ERROR,fatal:!1,url:o.url,error:E,reason:E.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=l1e(o,g);if(o.requestScheduled+b0){if($>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&&$-o.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${L} with playlist age: ${o.age}`),L=0;else{const B=Math.floor(L/o.targetduration);if(k+=B,C!==void 0){const F=Math.round(L%o.targetduration/o.partTarget);C+=F}this.log(`CDN Tune-in age: ${o.ageHeader}s last advanced ${D.toFixed(2)}s goal: ${L} skip sn ${B} to part ${C}`)}o.tuneInGoal=L}if(S=this.getDeliveryDirectives(o,n.deliveryDirectives,k,C),E||!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=tae(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,o=n.part,a=J4.No),new nae(r,o,a)}checkRetry(t){const n=t.details,r=RI(t),o=t.errorAction,{action:a,retryCount:s=0,retryConfig:l}=o||{},c=!!o&&!!l&&(a===Aa.RetryRequest||!o.resolved&&a===Aa.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=_W(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 D1e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[o]!==t[o])}function YU(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class ZCt extends MW{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(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(xe.LEVEL_LOADING,this.onLevelLoading,this),t.on(xe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(xe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(xe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(xe.LEVEL_LOADING,this.onLevelLoading,this),t.off(xe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(xe.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(xe.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=sf(c,l,Pm);if(m>-1)a=l[m];else{const g=sf(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(xe.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(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:m})}}}onError(t,n){n.fatal||!n.context||n.context.type===ci.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&&lg(t,o,Pm))return o;const a=sf(t,this.tracksInGroup,Pm);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=uwt(t,n.levels,r,s,Pm);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=sf(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(xe.AUDIO_TRACK_SWITCHING,eo({},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 Uae=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,O1e="HlsJsTrackRemovedError";class QCt extends Error{constructor(t){super(t),this.name=O1e}}class eEt extends Wc{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(xe.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=kkt(yv(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(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(xe.BUFFER_RESET,this.onBufferReset,this),t.on(xe.BUFFER_APPENDING,this.onBufferAppending,this),t.on(xe.BUFFER_CODECS,this.onBufferCodecs,this),t.on(xe.BUFFER_EOS,this.onBufferEos,this),t.on(xe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(xe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(xe.FRAG_PARSED,this.onFragParsed,this),t.on(xe.FRAG_CHANGED,this.onFragChanged,this),t.on(xe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(xe.BUFFER_RESET,this.onBufferReset,this),t.off(xe.BUFFER_APPENDING,this.onBufferAppending,this),t.off(xe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(xe.BUFFER_EOS,this.onBufferEos,this),t.off(xe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(xe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(xe.FRAG_PARSED,this.onFragParsed,this),t.off(xe.FRAG_CHANGED,this.onFragChanged,this),t.off(xe.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?ao(r,o.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=ao({},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=yv(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,Vae(r),tEt(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: ${go(r,(c,f)=>c==="initSegment"?void 0:f)}; transfer tracks: ${go(o,(c,f)=>c==="initSegment"?void 0:f)}}`),!Pye(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(xe.MEDIA_DETACHING,{}),this.onMediaAttaching(xe.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=Pr.getBuffered(p);m.detectEvictedFragments(f,k,g,null,!0)}const b=G9(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&&Vae(o),o.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(xe.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[G9(t)]=[null,null];const n=this.tracks[t];n&&(n.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new JCt(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 E=o[c];const x=(f=this.transferData)==null||(f=f.tracks)==null?void 0:f[c],_=x!=null&&x.buffer?x:E,A=_?.pendingCodec||_?.codec,R=_?.levelCodec;E||(E=o[c]={buffer:void 0,listeners:[],codec:g,supplemental:C,container:S,levelCodec:b,metadata:k,id:m});const M=Z4(A,R),D=M?.replace(Uae,"$1");let $=Z4(g,b);const L=(h=$)==null?void 0:h.replace(Uae,"$1");$&&M&&D!==L&&(c.slice(0,5)==="audio"&&($=II($,this.appendSource)),this.log(`switching codec ${A} to ${$}`),$!==(E.pendingCodec||E.codec)&&(E.pendingCodec=$),E.container=S,this.appendChangeType(c,S,$))}),(this.tracksReady||this.sourceBufferCount)&&(n.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!n.video&&((r=n.audio)==null?void 0:r.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((t,n)=>{const r=this.tracks[n];return t[n]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},t},{})}appendChangeType(t,n,r){const o=`${n};codecs=${r}`,a={label:`change-type=${o}`,execute:()=>{const s=this.tracks[t];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${t} sourceBuffer type to ${o}`),l.changeType(o),s.codec=r,s.container=n)}this.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${t} SourceBuffer type`,s)}};this.append(a,t,this.isPending(this.tracks[t]))}blockAudio(t){var n;const r=t.start,o=r+t.duration*.05;if(((n=this.fragmentTracker.getAppendedFrag(r,Wn.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&&Pr.isBuffered(c.buffer,o)||((l=this.fragmentTracker.getAppendedFrag(o,Wn.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 E=!1;a==="audio"&&C?.container==="audio/mpeg"&&(E=!this.lastMpegAudioChunk||f.id===1||this.lastMpegAudioChunk.sn!==f.sn,this.lastMpegAudioChunk=f);const x=r.video,_=x?.buffer;if(_&&m!=="initSegment"){const M=c||l,D=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(x.ending||x.ended)){const L=M.start+M.duration*.05,B=_.buffered,F=this.currentOp("video");!B.length&&!F?this.blockAudio(M):!F&&!Pr.isBuffered(_,L)&&this.lastVideoAppendEndL||${var M;p.executeStart=self.performance.now();const D=(M=this.tracks[a])==null?void 0:M.buffer;D&&(E?this.updateTimestampOffset(D,A,.1,a,m,g):h!==void 0&&Pn(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(([$,L])=>{$&&(D[$]=Pr.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(xe.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:f,parent:l.type,timeRanges:D})},onError:M=>{var D;const $={type:er.MEDIA_ERROR,parent:l.type,details:jt.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)$.details=jt.BUFFER_FULL_ERROR;else if(M.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!L)$.errorAction=r1(!0);else if(M.name===O1e&&this.sourceBufferCount===0)$.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)&&($.fatal=!0)}this.hls.trigger(xe.ERROR,$)}};this.log(`queuing "${a}" append sn: ${m}${c?" p: "+c.index:""} of ${l.type===Wn.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(xe.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[mo.AUDIOVIDEO]?a.push("audiovideo"):(s[mo.AUDIO]&&a.push("audio"),s[mo.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(xe.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(xe.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(xe.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===jt.BUFFER_APPEND_ERROR&&n.frag){var r;const o=(r=n.errorAction)==null?void 0:r.nextAutoLevel;Pn(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(Pn(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(Pn(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=Pr.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(xe.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[o];if((s=this.details)!=null&&s.live)this.hls.trigger(xe.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(xe.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:o})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const s=Pr.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(xe.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 Pn(a)?{duration:a}:null;const s=this.media.duration,l=Pn(r.duration)?r.duration:0;return o>l&&o>s||!Pn(s)?{duration:o}:null}updateMediaSource({duration:t,start:n,end:r}){const o=this.mediaSource;!this.media||!o||o.readyState!=="open"||(o.duration!==t&&(Pn(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}) ${go(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(xe.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(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.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":""} ${go(l)}`);try{const h=r.addSourceBuffer(f),p=G9(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(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.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")&&ok(r,"video")&&(o=Hkt(o,r));const a=Z4(o,t.levelCodec);return a?n.slice(0,5)==="audio"?II(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(xe.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(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.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=Pn(o.duration)?o.duration:1/0,f=Pn(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 QCt(`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 Vae(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function tEt(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function G9(e){return e==="audio"?1:0}class DW{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(xe.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(xe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(xe.BUFFER_CODECS,this.onBufferCodecs,this),t.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(xe.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(xe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(xe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(xe.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&&Pn(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,DW.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 nEt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},ou=nEt,rEt={HLS:"h"},iEt=rEt;class yf{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof yf?r:new yf(r))),this.value=t,this.params=n}}const oEt="Dict";function sEt(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 aEt(e,t,n,r){return new Error(`failed to ${e} "${sEt(t)}" as ${n}`,{cause:r})}function bf(e,t,n){return aEt("serialize",e,t,n)}class $1e{constructor(t){this.description=t}}const zae="Bare Item",lEt="Boolean";function uEt(e){if(typeof e!="boolean")throw bf(e,lEt);return e?"?1":"?0"}function cEt(e){return btoa(String.fromCharCode(...e))}const dEt="Byte Sequence";function fEt(e){if(ArrayBuffer.isView(e)===!1)throw bf(e,dEt);return`:${cEt(e)}:`}const hEt="Integer";function pEt(e){return e<-999999999999999||99999999999999912)throw bf(e,mEt);const n=t.toString();return n.includes(".")?n:`${n}.0`}const yEt="String",bEt=/[\x00-\x1f\x7f]+/;function _Et(e){if(bEt.test(e))throw bf(e,yEt);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function SEt(e){return e.description||e.toString().slice(7,-1)}const kEt="Token";function Hae(e){const t=SEt(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw bf(t,kEt);return t}function XU(e){switch(typeof e){case"number":if(!Pn(e))throw bf(e,zae);return Number.isInteger(e)?N1e(e):gEt(e);case"string":return _Et(e);case"symbol":return Hae(e);case"boolean":return uEt(e);case"object":if(e instanceof Date)return vEt(e);if(e instanceof Uint8Array)return fEt(e);if(e instanceof $1e)return Hae(e);default:throw bf(e,zae)}}const wEt="Key";function ZU(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw bf(e,wEt);return e}function OW(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${ZU(t)}`:`;${ZU(t)}=${XU(n)}`).join("")}function F1e(e){return e instanceof yf?`${XU(e.value)}${OW(e.params)}`:XU(e)}function CEt(e){return`(${e.value.map(F1e).join(" ")})${OW(e.params)}`}function EEt(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw bf(e,oEt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([o,a])=>{a instanceof yf||(a=new yf(a));let s=ZU(o);return a.value===!0?s+=OW(a.params):(s+="=",Array.isArray(a.value)?s+=CEt(a):s+=F1e(a)),s}).join(`,${r}`)}function j1e(e,t){return EEt(e,t)}const Wd="CMCD-Object",is="CMCD-Request",Em="CMCD-Session",Ip="CMCD-Status",xEt={br:Wd,ab:Wd,d:Wd,ot:Wd,tb:Wd,tpb:Wd,lb:Wd,tab:Wd,lab:Wd,url:Wd,pb:is,bl:is,tbl:is,dl:is,ltc:is,mtp:is,nor:is,nrr:is,rc:is,sn:is,sta:is,su:is,ttfb:is,ttfbb:is,ttlb:is,cmsdd:is,cmsds:is,smrt:is,df:is,cs:is,ts:is,cid:Em,pr:Em,sf:Em,sid:Em,st:Em,v:Em,msd:Em,bs:Ip,bsd:Ip,cdn:Ip,rtp:Ip,bg:Ip,pt:Ip,ec:Ip,e:Ip},TEt={REQUEST:is};function AEt(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 IEt(e,t){const n={};if(!e)return n;const r=Object.keys(e),o=t?AEt(t):{};return r.reduce((a,s)=>{var l;const c=xEt[s]||o[s]||TEt.REQUEST,f=(l=a[c])!==null&&l!==void 0?l:a[c]={};return f[s]=e[s],a},n)}function LEt(e){return["ot","sf","st","e","sta"].includes(e)}function PEt(e){return typeof e=="number"?Pn(e):e!=null&&e!==""&&e!==!1}const U1e="event";function REt(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 nA=e=>Math.round(e),JU=(e,t)=>Array.isArray(e)?e.map(n=>JU(n,t)):e instanceof yf&&typeof e.value=="string"?new yf(JU(e.value,t),e.params):(t.baseUrl&&(e=REt(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),rT=e=>nA(e/100)*100,MEt=(e,t)=>{let n=e;return t.version>=2&&(e instanceof yf&&typeof e.value=="string"?n=new yf([e]):typeof e=="string"&&(n=[e])),JU(n,t)},DEt={br:nA,d:nA,bl:rT,dl:rT,mtp:rT,nor:MEt,rtp:rT,tb:nA},V1e="request",z1e="response",$W=["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"],OEt=["e"],$Et=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function eP(e){return $Et.test(e)}function NEt(e){return $W.includes(e)||OEt.includes(e)||eP(e)}const H1e=["d","dl","nor","ot","rtp","su"];function BEt(e){return $W.includes(e)||H1e.includes(e)||eP(e)}const FEt=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function jEt(e){return $W.includes(e)||H1e.includes(e)||FEt.includes(e)||eP(e)}const UEt=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function VEt(e){return UEt.includes(e)||eP(e)}const zEt={[z1e]:jEt,[U1e]:NEt,[V1e]:BEt};function W1e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,o=t.reportingMode||V1e,a=r===1?VEt:zEt[o];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=o===z1e||o===U1e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const f=ao({},DEt,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"&&!Pn(m)&&(m=Date.now()),PEt(m)&&(LEt(p)&&typeof m=="string"&&(m=new $1e(m)),n[p]=m))}),n}function HEt(e,t={}){const n={};if(!e)return n;const r=W1e(e,t),o=IEt(r,t?.customHeaderMap);return Object.entries(o).reduce((a,[s,l])=>{const c=j1e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function WEt(e,t,n){return ao(e,HEt(t,n))}const GEt="CMCD";function KEt(e,t={}){return e?j1e(W1e(e,t),{whitespace:!1}):""}function qEt(e,t={}){if(!e)return"";const n=KEt(e,t);return encodeURIComponent(n)}function YEt(e,t={}){if(!e)return"";const n=qEt(e,t);return`${GEt}=${n}`}const Wae=/CMCD=[^&#]+/;function XEt(e,t,n){const r=YEt(t,n);if(!r)return e;if(Wae.test(e))return e.replace(Wae,r);const o=e.includes("?")?"&":"?";return`${e}${o}${r}`}class ZEt{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:ou.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===ou.VIDEO||c===ou.AUDIO||c==ou.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(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(xe.MEDIA_DETACHED,this.onMediaDetached,this),t.on(xe.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(xe.MEDIA_DETACHED,this.onMediaDetached,this),t.off(xe.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:iEt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){ao(n,this.createData());const r=n.ot===ou.INIT||n.ot===ou.VIDEO||n.ot===ou.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={}),WEt(t.headers,n,a)):t.url=XEt(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 ou.TIMED_TEXT;if(t.sn==="initSegment")return ou.INIT;if(n==="audio")return ou.AUDIO;if(n==="main")return this.hls.audioTracks.length?ou.VIDEO:ou.MUXED}getTopBandwidth(t){let n=0,r;const o=this.hls;if(t===ou.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===ou.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:Pr.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 JEt=3e5;class QEt extends Wc{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(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(xe.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(xe.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===Aa.SendAlternateToPenaltyBox&&r.flags===Gu.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===jt.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: ${go(a)} penalized: ${go(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]>JEt&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,d1e(n),this.hls.trigger(xe.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 Yo(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=G1e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),S=new ak({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 E={steeringManifest:b,url:o.toString()};this.hls.trigger(xe.STEERING_MANIFEST_LOADED,E),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 Gae(e,t,n,r){e&&Object.keys(t).forEach(o=>{const a=e.filter(s=>s.groupId===o).map(s=>{const l=ao({},s);return l.details=void 0,l.attrs=new Yo(l.attrs),l.url=l.attrs.URI=G1e(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 G1e(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 Wc{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=kS(this.config));const l=s.map(B9).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=Q4(s);if(r!=="sinf"||l!==Jo.FAIRPLAY){this.log(`Ignoring "${n.type}" event with init data type: "${r}" for selected key-system ${l}`);return}let c;try{const g=ta(new Uint8Array(o)),b=CW(JSON.parse(g).sinf),S=jye(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=Rl(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(xe.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(xe.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(xe.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(xe.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(xe.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(xe.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(xe.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(xe.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,o=n?.[t];if(o)return o.licenseUrl;if(t===Jo.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 zu?l(p):l(new zu({type:er.KEY_SYSTEM_ERROR,details:jt.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 r1e===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=Mwt(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: ${go(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: ${Rl(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=iT(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 ${Rl(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})=>B9(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=B9(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=kS(this.config),r=t.map(Q4).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 zu){const c=eo({},l.data);this.getKeyStatus(n)==="internal-error"&&(c.decryptdata=n);const f=new zu(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 zu){n&&(t.data.frag=n);const r=t.data.decryptdata;this.error(`${t.message}${r?` (${Rl(r.keyId||[])})`:""}`),this.hls.trigger(xe.ERROR,t.data)}else this.error(t.message),this.hls.trigger(xe.ERROR,{type:er.KEY_SYSTEM_ERROR,details:jt.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=iT(t),r=this.keyIdToKeySessionPromise[n];if(!r){const o=Q4(t.keyFormat),a=o?[o]:kS(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=kS(this.config)),t.length===0)throw new zu({type:er.KEY_SYSTEM_ERROR,details:jt.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${go({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=iT(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 xW,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(E=>{f.eventNames().length?f.emit("error",E):this.handleError(E)}):k==="license-release"?t.keySystem===Jo.FAIRPLAY&&this.updateKeySession(t,HU("acknowledged")).then(()=>this.removeSession(t)).catch(E=>this.handleError(E)):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=Kae(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 ${go(k)} in key-session "${t.mediaKeysSession.sessionId}"`),this.renewKeySession(t);return}let E=k[l];if(E)p(E,t);else{var x;t.keyStatusTimeouts||(t.keyStatusTimeouts={}),(x=t.keyStatusTimeouts)[l]||(x[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`),E="internal-error",p(E,t)},1e3)),this.log(`No status for keyId ${l} (${go(k)}).`)}};Nl(t.mediaKeysSession,"message",h),Nl(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 zu({type:er.KEY_SYSTEM_ERROR,details:jt.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===Jo.PLAYREADY&&a.length===16&&t1e(a);const s=Rl(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 zu({type:er.KEY_SYSTEM_ERROR,details:jt.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:b,response:eo({url:c.url,data:void 0},m)},`"${t}" certificate request failed (${a}). Status: ${m.code} (${m.text})`))},onTimeout:(m,g,b)=>{l(new zu({type:er.KEY_SYSTEM_ERROR,details:jt.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 zu({type:er.KEY_SYSTEM_ERROR,details:jt.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(t,n){return this.requestLicense(t,new Uint8Array(n)).then(r=>this.updateKeySession(t,new Uint8Array(r)).catch(o=>{throw new zu({type:er.KEY_SYSTEM_ERROR,details:jt.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 HU(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 zu({type:er.KEY_SYSTEM_ERROR,details:jt.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==Jo.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,Nl(r,"encrypted",this.onMediaEncrypted),Nl(r,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(yu(t,"encrypted",this.onMediaEncrypted),yu(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,ug.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(xe.ERROR,{type:er.OTHER_ERROR,details:jt.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(xe.ERROR,{type:er.OTHER_ERROR,details:jt.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: ${Rl(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(Owt(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(xe.ERROR,{type:er.OTHER_ERROR,details:jt.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(xe.ERROR,{type:er.OTHER_ERROR,details:jt.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${f}`)})})}return Promise.resolve()}}o1.CDMCleanupPromise=void 0;function iT(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return Rl(e.keyId)}function ext(e,t){if(e.keyId&&t.mediaKeysSession.keyStatuses.has(e.keyId))return t.mediaKeysSession.keyStatuses.get(e.keyId);if(e.matches(t.decryptdata))return t.keyStatus}class zu extends Error{constructor(t,n){super(n),this.data=void 0,t.error||(t.error=new Error(n)),this.data=t,t.err=t.error}}function Kae(e,t){const n=e==="output-restricted",r=n?jt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:jt.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new zu({type:er.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class txt{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(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(xe.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(xe.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(xe.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 K1e(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 q1e(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){no.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){no.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 QU(e,t,n,r){const o=e.mode;if(o==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=rxt(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 rA(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=rA(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(xe.LEVEL_LOADING,this.onLevelLoading,this),t.on(xe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(xe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(xe.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(xe.LEVEL_LOADING,this.onLevelLoading,this),t.off(xe.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(xe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(xe.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;rA(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=sf(l,s);if(h>-1)a=s[h];else{const p=sf(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(xe.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=sf(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(xe.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:o,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=rA(t.textTracks),r=this.currentTrack;let o;if(r&&(o=n.filter(a=>YU(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||!Pn(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(xe.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(xe.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 oxt(){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 p2(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const s1=.025;let BI=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function sxt(e,t,n){return`${e.identifier}-${n+1}-${p2(t)}`}class axt{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 K9(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=K9(n,t);return n-r<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,n=Pn(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 K9(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 lxt(this)}}function K9(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 uxt{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(xe.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=o;const s=()=>{this.hasDetails=!0};a.once(xe.LEVEL_LOADED,s),a.once(xe.AUDIO_TRACK_LOADED,s),a.once(xe.SUBTITLE_TRACK_LOADED,s),a.on(xe.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(xe.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(xe.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=Y1e(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=Pr.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=Pr.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 qae=.033;class cxt extends Wc{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,E=h.timelineOccupancy===BI.Range?C:0,x=h.resumptionOffset,_=b?.startTime===k,A=k+h.cumulativeDuration;let R=S?A+C:k+x;if(m||!g&&k<=0){const D=f;f+=E,h.timelineStart=A;const $=s;s+=C,r.push({event:h,start:A,end:R,playout:{start:$,end:s},integrated:{start:D,end:f}})}else if(k<=a){if(!_){const L=k-c;if(L>qae){const B=c,F=f;f+=L;const U=s;s+=L;const z={previousEvent:t[p-1]||null,nextEvent:h,start:B,end:B+L,playout:{start:U,end:s},integrated:{start:F,end:f}};r.push(z)}else L>0&&b&&(b.cumulativeDuration+=L,r[r.length-1].end=k)}g&&(R=A),h.timelineStart=A;const D=f;f+=E;const $=s;s+=C,r.push({event:h,start:A,end:R,playout:{start:$,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=Tg(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=Tg(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 E=this.assignAssetListError(t,jt.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),b.url,g,S);this.hls.trigger(xe.ERROR,E);return}t.assetListResponse=k,this.hls.trigger(xe.ASSET_LIST_LOADED,{event:t,assetListResponse:k,networkDetails:S})},onError:(m,g,b,S)=>{const k=this.assignAssetListError(t,jt.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(xe.ERROR,k)},onTimeout:(m,g,b)=>{const S=this.assignAssetListError(t,jt.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${g.url})`),g.url,m,b);this.hls.trigger(xe.ERROR,S)}};return l.load(c,h,p),this.hls.trigger(xe.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,o,a,s){return t.error=r,{type:er.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:o,error:r,networkDetails:s,stats:a}}}function Yae(e){e?.play().catch(()=>{})}function oT(e,t){return`[${e}] Advancing timeline position to ${t}`}class fxt extends Wc{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=>td(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(E){Math.abs(C)>s1&&this.warn(`${E} ("${S.assetId}" ${S.timelineOffset}->${k})`)}}}),p||o){if(this.hls.trigger(xe.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 dxt(t),this.schedule=new cxt(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(xe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(xe.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(xe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(xe.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(xe.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(xe.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(xe.BUFFER_APPENDED,this.onBufferAppended,this),t.on(xe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(xe.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(xe.MEDIA_ENDED,this.onMediaEnded,this),t.on(xe.ERROR,this.onError,this),t.on(xe.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(xe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(xe.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(xe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(xe.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(xe.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(xe.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(xe.BUFFER_CODECS,this.onBufferCodecs,this),t.off(xe.BUFFER_APPENDED,this.onBufferAppended,this),t.off(xe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(xe.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(xe.MEDIA_ENDED,this.onMediaEnded,this),t.off(xe.ERROR,this.onError,this),t.off(xe.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){yu(t,"play",this.onPlay),yu(t,"pause",this.onPause),yu(t,"seeking",this.onSeeking),yu(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;Nl(r,"seeking",this.onSeeking),Nl(r,"timeupdate",this.onTimeupdate),Nl(r,"play",this.onPlay),Nl(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!==BI.Point){const E=r(g);E?.interstitial===C&&(k+=E.assetItem.startOffset+E[S])}}else{const E=b==="bufferedPos"?s():t[b];k+=E-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),E=(b=t.schedule.items)==null?void 0:b[C],x=t.getBufferingPlayer(),_=x?.interstitial,A=_?.appendInPlace,R=k&&t.itemsMatch(k,E);if(k&&(A||R)){const M=r(t.playingAsset),D=M?.media||t.primaryMedia;if(D){const $=m==="primary"?D.currentTime:o(k,m,t.playingAsset,"timelinePos","currentTime"),L=p-$,B=(A?$:D.currentTime)+L;if(B>=0&&(!M||A||B<=M.duration)){D.currentTime=B;return}}}if(E){let M=p;if(m!=="primary"){const $=E[m].start,L=p-$;M=E.start+L}const D=!t.isInterstitial(E);if((!t.isInterstitial(k)||k.event.appendInPlace)&&(D||E.event.appendInPlace)){const $=t.media||(A?x?.media:null);$&&($.currentTime=M)}else if(k){const $=t.findItemIndex(k);if(C>$){const B=t.schedule.findJumpRestrictedIndex($+1,C);if(B>$){t.setSchedulePosition(B);return}}let L=0;if(D)t.timelinePos=M,t.checkBuffer();else{const B=E.event.assetList,F=p-(E[m]||E).start;for(let U=B.length;U--;){const z=B[U];if(z.duration&&F>=z.startOffset&&F{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||!Pn(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} ${go(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 ${go(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(oT("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=q9(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=q9(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&&td(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(xe.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} ${td(s)}`),h.hasPlayed=!0,this.hls.trigger(xe.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=q9(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 ${td(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(xe.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&&Yae(m.media)}else l?(this.resumePrimary(l,t,o),this.shouldPlay&&Yae(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 ${td(t)}`),!((o=this.detachedData)!=null&&o.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(oT("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 ${td(t)}`),this.hls.trigger(xe.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:Pr.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(oT("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(xe.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(xe.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=eo(eo({},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=eo(eo({},this.altSelection),{},{audio:r});return}const a=eo(eo({},o),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=eo(eo({},this.altSelection),{},{subtitles:r});return}const a=eo(eo({},o),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=iae(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setAudioOption(n)||o.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=iae(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=Pr.bufferInfo(this.primaryMedia,r,0);(o.end>r||(o.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${td(t)} (was ${td(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=Pr.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 ${td(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(xe.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(xe.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}`),$={fatal:!0,type:er.OTHER_ERROR,details:jt.INTERSTITIAL_ASSET_ITEM_ERROR,error:D},L=((A=this.schedule)==null?void 0:A.findEventIndex(t.identifier))||-1;this.handleAssetItemError($,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(xe.LEVEL_UPDATED,(_,{details:A})=>k(A)),b.on(xe.LEVEL_PTS_UPDATED,(_,{details:A})=>k(A)),b.on(xe.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const C=(_,A)=>{const R=this.getAssetPlayer(p);if(R&&A.tracks){R.off(xe.BUFFER_CODECS,C),R.tracks=A.tracks;const M=this.primaryMedia;this.bufferingAsset===R.assetItem&&M&&!R.media&&this.bufferAssetPlayer(R,M)}};b.on(xe.BUFFER_CODECS,C);const E=()=>{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(xe.BUFFERED_TO_END,E);const x=_=>()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;this.shouldPlay=!0;const R=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,R,_)};return b.once(xe.MEDIA_ENDED,x(r)),b.once(xe.PLAYOUT_LIMIT_REACHED,x(1/0)),b.on(xe.ERROR,(_,A)=>{if(!this.schedule)return;const R=this.getAssetPlayer(p);if(A.details===jt.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(xe.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const A=new Error(`Asset player destroyed unexpectedly ${p}`),R={fatal:!0,type:er.OTHER_ERROR,details:jt.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(xe.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&&td(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(xe.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&&!Pye(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:er.OTHER_ERROR,details:jt.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 jt.ASSET_LIST_PARSING_ERROR:case jt.ASSET_LIST_LOAD_ERROR:case jt.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case jt.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 Xae=500;class hxt extends EW{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",Wn.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(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(xe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(xe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(xe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(xe.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(xe.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(xe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(xe.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(xe.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(xe.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(xe.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=Qt.IDLE,this.setInterval(Xae),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)||(Fs(r)&&(this.fragPrevious=r),this.state=Qt.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 ak(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const o=new ak(r);return this.tracksBuffered[o.id]=[],o}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Wn.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!==Qt.STOPPED&&this.setInterval(Xae)}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?($I(s,p),f=s.fragmentStart):m&&(f=m.start,GU(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,GU(s,f))}p&&!this.startFragRequested&&this.setStartPosition(p,f)}c.details=s,this.levelLastLoaded=c,l===o&&(this.hls.trigger(xe.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Qt.IDLE&&(Tg(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,wW(o.method)).catch(l=>{throw a.trigger(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:n}),l}).then(l=>{const c=performance.now();a.trigger(xe.FRAG_DECRYPTED,{frag:n,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=Qt.IDLE})}}doTick(){if(!this.media){this.state=Qt.IDLE;return}if(this.state===Qt.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=Pr.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-E?0:E;b=Tg(S,p,Math.max(p[0].start,l),x),!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 vxt={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},X1e=e=>String.fromCharCode(vxt[e]||e),ld=15,th=100,mxt={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},gxt={17:2,18:4,21:6,22:8,23:10,19:13,20:15},yxt={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},bxt={25:2,26:4,29:6,30:8,31:10,27:13,28:15},_xt=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Sxt{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;no.log(`${this.time} [${t}] ${r}`)}}}const xm=function(t){const n=[];for(let r=0;rth&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=th)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r=144&&this.backSpace();const n=X1e(t);if(this.pos>=th){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 = "+go(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+go(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 Zae{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 Y9(r),this.nonDisplayedMemory=new Y9(r),this.lastOutputScreen=new Y9(r),this.currRollUpRow=this.displayedMemory.rows[ld-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[ld-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: "+go(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 Jae{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Ext(),this.logger=void 0;const o=this.logger=new Sxt;this.channels=[null,new Zae(t,n,o),new Zae(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"["+xm([n[r],n[r+1]])+"] -> ("+xm([o,a])+")");const c=this.cmdHistory;if(o>=16&&o<=31){if(Cxt(o,a,c)){sT(null,null,c),this.logger.log(3,()=>"Repeated command ("+xm([o,a])+") is dropped");continue}sT(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 sT(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 "+xm([o,a])+" orig: "+xm([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 ("+xm([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?mxt[t]:yxt[t]:r=s===1?gxt[t]:bxt[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 '"+X1e(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 = "+xm(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=_xt[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 $},set:function(L){const B=o(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");$=B,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class xxt{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function J1e(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 Txt=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 Q1e(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 eV=new NW(0,0,""),aT=eV.align==="middle"?"middle":"center";function Axt(e,t,n){const r=e;function o(){const l=J1e(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 Txt;Q1e(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",aT,"end"]);break;case"position":b=g.split(","),f.percent(m,b[0]),b.length===2&&f.alt("positionAlign",b[1],["start",aT,"end","line-left","line-right","auto"]);break;case"size":f.percent(m,g);break;case"align":f.alt(m,g,["start",aT,"end","left","right"]);break}},/:/,/\s/),c.region=f.get("region",null),c.vertical=f.get("vertical","");let h=f.get("line","auto");h==="auto"&&eV.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",aT);let p=f.get("position","auto");p==="auto"&&eV.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 ebe(e){return e.replace(//gi,` `)}class Ixt{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new xxt,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=ebe(a);s")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{Axt(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 Lxt=/\r\n|\n\r|\n|\r/g,X9=function(t,n,r=0){return t.slice(r,r+n.length)===n},Pxt=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(!Pn(n)||!Pn(r)||!Pn(o)||!Pn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*o,n+=3600*1e3*a,n};function BW(e,t,n){return p2(e.toString())+p2(t.toString())+p2(n)}const Rxt=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 Mxt(e,t,n,r,o,a,s){const l=new Ixt,c=tc(new Uint8Array(e)).trim().replace(Lxt,` `).split(` `),f=[],h=t?FCt(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 E=n.ccOffset;const x=(m-h)/9e4;if(C!=null&&C.new&&(g!==void 0?E=n.ccOffset=C.start:Rxt(n,r,x)),x){if(!t){b=new Error("Missing initPTS for VTT MPEGTS");return}E=x-n.presentationOffset}const _=k.endTime-k.startTime,A=Ku((k.startTime+E-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=BW(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(X9(k,"X-TIMESTAMP-MAP=")){S=!1,k.slice(16).split(",").forEach(C=>{X9(C,"LOCAL:")?p=C.slice(6):X9(C,"MPEGTS:")&&(m=parseInt(C.slice(7)))});try{g=Pxt(p)/1e3}catch(C){b=C}return}else k===""&&(S=!1);l.parse(k+` `)}),l.flush()}const Z9="stpp.ttml.im1t",tbe=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,nbe=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Dxt={left:"start",center:"center",right:"end",start:"start",end:"end"};function Qae(e,t,n,r){const o=ii(new Uint8Array(e),["mdat"]);if(o.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const a=o.map(l=>tc(l)),s=BCt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(Oxt(l,s)))}catch(l){r(l)}}function Oxt(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=ele(J9(o,"styling","style")),f=ele(J9(o,"layout","region")),h=J9(o,"body","[begin]");return[].map.call(h,p=>{const m=rbe(p,l);if(!m||!p.hasAttribute("begin"))return null;const g=eF(p.getAttribute("begin"),s),b=eF(p.getAttribute("dur"),s);let S=eF(p.getAttribute("end"),s);if(g===null)throw tle(p);if(S===null){if(b===null)throw tle(p);S=g+b}const k=new NW(g-t,S-t,m);k.id=BW(k.startTime,k.endTime,k.text);const C=f[p.getAttribute("region")],E=c[p.getAttribute("style")],x=$xt(C,E,c),{textAlign:_}=x;if(_){const A=Dxt[_];A&&(k.lineAlign=A),k.align=_}return ao(k,x),k}).filter(p=>p!==null)}function J9(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function ele(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function rbe(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?rbe(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function $xt(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=Q9(t,r,c)||Q9(e,r,c)||Q9(o,r,c);return f&&(l[c]=f),l},{})}function Q9(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function tle(e){return new Error(`Could not parse ttml timestamp ${e}`)}function eF(e,t){if(!e)return null;let n=J1e(e);return n===null&&(tbe.test(e)?n=Nxt(e,t):nbe.test(e)&&(n=Bxt(e,t))),n}function Nxt(e,t){const n=tbe.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 Bxt(e,t){const n=nbe.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 lT{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 Fxt{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=rle(),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(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(xe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(xe.FRAG_LOADING,this.onFragLoading,this),t.on(xe.FRAG_LOADED,this.onFragLoaded,this),t.on(xe.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(xe.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(xe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(xe.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(xe.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(xe.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(xe.FRAG_LOADING,this.onFragLoading,this),t.off(xe.FRAG_LOADED,this.onFragLoaded,this),t.off(xe.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(xe.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(xe.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(xe.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(xe.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new lT(this,"textTrack1"),n=new lT(this,"textTrack2"),r=new lT(this,"textTrack3"),o=new lT(this,"textTrack4");this.cea608Parser1=new Jae(1,t,n),this.cea608Parser2=new Jae(3,r,o)}addCues(t,n,r,o,a){let s=!1;for(let l=a.length;l--;){const c=a[l],f=jxt(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(xe.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===Wn.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(xe.FRAG_LOADED,c):this.hls.trigger(xe.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=rle(),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===Z9);if(this.config.enableWebVTT||o&&this.config.enableIMSC1){if(D1e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?rA(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(xe.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===Wn.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===Wn.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===Z9?this._parseIMSC1(r,o):this._parseVTTs(n)}}else this.hls.trigger(xe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;Qae(n,this.initPTS[t.cc],o=>{this._appendCues(o,t.level),r.trigger(xe.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},o=>{r.logger.log(`Failed to parse IMSC1: ${o}`),r.trigger(xe.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?Vc(r.initSegment.data,new Uint8Array(o)).buffer:o;Mxt(f,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(xe.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(xe.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||Qae(n,this.initPTS[t.cc],()=>{r.textCodec=Z9,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=>q1e(o,a))}else{const o=this.tracks[n];if(!o)return;const a=o.default?"default":"subtitles"+n;r.trigger(xe.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===Wn.SUBTITLE&&this.onFragLoaded(xe.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===Wn.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;aQU(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&o!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>QU(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=ebe(f.trim()),b=BW(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=>q1e(e,m))),o}};function zxt(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const Hxt=/(\d+)-(\d+)\/(\d+)/;class ile{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||qxt,this.controller=new self.AbortController,this.stats=new mW}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=Wxt(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&&Pn(c)?c:f,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},n.timeout),(ck(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 Yxt(k||"fetch, bad network response",S,p)}o.loading.first=g,o.total=Kxt(p.headers)||o.total;const b=(m=this.callbacks)==null?void 0:m.onProgress;return b&&Pn(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&&!Pn(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 p1e,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 Wxt(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(ao({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function Gxt(e){const t=Hxt.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function Kxt(e){const t=e.get("Content-Range");if(t){const r=Gxt(t);if(Pn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function qxt(e,t){return new self.Request(e.url,t)}class Yxt extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const Xxt=/^age:\s*[\d.]+\s*$/im;class obe{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 mW,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&&Pn(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(MI(p,m,!1,g))this.retry(p);else{var c;no.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(MI(t,n,!0))this.retry(t);else{var r;no.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=_W(t,r.retry),r.retry++,no.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&&Xxt.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 Zxt={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Jxt=eo(eo({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:obe,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:cwt,bufferController:eEt,capLevelController:DW,errorController:vwt,fpsController:txt,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:r1e,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:Zxt},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},Qxt()),{},{subtitleStreamController:hxt,subtitleTrackController:ixt,timelineController:Fxt,audioStreamController:XCt,audioTrackController:ZCt,emeController:o1,cmcdController:ZEt,contentSteeringController:QEt,interstitialsController:fxt});function Qxt(){return{cueHandler:Vxt,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 eTt(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=tV(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}": ${go(t[l])}`)}),eo(eo({},r),t)}function tV(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(tV):Object.keys(e).reduce((t,n)=>(t[n]=tV(e[n]),t),{}):e}function tTt(e,t){const n=e.loader;n!==ile&&n!==obe?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):zxt()&&(e.loader=ile,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const iA=2,nTt=.1,rTt=.05,iTt=100;class oTt extends Jye{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(xe.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(xe.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(xe.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(iTt),this.mediaSource=n.mediaSource;const r=this.media=n.media;Nl(r,"playing",this.onMediaPlaying),Nl(r,"waiting",this.onMediaWaiting),Nl(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(yu(r,"playing",this.onMediaPlaying),yu(r,"waiting",this.onMediaWaiting),yu(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(xe.MEDIA_ENDED,{stalled:!1}));return}if(!Pr.getBuffered(s).length){this.nudgeRetry=0;return}const p=Pr.bufferInfo(s,t,0),m=p.nextStart||0,g=this.fragmentTracker;if(l&&g&&this.hls){const R=ole(this.hls.inFlightFragments,t),M=p.len>iA,D=!m||R||m-t>iA&&!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,$=!!(b!=null&&b.live)?b.targetduration*2:iA,L=uT(t,g);if(M>0&&(M<=$||L)){s.paused||this._trySkipBufferHole(L);return}}const S=a.detectStallWithCurrentTimeMs,k=self.performance.now(),C=this.waiting;let E=this.stalled;if(E===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(xe.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const A=Pr.bufferInfo(s,t,a.maxBufferHole);this._tryFixBufferStall(A,x,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(xe.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=Pr.bufferedInfo(Pr.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=Pr.timeRangesToArray(o),l=Pr.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=uT(t,this.fragmentTracker);m&&"fragment"in m?m=m.fragment:m||(m=void 0);const g=Pr.bufferInfo(this.media,t,0);this.hls.trigger(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.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=uT(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,Wn.MAIN),s=r.getFragAtPos(o,Wn.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 (${go(t)})`);this.warn(s.message),n.trigger(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.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=Pr.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,Wn.MAIN);S&&c"u"))return self.VTTCue||self.TextTrackCue}function tF(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,go(o?eo({type:o},r):r))}return a}const cT=(()=>{const e=nV();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class aTt{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(xe.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(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(xe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(xe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(xe.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(xe.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(xe.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(xe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(xe.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;ncT&&(p=cT),p-h<=0&&(p=h+sTt);for(let g=0;gh.type===Yu.audioId3&&c:o==="video"?f=h=>h.type===Yu.emsg&&l:f=h=>h.type===Yu.audioId3&&c||h.type===Yu.emsg&&l,QU(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=nV();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=tF(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],E=(g=p[C])==null?void 0:g.cues;delete p[C],E&&Object.keys(E).forEach(x=>{const _=E[x];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||!Pn(b?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let S=0;S{if(F!==C.id){const U=f[F];if(U.class===C.class&&U.startDate>C.startDate&&(!B||C.startDate.01&&(F.startTime=E,F.endTime=R);else if(l){let U=C.attr[B];Iwt(B)&&(U=Rye(U));const G=tF(l,E,R,{key:B,data:U},Yu.dateRange);G&&(G.id=k,this.id3Track.addCue(G),_[B]=G,s&&(B==="X-ASSET-LIST"||B==="X-ASSET-URL")&&G.addEventListener("enter",this.onEventCueEnter))}}p[k]={cues:_,dateRange:C,durationKnown:A}}}}}class lTt{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(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(xe.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(xe.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(xe.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(xe.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===jt.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 uTt extends MW{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(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(xe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(xe.FRAG_BUFFERED,this.onFragBuffered,this),t.on(xe.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(xe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(xe.FRAG_BUFFERED,this.onFragBuffered,this),t.off(xe.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=II(m,r)||void 0),g&&(g=h.videoCodec=Wkt(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:E,"FRAME-RATE":x,"HDCP-LEVEL":_,"PATHWAY-ID":A,RESOLUTION:R,"VIDEO-RANGE":M}=p,$=`${`${A||"."}-`}${h.bitrate}-${R}-${x}-${E}-${M}-${_}`;if(a[$])if(a[$].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const L=s[$]+=1;h.attrs["PATHWAY-ID"]=new Array(L+1).join(".");const B=this.createLevel(h);a[$]=B,o.push(B)}else a[$].addGroupId("audio",p.AUDIO),a[$].addGroupId("text",p.SUBTITLES);else{const L=this.createLevel(h);a[$]=L,s[$]=1,o.push(L)}}),this.filterAndSortMediaOptions(o,n,l,c,f)}createLevel(t){const n=new ak(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=Hye(o,[])}return n}isAudioSupported(t){return ok(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return ok(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:E,videoRange:x,width:_,height:A})=>(!!E||!!(_&&A))&&twt(x))),f.length===0){Promise.resolve().then(()=>{if(this.hls){let E="no level with compatible codecs found in manifest",x=E;n.levels.length&&(x=`one or more CODECS in variant not supported: ${go(n.levels.map(A=>A.attrs.CODECS).filter((A,R,M)=>M.indexOf(A)===R))}`,this.warn(x),E+=` (${x})`);const _=new Error(E);this.hls.trigger(xe.ERROR,{type:er.MEDIA_ERROR,details:jt.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:_,reason:x})}}),h.end=performance.now();return}n.audioTracks&&(l=n.audioTracks.filter(E=>!E.audioCodec||this.isAudioSupported(E.audioCodec)),ale(l)),n.subtitles&&(c=n.subtitles,ale(c));const p=f.slice(0);f.sort((E,x)=>{if(E.attrs["HDCP-LEVEL"]!==x.attrs["HDCP-LEVEL"])return(E.attrs["HDCP-LEVEL"]||"")>(x.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&E.height!==x.height)return E.height-x.height;if(E.frameRate!==x.frameRate)return E.frameRate-x.frameRate;if(E.videoRange!==x.videoRange)return LI.indexOf(E.videoRange)-LI.indexOf(x.videoRange);if(E.videoCodec!==x.videoCodec){const _=Jse(E.videoCodec),A=Jse(x.videoCodec);if(_!==A)return A-_}if(E.uri===x.uri&&E.codecSet!==x.codecSet){const _=AI(E.codecSet),A=AI(x.codecSet);if(_!==A)return A-_}return E.averageBitrate!==x.averageBitrate?E.averageBitrate-x.averageBitrate:0});let m=p[0];if(this.steering&&(f=this.steering.filterParsedLevels(f),f.length!==p.length)){for(let E=0;E_&&_===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(E=>!!E.url)};h.end=performance.now(),this.hls.trigger(xe.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(xe.ERROR,{type:er.OTHER_ERROR,details:jt.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(xe.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===ci.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===Wn.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(xe.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));d1e(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(xe.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(xe.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function ale(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function sbe(){return self.SourceBuffer||self.WebKitSourceBuffer}function abe(){if(!yv())return!1;const t=sbe();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function cTt(){if(!abe())return!1;const e=yv();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(sk(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(sk(t,"audio"))))}function dTt(){var e;const t=sbe();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const fTt=100;class hTt extends EW{constructor(t,n,r){super(t,n,r,"stream-controller",Wn.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||!Pn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(o,a,Wn.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(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.on(xe.LEVEL_LOADING,this.onLevelLoading,this),t.on(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.on(xe.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(xe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(xe.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(xe.BUFFER_CREATED,this.onBufferCreated,this),t.on(xe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(xe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(xe.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(xe.MANIFEST_PARSED,this.onManifestParsed,this),t.off(xe.LEVEL_LOADED,this.onLevelLoaded,this),t.off(xe.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(xe.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(xe.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(xe.BUFFER_CREATED,this.onBufferCreated,this),t.off(xe.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(xe.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(xe.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(fTt),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=Qt.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=Qt.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Qt.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=Qt.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Qt.IDLE;break}break}case Qt.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===Qt.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(xe.BUFFER_EOS,S),this.state=Qt.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===Qt.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=Qt.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&&Fs(g)&&this.fragmentTracker.getState(g)!==ra.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?mo.AUDIO:mo.VIDEO,C=(k===mo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;C&&this.afterBufferFlushed(C,k,Wn.MAIN)}g=this.getNextFragmentLoopLoading(g,f,l,Wn.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===ra.NOT_LOADED||o===ra.PARTIAL?Fs(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,Wn.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(xe.AUDIO_TRACK_SWITCHED,n)}),r.trigger(xe.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(xe.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=PI(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===Wn.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===Qt.PARSED&&(this.state=Qt.IDLE);return}const l=o?o.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),Fs(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,o)}const s=this.media;s&&(!this._hasEnoughToStart&&Pr.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=Qt.ERROR;return}switch(n.details){case jt.FRAG_GAP:case jt.FRAG_PARSING_ERROR:case jt.FRAG_DECRYPT_ERROR:case jt.FRAG_LOAD_ERROR:case jt.FRAG_LOAD_TIMEOUT:case jt.KEY_LOAD_ERROR:case jt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Wn.MAIN,n);break;case jt.LEVEL_LOAD_ERROR:case jt.LEVEL_LOAD_TIMEOUT:case jt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===Qt.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===ci.LEVEL&&(this.state=Qt.IDLE);break;case jt.BUFFER_ADD_CODEC_ERROR:case jt.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case jt.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 jt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=Qt.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==mo.AUDIO||!this.altAudio){const r=(n===mo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,Wn.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=Qt.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(xe.FRAG_LOADED,r),a.bitrateTest=!1}).catch(r=>{this.state===Qt.STOPPED||this.state===Qt.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=Qt.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(xe.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:k})}const C=g.initPTS,E=g.timescale,x=this.initPTS[l.cc];if(Pn(C)&&(!x||x.baseTime!==C||x.timescale!==E)){const _=g.trackId;this.initPTS[l.cc]={baseTime:C,timescale:E,trackId:_},r.trigger(xe.INIT_PTS_FOUND,{frag:l,id:n,initPTS:C,timescale:E,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,E=!k||l.cc>k.cc;if(o.independent!==!1){const{startPTS:x,endPTS:_,startDTS:A,endDTS:R}=h;if(c)c.elementaryStreams[h.type]={startPTS:x,endPTS:_,startDTS:A,endDTS:R};else if(h.firstKeyFrame&&h.independent&&a.id===1&&!E&&(this.couldBacktrack=!0),h.dropped&&h.independent){const M=this.getMainFwdBufferInfo(),D=(M?M.end:this.getLoadPosition())+this.config.maxBufferHole,$=h.firstKeyFramePTS?h.firstKeyFramePTS:x;if(!C&&D<$-this.config.maxBufferHole&&!E){this.backtrack(l);return}else E&&(l.gap=!0);l.setElementaryStreamInfo(h.type,l.start,_,l.start,R,!0)}else C&&x-(b.appliedTimelineOffset||0)>iA&&(l.gap=!0);l.setElementaryStreamInfo(h.type,x,_,A,R),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(h,l,c,a,C||E)}else if(C||E)l.gap=!0;else{this.backtrack(l);return}}if(S){const{startPTS:k,endPTS:C,startDTS:E,endDTS:x}=S;c&&(c.elementaryStreams[mo.AUDIO]={startPTS:k,endPTS:C,startDTS:E,endDTS:x}),l.setElementaryStreamInfo(mo.AUDIO,k,C,E,x),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(xe.FRAG_PARSING_METADATA,k)}if(b&&p){const k={id:n,frag:l,details:b,samples:p.samples};r.trigger(xe.FRAG_PARSING_USERDATA,k)}}logMuxedErr(t){this.warn(`${Fs(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,r,o){if(this.state!==Qt.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=Z4(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=Wn.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=Wn.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(xe.BUFFER_CODECS,n),!this.hls)return;c.forEach(f=>{const p=n[f].initSegment;p!=null&&p.byteLength&&this.hls.trigger(xe.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,Wn.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=Qt.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(Pr.isBuffered(t,r)?n=this.getAppendedFrag(r):Pr.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(xe.FRAG_CHANGED,{frag:n}),(!o||o.level!==a)&&this.hls.trigger(xe.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 Pn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(Pn(n)){const r=this.getLevelDetails(),o=this.currentFrag||(r?Tg(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 pTt extends Wc{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=jt.KEY_LOAD_ERROR,r,o,a){return new ah({type:er.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=Q4(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const o=kS(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,jt.KEY_LOAD_ERROR,f))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,jt.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=nF(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: "+Rl(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,jt.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=Mkt(n.initSegment.data);if(s.length){const l=s[0];l.some(c=>c!==0)&&(this.log(`Using keyId found in init segment ${Rl(l)}`),t.decryptdata.keyId=l,ug.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,E=nF(C.decryptdata);if(!k.decryptdata||C!==this.keyIdToKeyInfo[E])return l(this.createKeyLoadError(k,jt.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,jt.KEY_LOAD_ERROR,new Error(`HTTP Error ${m.code} loading key ${m.text}`),b,eo({url:c.url,data:void 0},m)))},onTimeout:(m,g,b)=>{this.resetLoader(g),l(this.createKeyLoadError(n,jt.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),b))},onAbort:(m,g,b)=>{this.resetLoader(g),l(this.createKeyLoadError(n,jt.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=nF(r.decryptdata)||o;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function nF(e){if(e.keyFormat!==Ma.FAIRPLAY){const t=e.keyId;if(t)return Rl(t)}return e.uri}function lle(e){const{type:t}=e;switch(t){case ci.AUDIO_TRACK:return Wn.AUDIO;case ci.SUBTITLE_TRACK:return Wn.SUBTITLE;default:return Wn.MAIN}}function rF(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class vTt{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(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.on(xe.LEVEL_LOADING,this.onLevelLoading,this),t.on(xe.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(xe.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(xe.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(xe.MANIFEST_LOADING,this.onManifestLoading,this),t.off(xe.LEVEL_LOADING,this.onLevelLoading,this),t.off(xe.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(xe.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(xe.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:ci.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:ci.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:ci.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:ci.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[ci.LEVEL];if(r){const o=r.context;o&&!n.levels.some(a=>a===o.levelOrTrack)&&(r.abort(),delete this.loaders[ci.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===ci.MANIFEST?a=r.manifestLoadPolicy.default:a=ao({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),o=this.createInternalLoader(t),Pn((n=t.deliveryDirectives)==null?void 0:n.part)){let f;if(t.type===ci.LEVEL&&t.level!==null?f=this.hls.levels[t.level].details:t.type===ci.AUDIO_TRACK&&t.id!==null?f=this.hls.audioTracks[t.id].details:t.type===ci.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=ao({},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(),af.isMediaPlaylist(b)||p.type!==ci.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=rF(t,r),c=af.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(E=>{const{unknownCodecs:x}=E;if(x){const{preferManagedMediaSource:_}=this.hls.config;let{audioCodec:A,videoCodec:R}=E;for(let M=x.length;M--;){const D=x[M];ok(D,"audio",_)?(E.audioCodec=A=A?`${A},${D}`:D,A1.audio[A.substring(0,4)]=2,x.splice(M,1)):ok(D,"video",_)&&(E.videoCodec=R=R?`${R},${D}`:D,A1.video[R.substring(0,4)]=2,x.splice(M,1))}}});const{AUDIO:S=[],SUBTITLES:k,"CLOSED-CAPTIONS":C}=af.parseMasterPlaylistMedia(s,l,c);S.length&&!S.some(x=>!x.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 Yo({}),bitrate:0,url:""})),a.trigger(xe.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=rF(t,r),p=Pn(c)?c:Pn(l)?l:0,m=lle(r),g=af.parseLevelPlaylist(t.data,h,p,m,0,this.variableList);if(f===ci.MANIFEST){const b={attrs:new Yo({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=n.loading.start+l1e(g,0),s.trigger(xe.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(xe.ERROR,{type:er.NETWORK_ERROR,details:jt.MANIFEST_PARSING_ERROR,fatal:n.type===ci.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===ci.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===ci.AUDIO_TRACK||t.type===ci.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=jt.UNKNOWN,f=!1;const h=this.getInternalLoader(t);switch(t.type){case ci.MANIFEST:c=r?jt.MANIFEST_LOAD_TIMEOUT:jt.MANIFEST_LOAD_ERROR,f=!0;break;case ci.LEVEL:c=r?jt.LEVEL_LOAD_TIMEOUT:jt.LEVEL_LOAD_ERROR,f=!1;break;case ci.AUDIO_TRACK:c=r?jt.AUDIO_TRACK_LOAD_TIMEOUT:jt.AUDIO_TRACK_LOAD_ERROR,f=!1;break;case ci.SUBTITLE_TRACK:c=r?jt.SUBTITLE_TRACK_LOAD_TIMEOUT:jt.SUBTITLE_LOAD_ERROR,f=!1;break}h&&this.resetInternalLoader(t.type);const p={type:er.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=eo({url:m,data:void 0},o)}this.hls.trigger(xe.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=rF(n,o),S=lle(o);let k=typeof o.level=="number"&&S===Wn.MAIN?f:void 0;const C=t.playlistParsingError;if(C){if(this.hls.logger.warn(`${C} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(xe.ERROR,{type:er.NETWORK_ERROR,details:jt.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 E=t.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(xe.ERROR,{type:er.NETWORK_ERROR,details:jt.LEVEL_EMPTY_ERROR,fatal:!1,url:b,error:E,reason:E.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 ci.MANIFEST:case ci.LEVEL:if(k){if(!h)k=0;else if(h!==l.levels[k]){const E=l.levels.indexOf(h);E>-1&&(k=E)}}l.trigger(xe.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:k||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:g,withoutMultiVariant:c===ci.MANIFEST});break;case ci.AUDIO_TRACK:l.trigger(xe.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break;case ci.SUBTITLE_TRACK:l.trigger(xe.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break}}}class vu{static get version(){return lk}static isMSESupported(){return abe()}static isSupported(){return cTt()}static getMediaSource(){return yv()}static get Events(){return xe}static get MetadataSchema(){return Yu}static get ErrorTypes(){return er}static get ErrorDetails(){return jt}static get DefaultConfig(){return vu.defaultConfig?vu.defaultConfig:Jxt}static set DefaultConfig(t){vu.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 xW,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=Skt(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=eTt(vu.DefaultConfig,t,n);this.userConfig=t,r.progressive&&tTt(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 mwt(this),m=r.interstitialsController,g=m?this.interstitialsController=new m(this,vu):null,b=this.bufferController=new a(this,p),S=this.capLevelController=new s(this),k=new c(this),C=new vTt(this),E=r.contentSteeringController,x=E?new E(this):null,_=this.levelController=new uTt(this,x),A=new aTt(this),R=new pTt(this.config,this.logger),M=this.streamController=new hTt(this,p,R),D=this.gapController=new oTt(this,p);S.setStreamController(M),k.setStreamController(M);const $=[C,_,M];g&&$.splice(1,0,g),x&&$.splice(1,0,x),this.networkControllers=$;const L=[h,b,D,S,k,A,p];this.audioTrackController=this.createController(r.audioTrackController,$);const B=r.audioStreamController;B&&$.push(this.audioStreamController=new B(this,p,R)),this.subtitleTrackController=this.createController(r.subtitleTrackController,$);const F=r.subtitleStreamController;F&&$.push(this.subtititleStreamController=new F(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(lTt,L),this.coreComponents=L,$.push(f);const U=f.onErrorOut;typeof U=="function"&&this.on(xe.ERROR,U,f),this.on(xe.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===xe.ERROR;this.trigger(xe.ERROR,{type:er.OTHER_ERROR,details:jt.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(xe.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(xe.ERROR,{type:er.OTHER_ERROR,details:jt.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(xe.MEDIA_ATTACHING,o)}detachMedia(){this.logger.log("detachMedia"),this.trigger(xe.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(xe.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,o=this._url=vW.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(xe.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={[Wn.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[Wn.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[Wn.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=oxt()),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){ewt(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=Kye(n);return Wye(t,r,navigator.mediaCapabilities)}}vu.defaultConfig=void 0;const mTt={class:"player-header"},gTt={class:"player-controls"},yTt={class:"compact-button-group"},bTt={class:"compact-btn selector-btn"},_Tt={class:"compact-btn selector-btn"},STt={__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}},emits:["toggle-auto-next","toggle-countdown","player-change","open-skip-settings","toggle-debug","close","proxy-change"],setup(e,{emit:t}){const n=t,r=pe("disabled"),o=pe([]),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 dn(()=>{s(),window.addEventListener("storage",h),window.addEventListener("addressSettingsChanged",s)}),hi(()=>{window.removeEventListener("storage",h),window.removeEventListener("addressSettingsChanged",s)}),(p,m)=>{const g=Me("a-option"),b=Me("a-select");return H(),Q("div",mTt,[I("h3",null,"正在播放: "+Be(e.episodeName),1),I("div",gTt,[I("div",yTt,[e.showDebugButton?(H(),Q("div",{key:0,class:"compact-btn debug-btn",onClick:m[0]||(m[0]=S=>p.$emit("toggle-debug")),title:"调试信息"},[...m[6]||(m[6]=[pg('调试',2)])])):Oe("",!0),e.showAutoNext&&e.episodes.length>1?(H(),Q("div",{key:1,class:le(["compact-btn",{active:e.autoNextEnabled}]),onClick:m[1]||(m[1]=S=>p.$emit("toggle-auto-next"))},[...m[7]||(m[7]=[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)):Oe("",!0),e.showCountdown&&e.episodes.length>1?(H(),Q("div",{key:2,class:le(["compact-btn",{active:e.countdownEnabled}]),onClick:m[2]||(m[2]=S=>p.$emit("toggle-countdown"))},[...m[8]||(m[8]=[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)):Oe("",!0),I("div",bTt,[m[10]||(m[10]=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[9]||(m[9]=[We("代理播放:关闭",-1)])]),_:1}),(H(!0),Q(Ft,null,fn(o.value,S=>(H(),Xe(g,{key:S.value,value:S.value,title:`${S.label} 完整链接: ${S.url||S.value}`},{default:de(()=>[We(" 代理播放:"+Be(S.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])]),I("div",_Tt,[m[13]||(m[13]=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[3]||(m[3]=S=>p.$emit("player-change",S)),class:"compact-select",size:"small"},{default:de(()=>[O(g,{value:"default",title:"使用浏览器默认的HTML5视频播放器"},{default:de(()=>[...m[11]||(m[11]=[We("默认播放器",-1)])]),_:1}),O(g,{value:"artplayer",title:"使用ArtPlayer播放器,支持更多功能和自定义选项"},{default:de(()=>[...m[12]||(m[12]=[We("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])]),I("div",{class:le(["compact-btn",{active:e.skipEnabled}]),onClick:m[4]||(m[4]=S=>p.$emit("open-skip-settings"))},[...m[14]||(m[14]=[pg('片头片尾',2)])],2),I("div",{class:"compact-btn close-btn",onClick:m[5]||(m[5]=S=>p.$emit("close"))},[...m[15]||(m[15]=[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)])])])])])}}},lbe=_r(STt,[["__scopeId","data-v-22d47bed"]]),kTt={class:"dialog-header"},wTt={class:"dialog-content"},CTt={class:"setting-row"},ETt={class:"setting-control"},xTt={key:1,class:"unit"},TTt={class:"setting-row"},ATt={class:"setting-control"},ITt={key:1,class:"unit"},LTt={class:"dialog-footer"},PTt={__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=pe(n.skipIntroEnabled),a=pe(n.skipOutroEnabled),s=pe(n.skipIntroSeconds),l=pe(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=Me("a-switch"),g=Me("a-input-number"),b=Me("a-button");return e.visible?(H(),Q("div",{key:0,class:"skip-settings-overlay",onClick:c},[I("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=es(()=>{},["stop"]))},[I("div",kTt,[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",wTt,[I("div",CTt,[p[9]||(p[9]=I("div",{class:"setting-label"},[I("span",null,"跳过片头"),I("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),I("div",ETt,[O(m,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=S=>o.value=S),size:"small"},null,8,["modelValue"]),o.value?(H(),Xe(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"])):Oe("",!0),o.value?(H(),Q("span",xTt,"秒")):Oe("",!0)])]),I("div",TTt,[p[10]||(p[10]=I("div",{class:"setting-label"},[I("span",null,"跳过片尾"),I("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),I("div",ATt,[O(m,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=S=>a.value=S),size:"small"},null,8,["modelValue"]),a.value?(H(),Xe(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"])):Oe("",!0),a.value?(H(),Q("span",ITt,"秒")):Oe("",!0)])]),p[11]||(p[11]=I("div",{class:"setting-hint-global"},[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"m9 12 2 2 4-4",stroke:"currentColor","stroke-width":"2"})]),We(" 设置将自动保存并应用到所有播放器 ")],-1))]),I("div",LTt,[O(b,{onClick:p[5]||(p[5]=S=>h.$emit("close")),size:"small"},{default:de(()=>[...p[12]||(p[12]=[We(" 取消 ",-1)])]),_:1}),O(b,{type:"primary",onClick:f,size:"small"},{default:de(()=>[...p[13]||(p[13]=[We(" 保存 ",-1)])]),_:1})])])])):Oe("",!0)}}},ube=_r(PTt,[["__scopeId","data-v-c8c7504a"]]),RTt={class:"dialog-header"},MTt={class:"dialog-content"},DTt={class:"info-section"},OTt={class:"section-header"},$Tt=["disabled"],NTt={class:"info-content"},BTt={class:"url-display"},FTt={key:0,class:"info-section"},jTt={class:"section-header"},UTt={class:"section-actions"},VTt=["disabled"],zTt=["disabled"],HTt=["disabled"],WTt={class:"info-content"},GTt={class:"url-display proxy-url"},KTt={class:"info-section"},qTt={class:"section-header"},YTt=["disabled"],XTt={class:"info-content"},ZTt={class:"headers-display"},JTt={key:0,class:"no-data"},QTt={key:1,class:"headers-text"},e4t={class:"info-section"},t4t={class:"info-content"},n4t={class:"format-info"},r4t={class:"format-value"},i4t={class:"info-section"},o4t={class:"info-content"},s4t={class:"player-info"},a4t={class:"player-value"},l4t={__name:"DebugInfoDialog",props:{visible:{type:Boolean,default:!1},videoUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},playerType:{type:String,default:"default"},detectedFormat:{type:String,default:""},proxyUrl:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=j(()=>!n.headers||Object.keys(n.headers).length===0?"":Object.entries(n.headers).map(([h,p])=>`${h}: ${p}`).join(` `)),a=()=>{r("close")},s=async(h,p)=>{if(!h){Lt.warning(`${p}为空,无法复制`);return}try{await navigator.clipboard.writeText(h),Lt.success(`${p}已复制到剪贴板`)}catch(m){console.error("复制失败:",m),Lt.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){Lt.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),Lt.success("正在尝试调起VLC播放器..."),console.log("调起VLC播放器:",p)}catch(p){console.error("调起VLC播放器失败:",p),Lt.error("调起VLC播放器失败,请确保已安装VLC播放器")}},f=h=>{if(!h){Lt.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),Lt.success("正在尝试调起MPV播放器..."),console.log("调起MPV播放器:",p)}catch(p){console.error("调起MPV播放器失败:",p),Lt.error("调起MPV播放器失败,请确保已安装MPV播放器")}};return(h,p)=>e.visible?(H(),Q("div",{key:0,class:"debug-info-overlay",onClick:a},[I("div",{class:"debug-info-dialog",onClick:p[6]||(p[6]=es(()=>{},["stop"]))},[I("div",RTt,[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",MTt,[I("div",DTt,[I("div",OTt,[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),We(" 复制 ",-1)])],8,$Tt)]),I("div",NTt,[I("div",BTt,Be(e.videoUrl||"暂无视频链接"),1)])]),e.proxyUrl&&e.proxyUrl!==e.videoUrl?(H(),Q("div",FTt,[I("div",jTt,[p[14]||(p[14]=I("h4",null,"🔄 代理后链接",-1)),I("div",UTt,[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),We(" 复制 ",-1)])],8,VTt),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),We(" VLC ",-1)])],8,zTt),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),We(" MPV ",-1)])],8,HTt)])]),I("div",WTt,[I("div",GTt,Be(e.proxyUrl),1)])])):Oe("",!0),I("div",KTt,[I("div",qTt,[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),We(" 复制 ",-1)])],8,YTt)]),I("div",XTt,[I("div",ZTt,[o.value?(H(),Q("pre",QTt,Be(o.value),1)):(H(),Q("div",JTt,"暂无请求头信息"))])])]),I("div",e4t,[p[18]||(p[18]=I("div",{class:"section-header"},[I("h4",null,"🎬 视频格式")],-1)),I("div",t4t,[I("div",n4t,[p[17]||(p[17]=I("span",{class:"format-label"},"检测格式:",-1)),I("span",r4t,Be(e.detectedFormat||"未知"),1)])])]),I("div",i4t,[p[20]||(p[20]=I("div",{class:"section-header"},[I("h4",null,"⚙️ 播放器信息")],-1)),I("div",o4t,[I("div",s4t,[p[19]||(p[19]=I("span",{class:"player-label"},"当前播放器:",-1)),I("span",a4t,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),We(" 复制所有调试信息 ",-1)])])])])])])):Oe("",!0)}},cbe=_r(l4t,[["__scopeId","data-v-d9075ed4"]]);function dbe(e={}){const{onSkipToNext:t=()=>{},getCurrentTime:n=()=>0,setCurrentTime:r=()=>{},getDuration:o=()=>0}=e,a=pe(!1),s=pe(!1),l=pe(!1),c=pe(90),f=pe(90),h=pe(!1),p=pe(!1),m=pe(null),g=pe(0),b=pe(!1),S=pe(0),k=pe(!1),C=pe(0),E=j(()=>s.value||l.value),x="drplayer_skip_settings",_=()=>{try{const J=localStorage.getItem(x);if(console.log("从 localStorage 加载设置:",J),J){const ie=JSON.parse(J);s.value=ie.skipIntroEnabled||!1,l.value=ie.skipOutroEnabled||!1,c.value=ie.skipIntroSeconds||90,f.value=ie.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:f.value})}else console.log("没有找到保存的设置,使用默认值")}catch(J){console.warn("加载片头片尾设置失败:",J)}},A=J=>{try{s.value=J.skipIntroEnabled,l.value=J.skipOutroEnabled,c.value=J.skipIntroSeconds,f.value=J.skipOutroSeconds;const ie={skipIntroEnabled:J.skipIntroEnabled,skipOutroEnabled:J.skipOutroEnabled,skipIntroSeconds:J.skipIntroSeconds,skipOutroSeconds:J.skipOutroSeconds};localStorage.setItem(x,JSON.stringify(ie)),$()}catch(ie){console.warn("保存片头片尾设置失败:",ie)}},R=()=>{if(!s.value||h.value)return!1;const J=n(),ie=Date.now();return b.value||S.value>0&&ie-S.value<3e3||k.value||C.value>0&&ie-C.value<2e3?!1:J<=1&&J<=c.value?(console.log(`立即跳过片头:从 ${J.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ie,!0):!1},M=()=>{if(!s.value||h.value)return;const J=n(),ie=Date.now();b.value||S.value>0&&ie-S.value<3e3||k.value||C.value>0&&ie-C.value<2e3||g.value>0&&ie-g.value<1e3||J<=c.value&&(console.log(`已跳过片头:从 ${J.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ie)},D=()=>{if(!l.value||p.value)return;const J=o();if(J<=0)return;const ie=n(),se=J-f.value,ae=Date.now();ae-g.value<2e3||ie>=se&&ie{R()||M(),D()};let L=null;const B=()=>{L&&clearTimeout(L),L=setTimeout(()=>{s.value&&!h.value&&M(),l.value&&!p.value&&D()},200)},F=()=>{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)},U=()=>{b.value=!0,console.log("用户开始拖动进度条")},z=()=>{b.value=!1,S.value=Date.now(),console.log("用户结束拖动进度条")},G=()=>{k.value=!0,console.log("全屏状态开始变化")},Y=()=>{k.value=!1,C.value=Date.now(),console.log("全屏状态变化结束")},re=()=>{F(),_()},te=()=>{a.value=!0},X=()=>{a.value=!1},K=()=>{m.value&&(clearTimeout(m.value),m.value=null)};return hi(()=>{K()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:f,skipIntroApplied:h,skipOutroTimer:m,skipEnabled:E,loadSkipSettings:_,saveSkipSettings:A,applySkipSettings:$,applyIntroSkipImmediate:R,handleTimeUpdate:B,resetSkipState:F,initSkipSettings:re,openSkipSettingsDialog:te,closeSkipSettingsDialog:X,cleanup:K,onUserSeekStart:U,onUserSeekEnd:z,onFullscreenChangeStart:G,onFullscreenChangeEnd:Y}}const Om={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},fbe=[{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 FW(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function v2(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 FI(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function u4t(e,t=null){const n=Eh();let r;return n.autoBypass?(r=n.referrerPolicy,console.log(`根据CSP配置设置referrer策略: ${r} (URL: ${e})`)):(r=FW()||Om.STRICT_ORIGIN_WHEN_CROSS_ORIGIN,console.log(`CSP绕过未启用,保持当前策略: ${r} (URL: ${e})`)),v2(r),t&&FI(t,r),r}const ule={referrerPolicy:Om.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[Om.NO_REFERRER,Om.ORIGIN,Om.SAME_ORIGIN,Om.UNSAFE_URL]};function Eh(){const e=localStorage.getItem("csp_bypass_config");return e?{...ule,...JSON.parse(e)}:ule}function iF(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function jW(e,t){return Eh().autoBypass?u4t(e,t):FW()}var oF={exports:{}},cle;function c4t(){return cle||(cle=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(Fe){var at=typeof Fe;return Fe!==null&&(at==="object"||at==="function")}function h(Fe){return typeof Fe=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Fe){return Object.prototype.toString.call(Fe)==="[object Array]"};var m=p,g=0,b=void 0,S=void 0,k=function(at,St){U[g]=at,U[g+1]=St,g+=2,g===2&&(S?S(z):Y())};function C(Fe){S=Fe}function E(Fe){k=Fe}var x=typeof window<"u"?window:void 0,_=x||{},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(z)}}function $(){return typeof b<"u"?function(){b(z)}:F()}function L(){var Fe=0,at=new A(z),St=document.createTextNode("");return at.observe(St,{characterData:!0}),function(){St.data=Fe=++Fe%2}}function B(){var Fe=new MessageChannel;return Fe.port1.onmessage=z,function(){return Fe.port2.postMessage(0)}}function F(){var Fe=setTimeout;return function(){return Fe(z,1)}}var U=new Array(1e3);function z(){for(var Fe=0;Fe0&&(re=U[0]),re instanceof Error)throw re;var te=new Error("Unhandled error."+(re?" ("+re.message+")":""));throw te.context=re,te}var X=Y[F];if(X===void 0)return!1;if(typeof X=="function")c(X,this,U);else for(var K=X.length,J=A(X,K),z=0;z0&&re.length>G&&!re.warned){re.warned=!0;var te=new Error("Possible EventEmitter memory leak detected. "+re.length+" "+String(F)+" listeners added. Use emitter.setMaxListeners() to increase limit");te.name="MaxListenersExceededWarning",te.emitter=B,te.type=F,te.count=re.length,h(te)}return B}m.prototype.addListener=function(F,U){return k(this,F,U,!1)},m.prototype.on=m.prototype.addListener,m.prototype.prependListener=function(F,U){return k(this,F,U,!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 E(B,F,U){var z={fired:!1,wrapFn:void 0,target:B,type:F,listener:U},G=C.bind(z);return G.listener=U,z.wrapFn=G,G}m.prototype.once=function(F,U){return b(U),this.on(F,E(this,F,U)),this},m.prototype.prependOnceListener=function(F,U){return b(U),this.prependListener(F,E(this,F,U)),this},m.prototype.removeListener=function(F,U){var z,G,Y,re,te;if(b(U),G=this._events,G===void 0)return this;if(z=G[F],z===void 0)return this;if(z===U||z.listener===U)--this._eventsCount===0?this._events=Object.create(null):(delete G[F],G.removeListener&&this.emit("removeListener",F,z.listener||U));else if(typeof z!="function"){for(Y=-1,re=z.length-1;re>=0;re--)if(z[re]===U||z[re].listener===U){te=z[re].listener,Y=re;break}if(Y<0)return this;Y===0?z.shift():R(z,Y),z.length===1&&(G[F]=z[0]),G.removeListener!==void 0&&this.emit("removeListener",F,te||U)}return this},m.prototype.off=m.prototype.removeListener,m.prototype.removeAllListeners=function(F){var U,z,G;if(z=this._events,z===void 0)return this;if(z.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):z[F]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete z[F]),this;if(arguments.length===0){var Y=Object.keys(z),re;for(G=0;G=0;G--)this.removeListener(F,U[G]);return this};function x(B,F,U){var z=B._events;if(z===void 0)return[];var G=z[F];return G===void 0?[]:typeof G=="function"?U?[G.listener||G]:[G]:U?M(G):A(G,G.length)}m.prototype.listeners=function(F){return x(this,F,!0)},m.prototype.rawListeners=function(F){return x(this,F,!1)},m.listenerCount=function(B,F){return typeof B.listenerCount=="function"?B.listenerCount(F):_.call(B,F)},m.prototype.listenerCount=_;function _(B){var F=this._events;if(F!==void 0){var U=F[B];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}m.prototype.eventNames=function(){return this._eventsCount>0?f(this._events):[]};function A(B,F){for(var U=new Array(F),z=0;z0},!1)}function k(C,E){for(var x={main:[E]},_={main:[]},A={main:{}};S(x);)for(var R=Object.keys(x),M=0;M=p[S]&&m0&&b[0].originalDts=S[E].dts&&bS[C].lastSample.originalDts&&b=S[C].lastSample.originalDts&&(C===S.length-1||C0&&(E=this._searchNearestSegmentBefore(k.originalBeginDts)+1),this._lastAppendLocation=E,this._list.splice(E,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(E){this.TAG="MSEController",this._config=E,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(E,x){this._emitter.addListener(E,x)},C.prototype.off=function(E,x){this._emitter.removeListener(E,x)},C.prototype.attachMediaElement=function(E){if(this._mediaSource)throw new S.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var x=this._mediaSource=new window.MediaSource;x.addEventListener("sourceopen",this.e.onSourceOpen),x.addEventListener("sourceended",this.e.onSourceEnded),x.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=E,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),E.src=this._mediaSourceObjectURL},C.prototype.detachMediaElement=function(){if(this._mediaSource){var E=this._mediaSource;for(var x in this._sourceBuffers){var _=this._pendingSegments[x];_.splice(0,_.length),this._pendingSegments[x]=null,this._pendingRemoveRanges[x]=null,this._lastInitSegments[x]=null;var A=this._sourceBuffers[x];if(A){if(E.readyState!=="closed"){try{E.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[x]=null,this._sourceBuffers[x]=null}}if(E.readyState==="open")try{E.endOfStream()}catch(R){p.default.e(this.TAG,R.message)}E.removeEventListener("sourceopen",this.e.onSourceOpen),E.removeEventListener("sourceended",this.e.onSourceEnded),E.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(E,x){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(E),this._pendingSegments[E.type].push(E);return}var _=E,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}x||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(E){var x=E;this._pendingSegments[x.type].push(x),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var _=this._sourceBuffers[x.type];_&&!_.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()},C.prototype.seek=function(E){for(var x in this._sourceBuffers)if(this._sourceBuffers[x]){var _=this._sourceBuffers[x];if(this._mediaSource.readyState==="open")try{_.abort()}catch(L){p.default.e(this.TAG,L.message)}this._idrList.clear();var A=this._pendingSegments[x];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[x].push({start:M,end:D})}if(_.updating||this._doRemoveRanges(),m.default.safari){var $=this._lastInitSegments[x];$&&(this._pendingSegments[x].push($),_.updating||this._doAppendSegments())}}}},C.prototype.endOfStream=function(){var E=this._mediaSource,x=this._sourceBuffers;if(!E||E.readyState!=="open"){E&&E.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}x.video&&x.video.updating||x.audio&&x.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,E.endOfStream())},C.prototype.getNearestKeyframe=function(E){return this._idrList.getLastSyncPointBeforeDts(E)},C.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var E=this._mediaElement.currentTime;for(var x in this._sourceBuffers){var _=this._sourceBuffers[x];if(_){var A=_.buffered;if(A.length>=1&&E-A.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},C.prototype._doCleanupSourceBuffer=function(){var E=this._mediaElement.currentTime;for(var x in this._sourceBuffers){var _=this._sourceBuffers[x];if(_){for(var A=_.buffered,R=!1,M=0;M=this._config.autoCleanupMaxBackwardDuration){R=!0;var L=E-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[x].push({start:D,end:L})}}else $0&&(isNaN(x)||_>x)&&(p.default.v(this.TAG,"Update MediaSource duration from "+x+" to "+_),this._mediaSource.duration=_),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},C.prototype._doRemoveRanges=function(){for(var E in this._pendingRemoveRanges)if(!(!this._sourceBuffers[E]||this._sourceBuffers[E].updating))for(var x=this._sourceBuffers[E],_=this._pendingRemoveRanges[E];_.length&&!x.updating;){var A=_.shift();x.remove(A.start,A.end)}},C.prototype._doAppendSegments=function(){var E=this._pendingSegments;for(var x in E)if(!(!this._sourceBuffers[x]||this._sourceBuffers[x].updating)&&E[x].length>0){var _=E[x].shift();if(_.timestampOffset){var A=this._sourceBuffers[x].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[x].timestampOffset=R),delete _.timestampOffset}if(!_.data||_.data.byteLength===0)continue;try{this._sourceBuffers[x].appendBuffer(_.data),this._isBufferFull=!1,x==="video"&&_.hasOwnProperty("info")&&this._idrList.appendArray(_.info.syncPoints)}catch(D){this._pendingSegments[x].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 E=this._pendingSourceBufferInit;E.length;){var x=E.shift();this.appendInitSegment(x,!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 E=this._pendingSegments;return E.video.length>0||E.audio.length>0},C.prototype._hasPendingRemoveRanges=function(){var E=this._pendingRemoveRanges;return E.video.length>0||E.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(E){p.default.e(this.TAG,"SourceBuffer Error: "+E)},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"),E=(function(){function x(_,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 x.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},x.prototype.on=function(_,A){this._emitter.addListener(_,A)},x.prototype.off=function(_,A){this._emitter.removeListener(_,A)},x.prototype.hasWorker=function(){return this._worker!=null},x.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},x.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},x.prototype.seek=function(_){this._worker?this._worker.postMessage({cmd:"seek",param:_}):this._controller.seek(_)},x.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},x.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},x.prototype._onInitSegment=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.INIT_SEGMENT,_,A)})},x.prototype._onMediaSegment=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.MEDIA_SEGMENT,_,A)})},x.prototype._onLoadingComplete=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.LOADING_COMPLETE)})},x.prototype._onRecoveredEarlyEof=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.RECOVERED_EARLY_EOF)})},x.prototype._onMediaInfo=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.MEDIA_INFO,_)})},x.prototype._onMetaDataArrived=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.METADATA_ARRIVED,_)})},x.prototype._onScriptDataArrived=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.SCRIPTDATA_ARRIVED,_)})},x.prototype._onStatisticsInfo=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.STATISTICS_INFO,_)})},x.prototype._onIOError=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.IO_ERROR,_,A)})},x.prototype._onDemuxError=function(_,A){var R=this;Promise.resolve().then(function(){R._emitter.emit(k.default.DEMUX_ERROR,_,A)})},x.prototype._onRecommendSeekpoint=function(_){var A=this;Promise.resolve().then(function(){A._emitter.emit(k.default.RECOMMEND_SEEKPOINT,_)})},x.prototype._onLoggingConfigChanged=function(_){this._worker&&this._worker.postMessage({cmd:"logging_config",param:_})},x.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}},x})();l.default=E}),"./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"),E=c("./src/core/transmuxing-events.js"),x=(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 $=this._mediaInfo.segments[R];if($==null)this._pendingSeekTime=A,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(R);else{var D=$.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,$=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),$=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(E.default.DEMUX_ERROR,k.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),$=0;return $},_.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(E.default.METADATA_ARRIVED,A)},_.prototype._onScriptDataArrived=function(A){this._emitter.emit(E.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(E.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(E.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(E.default.STATISTICS_INFO,A)},_})();l.default=x}),"./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=F.bind(this);h.default.install(),b.addEventListener("message",function(U){switch(U.data.cmd){case"init":S=new p.default(U.data.param[0],U.data.param[1]),S.on(m.default.IO_ERROR,$.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,E.bind(this)),S.on(m.default.LOADING_COMPLETE,x.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(U.data.param);break;case"pause":S.pause();break;case"resume":S.resume();break;case"logging_config":{var z=U.data.param;f.default.applyConfig(z),z.enableCallback===!0?f.default.addLogListener(k):f.default.removeLogListener(k);break}}});function C(U,z){var G={msg:m.default.INIT_SEGMENT,data:{type:U,data:z}};b.postMessage(G,[z.data])}function E(U,z){var G={msg:m.default.MEDIA_SEGMENT,data:{type:U,data:z}};b.postMessage(G,[z.data])}function x(){var U={msg:m.default.LOADING_COMPLETE};b.postMessage(U)}function _(){var U={msg:m.default.RECOVERED_EARLY_EOF};b.postMessage(U)}function A(U){var z={msg:m.default.MEDIA_INFO,data:U};b.postMessage(z)}function R(U){var z={msg:m.default.METADATA_ARRIVED,data:U};b.postMessage(z)}function M(U){var z={msg:m.default.SCRIPTDATA_ARRIVED,data:U};b.postMessage(z)}function D(U){var z={msg:m.default.STATISTICS_INFO,data:U};b.postMessage(z)}function $(U,z){b.postMessage({msg:m.default.IO_ERROR,data:{type:U,info:z}})}function L(U,z){b.postMessage({msg:m.default.DEMUX_ERROR,data:{type:U,info:z}})}function B(U){b.postMessage({msg:m.default.RECOMMEND_SEEKPOINT,data:U})}function F(U,z){b.postMessage({msg:"logcat_callback",data:{type:U,logcat:z}})}};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 E={};try{var x=b.parseValue(S,k,C),_=b.parseValue(S,k+x.size,C-x.size);E[x.data]=_.data}catch(A){f.default.e("AMF",A.toString())}return E},b.parseObject=function(S,k,C){if(C<3)throw new p.IllegalStateException("Data not enough when parse ScriptDataObject");var E=b.parseString(S,k,C),x=b.parseValue(S,k+E.size,C-E.size),_=x.objectEnd;return{data:{name:E.data,value:x.data},size:E.size+x.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 E=new DataView(S,k,C),x=E.getUint16(0,!m),_;return x>0?_=(0,h.default)(new Uint8Array(S,k+2,x)):_="",{data:_,size:2+x}},b.parseLongString=function(S,k,C){if(C<4)throw new p.IllegalStateException("Data not enough when parse LongString");var E=new DataView(S,k,C),x=E.getUint32(0,!m),_;return x>0?_=(0,h.default)(new Uint8Array(S,k+4,x)):_="",{data:_,size:4+x}},b.parseDate=function(S,k,C){if(C<10)throw new p.IllegalStateException("Data size invalid when parse Date");var E=new DataView(S,k,C),x=E.getFloat64(0,!m),_=E.getInt16(8,!m);return x+=_*60*1e3,{data:new Date(x),size:10}},b.parseValue=function(S,k,C){if(C<1)throw new p.IllegalStateException("Data not enough when parse Value");var E=new DataView(S,k,C),x=1,_=E.getUint8(0),A,R=!1;try{switch(_){case 0:A=E.getFloat64(1,!m),x+=8;break;case 1:{var M=E.getUint8(1);A=!!M,x+=1;break}case 2:{var D=b.parseString(S,k+1,C-1);A=D.data,x+=D.size;break}case 3:{A={};var $=0;for((E.getUint32(C-4,!m)&16777215)===9&&($=3);x32)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,E){return C[E]<<24|C[E+1]<<16|C[E+2]<<8|C[E+3]}var k=(function(){function C(E,x){this.TAG="FLVDemuxer",this._config=x,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=E.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=E.hasAudioTrack,this._hasVideo=E.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(E){var x=new Uint8Array(E),_={match:!1};if(x[0]!==70||x[1]!==76||x[2]!==86||x[3]!==1)return _;var A=(x[4]&4)>>>2!==0,R=(x[4]&1)!==0,M=S(x,5);return M<9?_:{match:!0,consumed:M,dataOffset:M,hasAudioTrack:A,hasVideoTrack:R}},C.prototype.bindDataSource=function(E){return E.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(C.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(E){this._onTrackMetadata=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(E){this._onMediaInfo=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(E){this._onMetaDataArrived=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(E){this._onScriptDataArrived=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onError",{get:function(){return this._onError},set:function(E){this._onError=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(E){this._onDataAvailable=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(E){this._timestampBase=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedDuration",{get:function(){return this._duration},set:function(E){this._durationOverrided=!0,this._duration=E,this._mediaInfo.duration=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasAudio",{set:function(E){this._hasAudioFlagOverrided=!0,this._hasAudio=E,this._mediaInfo.hasAudio=E},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasVideo",{set:function(E){this._hasVideoFlagOverrided=!0,this._hasVideo=E,this._mediaInfo.hasVideo=E},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(E,x){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(x===0)if(E.byteLength>13){var R=C.probe(E);_=R.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,x+_!==this._dataOffset&&f.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var M=new DataView(E,_),D=M.getUint32(0,!A);D!==0&&f.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),_+=4}for(;_E.byteLength)break;var $=M.getUint8(0),L=M.getUint32(0,!A)&16777215;if(_+11+L+4>E.byteLength)break;if($!==8&&$!==9&&$!==18){f.default.w(this.TAG,"Unsupported tag type "+$+", skipped"),_+=11+L+4;continue}var B=M.getUint8(4),F=M.getUint8(5),U=M.getUint8(6),z=M.getUint8(7),G=U|F<<8|B<<16|z<<24,Y=M.getUint32(7,!A)&16777215;Y!==0&&f.default.w(this.TAG,"Meet tag which has StreamID != 0!");var re=_+11;switch($){case 8:this._parseAudioData(E,re,L,G);break;case 9:this._parseVideoData(E,re,L,G,x+_);break;case 18:this._parseScriptData(E,re,L);break}var te=M.getUint32(11+L,!A);te!==11+L&&f.default.w(this.TAG,"Invalid PrevTagSize "+te),_+=11+L+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),_},C.prototype._parseScriptData=function(E,x,_){var A=h.default.parseScriptData(E,x,_);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 $=D/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=$,this._referenceFrameRate.fps_num=D,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=$}}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(E){for(var x=[],_=[],A=1;A>>4;if(D!==2&&D!==10){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+D);return}var $=0,L=(M&12)>>>2;if(L>=0&&L<=4)$=this._flvSoundRateTable[L];else{this._onError(m.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+L);return}var B=M&1,F=this._audioMetadata,U=this._audioTrack;if(F||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),F=this._audioMetadata={},F.type="audio",F.id=U.id,F.timescale=this._timescale,F.duration=this._duration,F.audioSampleRate=$,F.channelCount=B===0?1:2),D===10){var z=this._parseAACAudioData(E,x+1,_-1);if(z==null)return;if(z.packetType===0){F.config&&f.default.w(this.TAG,"Found another AudioSpecificConfig!");var G=z.data;F.audioSampleRate=G.samplingRate,F.channelCount=G.channelCount,F.codec=G.codec,F.originalCodec=G.originalCodec,F.config=G.config,F.refSampleDuration=1024/F.audioSampleRate*F.timescale,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",F);var Y=this._mediaInfo;Y.audioCodec=F.originalCodec,Y.audioSampleRate=F.audioSampleRate,Y.audioChannelCount=F.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(z.packetType===1){var re=this._timestampBase+A,te={unit:z.data,length:z.data.byteLength,dts:re,pts:re};U.samples.push(te),U.length+=z.data.length}else f.default.e(this.TAG,"Flv: Unsupported AAC data type "+z.packetType)}else if(D===2){if(!F.codec){var G=this._parseMP3AudioData(E,x+1,_-1,!0);if(G==null)return;F.audioSampleRate=G.samplingRate,F.channelCount=G.channelCount,F.codec=G.codec,F.originalCodec=G.originalCodec,F.refSampleDuration=1152/F.audioSampleRate*F.timescale,f.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",F);var Y=this._mediaInfo;Y.audioCodec=F.codec,Y.audioSampleRate=F.audioSampleRate,Y.audioChannelCount=F.channelCount,Y.audioDataRate=G.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(E,x+1,_-1,!1);if(X==null)return;var re=this._timestampBase+A,K={unit:X,length:X.byteLength,dts:re,pts:re};U.samples.push(K),U.length+=X.length}}},C.prototype._parseAACAudioData=function(E,x,_){if(_<=1){f.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var A={},R=new Uint8Array(E,x,_);return A.packetType=R[0],R[0]===0?A.data=this._parseAACAudioSpecificConfig(E,x+1,_-1):A.data=R.subarray(1),A},C.prototype._parseAACAudioSpecificConfig=function(E,x,_){var A=new Uint8Array(E,x,_),R=null,M=0,D=0,$=0,L=null;if(M=D=A[0]>>>3,$=(A[0]&7)<<1|A[1]>>>7,$<0||$>=this._mpegSamplingRates.length){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var B=this._mpegSamplingRates[$],F=(A[1]&120)>>>3;if(F<0||F>=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 U=self.navigator.userAgent.toLowerCase();return U.indexOf("firefox")!==-1?$>=6?(M=5,R=new Array(4),L=$-3):(M=2,R=new Array(2),L=$):U.indexOf("android")!==-1?(M=2,R=new Array(2),L=$):(M=5,L=$,R=new Array(4),$>=6?L=$-3:F===1&&(M=2,R=new Array(2),L=$)),R[0]=M<<3,R[0]|=($&15)>>>1,R[1]=($&15)<<7,R[1]|=(F&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:F,codec:"mp4a.40."+M,originalCodec:"mp4a.40."+D}},C.prototype._parseMP3AudioData=function(E,x,_,A){if(_<4){f.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}this._littleEndian;var R=new Uint8Array(E,x,_),M=null;if(A){if(R[0]!==255)return;var D=R[1]>>>3&3,$=(R[1]&6)>>1,L=(R[2]&240)>>>4,B=(R[2]&12)>>>2,F=R[3]>>>6&3,U=F!==3?2:1,z=0,G=0,Y="mp3";switch(D){case 0:z=this._mpegAudioV25SampleRateTable[B];break;case 2:z=this._mpegAudioV20SampleRateTable[B];break;case 3:z=this._mpegAudioV10SampleRateTable[B];break}switch($){case 1:L>>4,$=M&15;if($!==7){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+$);return}this._parseAVCVideoPacket(E,x+1,_-1,A,R,D)}},C.prototype._parseAVCVideoPacket=function(E,x,_,A,R,M){if(_<4){f.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var D=this._littleEndian,$=new DataView(E,x,_),L=$.getUint8(0),B=$.getUint32(0,!D)&16777215,F=B<<8>>8;if(L===0)this._parseAVCDecoderConfigurationRecord(E,x+4,_-4);else if(L===1)this._parseAVCVideoData(E,x+4,_-4,A,R,M,F);else if(L!==2){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid video packet type "+L);return}},C.prototype._parseAVCDecoderConfigurationRecord=function(E,x,_){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(E,x,_);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 $=D.getUint8(0),L=D.getUint8(1);if(D.getUint8(2),D.getUint8(3),$!==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 F=6,U=0;U1&&f.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+ae);F++;for(var U=0;U=_){f.default.w(this.TAG,"Malformed Nalu near timestamp "+G+", offset = "+U+", dataSize = "+_);break}var re=L.getUint32(U,!$);if(z===3&&(re>>>=8),re>_-z){f.default.w(this.TAG,"Malformed Nalus near timestamp "+G+", NaluSize > DataSize!");return}var te=L.getUint8(U+z)&31;te===5&&(Y=!0);var X=new Uint8Array(E,x+U,z+re),K={type:te,data:X};B.push(K),F+=X.byteLength,U+=z+re}if(B.length){var J=this._videoTrack,ie={units:B,length:F,isKeyframe:Y,dts:G,cts:D,pts:G+D};Y&&(ie.fileposition=R),J.samples.push(ie),J.length+=F}},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),E=p.getLevelString(k),x=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)&&(x=b.readUEG(),x===3&&b.readBits(1),x<=3&&(_=A[x]),R=b.readUEG()+8,b.readUEG(),b.readBits(1),b.readBool()))for(var M=x!==3?8:12,D=0;D0&&ve<16?(K=Ie[ve-1],J=Ne[ve-1]):ve===255&&(K=b.readByte()<<8|b.readByte(),J=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 Ye=b.readBits(32),Ze=b.readBits(32);se=b.readBool(),ae=Ze,Ce=Ye*2,ie=ae/Ce}}var Ge=1;(K!==1||J!==1)&&(Ge=K/J);var _e=0,ye=0;if(x===0)_e=1,ye=2-z;else{var Re=x===3?1:2,je=x===1?2:1;_e=Re,ye=je*(2-z)}var Qe=(F+1)*16,rt=(2-z)*((U+1)*16);Qe-=(G+Y)*_e,rt-=(re+te)*ye;var yt=Math.ceil(Qe*Ge);return b.destroy(),b=null,{profile_string:C,level_string:E,bit_depth:R,ref_frames:B,chroma_format:_,chroma_format_string:p.getChromaFormatString(_),frame_rate:{fixed:se,fps:ie,fps_den:Ce,fps_num:ae},sar_ratio:{width:K,height:J},codec_size:{width:Qe,height:rt},present_size:{width:yt,height:rt}}},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 E=this;this._dataSource=k,this._range=C;var x=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(x=k.redirectedURL);var _=this._seekHandler.getConfig(x,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($){if(E._requestAbort){E._status=h.LoaderStatus.kIdle,$.body.cancel();return}if($.ok&&$.status>=200&&$.status<=299){if($.url!==_.url&&E._onURLRedirect){var L=E._seekHandler.removeURLParameters($.url);E._onURLRedirect(L)}var B=$.headers.get("Content-Length");return B!=null&&(E._contentLength=parseInt(B),E._contentLength!==0&&E._onContentLengthKnown&&E._onContentLengthKnown(E._contentLength)),E._pump.call(E,$.body.getReader())}else if(E._status=h.LoaderStatus.kError,E._onError)E._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:$.status,msg:$.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+$.status+" "+$.statusText)}).catch(function($){if(!(E._abortController&&E._abortController.signal.aborted))if(E._status=h.LoaderStatus.kError,E._onError)E._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:$.message});else throw $})},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(E){if(E.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 E.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new A.customSeekHandler}else throw new E.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 E.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 E.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),$=new Uint8Array(M,0,R);$.set(D,0)}this._stashBuffer=M,this._bufferSize=R}},_.prototype._normalizeSpeed=function(A){var R=this._speedNormalizeList,M=R.length-1,D=0,$=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 z=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(z,this._stashByteStart);if(L0){var U=new Uint8Array(z,L);F.set(U,0),this._stashUsed=U.byteLength,this._stashByteStart+=L}}else this._stashUsed=0,this._stashByteStart+=L;this._stashUsed+A.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+A.byteLength),F=new Uint8Array(this._stashBuffer,0,this._bufferSize)),F.set(new Uint8Array(A),this._stashUsed),this._stashUsed+=A.byteLength}else{var L=this._dispatchChunks(A,R);if(Lthis._bufferSize&&(this._expandBuffer(B),F=new Uint8Array(this._stashBuffer,0,this._bufferSize)),F.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 F=new Uint8Array(this._stashBuffer,0,this._bufferSize);F.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 F=new Uint8Array(this._stashBuffer,0,this._bufferSize);F.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 U=new Uint8Array(this._stashBuffer,L);F.set(U,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 $=new Uint8Array(this._stashBuffer,0,this._bufferSize),L=new Uint8Array(R,M);$.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;E[0]!==this._startName&&E[0]!==this._endName&&(x&&(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 E in C)Object.prototype.hasOwnProperty.call(C,E)&&(k[E]=C[E])},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(E){this._status=f.LoaderStatus.kError;var C={code:E.code,msg:E.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 E={code:-1,msg:"Unsupported WebSocket message type: "+S.data.constructor.name};if(this._onError)this._onError(f.LoaderErrors.EXCEPTION,E);else throw new h.RuntimeException(E.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,E){C.__proto__=E}||function(C,E){for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(C[x]=E[x])},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 E=b.call(this,"xhr-moz-chunked-loader")||this;return E.TAG="MozChunkedLoader",E._seekHandler=k,E._config=C,E._needStash=!0,E._xhr=null,E._requestAbort=!1,E._contentLength=null,E._receivedLength=0,E}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 E=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(E=k.redirectedURL);var x=this._seekHandler.getConfig(E,C);this._requestURL=x.url;var _=this._xhr=new XMLHttpRequest;if(_.open("GET",x.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 x.headers=="object"){var A=x.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 E=this._seekHandler.removeURLParameters(C.responseURL);this._onURLRedirect(E)}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,E=this._range.from+this._receivedLength;this._receivedLength+=C.byteLength,this._onDataArrival&&this._onDataArrival(C,E,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,E=null;if(this._contentLength&&k.loaded=this._contentLength&&(x=this._range.from+this._contentLength-1),this._currentRequestRange={from:E,to:x},this._internalOpen(this._dataSource,this._currentRequestRange)},k.prototype._internalOpen=function(C,E){this._lastTimeLoaded=0;var x=C.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?x=this._currentRedirectedURL:C.redirectedURL!=null&&(x=C.redirectedURL));var _=this._seekHandler.getConfig(x,E);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 E=C.target;if(E.readyState===2){if(E.responseURL!=null){var x=this._seekHandler.removeURLParameters(E.responseURL);E.responseURL!==this._currentRequestURL&&x!==this._currentRedirectedURL&&(this._currentRedirectedURL=x,this._onURLRedirect&&this._onURLRedirect(x))}if(E.status>=200&&E.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:E.status,msg:E.statusText});else throw new m.RuntimeException("RangeLoader: Http code invalid, "+E.status+" "+E.statusText)}},k.prototype._onProgress=function(C){if(this._status!==p.LoaderStatus.kError){if(this._contentLength===null){var E=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,E=!0;var x=C.total;this._internalAbort(),x!=null&x!==0&&(this._totalLength=x)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,E){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 E=this._chunkSizeKBList,x=E.length-1,_=0,A=0,R=x;if(C=E[_]&&C=3&&(E=this._speedSampler.currentKBps)),E!==0){var x=this._normalizeSpeed(E);this._currentSpeedNormalized!==x&&(this._currentSpeedNormalized=x,this._currentChunkSizeKB=x)}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,$){M._msectl.appendInitSegment($)}),this._transmuxer.on(S.default.MEDIA_SEGMENT,function(D,$){if(M._msectl.appendMediaSegment($),M._config.lazyLoad&&!M._config.isLive){var L=M._mediaElement.currentTime;$.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,$){M._emitter.emit(g.default.ERROR,E.ErrorTypes.NETWORK_ERROR,D,$)}),this._transmuxer.on(S.default.DEMUX_ERROR,function(D,$){M._emitter.emit(g.default.ERROR,E.ErrorTypes.MEDIA_ERROR,D,{code:-1,msg:$})}),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,$=0,L=0;if(this._mediaElement.getVideoPlaybackQuality){var B=this._mediaElement.getVideoPlaybackQuality();$=B.totalVideoFrames,L=B.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?($=this._mediaElement.webkitDecodedFrameCount,L=this._mediaElement.webkitDroppedFrameCount):D=!1;return D&&(M.decodedFrames=$,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,$=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,$=!1,L=0;L=B&&M=F-this._config.lazyLoadRecoverDuration&&($=!0);break}}$&&(window.clearInterval(this._progressChecker),this._progressChecker=null,$&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},R.prototype._isTimepointBuffered=function(M){for(var D=this._mediaElement.buffered,$=0;$=L&&M0){var B=this._mediaElement.buffered.start(0);(B<1&&M0&&D.currentTime<$.start(0)&&(p.default.w(this.TAG,"Playback seems stuck at "+D.currentTime+", seek to "+$.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=$.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)},R.prototype._onvLoadedMetadata=function(M){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)},R.prototype._onvSeeking=function(M){var D=this._mediaElement.currentTime,$=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(D<1&&$.length>0){var L=$.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,E=0,x=0;if(this._mediaElement.getVideoPlaybackQuality){var _=this._mediaElement.getVideoPlaybackQuality();E=_.totalVideoFrames,x=_.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(E=this._mediaElement.webkitDecodedFrameCount,x=this._mediaElement.webkitDroppedFrameCount):C=!1;return C&&(k.decodedFrames=E,k.droppedFrames=x),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,E>>>16&255,E>>>8&255,E&255,x>>>24&255,x>>>16&255,x>>>8&255,x&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,E){if(!this._onMediaSegment)throw new b.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(C,E),this._remuxVideo(E),this._remuxAudio(C)},k.prototype._onTrackMetadataReceived=function(C,E){var x=null,_="mp4",A=E.codec;if(C==="audio")this._audioMeta=E,E.codec==="mp3"&&this._mp3UseMpegAudio?(_="mpeg",A="",x=new Uint8Array):x=h.default.generateInitSegment(E);else if(C==="video")this._videoMeta=E,x=h.default.generateInitSegment(E);else return;if(!this._onInitSegment)throw new b.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(C,{type:C,data:x.buffer,codec:A,container:C+"/"+_,mediaDuration:E.duration})},k.prototype._calculateDtsBase=function(C,E){this._dtsBaseInited||(C.samples&&C.samples.length&&(this._audioDtsBase=C.samples[0].dts),E.samples&&E.samples.length&&(this._videoDtsBase=E.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},k.prototype.flushStashedSamples=function(){var C=this._videoStashedLastSample,E=this._audioStashedLastSample,x={type:"video",id:1,sequenceNumber:0,samples:[],length:0};C!=null&&(x.samples.push(C),x.length=C.length);var _={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};E!=null&&(_.samples.push(E),_.length=E.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(x,!0),this._remuxAudio(_,!0)},k.prototype._remuxAudio=function(C,E){if(this._audioMeta!=null){var x=C,_=x.samples,A=void 0,R=-1,M=-1,D=this._audioMeta.refSampleDuration,$=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,L=this._dtsBaseInited&&this._audioNextDts===void 0,B=!1;if(!(!_||_.length===0)&&!(_.length===1&&!E)){var F=0,U=null,z=0;$?(F=0,z=x.length):(F=8,z=8+x.length);var G=null;if(_.length>1&&(G=_.pop(),z-=G.length),this._audioStashedLastSample!=null){var Y=this._audioStashedLastSample;this._audioStashedLastSample=null,_.unshift(Y),z+=Y.length}G!=null&&(this._audioStashedLastSample=G);var re=_[0].dts-this._dtsBase;if(this._audioNextDts)A=re-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())A=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(B=!0);else{var te=this._audioSegmentInfoList.getLastSampleBefore(re);if(te!=null){var X=re-(te.originalDts+te.duration);X<=3&&(X=0);var K=te.dts+te.duration+X;A=re-K}else A=0}if(B){var J=re-A,ie=this._videoSegmentInfoList.getLastSegmentBefore(re);if(ie!=null&&ie.beginDts=ye*D&&this._fillAudioTimestampGap&&!m.default.safari){Ye=!0;var Re=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: "+Ne+" ms, curRefDts: "+_e+" ms, ")+("dtsCorrection: "+Math.round(A)+" ms, generate: "+Re+" frames")),ae=Math.floor(_e),Ge=Math.floor(_e+D)-ae;var se=p.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);se==null&&(f.default.w(this.TAG,"Unable to generate silent frame for "+(this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame")),se=Ie),Ze=[];for(var je=0;je=1?Ge=ke[ke.length-1].duration:Ge=Math.floor(D);this._audioNextDts=ae+Ge}R===-1&&(R=ae),ke.push({dts:ae,pts:ae,cts:0,unit:Y.unit,size:Y.unit.byteLength,duration:Ge,originalDts:Ne,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ye&&ke.push.apply(ke,Ze)}}if(ke.length===0){x.samples=[],x.length=0;return}$?U=new Uint8Array(z):(U=new Uint8Array(z),U[0]=z>>>24&255,U[1]=z>>>16&255,U[2]=z>>>8&255,U[3]=z&255,U.set(h.default.types.mdat,4));for(var ve=0;ve1&&(U=_.pop(),F-=U.length),this._videoStashedLastSample!=null){var z=this._videoStashedLastSample;this._videoStashedLastSample=null,_.unshift(z),F+=z.length}U!=null&&(this._videoStashedLastSample=U);var G=_[0].dts-this._dtsBase;if(this._videoNextDts)A=G-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())A=0;else{var Y=this._videoSegmentInfoList.getLastSampleBefore(G);if(Y!=null){var re=G-(Y.originalDts+Y.duration);re<=3&&(re=0);var te=Y.dts+Y.duration+re;A=G-te}else A=0}for(var X=new g.MediaSegmentInfo,K=[],J=0;J<_.length;J++){var z=_[J],ie=z.dts-this._dtsBase,se=z.isKeyframe,ae=ie-A,Ce=z.cts,ke=ae+Ce;R===-1&&(R=ae,D=ke);var ve=0;if(J!==_.length-1){var Ie=_[J+1].dts-this._dtsBase-A;ve=Ie-ae}else if(U!=null){var Ie=U.dts-this._dtsBase-A;ve=Ie-ae}else K.length>=1?ve=K[K.length-1].duration:ve=Math.floor(this._videoMeta.refSampleDuration);if(se){var Ne=new g.SampleInfo(ae,ke,ve,z.dts,!0);Ne.fileposition=z.fileposition,X.appendSyncPoint(Ne)}K.push({dts:ae,pts:ke,cts:Ce,units:z.units,size:z.length,isKeyframe:se,duration:ve,originalDts:ie,flags:{isLeading:0,dependsOn:se?2:1,isDependedOn:se?1:0,hasRedundancy:0,isNonSync:se?0:1}})}B=new Uint8Array(F),B[0]=F>>>24&255,B[1]=F>>>16&255,B[2]=F>>>8&255,B[3]=F&255,B.set(h.default.types.mdat,4);for(var J=0;J=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 E="msedge";b.browser=E,S[E]=!0}if(S.opr){var x="opera";b.browser=x,S[x]=!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,E){C.__proto__=E}||function(C,E){for(var x in E)Object.prototype.hasOwnProperty.call(E,x)&&(C[x]=E[x])},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})()})})(oF)),oF.exports}var d4t=c4t();const rV=xd(d4t);var sF={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */var dle;function f4t(){return dle||(dle=1,(function(e){(function(){var t=typeof window<"u"?window:g8e,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,N(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=Ne(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)ke(u,v)&&d.push([v,u[v]]);return d}});var Ye=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)ke(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=Ne(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 Ze=this||self;function Ge(i,u){i=i.split(".");var d=Ze;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 _e(i){this.g=Math.exp(Math.log(.5)/i),this.i=this.h=0}_e.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 ye(i){return i.h/(1-Math.pow(i.g,i.i))}function Re(){this.h=new _e(2),this.j=new _e(5),this.g=0,this.i=128e3,this.l=16e3}Re.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)},Re.prototype.sample=function(i,u){if(!(u-1&&i.splice(u,1)}function rn(i,u,d){if(d||(d=Gt),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 qe(i,u,d){if(i===u)return!0;if(!i||!u)return i==u;if(d||(d=Gt),i.length!=u.length)return!1;for(var v=0;v0?v.i:v.h)(v.g,d,i,u)}function En(i,u,d,v){rt([d,"has been deprecated and will be removed in",u,". We are currently at version",i,". Additional information:",v].join(" "))}function tr(i,u,d,v){Qe([d,"has been deprecated and has been removed in",u,". We are now at version",i,". Additional information:",v].join(" "))}var ji=null;/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */var Wl=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */function Yr(i){var u;i instanceof Yr?(io(this,i.bc),this.hd=i.hd,Hs(this,i.Db),wn(this,i.Cd),this.Sb=i.Sb,hr(this,i.g.clone()),this.Rc=i.Rc):i&&(u=String(i).match(Wl))?(io(this,u[1]||"",!0),this.hd=Ci(u[2]||""),Hs(this,u[3]||"",!0),wn(this,u[4]),this.Sb=Ci(u[5]||"",!0),hr(this,u[6]||"",!0),this.Rc=Ci(u[7]||"")):this.g=new oe(null)}l=Yr.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(Ws(u,Gl,!0),":"),u=this.Db){i.push("//");var d=this.hd;d&&i.push(Ws(d,Gl,!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(Ws(u,u.charAt(0)=="/"?Ki:Gc,!0))),(u=this.g.toString())&&i.push("?",u),(u=this.Rc)&&i.push("#",Ws(u,ce)),i.join("")},l.resolve=function(i){var u=this.clone();u.bc==="data"&&(u=new Yr);var d=!!i.bc;d?io(u,i.bc):d=!!i.hd,d?u.hd=i.hd:d=!!i.Db,d?Hs(u,i.Db):d=i.Cd!=null;var v=i.Sb;if(d)wn(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 Yr(this)};function io(i,u,d){i.bc=d?Ci(u,!0):u,i.bc&&(i.bc=i.bc.replace(/:$/,""))}function Hs(i,u,d){i.Db=d?Ci(u,!0):u}function wn(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 oe?i.g=u:(d||(u=Ws(u,Kl)),i.g=new oe(u))}function Ci(i,u){return i?u?decodeURI(i):decodeURIComponent(i):""}function Ws(i,u,d){return i!=null?(i=encodeURI(i).replace(u,hs),d&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function hs(i){return i=i.charCodeAt(0),"%"+(i>>4&15).toString(16)+(i&15).toString(16)}var Gl=/[#\/\?@]/g,Gc=/[#\?:]/g,Ki=/[#\?]/g,Kl=/[#\?@]/g,ce=/#/g;function oe(i){this.g=i||null}function ee(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=oe.prototype,l.eb=null,l.Sd=null;function Z(i){return ee(i),i.Sd}l.add=function(i,u){ee(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 ee(this),this.g=null,this.eb.has(i)?this.eb.set(i,[u]):this.add(i,u),this},l.get=function(i){return ee(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 Rt(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=nt(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 ot(d);if(d[0]==254&&d[1]==255)return Rt(d.subarray(2),!1);if(d[0]==255&&d[1]==254)return Rt(d.subarray(2),!0);if(d[0]==0&&d[2]==0)return Rt(i,!1);if(d[1]==0&&d[3]==0)return Rt(i,!0);if(u(0)&&u(1)&&u(2)&&u(3))return ot(i);throw new Ee(2,2,2003)}function Vt(i){if(o.TextEncoder&&!Pe().rh()){var u=new TextEncoder;return Se(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||""}Ge("shaka.util.StringUtils",et),et.resetFromCharCode=function(){nr.g=void 0},et.toUTF16=sn,et.toUTF8=Vt,et.fromBytesAutoDetect=Yt,et.fromUTF16=Rt,et.fromUTF8=ot;var nr=new tt(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"&&rt("Could not find LCEVC Library dependencies on this page"),typeof LCEVCdec<"u")this.h=LCEVCdec;else if(typeof LcevcDil<"u")this.h=LcevcDil,this.j=!0,qt("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{rt("Could not find LCEVC Library on this page"),i=!1;break e}typeof this.h.SupportObject>"u"?(rt("Could not find LCEVC Library on this page"),i=!1):(this.h.SupportObject.SupportStatus||rt(this.h.SupportObject.SupportError),i=typeof this.h<"u"&&typeof libDPIModule<"u"&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}i&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function Jr(i,u,d,v){v.type!=="video"||i.o&&!v.baseOriginalId||i.g&&i.g.appendBuffer(u,"video",v.id,-d,!i.o)}function ql(i){i.g&&i.i.classList.add("shaka-hidden")}No.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function bl(i){return i&&typeof LCEVCdec<"u"?i.codecs=="lvc1":!1}Ge("shaka.lcevc.Dec",No),No.prototype.release=No.prototype.release;function Lo(i){if(xf.has(i))return xf.get(i);var u=o.ManagedMediaSource||o.MediaSource;return u?(u=u.isTypeSupported(i),xf.set(i,u),u):!1}function ic(){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 xf=new Map;function Yl(){}Yl.prototype.extract=function(){},Yl.prototype.decode=function(){return[]},Yl.prototype.clear=function(){},Yl.prototype.getStreams=function(){return[]};function oc(){}oc.prototype.init=function(){},oc.prototype.parse=function(){return[]};function Kh(){}l=Kh.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},Ge("shaka.media.IClosedCaptionParser",Kh);function As(i){this.h=new Map,this.i=0,this.j=new oc,(i=Kc(i.toLowerCase()))&&(this.j=i()),this.g=new Yl,(i=Tu)&&(this.g=i(),this.h.set(this.i,this.g))}l=As.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=Tu)&&(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 Tf(i,u){Pd.set(i,u)}function Kc(i){return Pd.get(i)}Ge("shaka.media.ClosedCaptionParser",As),As.findDecoder=function(){return Tu},As.unregisterDecoder=function(){Tu=null},As.registerDecoder=function(i){Tu=i},As.findParser=Kc,As.unregisterParser=function(i){Pd.delete(i)},As.registerParser=Tf;var Pd=new Map,Tu=null;function Ha(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=vs,this.scroll=qh}Ge("shaka.text.CueRegion",Ha);var vs=1;Ha.units={PX:0,PERCENTAGE:vs,LINES:2};var qh="";Ha.scrollMode={NONE:qh,UP:"up"};function sc(i){this.h=i||"",this.g=0}function ac(i){Au(i,/[ \t]+/gm)}function Au(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 lc(i){return i.g==i.h.length?null:(i=Au(i,/[^ \t\n]*/gm))?i[0]:null}function Af(i){if(i=Au(i,Kt),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 xt(i){return i?Af(new sc(i)):null}var Kt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function en(){}function on(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 bn(i){var u={},d;for(d in i)u[d]=i[d];return u}function zn(i){if(Array.isArray(i)){for(var u=[],d=0;d",y),T=i.substring(T,y);var N=T.indexOf(w);if(N==-1){var V=w.indexOf(".");V>0&&(N=T.indexOf(w.substring(0,V)))}if(N==-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"){N=i.indexOf("]]>",y),N==-1?(P.push(i.substr(y+9)),y=i.length):(P.push(i.substring(y+9,N)),y=N+3);continue}y++;continue}e:{V=T,y++;var W=v(),q={};for(N=[];i.charCodeAt(y)!==62&&i[y];){var ne=i.charCodeAt(y);if(ne>64&&ne<91||ne>96&&ne<123){ne=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 fe=y+1;if(y=i.indexOf(i[y],fe),fe=i.slice(fe,y),ue===39||ue===34){if(y===-1){if(V={tagName:W,attributes:q,children:N,parent:null},u)for(W=0;W0&&P.push(N):(P.length&&N.length==1&&N[0]==` `||N.trim().length>0)&&P.push(N),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 Iu(i){return typeof i=="string"}function uc(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 Ir(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 dr(i){return typeof i=="string"?nn(i):(i=i.children.reduce(function(u,d){return typeof d=="string"?u+d:u},""),i===""?null:nn(i))}function oo(i){return Array.from(i.children).every(function(u){return typeof u=="string"})?((i=dr(i))&&(i=i.trim()),i):null}function ba(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())ba(v.value,u,d)}return d}function Xr(i,u){return i=Ir(i,u),i.length!=1?null:i[0]}function _a(i,u,d){return i=aw(i,u,d),i.length!=1?null:i[0]}function An(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 Lu(i,u,d){return u=Ui(u),i.attributes[u+":"+d]||null}function aw(i,u,d){var v=Ui(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 Is(i,u,d){u=_(u);for(var v=u.next();!v.done;v=u.next())if(v=Lu(i,v.value,d))return v;return null}function If(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 Rd(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 lw(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 Ls(i){return i=Number(i),i%1===0?i:null}function Md(i){return i=Number(i),i%1===0&&i>0?i:null}function Ps(i){return i=Number(i),i%1===0&&i>=0?i:null}function uw(i){return i=Number(i),isNaN(i)?null:i}function cw(i){return i?i.toLowerCase()==="true":!1}function tSe(i){var u,d=(u=i.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(i);return isNaN(d)?null:d}function dw(i){var u=[];i=nn(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 IG(i,u){var d=dw(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=LG(i,"t",v.t)),v.n!==null&&(d=LG(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]?PG(i[d],y,v,oo(u)||""):(y!=="remove"&&y!=="replace"||i.splice(d,1),y!=="add"&&y!=="replace"||i.splice.apply(i,[d,0].concat(A(u.children))))}}function LG(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 PG(i,u,d,v){u==="remove"?delete i.attributes[d]:(u==="add"||u==="replace")&&(i.attributes[d]=v)}function RG(i){var u="",d=i.tagName.split(":");d.length>0&&(u=d[0],u=xP.has(u)?xP.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=RG(v),u.appendChild(d);return u}function CP(i){if(!i)return null;var u={tagName:i.tagName,attributes:bn(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=CP(d),d.parent=u),u.children.push(d);return u}var EP=new Map,xP=new Map;function Ei(i,u,d){this.startTime=i,this.endTime=u,this.payload=d,this.region=new Ha,this.position=null,this.positionAlign=pw,this.size=0,this.textAlign=Dd,this.direction=ub,this.writingMode=Pv,this.lineInterpretation=cb,this.line=null,this.lineHeight="",this.lineAlign=Rv,this.displayAlign=lb,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=FG,this.fontStyle=IP,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 MG(i,u){return i=new Ei(i,u,""),i.lineBreak=!0,i}Ei.prototype.clone=function(){var i=new Ei(0,0,""),u;for(u in this)i[u]=this[u],Array.isArray(i[u])&&(i[u]=i[u].slice());return i};function fw(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(!qe(i.nestedCues,u.nestedCues,fw))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(!qe(i[d],u[d]))return!1}else if(i[d]!=u[d])return!1}return!0}function hw(i,u){u=u===void 0?new Map:u;var d=i.payload;if(d.includes("<")){u.size===0&&DG(u);var v=d;d=[];for(var y=-1,w=0;w"&&y>0&&(y=v.substr(y,w-y),y.match(rSe)&&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(N===-1){d=w;break e}if((N=w.substring(P+1,N))&&N=="v"){v=!0;var V=null;if(y.length&&(V=y[y.length-1]),V){if(V===N)d+="/"+N+">";else{if(!V.startsWith("v")){d+=w[P];continue}d+="/"+V+">"}P+=N.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=nSe(d),i.payload="",v=""+d.replace(/\n/g,"
")+"
";try{var W=Qr(v,"span")}catch{}if(W)if(W=W.children,W.length!=1||W[0].tagName)for(W=_(W),d=W.next();!d.done;d=W.next())OG(d.value,i,u);else i.payload=nn(d);else i.payload=nn(d)}else i.payload=nn(d)}function DG(i){for(var u=_(Object.entries(NG)),d=u.next();!d.done;d=u.next()){var v=_(d.value);d=v.next().value,v=v.next().value;var y=new Ei(0,0,"");y.color=v,i.set("."+d,y)}for(u=_(Object.entries(BG)),d=u.next();!d.done;d=u.next())v=_(d.value),d=v.next().value,v=v.next().value,y=new Ei(0,0,""),y.backgroundColor=v,i.set("."+d,y)}function nSe(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 OG(i,u,d){var v=u.clone();if(v.nestedCues=[],v.payload="",v.rubyTag="",v.line=null,v.region=new Ha,v.position=null,v.size=0,v.textAlign=Dd,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=MG(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(Lf);break;case"font":(w=i.attributes.color)&&(v.color=w);break;case"div":if(w=i.attributes.time,!w)break;(w=xt(w))&&(v.startTime=w);break;case"ruby":case"rp":case"rt":v.rubyTag=w}}if(y=i.children,Iu(i)||y.length==1&&Iu(y[0]))for(d=dr(i).split(` `),i=!0,d=_(d),y=d.next();!y.done;y=d.next())y=y.value,i||(i=MG(v.startTime,v.endTime),u.nestedCues.push(i)),y.length>0&&(i=v.clone(),i.payload=nn(y),u.nestedCues.push(i)),i=!1;else for(u.nestedCues.push(v),u=_(y),i=u.next();!i.done;i=u.next())OG(i.value,v,d)}function ab(i,u){return i&&i.length>0?i:u}Ge("shaka.text.Cue",Ei),Ei.parseCuePayload=hw,Ei.equal=fw,Ei.prototype.clone=Ei.prototype.clone;var pw="auto";Ei.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:pw};var Dd="center",TP={LEFT:"left",RIGHT:"right",CENTER:Dd,START:"start",END:"end"};Ei.textAlign=TP;var lb="after",$G={BEFORE:"before",CENTER:"center",AFTER:lb};Ei.displayAlign=$G;var ub="ltr";Ei.direction={HORIZONTAL_LEFT_TO_RIGHT:ub,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Pv="horizontal-tb";Ei.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Pv,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var cb=0;Ei.lineInterpretation={LINE_NUMBER:cb,PERCENTAGE:1};var Rv="start",AP={CENTER:"center",START:Rv,END:"end"};Ei.lineAlign=AP;var NG={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Ei.defaultTextColor=NG;var BG={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Ei.defaultTextBackgroundColor=BG;var FG=400,Gg=700;Ei.fontWeight={NORMAL:FG,BOLD:Gg};var IP="normal",Kg="italic",jG={NORMAL:IP,ITALIC:Kg,OBLIQUE:"oblique"};Ei.fontStyle=jG;var Lf="underline";Ei.textDecoration={UNDERLINE:Lf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var rSe=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function Yh(){}Yh.prototype.destroy=function(){};function Pf(i,u,d){LP.set(i.toLowerCase().split(";")[0]+"-"+d,{priority:d,yf:u})}function qg(i,u){for(var d=i.toLowerCase().split(";")[0],v=_([UG,RP,PP,Xh]),y=v.next();!y.done;y=v.next())if(y=LP.get(d+"-"+y.value)){var w=y.yf(),T=w.isSupported(i,u);if(w.destroy(),T)return y.yf}return null}Ge("shaka.transmuxer.TransmuxerEngine",Yh),Yh.findTransmuxer=qg,Yh.unregisterTransmuxer=function(i,u){LP.delete(i.toLowerCase().split(";")[0]+"-"+u)},Yh.registerTransmuxer=Pf,Yh.prototype.destroy=Yh.prototype.destroy;var LP=new Map,Xh=1,PP=2,RP=3,UG=4;Yh.PluginPriority={FALLBACK:Xh,PREFERRED_SECONDARY:PP,PREFERRED:RP,APPLICATION:UG};function MP(){}function co(i,u){var d=i;return u&&!Rf.includes(i)&&(d+='; codecs="'+u+'"'),d}function vw(i,u){return u&&(i+='; codecs="'+u+'"'),i}function DP(i,u,d){var v=co(i,u);return u=vw(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 Gs(i){var u=VG(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 Zh(i){var u=[];i=_(i.split(","));for(var d=i.next();!d.done;d=i.next())d=VG(d.value),u.push(d[0]);return u.sort().join(",")}function _l(i){return i.split(";")[0]}function Wa(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 VG(i){i=i.split(".");var u=i[0];return i.shift(),[u,i.join(".")]}Ge("shaka.util.MimeUtils",MP),MP.getFullTypeWithAllCodecs=vw,MP.getFullType=co,new Map().set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var Rf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Mf(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 Rs(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"?!!Tu:!1}Mf.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()};function iSe(i,u,d,v,y){var w,T,P,N,V,W,q;return ae(function(ne){if(ne.g==1)return L(ne,Promise.resolve(),2);if(!i.i||!i.l)return ne.return();if(d==null||v==null)return i.i.parseInit(Le(u)),ne.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,[]),N=_(P),V=N.next();!V.done;V=N.next())W=V.value,i.B(W,y||null,T);q=P.filter(function(ue){return ue.startTime>=i.m&&ue.startTime=u)return y.return();d&&aSe(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)),WG(v)),B(y)})};function oSe(i,u,d){i.m=u,i.o=d}function zG(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 HG(i,u,d){u.startTime+=d,u.endTime+=d,u=_(u.nestedCues);for(var v=u.next();!v.done;v=u.next())HG(i,v.value,d)}function sSe(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,[]),HG(i,w,d),w.startTime>=i.m&&w.startTime=d}),i.j.set(y,w)}}function WG(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)))}Ge("shaka.text.TextEngine",Mf),Mf.prototype.destroy=Mf.prototype.destroy,Mf.findParser=hb,Mf.unregisterParser=function(i){vb.delete(i)},Mf.registerParser=Rs;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 ar(i){this.h=i,this.g=null}ar.prototype.Jb=function(){return this.stop(),this.h(),this},ar.prototype.ia=function(i){var u=this;return this.stop(),this.g=new mb(function(){u.h()}).ia(i),this},ar.prototype.Ea=function(i){var u=this;return this.stop(),this.g=new mb(function(){u.g.ia(i),u.h()}).ia(i),this},ar.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},Ge("shaka.util.Timer",ar),ar.prototype.stop=ar.prototype.stop,ar.prototype.tickEvery=ar.prototype.Ea,ar.prototype.tickAfter=ar.prototype.ia,ar.prototype.tickNow=ar.prototype.Jb;function lSe(i,u){return i.concat(u)}function uSe(){}function Jh(i){return i!=null}function mw(i,u){return Promise.race([u,new Promise(function(d,v){new ar(v).ia(i)})])}function cc(){}function Yg(i,u){return i=Fr(i),u=Fr(u),i.split("-")[0]==u.split("-")[0]}function gb(i,u){return i=Fr(i),u=Fr(u),i=i.split("-"),u=u.split("-"),i[0]==u[0]&&i.length==1&&u.length==2}function OP(i,u){return i=Fr(i),u=Fr(u),i=i.split("-"),u=u.split("-"),i.length==2&&u.length==2&&i[0]==u[0]}function Fr(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=GG.get(u)||u,d=d.toUpperCase(),(d?u+"-"+d:u)+(i?"-"+i:"")}function Mv(i,u){return i=Fr(i),u=Fr(u),u==i?4:gb(u,i)?3:OP(u,i)?2:gb(i,u)?1:0}function gw(i){var u=i.indexOf("-");return i=u>=0?i.substring(0,u):i,i=i.toLowerCase(),i=GG.get(i)||i}function $P(i){return i.language?Fr(i.language):i.audio&&i.audio.language?Fr(i.audio.language):i.video&&i.video.language?Fr(i.video.language):"und"}function yw(i,u){i=Fr(i);var d=new Set;u=_(u);for(var v=u.next();!v.done;v=u.next())d.add(Fr(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,OP(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}Ge("shaka.util.LanguageUtils",cc),cc.findClosestLocale=yw,cc.getLocaleForVariant=$P,cc.getLocaleForText=function(i){return Fr(i.language||"und")},cc.getBase=gw,cc.relatedness=Mv,cc.areSiblings=function(i,u){var d=gw(i),v=gw(u);return i!=d&&u!=v&&d==v},cc.normalize=Fr,cc.isSiblingOf=OP,cc.isParentOf=gb,cc.areLanguageCompatible=Yg,cc.areLocaleCompatible=function(i,u){return i=Fr(i),u=Fr(u),i==u};var GG=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 KG(){}function qG(i,u,d,v,y){function w(De){var Ae=String(De.width||"")+String(De.height||"")+String(Math.round(De.frameRate||0))+(De.hdr||"")+De.fastSwitching;return De.dependencyStream&&(Ae+=De.dependencyStream.baseOriginalId||""),De.roles&&(Ae+=De.roles.sort().join("_")),Ae}function T(De){var Ae=De.language+(De.channelsCount||0)+(De.audioSamplingRate||0)+De.roles.join(",")+De.label+De.groupId+De.fastSwitching;return De.dependencyStream&&(Ae+=De.dependencyStream.baseOriginalId||""),Ae}if(y.length){var P=i.textStreams;y=_(y);for(var N=y.next(),V={};!N.done;V={Bh:void 0},N=y.next())if(V.Bh=N.value,N=P.filter((function(De){return function(Ae){return!!(Ae.codecs.startsWith(De.Bh)||Ae.mimeType.startsWith(De.Bh))}})(V)),N.length){P=N;break}i.textStreams=P}if(P=i.variants,(u.length||d.length)&&(P=cSe(P,u,d)),v.length){for(u=new ht,d=_(P),P=d.next();!P.done;P=d.next())P=P.value,u.push(String(P.video.width||0),P);var W=[];u.forEach(function(De,Ae){De=0;var He=[];Ae=_(Ae);for(var it=Ae.next(),gt={};!it.done;gt={Tf:void 0},it=Ae.next())gt.Tf=it.value,it=v.filter((function(Je){return function(Ue){return Je.Tf.decodingInfos[0][Ue]}})(gt)).length,it>De?(De=it,He=[gt.Tf]):it==De&&He.push(gt.Tf);W.push.apply(W,A(He))}),P=W}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(De,Ae){return De.bandwidth-Ae.bandwidth});var q=[];for(d=new Map,P=_(P),y=P.next();!y.done;y=P.next()){if(y=y.value,N=T(y),V=d.get(N)||[],V.length){var ne=V[V.length-1],ue=Gs(ne.codecs),fe=Gs(y.codecs);ue!=fe||y.bandwidth&&ne.bandwidth&&!(y.bandwidth>ne.bandwidth)||(V.push(y),q.push(y.id))}else V.push(y),q.push(y.id);d.set(N,V)}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(De,Ae){if(!De.bandwidth||!Ae.bandwidth||De.bandwidth==Ae.bandwidth){if(De.codecs&&Ae.codecs&&De.codecs!=Ae.codecs&&De.width==Ae.width){var He=Gs(De.codecs),it=Gs(Ae.codecs);if(He!=it)return(me[He]||1)-(me[it]||1)}return De.width-Ae.width}return De.bandwidth-Ae.bandwidth}),u=ic();var ge=[];for(d=new Map,P=_(P),y=P.next();!y.done;y=P.next()){if(y=y.value,N=w(y),V=d.get(N)||[],V.length){if(ne=V[V.length-1],!u&&(ue=Gs(ne.codecs),fe=Gs(y.codecs),ue!==fe))continue;ue=Gs(ne.codecs),fe=Gs(y.codecs),ue!=fe||y.bandwidth&&ne.bandwidth&&!(y.bandwidth>ne.bandwidth)||(V.push(y),ge.push(y.id))}else V.push(y),ge.push(y.id);d.set(N,V)}i.variants=i.variants.filter(function(De){var Ae=De.audio;return De=De.video,!(Ae&&!q.includes(Ae.id)||De&&!ge.includes(De.id))})}function cSe(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 dSe(i,u,d){i.variants=i.variants.filter(function(v){return bw(v,u,d)})}function bw(i,u,d){function v(P,N,V){return P>=N&&P<=V}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 fSe(i,u,d,v){return d=d===void 0?[]:d,v=v===void 0?{}:v,ae(function(y){return y.g==1?L(y,YG(i,u,u.offlineSessionIds.length>0,d,v),2):(mSe(u),L(y,gSe(u),0))})}function YG(i,u,d,v,y){var w,T;return ae(function(P){if(P.g==1)return Pe().Ui()&&hSe(u.variants),L(P,NP(u.variants,d,!1,v),2);w=null,i&&(T=i.g)&&(w=T.keySystem),u.variants=u.variants.filter(function(N){var V=pSe(N,w,y);if(!V){var W=[];N.audio&&W.push(nK(N.audio)),N.video&&W.push(nK(N.video))}return V}),B(P)})}function hSe(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 pSe(i,u,d){if(!i.decodingInfos.some(function(N){return!(!N.supported||u&&(N=N.keySystemAccess)&&(d[N.keySystem]||N.keySystem)!=u)}))return!1;var v=Pe(),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)&&!bl(y)?!1:(i=i.audio,!(v&&i&&i.encrypted&&i.codecs.toLowerCase().includes("opus")||i&&i.dependencyStream))}function XG(i,u){var d,v,y,w,T,P,N;return ae(function(V){if(V.g==1){for(d=function(W,q){if(W){var ne=bn(W);return ne.supported=W.supported&&q.supported,ne.powerEfficient=W.powerEfficient&&q.powerEfficient,ne.smooth=W.smooth&&q.smooth,q.keySystemAccess&&!ne.keySystemAccess&&(ne.keySystemAccess=q.keySystemAccess),ne}return q},v=null,y=[],w=_(u),T=w.next(),P={};!T.done;P={cache:void 0,Pe:void 0},T=w.next())N=T.value,P.Pe=zn(N),P.cache=ww,P.cache.has(P.Pe)?v=d(v,P.cache.get(P.Pe)):y.push(vSe(N).then((function(W){return function(q){var ne=null;q=_(q||[]);for(var ue=q.next();!ue.done;ue=q.next())ne=d(ne,ue.value);ne&&(W.cache.set(W.Pe,ne),v=d(v,ne))}})(P)));return L(V,Promise.all(y),2)}v&&i.decodingInfos.push(v),B(V)})}function vSe(i){var u=[""];i.video&&(u=Wa(i.video.contentType).split(","));var d=[""];i.audio&&(d=Wa(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=on(i),i.video&&(P.Qc.video.contentType=co(_l(P.Qc.video.contentType),y)),i.audio&&(P.Qc.audio.contentType=co(_l(P.Qc.audio.contentType),T)),v.push(new Promise((function(N){return function(V,W){(Pe().Ua()=="MOBILE"?mw(5,navigator.mediaCapabilities.decodingInfo(N.Qc)):navigator.mediaCapabilities.decodingInfo(N.Qc)).then(function(q){V(q)}).catch(W)}})(P)))}return Promise.all(v).catch(function(){return JSON.stringify(i),null})}function NP(i,u,d,v){var y,w,T,P,N,V,W,q,ne,ue,fe,me,ge,De,Ae,He,it,gt;return ae(function(Je){switch(Je.g){case 1:if(i.some(function(Ue){return Ue.decodingInfos.length}))return Je.return();y=_(v),w=y.next(),T={};case 2:if(w.done){Je.A(4);break}T.Ci=w.value,P=!1,N=_(i),V=N.next();case 5:if(V.done){Je.A(7);break}W=V.value,q=ZG(W,u,d).filter((function(Ue){return function(dt){return dt=dt[0],(dt.keySystemConfiguration&&dt.keySystemConfiguration.keySystem)===Ue.Ci}})(T)),ne=_(q),ue=ne.next();case 8:if(ue.done){Je.A(10);break}return fe=ue.value,L(Je,XG(W,fe),9);case 9:ue=ne.next(),Je.A(8);break;case 10:W.decodingInfos.some(function(Ue){return Ue.supported})&&(P=!0),V=N.next(),Je.A(5);break;case 7:if(P)return Je.return();T={Ci:void 0},w=y.next(),Je.A(2);break;case 4:me=_(i),ge=me.next();case 12:if(ge.done){Je.A(0);break}De=ge.value,Ae=ZG(De,u,d).filter(function(Ue){return Ue=Ue[0],Ue=Ue.keySystemConfiguration&&Ue.keySystemConfiguration.keySystem,!Ue||!v.includes(Ue)}),He=_(Ae),it=He.next();case 15:if(it.done){ge=me.next(),Je.A(12);break}return gt=it.value,L(Je,XG(De,gt),16);case 16:it=He.next(),Je.A(15)}})}function ZG(i,u,d){var v=i.audio,y=i.video,w=[],T=[];if(y)for(var P=_(y.fullMimeTypes),N=P.next();!N.done;N=P.next()){N=N.value;var V=Wa(N);if(V.includes(",")&&!v){var W=V.split(","),q=_l(N);V=ai("video",W),W=ai("audio",W),W=yb(W,q),q=DP(q,W,"audio"),T.push({contentType:q,channels:2,bitrate:i.bandwidth||1,samplerate:1,spatialRendering:!1})}if(V=JG(V),N={contentType:DP(_l(N),V,"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":N.transferFunction="pq";break;case"HLG":N.transferFunction="hlg"}y.colorGamut&&(N.colorGamut=y.colorGamut),w.push(N)}if(v)for(P=_(v.fullMimeTypes),N=P.next();!N.done;N=P.next())V=N.value,N=_l(V),V=yb(Wa(V),N),N=DP(N,V,"audio"),T.push({contentType:N,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),N=w.next();!N.done;N=w.next())for(N=N.value,V=_(T),q=V.next();!q.done;q=V.next())q=q.value,W={type:d?"file":"media-source"},N&&(W.video=N),q&&(W.audio=q),P.push(W);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()),N=w.next();!N.done;N=w.next()){for(N=N.value,q=d.get(N),V=new Map,q=_(q),W=q.next();!W.done;W=q.next()){W=W.value;var ne=W.videoRobustness+","+W.audioRobustness;V.get(ne)||V.set(ne,[]),V.get(ne).push(W)}for(V=_(V.values()),q=V.next();!q.done;q=V.next()){q=q.value,W=[],ne=_(P);for(var ue=ne.next();!ue.done;ue=ne.next()){ue=Object.assign({},ue.value);for(var fe={keySystem:N,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 De=new Set,Ae=_(ge.initData),He=Ae.next();!He.done;He=Ae.next())De.add(He.value.initDataType);fe.initDataType=ge.initData[0].initDataType}ge.distinctiveIdentifierRequired&&(fe.distinctiveIdentifier="required"),ge.persistentStateRequired&&(fe.persistentState="required"),ge.sessionType&&(fe.sessionTypes=[ge.sessionType]),v&&(fe.audio?(ge.encryptionScheme&&(fe.audio.encryptionScheme=fe.audio.encryptionScheme||ge.encryptionScheme),fe.audio.robustness=fe.audio.robustness||ge.audioRobustness):(fe.audio={robustness:ge.audioRobustness},ge.encryptionScheme&&(fe.audio.encryptionScheme=ge.encryptionScheme)),fe.audio.robustness==""&&delete fe.audio.robustness),y&&(fe.video?(ge.encryptionScheme&&(fe.video.encryptionScheme=fe.video.encryptionScheme||ge.encryptionScheme),fe.video.robustness=fe.video.robustness||ge.videoRobustness):(fe.video={robustness:ge.videoRobustness},ge.encryptionScheme&&(fe.video.encryptionScheme=ge.encryptionScheme)),fe.video.robustness==""&&delete fe.video.robustness)}ue.keySystemConfiguration=fe,W.push(ue)}i.push(W)}}return i}function yb(i,u){var d=Pe();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 JG(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 mSe(i){i.textStreams=i.textStreams.filter(function(u){return u=co(u.mimeType,u.codecs),pb(u)})}function gSe(i){var u,d,v,y,w,T,P;return ae(function(N){switch(N.g){case 1:u=[],d=_(i.imageStreams),v=d.next();case 2:if(v.done){N.A(4);break}if(y=v.value,w=y.mimeType,w=="application/mp4"&&y.codecs=="mjpg"&&(w="image/jpg"),Cw.has(w)){N.A(5);break}if(T=SSe.get(w),!T){Cw.set(w,!1),N.A(5);break}return L(N,ySe(T),7);case 7:P=N.h,Cw.set(w,P);case 5:Cw.get(w)&&u.push(y),v=d.next(),N.A(2);break;case 4:i.imageStreams=u,B(N)}})}function ySe(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 Dv(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,N=[];d&&N.push(d.mimeType),u&&N.push(u.mimeType),N=N[0]||null;var V=[];u&&V.push(u.kind),d&&V.push(d.kind),V=V[0]||null;var W=new Set;if(u)for(var q=_(u.roles),ne=q.next();!ne.done;ne=q.next())W.add(ne.value);if(d)for(q=_(d.roles),ne=q.next();!ne.done;ne=q.next())W.add(ne.value);if(i={id:i.id,active:!1,type:"variant",bandwidth:i.bandwidth,language:i.language,label:null,videoLabel:null,kind:V,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:N,audioMimeType:v,videoMimeType:y,codecs:"",audioCodec:w,videoCodec:T,primary:i.primary,roles:Array.from(W),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=ai("video",y),i.audioCodec=ai("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 Ov(i){return{id:i.id,active:!1,type:yn,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 BP(i){var u=i.width||null,d=i.height||null,v=null;i.segmentIndex&&(v=qc(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 _w(i){return i.__shaka_id||(i.__shaka_id=_Se++),i.__shaka_id}function QG(i){var u={id:_w(i),active:i.mode!="disabled",type:yn,bandwidth:0,language:Fr(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 Sw(i,u){var d=i?i.language:null;if(d={id:_w(i||u),active:i?i.enabled:u.selected,type:"variant",bandwidth:0,language:Fr(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 kw(i){return i.filter(function(u){return bb(u)})}function Xg(i,u,d,v){var y=i,w=i.filter(function(N){return N.primary});w.length&&(y=w);var T=y.length?y[0].language:"";if(y=y.filter(function(N){return N.language==T}),u){var P=yw(Fr(u),i.map(function(N){return N.language}));P&&(y=i.filter(function(N){return Fr(N.language)==P}))}if(y=y.filter(function(N){return N.forced==v}),d){if(i=eK(y,d),i.length)return i}else if(i=y.filter(function(N){return N.roles.length==0}),i.length)return i;return i=y.map(function(N){return N.roles}).reduce(lSe,[]),i.length?eK(y,i[0]):y}function eK(i,u){return i.filter(function(d){return d.roles.includes(u)})}function bSe(i){var u=[];return i.audio&&u.push(i.audio),i.video&&u.push(i.video),u}function tK(i,u){u.length&&(u=u.filter(function(d){return Gs(i.codecs)==Gs(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 nK(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 rK(i,u,d){if(d.autoShowText==0)return!1;if(d.autoShowText==1)return!0;var v=Fr(d.preferredTextLanguage);return u=Fr(u.language),d.autoShowText==2?Yg(u,v):d.autoShowText==3?i?(i=Fr(i.language),Yg(u,v)&&!Yg(i,u)):!1:(rt("Invalid autoShowText setting!"),!1)}function iK(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?_l(d):"",codecs:d?Wa(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(co(v.mimeType,v.codecs)),d.startsWith("audio/")?(v.type="audio",u.audio=v):u.video=v}return u}Ge("shaka.util.StreamUtils",KG),KG.meetsRestrictions=bw;var ww=new Map,_Se=0,Cw=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),SSe=new Map().set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Vi(){var i=this;this.H=null,this.B=!1,this.u=new Re,this.j=new ze,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(i.B&&i.g.useNetworkInformation){i.u=new Re,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 ar(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=Vi.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(V){return V&&!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)}),y.length||(y=this.o),v=y,i&&y.length!=this.o.length&&(v=this.o.filter(function(V){return V&&!!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)})),i=FP(this,this.g.restrictions,v,1/0,1/0),u!=1/0||d!=1/0){for(i=kSe(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=FP(this,this.g.restrictions,v,u,d)}for(u=this.getBandwidthEstimate(),v.length&&!i.length&&(i=FP(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&&oK(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),oK(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 rn(i,this.o)?!1:(this.o=i,!0)},l.playbackRateChanged=function(i){this.I=i},l.setMediaElement=function(i){function u(){d.l.ia(wSe)}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 oK(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 ar(y).ia(d/1e3)}),2))}i.h*=i.m,B(v)})}function dc(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function ei(){var i,u,d=new Promise(function(v,y){i=v,u=y});return d.resolve=i,d.reject=u,d}ei.prototype.resolve=function(){},ei.prototype.reject=function(){};function fo(i,u){this.promise=i,this.i=u,this.g=null}function Qh(i){return new fo(Promise.reject(i),function(){return Promise.resolve()})}function UP(){var i=Promise.reject(new Ee(2,7,7001));return i.catch(function(){}),new fo(i,function(){return Promise.resolve()})}function Jg(i){return new fo(Promise.resolve(i),function(){return Promise.resolve()})}function cK(i){return new fo(i,function(){return i.catch(function(){})})}fo.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function dK(i){return new fo(Promise.all(i.map(function(u){return u.promise})),function(){return Promise.all(i.map(function(u){return u.abort()}))})}fo.prototype.finally=function(i){return this.promise.then(function(){return i(!0)},function(){return i(!1)}),this},fo.prototype.Xa=function(i,u){function d(P){return function(N){if(y.g&&P)w.reject(T);else{var V=P?i:u;V?v=CSe(V,N,w):(P?w.resolve:w.reject)(N)}}}function v(){return w.reject(T),y.abort()}var y=this,w=new ei;w.catch(function(){});var T=new Ee(2,7,7001);return this.promise.then(d(!0),d(!1)),new fo(w,function(){return v()})};function CSe(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(fo.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),Ge("shaka.util.AbortableOperation",fo),fo.prototype.chain=fo.prototype.Xa,fo.prototype.finally=fo.prototype.finally,fo.all=dK,fo.prototype.abort=fo.prototype.abort,fo.notAbortable=cK,fo.completed=Jg,fo.aborted=UP,fo.failed=Qh;function vn(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 fK(i){var u=new vn(i.type),d;for(d in i)Object.defineProperty(u,d,{value:i[d],writable:!0,enumerable:!0});return u}vn.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},vn.prototype.stopImmediatePropagation=function(){this.g=!0},vn.prototype.stopPropagation=function(){},Ge("shaka.util.FakeEvent",vn);var Aw={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 jr(){this.ab=new ht,this.Fe=this}jr.prototype.addEventListener=function(i,u){this.ab&&this.ab.push(i,u)},jr.prototype.removeEventListener=function(i,u){this.ab&&this.ab.remove(i,u)},jr.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},jr.prototype.release=function(){this.ab=null};function Qg(){this.g=[]}function $v(i,u){i.g.push(u.finally(function(){Jt(i.g,u)}))}Qg.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 Ai(i,u,d,v,y,w,T){jr.call(this),this.i=null,this.j=!1,this.u=new Qg,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}E(Ai,jr),l=Ai.prototype,l.configure=function(i){this.i=i};function Df(i,u,d,v){v=v===void 0?!1:v,d=d||gK;var y=Lw.get(i);(!y||d>=y.priority)&&Lw.set(i,{priority:d,yf:u,Fk:v})}function hK(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 Po(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(),jr.prototype.release.call(this),this.u.destroy()},l.request=function(i,u,d){var v=this,y=new mK;if(this.j){var w=Promise.reject(new Ee(2,7,7001));return w.catch(function(){}),new Iw(w,function(){return Promise.resolve()},y)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?on(u.retryParameters):dc(),u.uris=on(u.uris),w=ESe(this,i,u,d);var T=w.Xa(function(){return pK(v,i,u,d,new lK(u.retryParameters,!1),0,null,y)}),P=T.Xa(function(ne){return xSe(v,i,ne,d)}),N=Date.now(),V=0;w.promise.then(function(){V=Date.now()-N},function(){});var W=0;T.promise.then(function(){W=Date.now()},function(){});var q=P.Xa(function(ne){var ue=Date.now()-W,fe=ne.response;return fe.timeMs+=V,fe.timeMs+=ue,ne.fk||!v.o||fe.fromCache||u.method=="HEAD"||i!=Pu||v.o(fe.timeMs,fe.data.byteLength,vK(d),u,d),v.G&&v.G(i,fe,d),fe},function(ne){throw ne&&(ne.severity=2),ne});return w=new Iw(q.promise,function(){return q.abort()},y),$v(this.u,w),w};function ESe(i,u,d,v){function y(P){w=w.Xa(function(){return d.body&&(d.body=Se(d.body)),P(u,d,v)})}var w=Jg(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 pK(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 N=new Yr(d.uris[w]),V=N.bc,W=!1;V||(V=location.protocol,V=V.slice(0,-1),io(N,V),d.uris[w]=N.toString()),V=V.toLowerCase();var q=(V=Lw.get(V))?V.yf:null;if(!q)return Qh(new Ee(2,1,1e3,N));var ne=V.Fk;(N=i.l.get(N.Db))&&(d.headers["common-access-token"]=N);var ue=null,fe=null,me=!1,ge=!1,De;return cK(uK(y)).Xa(function(){if(i.j)return UP();De=Date.now();var Ae=0;d.requestStartTime=Date.now();var He=q(d.uris[w],d,u,function(Je,Ue,dt){ue&&ue.stop(),fe&&fe.ia(gt/1e3),i.o&&u==Pu&&(Ae++,d.packetNumber=Ae,i.o(Je,Ue,vK(v),d,v),W=!0,P.g=dt)},function(Je){ge=!0,d.timeToFirstByte=Date.now()-d.requestStartTime,i.m&&i.m(Je,d,u)},{minBytesForProgressEvents:i.i.minBytesForProgressEvents});if(!ne)return He;var it=d.retryParameters.connectionTimeout;it&&(ue=new ar(function(){me=!0,He.abort()}),ue.ia(it/1e3));var gt=d.retryParameters.stallTimeout;return gt&&(fe=new ar(function(){me=!0,He.abort()})),He}).Xa(function(Ae){ue&&ue.stop(),fe&&fe.stop(),Ae.timeMs==null&&(Ae.timeMs=Date.now()-De);var He=Ae.headers["common-access-token"];if(He){var it=new Yr(Ae.uri);i.l.set(it.Db,He)}return He={response:Ae,fk:W},!ge&&i.m&&i.m(Ae.headers,d,u),i.B&&i.B(d,Ae),He},function(Ae){if(ue&&ue.stop(),fe&&fe.stop(),i.C){var He=null,it=0;Ae instanceof Ee&&(He=Ae,Ae.code==1001&&(it=Ae.data[1])),i.C(d,He,it,me)}if(i.j)return UP();if(me&&(Ae=new Ee(1,1,1003,d.uris[w],u)),Ae instanceof Ee){if(Ae.code==7001)throw Ae;if(Ae.code==1010)throw T;if(Ae.severity==1){if(He=new Map().set("error",Ae),He=new vn("retry",He),He.cancelable=!0,i.dispatchEvent(He),He.defaultPrevented)throw Ae;return w=(w+1)%d.uris.length,pK(i,u,d,v,y,w,Ae,P)}}throw Ae})}function xSe(i,u,d,v){var y=Jg(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 N=d.response;return N.data&&(N.data=Se(N.data)),(0,P.Ji)(u,N,v)}})(T));return y.Xa(function(){return d},function(P){var N=2;if(P instanceof Ee){if(P.code==7001)throw P;N=P.severity}throw new Ee(N,1,1007,P)})}function vK(i){if(i){var u=i.segment;if(i=i.stream,u&&i&&i.fastSwitching&&u.Xc)return!1}return!0}Ge("shaka.net.NetworkingEngine",Ai),Ai.prototype.request=Ai.prototype.request,Ai.prototype.destroy=Ai.prototype.destroy,Ai.makeRequest=Po,Ai.defaultRetryParameters=function(){return dc()},Ai.prototype.clearCommonAccessTokenMap=Ai.prototype.Qh,Ai.prototype.clearAllResponseFilters=Ai.prototype.pj,Ai.prototype.unregisterResponseFilter=Ai.prototype.il,Ai.prototype.registerResponseFilter=Ai.prototype.Jk,Ai.prototype.clearAllRequestFilters=Ai.prototype.oj,Ai.prototype.unregisterRequestFilter=Ai.prototype.hl,Ai.prototype.registerRequestFilter=Ai.prototype.Ik,Ai.unregisterScheme=function(i){Lw.delete(i)},Ai.registerScheme=Df,Ai.prototype.configure=Ai.prototype.configure;function mK(){this.g=0}Ai.NumBytesRemainingClass=mK;function Iw(i,u,d){fo.call(this,i,u),this.h=d}E(Iw,fo),Ai.PendingRequest=Iw;var Pu=1;Ai.RequestType={MANIFEST:0,SEGMENT:Pu,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},Ai.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 gK=3;Ai.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:gK};var Lw=new Map;function e0(i){this.g=!1,this.h=new ei,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 gi(i,u){if(i.g)throw u instanceof Ee&&u.code==7003?u:new Ee(2,7,7003,u)}function VP(i,u){var d=[];i=_(i);for(var v=i.next();!v.done;v=i.next())d.push(u(v.value));return d}function TSe(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 zP(i){var u={};return i.forEach(function(d,v){u[v]=d}),u}function xi(i,u){this.h=nt(i),this.i=u==yK,this.g=0}l=xi.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 Of();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 Of();this.g+=i},l.Ki=function(i){if(this.gthis.h.byteLength)throw Of();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,ot(i)};function Of(){return new Ee(2,3,3e3)}Ge("shaka.util.DataViewReader",xi),xi.prototype.readTerminatedString=xi.prototype.Yc,xi.prototype.seek=xi.prototype.seek,xi.prototype.rewind=xi.prototype.Ki,xi.prototype.skip=xi.prototype.skip,xi.prototype.readBytes=xi.prototype.Tb,xi.prototype.readUint64=xi.prototype.Dd,xi.prototype.readInt32=xi.prototype.Zg,xi.prototype.readUint32=xi.prototype.U,xi.prototype.readUint16=xi.prototype.Ca,xi.prototype.readUint8=xi.prototype.Y,xi.prototype.getLength=xi.prototype.getLength,xi.prototype.getPosition=xi.prototype.Oa,xi.prototype.hasMoreData=xi.prototype.Ia;var yK=1;xi.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:yK};function ti(){this.i=new Map,this.h=new Map,this.g=!1}l=ti.prototype,l.box=function(i,u){return i=bK(i),this.i.set(i,ASe),this.h.set(i,u),this},l.S=function(i,u){return i=bK(i),this.i.set(i,_K),this.h.set(i,u),this},l.stop=function(){this.g=!0},l.parse=function(i,u,d){for(i=new xi(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=Rw(T),N=!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(),N=!0}var V=this.h.get(T);if(V){var W=null,q=null;if(this.i.get(T)==_K){if(v&&u.Oa()+4>u.getLength()){this.g=!0;return}q=u.U(),W=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 xi(u,0),V({name:P,parser:this,partialOkay:d||!1,stopOnPartial:v||!1,version:W,flags:q,reader:u,size:w,start:y+i,has64BitSize:N}))}else u.skip(Math.min(y+w-u.Oa(),u.getLength()-u.Oa()))}};function Jn(i){for(var u=ep(i);i.reader.Ia()&&!i.parser.g;)i.parser.zd(i.start+u,i.reader,i.partialOkay,i.stopOnPartial)}function $f(i){for(var u=ep(i),d=i.reader.U(),v=0;v>24&255,i>>16&255,i>>8&255,i&255)}function ep(i){return 8+(i.has64BitSize?8:0)+(i.flags!=null?4:0)}Ge("shaka.util.Mp4Parser",ti),ti.headerSize=ep,ti.typeToString=Rw,ti.allData=n0,ti.audioSampleEntry=Pw,ti.visualSampleEntry=Sl,ti.sampleDescription=$f,ti.children=Jn,ti.prototype.parseNext=ti.prototype.zd,ti.prototype.parse=ti.prototype.parse,ti.prototype.stop=ti.prototype.stop,ti.prototype.fullBox=ti.prototype.S,ti.prototype.box=ti.prototype.box;var ASe=0,_K=1;function HP(i){var u=this;this.g=[],this.h=[],this.data=[],new ti().box("moov",Jn).box("moof",Jn).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(Cn(v)),d.version>0){v=d.reader.U();for(var y=0;y0&&(w+=4+16*d.size);var T=new Uint8Array(w),P=nt(T),N=0;if(P.setUint32(N,w),N+=4,P.setUint32(N,1886614376),N+=4,v<1?P.setUint32(N,0):P.setUint32(N,16777216),N+=4,T.set(u,N),N+=u.length,v>0)for(P.setUint32(N,d.size),N+=4,u=_(d),d=u.next();!d.done;d=u.next())d=Yn(d.value),T.set(d,N),N+=d.length;return P.setUint32(N,y),T.set(i,N+4),T}function Dw(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 ze,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new ei,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 ar(function(){return FSe(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new ar(function(){USe(u)}),this.m.catch(function(){}),this.l=new e0(function(){return ISe(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=Dw.prototype,l.destroy=function(){return this.l.destroy()};function ISe(i){return ae(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 F(u,4),L(u,i.j.setMediaKeys(null),6);case 6:z(u,5);break;case 4:G(u);case 5:i.j=null;case 3:i.g=null,i.B=null,i.C=new Map,i.h=null,i.u=function(){},i.F=null,i.O=!1,i.I=null,B(u)}})}l.configure=function(i,u){this.h=i,u&&(this.V=u),this.G&&this.T&&this.g&&this.G.Ea(this.h.updateExpirationTime)};function LSe(i,u,d){return i.qa=!0,i.C=new Map,i.R=d,kK(i,u,!1)}function SK(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,kK(i,u,v)}function PSe(i,u,d,v,y,w){var T,P,N,V,W;return ae(function(q){return q.g==1?(T=[],w.length&&T.push(w[0].contentType),y.length&&T.push(y[0].contentType),P=function(ne){return ne=ir(u,ne,null),ne.licenseServerUri=d,ne.serverCertificate=v,ne.persistentStateRequired=!0,ne.sessionType="persistent-license",ne},N=iK(T),N.video&&(V=P(w[0].encryptionScheme||""),N.video.drmInfos.push(V)),N.audio&&(W=P(y[0].encryptionScheme||""),N.audio.drmInfos.push(W)),L(q,NP([N],!0,i.O,[]),2)):(gi(i.l),q.return(xK(i,[N])))})}function kK(i,u,d){var v,y,w,T,P,N,V,W,q,ne,ue,fe,me,ge,De,Ae,He,it;return ae(function(gt){if(gt.g==1){for(RK(i.h.clearKeys,u),v=u.some(function(Je){return!!(Je.video&&Je.video.drmInfos.length||Je.audio&&Je.audio.drmInfos.length)}),y=t0(i.h.servers),w=t0(i.h.advanced||{}),!v&&d&&zSe(u,y),T=new WeakSet,P=_(u),N=P.next();!N.done;N=P.next())for(V=N.value,W=PK(V),q=_(W),ne=q.next();!ne.done;ne=q.next())ue=ne.value,T.has(ue)||(T.add(ue),WSe(ue,y,w,i.h.keySystemsMapping));for(fe=function(Je,Ue){var dt=[];Je=_(Je);for(var mt=Je.next();!mt.done;mt=Je.next()){mt=mt.value;var pt=mt[Ue]||w.has(mt.keySystem)&&w.get(mt.keySystem)[Ue]||"",_t;if((_t=pt=="")&&(_t=(_t=mt.keySystem)?!!_t.match(/^com\.widevine\.alpha/):!1),_t&&(Ue=="audioRobustness"?pt=[i.h.defaultAudioRobustnessForWidevine]:Ue=="videoRobustness"&&(pt=[i.h.defaultVideoRobustnessForWidevine])),typeof pt=="string")dt.push(mt);else if(Array.isArray(pt))for(pt.length===0&&(pt=[""]),pt=_(pt),_t=pt.next();!_t.done;_t=pt.next()){var kt={};dt.push(Object.assign({},mt,(kt[Ue]=_t.value,kt)))}}return dt},me=new WeakSet,ge=_(u),De=ge.next();!De.done;De=ge.next())Ae=De.value,Ae.video&&!me.has(Ae.video)&&(Ae.video.drmInfos=fe(Ae.video.drmInfos,"videoRobustness"),Ae.video.drmInfos=fe(Ae.video.drmInfos,"audioRobustness"),me.add(Ae.video)),Ae.audio&&!me.has(Ae.audio)&&(Ae.audio.drmInfos=fe(Ae.audio.drmInfos,"videoRobustness"),Ae.audio.drmInfos=fe(Ae.audio.drmInfos,"audioRobustness"),me.add(Ae.audio));return L(gt,NP(u,i.R,i.O,i.h.preferredKeySystems),2)}return gi(i.l),He=v||y.size>0,He?(it=xK(i,u),gt.return(v?it:it.catch(function(){}))):(i.T=!0,gt.return(Promise.resolve()))})}function wK(i){var u;return ae(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 gi(i.l),d.return();case 2:return F(d,4),i.I=i.j.setMediaKeys(i.B),L(d,i.I,6);case 6:z(d,5);break;case 4:u=G(d),i.u(new Ee(2,6,6003,u.message));case 5:gi(i.l),B(d)}})}function RSe(i,u){return ae(function(d){if(d.g==1)return L(d,wK(i),2);_b(i,u.initDataType,Le(u.initData)),B(d)})}l.fc=function(i){var u=this,d,v;return ae(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())GP(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=Pe().Rg(d))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?y.A(2):L(y,wK(u),2)):(u.o.Ba(i,"encrypted",function(){u.u(new Ee(2,6,6010))}),y.return());CK(u).catch(function(){}),!v&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(w){return RSe(u,w)}),B(y)})};function MSe(i){var u,d,v,y,w;return ae(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=Po([i.g.serverCertificateUri],i.h.retryParameters),F(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),z(T,4);break;case 3:throw y=G(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():(F(T,6),L(T,i.B.setServerCertificate(i.g.serverCertificate),8));case 8:z(T,0);break;case 6:throw w=G(T),new Ee(2,6,6004,w.message)}})}function DSe(i,u){var d,v,y;return ae(function(w){if(w.g==1)return L(w,AK(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 ei,v.push(y.Kb)),v.push(d.remove()),L(w,Promise.all(v),3)):w.return();i.i.delete(d),B(w)})}function CK(i){var u,d,v,y,w;return ae(function(T){if(T.g==1)return i.C.size?(i.C.forEach(function(P,N){AK(i,N,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&&VSe(i))return T.return(i.m);i.K=!1,i.m=new ei,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(we(d,y.value.initData))return;var w=!1;if(i.C.forEach(function(T){!w&&we(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 ei,i.m.catch(function(){})),NSe(i,u,d,i.g.sessionType)}}function EK(i){return i=i.i.keys(),i=VP(i,function(u){return u.sessionId}),Array.from(i)}l.Gg=function(){var i=this,u=this.i.keys();return u=VP(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 OSe(i){return i.J?i.J:NaN}l.Xe=function(){return zP(this.ma)};function xK(i,u){var d,v,y,w,T,P,N;return ae(function(V){switch(V.g){case 1:if(d=new Map,v=$Se(i,u,d),!v)throw navigator.requestMediaKeySystemAccess?new Ee(2,6,6001):new Ee(2,6,6020);gi(i.l),F(V,2),v.getConfiguration();var W=y=i.h.keySystemsMapping[v.keySystem]||v.keySystem,q=d.get(y),ne=[],ue=[],fe=[],me=[],ge=[],De=new Set,Ae=new Set;HSe(q,ne,ue,me,fe,ge,De,Ae);var He=i.R?"persistent-license":"temporary";for(W={keySystem:W,encryptionScheme:ne[0],licenseServerUri:ue[0],distinctiveIdentifierRequired:q[0].distinctiveIdentifierRequired,persistentStateRequired:q[0].persistentStateRequired,sessionType:q[0].sessionType||He,audioRobustness:q[0].audioRobustness||"",videoRobustness:q[0].videoRobustness||"",serverCertificate:me[0],serverCertificateUri:fe[0],initData:ge,keyIds:De},Ae.size>0&&(W.keySystemUris=Ae),q=_(q),Ae=q.next();!Ae.done;Ae=q.next())Ae=Ae.value,Ae.distinctiveIdentifierRequired&&(W.distinctiveIdentifierRequired=Ae.distinctiveIdentifierRequired),Ae.persistentStateRequired&&(W.persistentStateRequired=Ae.persistentStateRequired);if(i.g=W,!i.g.licenseServerUri)throw new Ee(2,6,6012,i.g.keySystem);return L(V,v.createMediaKeys(),4);case 4:if(w=V.h,gi(i.l),i.B=w,!(i.h.minHdcpVersion!=""&&"getStatusForPolicy"in i.B)){V.A(5);break}return F(V,6),L(V,i.B.getStatusForPolicy({minHdcpVersion:i.h.minHdcpVersion}),8);case 8:if(T=V.h,T!="usable")throw new Ee(2,6,6018);gi(i.l),z(V,5,2);break;case 6:throw P=G(V,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(V,MSe(i),9);case 9:gi(i.l),z(V,0);break;case 2:throw N=G(V),gi(i.l,N),i.g=null,N instanceof Ee?N:new Ee(2,6,6002,N.message)}})}function $Se(i,u,d){for(var v=_(u),y=v.next();!y.done;y=v.next()){y=_(PK(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(ne){return ne.supported&&ne.keySystemAccess!=null&&ne.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 N=P.next();!N.done;N=P.next())if(N=N.value,N.supported&&N.keySystemAccess){var V=N.keySystemAccess.keySystem;if(!v.includes(V)){var W=d.get(V);for(!W&&i.h.keySystemsMapping[V]&&(W=d.get(i.h.keySystemsMapping[V])),V=_(W),W=V.next();!W.done;W=V.next())if(!!W.value.licenseServerUri==w)return N.keySystemAccess}}}return null}function WP(i){kb(i)&&i.m.resolve()}function TK(i,u){new ar(function(){u.loaded=!0,WP(i)}).ia(KSe)}function AK(i,u,d){var v,y,w,T,P,N,V;return ae(function(W){switch(W.g){case 1:try{v=i.B.createSession("persistent-license")}catch(q){return y=new Ee(2,6,6005,q.message),i.u(y),W.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):GP(i,q)}),i.o.D(v,"keystatuseschange",function(q){return IK(i,q)}),w={initData:d.initData,initDataType:d.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},i.i.set(v,w),F(W,2),L(W,v.load(u),4);case 4:return T=W.h,gi(i.l),T||(i.i.delete(v),P=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ee(P,6,6013)),w.loaded=!0),TK(i,w),WP(i),W.return(v);case 2:N=G(W),gi(i.l,N),i.i.delete(v),V=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ee(V,6,6005,N.message)),w.loaded=!0,WP(i);case 3:return W.return(Promise.resolve())}})}function NSe(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):GP(i,w)}),i.o.D(y,"keystatuseschange",function(w){return IK(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&&Vn(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 BSe(i){return ae(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 GP(i,u){var d,v,y,w,T,P,N,V,W,q,ne,ue,fe,me,ge,De;ae(function(Ae){switch(Ae.g){case 1:if(d=u.target,i.h.logLicenseExchange&&Vn(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=Po([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 He=T,it=i.g;try{var gt=Yt(He.body);if(gt){var Je=JSON.parse(gt);Je.type||(Je.type=it.sessionType,He.body=Vt(JSON.stringify(Je)))}}catch{}}if(jP(i.g.keySystem))if(He=Rt(T.body,!0,!0),He.includes("PlayReadyKeyMessage")){for(He=Qr(He,"PlayReadyKeyMessage"),it=ba(He,"HttpHeader"),it=_(it),gt=it.next();!gt.done;gt=it.next())Je=gt.value,gt=ba(Je,"name")[0],Je=ba(Je,"value")[0],T.headers[dr(gt)]=dr(Je);He=ba(He,"Challenge")[0],T.body=rr(dr(He))}else T.headers["Content-Type"]="text/xml; charset=utf-8";return N=Date.now(),F(Ae,2),W=i.F.tc.request(2,T,{isPreload:i.V()}),i.X.push(W),L(Ae,W.promise,4);case 4:V=Ae.h,Jt(i.X,W),z(Ae,3);break;case 2:return q=G(Ae),i.l.g||(ne={sessionId:d.sessionId,sessionType:v.type,initData:v.initData,initDataType:v.initDataType},ue=new Ee(2,6,6007,q,ne),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)))),Ae.return();case 3:return i.l.g?Ae.return():(i.J+=(Date.now()-N)/1e3,i.h.logLicenseExchange&&Vn(V.data),F(Ae,5),L(Ae,d.update(V.data),7));case 7:z(Ae,6);break;case 5:return me=(fe=G(Ae))&&fe.message||String(fe),ge=new Ee(2,6,6008,me),i.u(ge),v&&v.Kb&&v.Kb.reject(ge),Ae.return();case 6:if(i.l.g)return Ae.return();De=new vn("drmsessionupdate"),i.F.onEvent(De),v&&(v.Kb&&v.Kb.resolve(),TK(i,v)),B(Ae)}})}function IK(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=Pe(),jP(i.g.keySystem)&&T.byteLength==16&&P.gh()){P=nt(T);var N=P.getUint32(0,!0),V=P.getUint16(4,!0),W=P.getUint16(6,!0);P.setUint32(0,N,!1),P.setUint16(4,V,!1),P.setUint16(6,W,!1)}w!="status-pending"&&(d.loaded=!0),w=="expired"&&(v=!0),T=Cn(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),LK(u)),kb(i)&&(i.m.resolve(),i.M.ia(qSe))}function FSe(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(zP(d))}function jSe(){var i,u,d,v,y,w,T,P,N,V,W,q,ne,ue,fe,me,ge,De,Ae,He,it,gt,Je,Ue,dt,mt,pt,_t,kt,Ot,$t,Ct;return ae(function(At){if(At.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 At.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"],N={"com.widevine.alpha":T,"com.widevine.alpha.experiment":T,"com.microsoft.playready.recommendation":P},V=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],W=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],q={videoCapabilities:V,audioCapabilities:W,initDataTypes:["cenc","sinf","skd","keyids"]},ne=[null,"cenc","cbcs"],ue=new Map,fe=Pe(),me=function(zt,tn,Hn){var gn,Sr,ur,Vr,fr,Ln,pi,Cr,kr,or,Ri,Li,qi;return ae(function(qr){switch(qr.g){case 1:return F(qr,2),L(qr,tn.createMediaKeys(),5);case 5:gn=qr.h;case 4:z(qr,3);break;case 2:return G(qr),qr.return();case 3:if(ur=(Sr=tn.getConfiguration().sessionTypes)?Sr.includes("persistent-license"):!1,fe.ti()&&(ur=!1),Vr=tn.getConfiguration().videoCapabilities,fr=tn.getConfiguration().audioCapabilities,Ln={persistentState:ur,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},ue.get(zt)?Ln=ue.get(zt):ue.set(zt,Ln),(pi=Vr[0].encryptionScheme)&&!Ln.encryptionSchemes.includes(pi)&&Ln.encryptionSchemes.push(pi),(Cr=Vr[0].robustness)&&!Ln.videoRobustnessLevels.includes(Cr)&&Ln.videoRobustnessLevels.push(Cr),(kr=fr[0].robustness)&&!Ln.audioRobustnessLevels.includes(kr)&&Ln.audioRobustnessLevels.push(kr),!(Hn&&"getStatusForPolicy"in gn)){qr.A(0);break}or=_(w),Ri=or.next();case 7:if(Ri.done){qr.A(0);break}if(Li=Ri.value,Ln.minHdcpVersions.includes(Li)){qr.A(8);break}return L(qr,gn.getStatusForPolicy({minHdcpVersion:Li}),10);case 10:if(qi=qr.h,qi=="usable")Ln.minHdcpVersions.includes(Li)||Ln.minHdcpVersions.push(Li);else{qr.A(0);break}case 8:Ri=or.next(),qr.A(7)}})},ge=function(zt,tn,Hn,gn,Sr){Sr=Sr===void 0?!1:Sr;var ur,Vr,fr,Ln,pi,Cr,kr,or,Ri,Li,qi;return ae(function(qr){switch(qr.g){case 1:for(F(qr,2),ur=on(q),Vr=_(ur.videoCapabilities),fr=Vr.next();!fr.done;fr=Vr.next())Ln=fr.value,Ln.encryptionScheme=tn,Ln.robustness=Hn;for(pi=_(ur.audioCapabilities),Cr=pi.next();!Cr.done;Cr=pi.next())kr=Cr.value,kr.encryptionScheme=tn,kr.robustness=gn;return or=on(ur),or.persistentState="required",or.sessionTypes=["persistent-license"],Ri=[or,ur],qi=Pe(),qi.Ua()=="MOBILE"?L(qr,mw(5,navigator.requestMediaKeySystemAccess(zt,Ri)),7):L(qr,navigator.requestMediaKeySystemAccess(zt,Ri),6);case 6:Li=qr.h,qr.A(5);break;case 7:Li=qr.h;case 5:return L(qr,me(zt,Li,Sr),8);case 8:z(qr,0);break;case 2:G(qr),B(qr)}})},De=_(i),Ae=De.next();!Ae.done;Ae=De.next())He=Ae.value,ue.set(He,null);for(it=function(zt){return!(Pe().Ha()==="WEBKIT"&&zt==="org.w3.clearkey")},gt=[],Je=_(i),Ue=Je.next();!Ue.done;Ue=Je.next())if(dt=Ue.value,it(dt)){for(mt=!0,pt=_(ne),_t=pt.next();!_t.done;_t=pt.next())kt=_t.value,gt.push(ge(dt,kt,"","",mt)),mt=!1;for(Ot=_(N[dt]||[]),$t=Ot.next();!$t.done;$t=Ot.next())Ct=$t.value,gt.push(ge(dt,null,Ct,"")),gt.push(ge(dt,null,"",Ct))}return L(At,Promise.all(gt),2)}return At.return(zP(ue))})}function LK(i){return ae(function(u){if(u.g==1)return F(u,2),L(u,mw(GSe,Promise.all([i.close().catch(function(){}),i.closed])),4);if(u.g!=2)return z(u,0);G(u),B(u)})}function Sb(i){var u;return ae(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 ae(function(T){if(T.g==1)return F(T,2),i.qa||i.C.has(y.sessionId)||w.type!=="persistent-license"||i.h.persistentSessionOnlinePlayback?L(T,LK(y),5):L(T,y.remove(),5);if(T.g!=2)return z(T,0);G(T),B(T)})})),0)})}function PK(i){return(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[])}function USe(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(),TSe(i,function(u){return u.loaded})}function VSe(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 zSe(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 HSe(i,u,d,v,y,w,T,P){var N=[];i=_(i);for(var V=i.next(),W={};!V.done;W={Ka:void 0},V=i.next()){if(W.Ka=V.value,u.includes(W.Ka.encryptionScheme)||u.push(W.Ka.encryptionScheme),W.Ka.keySystem=="org.w3.clearkey"&&W.Ka.licenseServerUri.startsWith("data:application/json;base64,")?N.includes(W.Ka.licenseServerUri)||N.push(W.Ka.licenseServerUri):d.includes(W.Ka.licenseServerUri)||d.push(W.Ka.licenseServerUri),y.includes(W.Ka.serverCertificateUri)||y.push(W.Ka.serverCertificateUri),W.Ka.serverCertificate&&(v.some((function(ue){return function(fe){return we(fe,ue.Ka.serverCertificate)}})(W))||v.push(W.Ka.serverCertificate)),W.Ka.initData){V=_(W.Ka.initData);for(var q=V.next(),ne={};!q.done;ne={Lg:void 0},q=V.next())ne.Lg=q.value,w.some((function(ue){return function(fe){var me=ue.Lg;return fe.keyId&&fe.keyId==me.keyId?!0:fe.initDataType==me.initDataType&&we(fe.initData,me.initData)}})(ne))||w.push(ne.Lg)}if(W.Ka.keyIds)for(V=_(W.Ka.keyIds),q=V.next();!q.done;q=V.next())T.add(q.value);if(W.Ka.keySystemUris&&P)for(W=_(W.Ka.keySystemUris),V=W.next();!V.done;V=W.next())P.add(V.value)}if(N.length==1)d.push(N[0]);else if(N.length>0){for(u=[],N=_(N),v=N.next();!v.done;v=N.next())v=o.atob(v.value.split("data:application/json;base64,").pop()),v=JSON.parse(v),u.push.apply(u,A(v.keys));N=JSON.stringify({keys:u}),d.push("data:application/json;base64,"+o.btoa(N))}}function WSe(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 RK(i,u){if(i=t0(i),i.size!=0){i=Nr(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 GSe=1,KSe=5,qSe=.5;function YSe(){this.g=r0,this.i=new Map().set(r0,2).set(Nv,1),this.h=0}function KP(i,u){var d=i.g!==u;return i.g=u,d&&u===r0&&(i.h=Date.now()),d}var Nv=0,r0=1;/* @license Shaka Player Copyright 2023 Google LLC SPDX-License-Identifier: Apache-2.0 */function qP(i,u,d){this.g=i,this.i=u,this.h=d}function MK(i,u){return ae(function(d){if(d.g==1)return L(d,fSe(i.h,u,i.g.drm.preferredKeySystems,i.g.drm.keySystemsMapping),2);if(i.g.streaming.dontChooseCodecs||qG(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(OK(i,u))})}function DK(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=bw(y,d,i),w!=y.allowedByApplication&&(v=!0)}return v}function OK(i,u){var d=DK(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())$K(i,v.keySystem,w.value)}NK(i,u)}return d}function $K(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 NK(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 N=u.next();!N.done;N=u.next())N=N.value,N.audio&&P.add(N.audio),N.video&&P.add(N.video),N.allowedByApplication?N.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),N=u.next();!N.done;N=u.next()){N=N.value;var V=i[d?"00":N];V?BK.includes(V)&&T.add(V):w.add(N)}if(!v)throw i={hasAppRestrictions:y,missingKeys:Array.from(w),restrictedKeyStatuses:Array.from(T)},new Ee(2,4,4012,i)}var BK=["output-restricted","internal-error"];function wb(){}function Bv(i,u){i0.set(i,u)}function XSe(){var i={};if(Pe(),$d())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]=$d()?i0.has(d):jv().canPlayType(d)!="";return i}function FK(i,u){if(u){var d=i0.get(u.toLowerCase());if(d)return d}throw new Ee(2,4,4e3,i,u)}Ge("shaka.media.ManifestParser",wb),wb.unregisterParserByMime=function(i){i0.delete(i)},wb.registerParserByMime=Bv,wb.registerParserByExtension=function(){qt("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;Ge("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function Ow(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 $w(i,u){return u==1?(u=i.U(),i=i.U(),{baseMediaDecodeTime:u*4294967296+i}):{baseMediaDecodeTime:i.U()}}function Nw(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 Bw(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=gr("avcC",i.Ra);else{y=gr;for(var w=7,T=[],P=[],N=0,V=0,W=0,q=0;q0&&(N=T[0][1],W=T[0][2],V=T[0][3]),w=new Uint8Array(w),q=0,w[q++]=1,w[q++]=N,w[q++]=W,w[q++]=V,w[q++]=255,w[q++]=224|T.length,N=0;N>8,w[q++]=T[N].length&255,w.set(T[N],q),q+=T[N].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(Oi(d,2)),A(Oi(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=VK(i),T=new Uint8Array([]),i.encrypted&&(T=Fv(i.stream,i.codecs),v="encv"),v=gr(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=gr("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(Oi(v,2)),A(Oi(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=VK(i),T=new Uint8Array([]),i.encrypted&&(T=Fv(i.stream,i.codecs),y="encv"),v=gr(y,v,d,P,T));break;case"audio":d=="mp3"?i=gr(".mp3",Eb(i)):d=="ac-3"?(d=gr("dac3",i.Ga),v="ac-3",y=new Uint8Array([]),i.encrypted&&(y=Fv(i.stream,i.codecs),v="enca"),i=gr(v,Eb(i),d,y)):d=="ec-3"?(d=gr("dec3",i.Ga),v="ec-3",y=new Uint8Array([]),i.encrypted&&(y=Fv(i.stream,i.codecs),v="enca"),i=gr(v,Eb(i),d,y)):d=="opus"?(d=gr("dOps",i.Ga),v="Opus",y=new Uint8Array([]),i.encrypted&&(y=Fv(i.stream,i.codecs),v="enca"),i=gr(v,Eb(i),d,y)):(i.Ga.byteLength>0?d=gr("esds",i.Ga):(d=gr,v=i.id+1,y=i.stream.channelsCount||2,T=i.stream.audioSamplingRate||44100,N=ai("audio",i.codecs.split(",")),V={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12},P=V[T],(N==="mp4a.40.5"||N==="mp4a.40.29")&&(P=V[T*2]),T=parseInt(N.split(".").pop(),10),v=new Uint8Array([0,0,0,0,3,25].concat(A(Oi(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=Fv(i.stream,i.codecs),v="enca"),i=gr(v,Eb(i),d,y)),v=i}return i=gr("stsd",a2e.value(),v),u("stbl",i,gr("stts",t2e.value()),gr("stsc",n2e.value()),gr("stsz",i2e.value()),gr("stco",r2e.value()))}function VK(i){if(!i.Za&&!i.$a)return new Uint8Array([]);var u=i.$a;return i=new Uint8Array([].concat(A(Oi(i.Za,4)),A(Oi(u,4)))),gr("pasp",i)}function Eb(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(Oi(i.stream.audioSamplingRate||44100,2)),[0,0]))}function Fv(i,u){var d=gr;u=new Uint8Array([].concat(A(Oi(HK(u.split(".")[0]),4)))),u=gr("frma",u);var v="cenc",y=i.drmInfos[0];y&&y.encryptionScheme&&(v=y.encryptionScheme),v=new Uint8Array([0,0,0,0].concat(A(Oi(HK(v),4)),[0,1,0,0])),v=gr("schm",v),y=gr;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=zK(P.value)}return i=new Uint8Array([0,0,0,0,0,0,1,8]),w=gr("tenc",i,w),d("sinf",u,v,y("schi",w))}function xb(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=gr,T=new Uint8Array([0,0,0,0].concat(A(Oi(d.data?d.data.sequenceNumber:0,4))));T=gr("mfhd",T);var P,N=d.data?d.data.zb:[],V=new Uint8Array(4+N.length);for(P=0;P=0;u--)d.push(i>>8*u&255);return d}function zK(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;W--)V.push(2>>8*W&255);for(i.set(new Uint8Array(V),P),i.set(N,P+4),P=_(T),N=P.next();!N.done;N=P.next())N=N.value,Fw(i,N.start,N.size+4)}}return i}function h2e(i,u,d,v,y,w){var T=Fv(i,v.name),P=u.subarray(v.start,v.start+v.size);for(i=new Uint8Array(v.size+T.byteLength),i.set(P,0),nt(i).setUint32(4,w),i.set(T,v.size),Fw(i,0,i.byteLength),w=new Uint8Array(u.byteLength+i.byteLength),v=Pe().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,Fw(w,y.start,y.size+i.byteLength);return i=nt(w,d.start),d=ep(d),u=i.getUint32(d),i.setUint32(d,u+1),w}function Fw(i,u,d){i=nt(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 p2e(i){function u(y){v.push({start:y.start,size:y.size}),Jn(y)}var d=Le(i),v=[];return new ti().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=nt(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()){XP(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=qK},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?Qe("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 KK(i,u){i.ba=u,i=_(i.g);for(var d=i.next();!d.done;d=i.next())KK(d.value,u)}Ge("shaka.media.SegmentReference",Mn),Mn.prototype.getSegmentData=Mn.prototype.Yb,Mn.prototype.setSegmentData=Mn.prototype.pe,Mn.prototype.syncAgainst=Mn.prototype.yh,Mn.prototype.offset=Mn.prototype.offset,Mn.prototype.getThumbnailSprite=Mn.prototype.Xj,Mn.prototype.setThumbnailSprite=Mn.prototype.If,Mn.prototype.hasByterangeOptimization=Mn.prototype.gk,Mn.prototype.markAsByterangeOptimization=Mn.prototype.oi,Mn.prototype.isLastPartial=Mn.prototype.lk,Mn.prototype.markAsLastPartial=Mn.prototype.pi,Mn.prototype.isPartial=Mn.prototype.nk,Mn.prototype.markAsPartial=Mn.prototype.ri,Mn.prototype.isIndependent=Mn.prototype.kk,Mn.prototype.markAsNonIndependent=Mn.prototype.wd,Mn.prototype.isPreload=Mn.prototype.isPreload,Mn.prototype.markAsPreload=Mn.prototype.Qg,Mn.prototype.markAsUnavailable=Mn.prototype.xk,Mn.prototype.getStatus=Mn.prototype.Jc,Mn.prototype.getTileDuration=Mn.prototype.Zj,Mn.prototype.getTilesLayout=Mn.prototype.$j,Mn.prototype.getEndByte=Mn.prototype.Gc,Mn.prototype.getStartByte=Mn.prototype.Ic,Mn.prototype.getEndTime=Mn.prototype.Ej,Mn.prototype.getStartTime=Mn.prototype.getStartTime,Mn.prototype.getUris=Mn.prototype.P;var Nf=0,qK=1;Mn.Status={ql:Nf,xm:qK,Tl:2};function Ab(i){return i.length==1&&i.end(0)-i.start(0)<1e-4}function YK(i){return!i||Ab(i)?null:i.length==1&&i.start(0)<0?0:i.length?i.start(0):null}function jw(i){return!i||Ab(i)?null:i.length?i.end(i.length-1):null}function ZP(i,u){return!i||!i.length||Ab(i)||u>i.end(i.length-1)?!1:u>=i.start(0)}function XK(i,u){if(!i||!i.length||Ab(i))return 0;var d=0;i=_(Bf(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 v2e(i,u,d){return!i||!i.length||Ab(i)?null:(i=Bf(i).findIndex(function(v,y,w){return v.start>u&&(y==0||w[y-1].end-u<=d)}),i>=0?i:null)}function Bf(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 jv(){return a0||(QP||(QP=new ar(function(){a0=null})),(a0=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(a0=document.createElement("video")),QP.ia(1),a0)}function m2e(i,u){var d,v,y,w,T;return ae(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(N){N=N.entries();for(var V=[],W=N.next();W.done===!1;)V.push(W.value),W=N.next();return V},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)})}Ge("shaka.util.Dom",JP),JP.removeAllChildren=Ib,JP.clearSourceFromVideo=Uw;var QP=null,a0=null;/* @license Shaka Player Copyright 2022 Google LLC SPDX-License-Identifier: Apache-2.0 */function e5(){}function JK(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 QK(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 t5(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 g2e(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=ot(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=ot(Le(i.data,3+d,w)),P;return v==="-->"?P=ot(Le(i.data,4+d+w)):P=Se(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=ot(Le(i.data,1,v)),i=ot(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=ot(Le(i.data,1,v)),i=ot(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=ot(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=Se(i.data.subarray(d.length+1)),u.data=i),u):i.type[0]==="T"?i.size<2||i.data[0]!==3?null:(i=ot(i.data.subarray(1)).replace(/\0*$/,""),u.data=i,u):i.type[0]==="W"?(i=ot(i.data).replace(/\0*$/,""),u.data=i,u):i.data?(u.data=Se(i.data),u):null}function Uv(i){for(var u=0,d=[];JK(i,u);){var v=t5(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+=t5(i,u+6),QK(i,u+10)&&(v+=10),u+=v;return v>0?i.subarray(d,d+v):new Uint8Array([])}Ge("shaka.util.Id3Utils",e5),e5.getID3Data=l0,e5.getID3Frames=Uv;function eq(i){return new Date(Date.UTC(1900,0,1,0,0,0,0)+i).getTime()}function Ff(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 n5(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 xi(d,0).U(),i.g=v*8,i.i-=v)}function wl(i,u){if(i.g<=u){u-=i.g;var d=Math.floor(u/8);u-=d*8,i.g-=d,n5(i)}i.h<<=u,i.g-=u}function pr(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&&n5(i),d=u-d,d>0?v<>>u)!==0)return i.h<<=u,i.g-=u,u;return n5(i),u+r5(i)}function Ms(i){wl(i,1+r5(i))}function un(i){var u=r5(i);return pr(i,u+1)-1}function u0(i){return i=un(i),1&i?1+i>>>1:-1*(i>>>1)}function Tn(i){return pr(i,1)===1}function Ur(i){return pr(i,8)}function Vw(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 N=P+3+((w[P+1]&15)<<8|w[P+2])-4;for(P+=12+((w[P+10]&15)<<8|w[P+11]);P0)for(var q=P+5,ne=W;ne>2;){var ue=w[q+1]+2;switch(w[q]){case 5:var fe=ln(w.subarray(q+2,q+ue));T.audio==-1&&fe==="Opus"?(T.audio=V,T.audioCodec="opus"):T.video==-1&&fe==="AV01"&&(T.video=V,T.videoCodec="av1");break;case 106:T.audio==-1&&(T.audio=V,T.audioCodec="ac3");break;case 122:T.audio==-1&&(T.audio=V,T.audioCodec="ec3");break;case 124:T.audio==-1&&(T.audio=V,T.audioCodec="aac");break;case 127:T.audioCodec=="opus"&&(fe=null,w[q+2]===128&&(fe=w[q+3]),fe!=null&&(this.H={channelCount:(fe&15)===0?2:fe&15,nj:fe,sampleRate:48e3}))}q+=ue,ne-=ue}break;case 15:T.audio==-1&&(T.audio=V,T.audioCodec="aac");break;case 17:T.audio==-1&&(T.audio=V,T.audioCodec="aac-loas");break;case 21:T.bf==-1&&(T.bf=V);break;case 27:T.video==-1&&(T.video=V,T.videoCodec="avc");break;case 3:case 4:T.audio==-1&&(T.audio=V,T.audioCodec="mp3");break;case 36:T.video==-1&&(T.video=V,T.videoCodec="hvc");break;case 129:T.audio==-1&&(T.audio=V,T.audioCodec="ac3");break;case 132:case 135:T.audio==-1&&(T.audio=V,T.audioCodec="ec3")}P+=W+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 i5(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=nq(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?nq(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 qt("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,N=[],V=-1,W=0;for(w==-1&&(V=0,W=this.m=="hvc"?i[0]>>1&63:i[0]&31,w=0,P=1);P=0?N.push({data:i.subarray(V+y,q),fullData:i.subarray(V,q),type:W,time:d,state:null}):(w=N.length?N[N.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=Zn(w.data,q),w.fullData=Zn(w.fullData,q),w.state=0)),P>1&63:i[P]&31,V=P,w=0):w=-1):w=0:w=3:w=q?0:1}return V>=0&&w>=0&&N.push({data:i.subarray(V+y,v),fullData:i.subarray(V,v),type:W,time:d,state:w}),!N.length&&u.ge&&(d=N.length?N[N.length-1]:u.ge)&&(d.data=Zn(d.data,i),d.fullData=Zn(d.fullData,i)),u.state=w,N},l.getMetadata=function(){for(var i=[],u=_(this.l),d=u.next();!d.done;d=u.next())d=Zn.apply(Kn,A(d.value)),(d=i5(this,d))&&i.push({cueTime:d.pts?d.pts/9e4:null,data:d.data,frames:Uv(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=Zn.apply(Kn,A(u.value)),v=i5(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=Zn(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=Zn.apply(Kn,A(d.value)),y=i5(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=Zn(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(){qt("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"?_2e(this):b2e(this)};function tq(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 b2e(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 Ff(d.data);var v=Ur(d),y=Ur(d),w=Ur(d);if(Ms(d),S2e.includes(v)){var T=un(d);if(T===3&&wl(d,1),Ms(d),Ms(d),wl(d,1),Tn(d)){T=T!==3?8:12;for(var P=0;P0)for(De=y;De<8;De++)pr(v,2);for(De=0;De>Ue&1)<<31-Ue;return Je>>>0})(N),T=T==1?"H":"L",w="hvc1"+("."+["","A","B","C"][w]+P),w+="."+v.toString(16).toUpperCase(),w+="."+T+fe,ue&&(w+="."+ue.toString(16).toUpperCase()),ne&&(w+="."+ne.toString(16).toUpperCase()),q&&(w+="."+q.toString(16).toUpperCase()),W&&(w+="."+W.toString(16).toUpperCase()),V&&(w+="."+V.toString(16).toUpperCase()),d&&(w+="."+d.toString(16).toUpperCase()),u.codec=w,u.frameRate=tq(i),u}function nq(i,u){var d=1;for(i>u&&(d=-1);Math.abs(u-i)>4294967296;)i+=d*8589934592;return i}function c0(i){return!(o5(i)<0)}function o5(i){for(var u=Math.min(1e3,i.length-564),d=0;d0||i.B.dispatchAllEmsgBoxes;W&&V.S("emsg",function(fe){var me=y.emsgSchemeIdUris;if(fe.version===0)var ge=fe.reader.Yc(),De=fe.reader.Yc(),Ae=fe.reader.U(),He=fe.reader.U(),it=fe.reader.U(),gt=fe.reader.U(),Je=v.startTime+He/Ae;else Ae=fe.reader.U(),Je=fe.reader.Dd()/Ae+v.timestampOffset,He=Je-v.startTime,it=fe.reader.U(),gt=fe.reader.U(),ge=fe.reader.Yc(),De=fe.reader.Yc();fe=fe.reader.Tb(fe.reader.getLength()-fe.reader.Oa(),!0),(me&&me.includes(ge)||i.B.dispatchAllEmsgBoxes)&&(ge=="urn:mpeg:dash:event:2012"?i.O.Dk():(me=Je+it/Ae,i.O.Bk({startTime:Je,endTime:me,schemeIdUri:ge,value:De,timescale:Ae,presentationTimeDelta:He,eventDuration:it,id:gt,messageData:fe}),(ge=="https://aomedia.org/emsg/ID3"||ge=="https://developer.apple.com/streaming/emsg-id3")&&(Ae=Uv(fe),Ae.length&&i.O.onMetadata([{cueTime:Je,data:fe,frames:Ae,dts:Je,pts:Je}],0,me))))});var q=v.ba.timescale;u=q&&!isNaN(q);var ne=0,ue=!1;u&&V.S("prft",function(fe){var me=fe.reader,ge=fe.version;me.U(),fe=me.U();var De=me.U();fe=fe*1e3+De/4294967296*1e3,ge===0?me=me.U():(ge=me.U(),me=me.U(),me=ge*4294967296+me),fe=eq(fe),me=new Map().set("detail",{wallClockTime:fe,programStartDate:new Date(fe-me/q*1e3)}),me=new vn("prft",me),i.O.onEvent(me)}).box("moof",Jn).box("traf",Jn).S("tfdt",function(fe){ue||(ne=$w(fe.reader,fe.version).baseMediaDecodeTime/q,ue=!0,W||fe.parser.stop())}),(W||u)&&V.parse(d,!1,T),ue&&v.timestampOffset==0&&(P=ne)}else w.includes("/mp4")||w.includes("/webm")||!c0(V)||(i.$.has(u)||i.$.set(u,new yi),N=i.$.get(u),N.clearData(),N.Gf(v.i),N.parse(V),V=N.getStartTime(u),V!=null&&(P=V),N=N.getMetadata());return{timestamp:P,metadata:N}}function Ww(i,u,d,v,y,w,T,P,N,V,W){T=T===void 0?!1:T,P=P===void 0?!1:P,N=N===void 0?!1:N,V=V===void 0?!1:V;var q,ne,ue,fe,me,ge,De,Ae,He,it,gt,Je,Ue,dt,mt,pt,_t,kt,Ot,$t;return ae(function(Ct){switch(Ct.g){case 1:if(q=Br,u!=q.Na){Ct.A(2);break}if(i.X!="HLS"){Ct.A(3);break}return L(Ct,i.Ta,4);case 4:ne=Ct.h,i.h.u=ne;case 3:return L(Ct,iSe(i.h,d,v?v.startTime:null,v?v.endTime:null,v?v.P()[0]:null),5);case 5:return Ct.return();case 2:if(V||!i.m){Ct.A(6);break}return L(Ct,Ww(i,q.ka,d,v,y,w,T,P,N,!0),7);case 7:return L(Ct,Ww(i,q.Aa,d,v,y,w,T,P,N,!0),8);case 8:return Ct.return();case 6:if(!i.l.has(u))return Ct.return();if(ue=i.l.get(u).timestampOffset,fe=i.F.get(u),i.j.has(u)&&(fe=i.j.get(u).getOriginalMimeType()),v&&(me=x2e(i,u,d,v,y,fe,N),ge=me.timestamp,De=me.metadata,ge!=null&&(i.V==null&&u==q.Aa&&(i.V=ge,i.wa=v.startTime,i.T!=null&&(Ae=0,i.wa==i.qa&&(Ae=i.V-i.T),i.ma.resolve(Ae))),i.T==null&&u==q.ka&&(i.T=ge,i.qa=v.startTime,i.V!=null&&(He=0,i.wa==i.qa&&(He=i.V-i.T),i.ma.resolve(He))),it=ge,gt=Rf,!i.I&>.includes(i.F.get(u))&&(it=0),Je=v.startTime-it,Ue=Math.abs(ue-Je),(Ue>=.001||T||P)&&(!N||Je>0||!ue)&&(ue=Je,i.ib&&(Wo(i,u,function(){return f0(i,u)},null),Wo(i,u,function(){return h0(i,u,ue)},null))),(u==q.Aa||!i.l.has(q.Aa))&&i.Ta.resolve(ue)),De.length)&&i.O.onMetadata(De,ue,v?v.endTime:null),w&&u==q.Aa&&(i.h||Hw(i,"application/cea-608",i.I,!1),i.J||(dt=fe.split(";",1)[0],i.J=new As(dt)),v?(mt=i.J.xf(d),mt.length&&sSe(i.h,mt,ue)):i.J.init(d,P,W)),!i.j.has(u)){Ct.A(9);break}return L(Ct,i.j.get(u).transmux(d,y,v,i.i.duration,u),10);case 10:pt=Ct.h,ArrayBuffer.isView(pt)?d=pt:(_t=pt,_t.init!=null&&(kt=_t.init,Wo(i,u,function(){i.H&&Jr(i.H,kt,ue,y),i.l.get(u).appendBuffer(kt)},v?v.P()[0]:null)),d=_t.data);case 9:if(d=R2e(i,y,d,v,u),!v||!i.I||u==q.Na){Ct.A(11);break}if(!T&&!P){Ct.A(11);break}if(Ot=v.startTime,i.X!="HLS"||i.m||u!=q.ka||!i.l.has(q.Aa)){Ct.A(13);break}return L(Ct,i.ma,14);case 14:$t=Ct.h,Math.abs($t)>.15&&(Ot-=$t);case 13:Wo(i,u,function(){return f0(i,u)},null),Wo(i,u,function(){return h0(i,u,Ot)},null);case 11:return L(Ct,Wo(i,u,function(){var At=d;i.H&&Jr(i.H,At,ue,y),i.l.get(u).appendBuffer(At)},v?v.P()[0]:null),15);case 15:B(Ct)}})}function T2e(i,u){var d=Hv(i,"video")||0;zG(i.h,u,d)}function A2e(i){i.h&&zG(i.h,"",0)}l.remove=function(i,u,d,v){var y=this,w,T;return ae(function(P){return P.g==1?(w=Br,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,Wo(y,i,function(){return Gw(y,i,u,d)},null),5):P.A(0)):y.m?L(P,Wo(y,w.ka,function(){return Gw(y,w.ka,u,d)},null),0):P.A(0)})};function oq(i,u){var d;return ae(function(v){return v.g==1?(d=Br,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,Wo(i,u,function(){return Gw(i,u,0,i.i.duration)},null),6):i.m?L(v,Wo(i,d.ka,function(){return Gw(i,d.ka,0,i.i.duration)},null),0):v.A(0)})}l.flush=function(i){var u=this,d;return ae(function(v){return v.g==1?(d=Br,i==d.Na?v.return():L(v,Wo(u,i,function(){u.g.currentTime-=.001,np(u,i)},null),2)):u.m?L(v,Wo(u,d.ka,function(){var y=d.ka;u.g.currentTime-=.001,np(u,y)},null),0):v.A(0)})};function sq(i,u,d,v,y,w,T,P,N){var V,W,q;return ae(function(ne){return ne.g==1?(V=Br,u==V.Na?(w||(i.h.u=d),oSe(i.h,v,y),ne.return()):(W=[],L(ne,O2e(i,u,T,P,N),2))):(q=ne.h,q||(W.push(Wo(i,u,function(){return f0(i,u)},null)),i.m&&W.push(Wo(i,V.ka,function(){return f0(i,V.ka)},null))),w||(W.push(Wo(i,u,function(){return h0(i,u,d)},null)),i.m&&W.push(Wo(i,V.ka,function(){return h0(i,V.ka,d)},null))),(v!=0||y!=1/0)&&(W.push(Wo(i,u,function(){return aq(i,u,v,y)},null)),i.m&&W.push(Wo(i,V.ka,function(){return aq(i,V.ka,v,y)},null))),W.length?L(ne,Promise.all(W),0):ne.A(0))})}function I2e(i,u,d){var v,y;return ae(function(w){return w.g==1?(v=Br,u==v.Na||(u==v.Aa&&(i.Ta=new ei),!i.I||(y=Hv(i,u))&&Math.abs(y-d)<.15)?w.return():(Wo(i,u,function(){return f0(i,u)},null),i.m&&Wo(i,v.ka,function(){return f0(i,v.ka)},null),L(w,Wo(i,u,function(){return h0(i,u,d)},null),2))):i.m?L(w,Wo(i,v.ka,function(){return h0(i,v.ka,d)},null),0):w.A(0)})}l.endOfStream=function(i){var u=this;return ae(function(d){return L(d,Lb(u,function(){Vv(u)||zv(u)||(i?u.i.endOfStream(i):u.i.endOfStream())}),0)})},l.Ab=function(i){var u=this;return ae(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=v2e(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),B2e(i,y),u==i.l&&(i.l=y),i.G++,i.u(new vn("gapjumped")))))}}}function B2e(i,u){i.C=!0,i.j.Ba(i.g,"seeked",function(){i.C=!1}),i.g.currentTime=u}function F2e(i){if(!i.h.stallEnabled)return null;var u=i.h.stallThreshold,d=i.h.stallSkip;return new hq(new pq(i.g),u,function(){var v;return ae(function(y){if(y.g==1)return v=Bf(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 vn("stalldetected")),B(y)})})}function hq(i,u,d){this.h=i,this.m=vq(i),this.g=i.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=d}hq.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function pq(i){var u=this;this.g=i,this.h=new ze,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 vq(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=_(Bf(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}pq.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=j2e.value().get(u),d.Ba(i,u,v))}var j2e=new tt(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function mq(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 ze,this.i=new _q(i),p0(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){yq(y,y.j())})}mq.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 p5(i){return i.o?i.g.currentTime:i.j()}function gq(i,u){i.g.readyState>0?Sq(i.i,u):p0(i.g,HTMLMediaElement.HAVE_METADATA,i.h,function(){yq(i,i.j())})}function yq(i,u){Math.abs(i.g.currentTime-u)<.001?bq(i):(i.h.Ba(i.g,"seeking",function(){bq(i)}),Sq(i.i,i.g.currentTime&&i.g.currentTime!=0?i.g.currentTime:u))}function bq(i){i.o=!0,i.h.D(i.g,"seeking",function(){return i.m()}),i.u(i.g.currentTime)}function _q(i){var u=this;this.g=i,this.m=10,this.j=this.l=this.i=0,this.h=new ar(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}_q.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function Sq(i,u){i.l=i.g.currentTime,i.j=u,i.i=i.m,i.g.currentTime=u,i.h.Ea(.1)}function kq(i){this.g=i,this.i=!1,this.h=null,this.j=new ze}l=kq.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=wq(u);y!==null&&(v=u.h.getTime()/1e3-y,v=Cq(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-(wq(this)||0),i=Cq(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=jw(this.g.buffered);return i!=null&&i>=this.g.duration-1};function wq(i){return i.g.getStartDate&&(i=i.g.getStartDate().getTime(),!isNaN(i))?i/1e3:null}function Cq(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 Eq(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 h5(i,u.presentationTimeline,d,w),this.j=new mq(i,function(){e:{var P=T.i;P.m=!0,P.B=!1,P.i&&P.i.Ea(P.h.gapJumpTimerTime),Pb(P);var N=p5(T.j);if(P=Aq(T,N),!Wg()&&Math.abs(P-N)>.001){N=!1;var V=Pe().Mi();if(V){var W=Date.now()/1e3;(!T.o||T.o0&&!this.h.paused?Iq(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 xq(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),Tq(i,Iq(i,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var i=this.g.Hc(),u=jw(this.h.buffered);if(u!=null&&u>=i)return!0}return!1};function Tq(i,u){var d=i.g.getDuration();return u>=d?d-i.l.durationBackoff:u}function Aq(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),N=i.g.Xd(v);return d=i.g.Xd(d+v),u>=T?Tq(i,u):u>w?w-i.l.safeSeekEndOffset:u=P||ZP(i.h.buffered,u)?u:d}function Iq(i,u){var d=i.g.Xb();return ui?i:u)}function xr(i){this.g=i,this.m=null,this.i=0,this.o=!1}l=xr.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 qc(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 Mn(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 ar(function(){var v=u();v?d.g.push.apply(d.g,A(v)):(d.m.stop(),d.m=null)}),this.m.Ea(i))},xr.prototype[Symbol.iterator]=function(){return this.Vb(0)},xr.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]},Ge("shaka.media.SegmentIterator",Ru),Ru.prototype.resetToLastIndependent=Ru.prototype.eh,Ru.prototype.next=Ru.prototype.next,Ru.prototype.current=Ru.prototype.current,Ru.prototype.currentPosition=Ru.prototype.tj,Ru.prototype.setReverse=Ru.prototype.Id;function zi(){xr.call(this,[]),this.h=[]}E(zi,xr),l=zi.prototype,l.clone=function(){var i=new zi;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 U2e(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 V2e(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(){},Ge("shaka.media.MetaSegmentIndex",zi),zi.prototype.updateEvery=zi.prototype.Nf,zi.prototype.fit=zi.prototype.pd,zi.prototype.mergeAndEvict=zi.prototype.fe,zi.prototype.evict=zi.prototype.Ya,zi.prototype.merge=zi.prototype.nf,zi.prototype.offset=zi.prototype.offset,zi.prototype.get=zi.prototype.get,zi.prototype.find=zi.prototype.find,zi.prototype.forEachTopLevelReference=zi.prototype.Fb,zi.prototype.release=zi.prototype.release;function Rb(i){var u=this;this.g=i,this.j=!1,this.i=this.g.Ye(),this.h=new ar(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,v5(this)},Rb.prototype.Tc=function(){return this.g.Tc()};function v5(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 m5(i){var u=this;this.j=i,this.h=new ze,this.g=new Set,this.i=new ar(function(){Lq(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()})}m5.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 Lq(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){jr.call(this),this.g=new Map,this.h=i}E(qw,jr),qw.prototype.release=function(){this.g.clear(),jr.prototype.release.call(this)};function z2e(i,u){var d=i.g.get(u);return d||(d={me:[],lg:null,contentType:u},i.g.set(u,d)),d}function H2e(i,u,d){var v=z2e(i,u.contentType);W2e(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&&!qe(v.roles,y.roles),(T||P||v)&&Pq(this,i,y.contentType)&&(d.lg=y,v=new vn("audiotrackchange",new Map([["quality",y],["position",i]])),this.dispatchEvent(v)),w&&Pq(this,i,y.contentType)&&(d.lg=y,JSON.stringify(y),d=new vn("qualitychange",new Map([["quality",y],["position",i]])),this.dispatchEvent(d))}};function Pq(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 Yw(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){jr.call(this),this.h=new Map,this.i=i,this.g=null}E(Mb,jr),Mb.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),jr.prototype.release.call(this)};function g5(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 vn("regionadd",new Map([["region",u]])),i.dispatchEvent(u),G2e(i))}function G2e(i){i.g||(i.g=new ar(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&&y5(this)},Xw.prototype.Id=function(i){this.o=i,this.h&&this.h.Id(i)};function y5(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 Dq(i,u){i.m=u;for(var d=Array.from(i.g.keys());d.length>u;){var v=d.pop();v&&Ob(i,v)}y5(i)}function q2e(i,u){u&&u!==i.i&&(Yc(i),i.i=u)}function Ob(i,u){var d=i.g;u instanceof Ga&&(d=i.j),i=d.get(u),d.delete(u),i&&i.abort()}function b5(i){this.g=i,this.je=this.wh=null}function Oq(i,u,d){var v=new Uint8Array(0);return i.je=i.g(u,d,function(y){return ae(function(w){if(w.g==1)return v.byteLength>0?v=Zn(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)})}b5.prototype.abort=function(){this.je&&this.je.abort()},Ge("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function _5(i){var u=_l(i),d=u.split("/")[0];return i=Wa(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 Y2e(i,u,d){function v(Ue){De=Ue.name;var dt=Ue.reader;dt.skip(24);var mt=dt.Ca(),pt=dt.Ca();dt.skip(50),ne=String(mt),q=String(pt),Ue.reader.Ia()&&Jn(Ue)}function y(Ue){var dt=jK(Ue.reader);ue=dt.channelCount,fe=dt.sampleRate,w(Ue.name)}function w(Ue){switch(Ue=Ue.toLowerCase(),Ue){case"avc1":case"avc3":P.push(Ue+".42E01E"),V=!0;break;case"hev1":case"hvc1":P.push(Ue+".1.6.L93.90"),V=!0;break;case"dvh1":case"dvhe":P.push(Ue+".05.04"),V=!0;break;case"vp09":P.push(Ue+".00.10.08"),V=!0;break;case"av01":P.push(Ue+".0.01M.08"),V=!0;break;case"mp4a":T.push("mp4a.40.2"),N=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":T.push(Ue),N=!0;break;case"apac":T.push("apac.31.00"),N=!0}}var T=[],P=[],N=!1,V=!1,W=null,q=null,ne=null,ue=null,fe=null,me=null,ge=null,De;if(new ti().box("moov",Jn).box("trak",Jn).box("mdia",Jn).S("mdhd",function(Ue){W=Nw(Ue.reader,Ue.version).language}).box("minf",Jn).box("stbl",Jn).S("stsd",$f).box("mp4a",function(Ue){var dt=jK(Ue.reader);ue=dt.channelCount,fe=dt.sampleRate,Ue.reader.Ia()?Jn(Ue):w(Ue.name)}).box("esds",function(Ue){Ue=Ue.reader;for(var dt="mp4a",mt,pt;Ue.Ia();){mt=Ue.Y();for(var _t=Ue.Y();_t&128;)_t=Ue.Y();if(mt==3)Ue.Ca(),_t=Ue.Y(),_t&128&&Ue.Ca(),_t&64&&Ue.skip(Ue.Y()),_t&32&&Ue.Ca();else if(mt==4)pt=Ue.Y(),Ue.skip(12);else if(mt==5)break}pt&&(dt+="."+Cb(pt),mt==5&&Ue.Ia()&&(mt=Ue.Y(),pt=(mt&248)>>3,pt===31&&Ue.Ia()&&(pt=32+((mt&7)<<3)+((Ue.Y()&224)>>5)),dt+="."+pt)),T.push(dt),N=!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(Ue){var dt=De||"";switch(De){case"dvav":dt="avc3";break;case"dva1":dt="avc1"}Ue=Ue.reader,Ue.skip(1),Ue=dt+"."+Cb(Ue.Y())+Cb(Ue.Y())+Cb(Ue.Y()),P.push(Ue),V=!0}).box("hvcC",function(Ue){var dt=De||"";switch(De){case"dvh1":dt="hvc1";break;case"dvhe":dt="hev1"}var mt=Ue.reader;mt.skip(1),Ue=mt.Y();var pt=["","A","B","C"][Ue>>6],_t=Ue&31,kt=mt.U(),Ot=(Ue&32)>>5?"H":"L";Ue=[mt.Y(),mt.Y(),mt.Y(),mt.Y(),mt.Y(),mt.Y()],mt=mt.Y();for(var $t=0,Ct=0;Ct<32&&($t|=kt&1,Ct!=31);Ct++)$t<<=1,kt>>=1;for(dt=dt+("."+pt+_t)+("."+Cb($t,!0)),dt+="."+Ot+mt,pt="",_t=Ue.length;_t--;)((Ot=Ue[_t])||pt)&&(pt="."+Ot.toString(16).toUpperCase()+pt);dt+=pt,P.push(dt),V=!0}).box("dvcC",function(Ue){var dt=De||"";switch(De){case"hvc1":dt="dvh1";break;case"hev1":dt="dvhe";break;case"avc1":dt="dva1";break;case"avc3":dt="dvav";break;case"av01":dt="dav1"}var mt=Ue.reader;mt.skip(2),Ue=mt.Y(),mt=mt.Y(),P.push(dt+"."+kl(Ue>>1&127)+"."+kl(Ue<<5&32|mt>>3&31)),V=!0}).box("dvvC",function(Ue){var dt=De||"";switch(De){case"hvc1":dt="dvh1";break;case"hev1":dt="dvhe";break;case"avc1":dt="dva1";break;case"avc3":dt="dvav";break;case"av01":dt="dav1"}var mt=Ue.reader;mt.skip(2),Ue=mt.Y(),mt=mt.Y(),P.push(dt+"."+kl(Ue>>1&127)+"."+kl(Ue<<5&32|mt>>3&31)),V=!0}).S("vpcC",function(Ue){var dt=De||"",mt=Ue.reader;Ue=mt.Y();var pt=mt.Y();mt=mt.Y()>>4&15,P.push(dt+"."+kl(Ue)+"."+kl(pt)+"."+kl(mt)),V=!0}).box("av1C",function(Ue){var dt=De||"";switch(De){case"dav1":dt="av01"}var mt=Ue.reader;mt.skip(1),Ue=mt.Y(),mt=mt.Y();var pt=Ue>>>5,_t=(mt&64)>>6;P.push(dt+"."+pt+"."+kl(Ue&31)+(mt>>>7?"H":"M")+"."+kl(pt===2&&_t?(mt&32)>>5?12:10:_t?10:8)+"."+((mt&16)>>4)+"."+((mt&8)>>3)+((mt&4)>>2)+(mt&3)+"."+kl(1)+"."+kl(1)+"."+kl(1)+".0"),V=!0}).box("enca",Pw).box("encv",Sl).box("sinf",Jn).box("frma",function(Ue){Ue=YP(Ue.reader).codec,w(Ue)}).box("colr",function(Ue){P=P.map(function(pt){if(pt.startsWith("av01.")){var _t=Ue.reader,kt=_t.Oa(),Ot=_t.Tb(4,!1),$t=String.fromCharCode(Ot[0]);if($t+=String.fromCharCode(Ot[1]),$t+=String.fromCharCode(Ot[2]),$t+=String.fromCharCode(Ot[3]),$t==="nclx"){Ot=_t.Ca(),$t=_t.Ca();var Ct=_t.Ca(),At=_t.Y()>>7,zt=pt.split(".");zt.length==10&&(zt[6]=kl(Ot),zt[7]=kl($t),zt[8]=kl(Ct),zt[9]=String(At),pt=zt.join("."))}_t.seek(kt)}return pt});var dt=ZSe(Ue.reader),mt=dt.colorGamut;me=dt.ve,ge=mt}).parse(i||u,!0,!0),!T.length&&!P.length)return null;var Ae=N&&!V,He=new Map;if(V&&!d){d=new As("video/mp4"),i&&d.init(i);try{d.xf(u);for(var it=_(d.Vf()),gt=it.next();!gt.done;gt=it.next()){var Je=gt.value;He.set(Je,Je)}}catch{}d.Nd()}return{type:Ae?"audio":"video",mimeType:Ae?"audio/mp4":"video/mp4",codecs:S5(T.concat(P)).join(", "),language:W,height:q,width:ne,channelCount:ue,sampleRate:fe,closedCaptions:He,ve:me,colorGamut:ge,frameRate:null}}function S5(i){var u=new Set,d=[];i=_(i);for(var v=i.next();!v.done;v=i.next()){v=v.value;var y=Zh(v);u.has(y)||(d.push(v),u.add(y))}return u=ya("audio",d),v=ya("video",d),i=ya(yn,d),v=X2e(v),u=u.concat(v).concat(i),d.length&&!u.length?d:u}function X2e(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?Lo('video/mp4; codecs="'+u+'"')?[u]:i.filter(function(d){return d!=u}):i}function Z2e(i){var u=null;return new ti().box("moov",Jn).box("trak",Jn).box("mdia",Jn).box("minf",Jn).box("stbl",Jn).S("stsd",$f).box("encv",Sl).box("enca",Pw).box("sinf",Jn).box("schi",Jn).S("tenc",function(d){d=d.reader,d.Y(),d.Y(),d.Y(),d.Y(),d=d.Tb(16,!1),u=Cn(d)}).parse(i,!0),u}function k5(i,u,d){var v,y,w,T,P;return ae(function(N){if(N.g==1)return v=u,v.cryptoKey?N.A(2):L(N,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},N.return(o.crypto.subtle.decrypt(P,v.cryptoKey,i))})}function $b(i,u,d,v,y){return i=Po(i,v,y),(u!=0||d!=null)&&(i.headers.Range=d?"bytes="+u+"-"+d:"bytes="+u+"-"),i}function $q(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 ar(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?L2e(d.g.Z,v,y):l5(d.g.Z)}else l5(d.g.Z),d.u&&d.u.stop();else d.u&&d.u.stop()}),this.I=null,this.J=!1,this.K=new ar(function(){var v=d.g.video;!v.ended&&d.I&&(d.J=!0,v.currentTime=d.I,d.I=null)}),this.G=new ze}l=$q.prototype,l.destroy=function(){return this.l.destroy()};function J2e(i){var u,d,v,y,w,T,P;return ae(function(N){if(N.g==1){for(i.u&&i.u.stop(),i.u=null,i.K&&i.K.stop(),i.K=null,i.G&&(i.G.release(),i.G=null),u=[],d=_(i.h.values()),v=d.next();!v.done;v=d.next())y=v.value,jf(y),u.push(tC(y)),y.ha&&(Yc(y.ha),y.ha=null);for(w=_(i.m.values()),T=w.next();!T.done;T=w.next())P=T.value,Yc(P);return L(N,Promise.all(u),2)}i.h.clear(),i.m.clear(),i.g=null,i.j=null,i.i=null,i.I=null,B(N)})}l.configure=function(i){if(this.i=i,this.X=new lK({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&&(Yc(u.ha),u.ha=null),u=_(this.m.keys());for(var d=u.next();!d.done;d=u.next())d=d.value,Yc(this.m.get(d)),this.m.delete(d)}for(i.disableTextPrefetch&&(u=this.h.get(yn))&&u.ha&&(Yc(u.ha),u.ha=null),i.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(Yc(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?(Dq(d.ha,i.segmentPrefetchLimit),i.segmentPrefetchLimit>0||(Yc(d.ha),d.ha=null)):i.segmentPrefetchLimit>0&&(d.ha=C5(this,d.stream));i.disableAudioPrefetch||oke(this)};function Q2e(i,u,d){i.j.presentationTimeline.W()||(i.aa=u,i.$=d)}l.start=function(i){var u=this;return ae(function(d){if(d.g==1)return L(d,ike(u,i||new Map),2);gi(u.l),u.N=!0,B(d)})};function eke(i,u){var d,v,y,w,T,P;ae(function(N){switch(N.g){case 1:return d=Br,i.V++,v=i.V,F(N,2),L(N,oq(i.g.Z,d.Na),4);case 4:z(N,3);break;case 2:y=G(N),i.g&&i.g.onError(y);case 3:w=co(u.mimeType,u.codecs),Hw(i.g.Z,w,i.j.sequenceMode,u.external),T=i.g.Z.aa,(T.isTextVisible()||i.i.alwaysStreamText)&&i.V==v&&(P=Jw(i,u),i.h.set(d.Na,P),la(i,P,0)),B(N)}})}function tke(i){var u=i.h.get(yn);u&&(jf(u),tC(u).catch(function(){}),i.H=i.h.get(yn),i.h.delete(yn),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),i.B=null}function Nq(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 Bq(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 Zw(i,u){ae(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 nke(i){var u=i.h.get(yn);u&&v0(i,u.stream,!0,0,!0)}function rke(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!=yn?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&&q2e(T.ha,u),u.type==yn&&T.stream!=u&&(y=co(u.mimeType,u.codecs),Hw(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=Jw(i,u.dependencyStream):T.Ec=null,zq(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&&(tC(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,w5(i,u),Fq(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):(jf(T),T5(i,T,!0,v).catch(function(P){i.g&&i.g.onError(P)})):T.Ja||T.qb||la(i,T,0),Fq(i,T).catch(function(P){i.g&&i.g.onError(P)})):eke(i,u)}function Fq(i,u){var d,v,y;return ae(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=Hv(i.g.Z,u.type),N=u.stream.segmentIndex.find(u.La?u.La.endTime:T),V=N==null?null:u.stream.segmentIndex.get(N);N=V?XP(V):null,V&&!N&&(N=(V.endTime-V.getStartTime())*(u.stream.bandwidth||i.o.bandwidth)/8),N?((V=V.ba)&&(N+=(V.endByte?V.endByte+1-V.startByte:null)||0),V=i.g.getBandwidthEstimate(),T=N*8/V<(P||0)-T-i.i.rebufferingGoal||u.Va.h.g>N):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==yn?(y=y.h,y=y.g==null||y.h==null?!1:i>=y.g&&i0?new Xw(i.i.segmentPrefetchLimit,u,function(v,y,w){return eC(v,y,w||null,i.i.retryParameters,i.g.tc)},i.g.Ob()<0,i.g.al):null}function oke(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),Dq(y,u),!(u>0&&d.some((function(P){return function(N){return Yg(P.Mb.audio.language,N)}})(w)))){var T=i.h.get(w.Mb.audio.type);y!==(T&&T.ha)&&Yc(y),i.m.delete(w.Mb.audio)}}else u<=0||!d.some((function(P){return function(N){return Yg(P.Mb.audio.language,N)}})(w))||!(y=C5(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(),l5(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 ske(i,u){var d,v,y,w,T,P,N,V,W;return ae(function(q){switch(q.g){case 1:if(gi(i.l),d=Br,u.Ja||u.qb==null||u.Ub)return q.return();if(u.qb=null,!u.ec){q.A(2);break}return L(q,T5(i,u,u.Kd,u.ld),3);case 3:return q.return();case 2:if(rke(i,u),u.stream.segmentIndex){q.A(4);break}return v=u.stream,F(q,5),L(q,u.stream.createSegmentIndex(),7);case 7:z(q,6);break;case 5:return y=G(q),L(q,A5(i,u,y),8);case 8:return q.return();case 6:if(v!=u.stream)return v.closeSegmentIndex&&v.closeSegmentIndex(),u.Ja||u.qb||la(i,u,0),q.return();case 4:if(!u.Ec){q.A(9);break}if(u.Ec.stream.segmentIndex){q.A(9);break}return F(q,11),L(q,u.Ec.stream.createSegmentIndex(),13);case 13:z(q,9);break;case 11:G(q);case 9:F(q,14),w=ake(i,u),w!=null&&(la(i,u,w),u.Zd=!1),z(q,15);break;case 14:return T=G(q),L(q,A5(i,u,T),16);case 16:return q.return();case 15:if(u.type===d.Na)return q.return();if(P=[u],N=u.type===d.ka?d.Aa:d.ka,(V=i.h.get(N))&&P.push(V),!i.N||!P.every(function(ne){return ne.endOfStream})){q.A(0);break}return L(q,i.g.Z.endOfStream(),18);case 18:gi(i.l),W=i.g.Z.getDuration(),W!=0&&W=w)return d/2;if(P=!u.ua,N=jq(i,u,v,N),!N)return d;T=u.pb;var V=N.ba;T&&V&&Tb(V,T)&&(T.g=V.g),T=!1,P&&u.cg&&(T=!0,u.cg=!1),P=1/0,V=Array.from(i.h.values()),V=_(V);for(var W=V.next();!W.done;W=V.next())W=W.value,x5(W)||W.ua&&!W.ua.current()||(P=Math.min(P,W.La?W.La.endTime:v));return y>=P+i.j.presentationTimeline.h?d:(u.ha&&u.ua&&!i.m.has(u.stream)&&(u.ha.Ya(N.startTime+.001),Db(u.ha,N.startTime).catch(function(){})),Bb(i)&&fke(i,u,N)||(lke(i,u,v,N,T).catch(function(){}),u.Ec&&Uq(i,u.Ec,v,w)),null)}function jq(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 lke(i,u,d,v,y){var w,T,P,N,V,W,q,ne,ue,fe,me,ge,De,Ae,He,it,gt;return ae(function(Je){switch(Je.g){case 1:if(w=Br,T=u.stream,P=u.ua,u.Ja=!0,F(Je,2),v.Jc()==2)throw new Ee(1,1,1011);return L(Je,cke(i,u,v,y),4);case 4:return gi(i.l),i.F?Je.return():(N=T.mimeType=="video/mp4"||T.mimeType=="audio/mp4",V=o.ReadableStream,i.i.lowLatencyMode&&i.j.isLowLatency&&V&&N&&(i.j.type!="HLS"||v.o)?(ne=new Uint8Array(0),fe=ue=!1,ge=function(Ue){var dt,mt,pt;return ae(function(_t){switch(_t.g){case 1:if(ue||(fe=!0,gi(i.l),i.F))return _t.return();if(F(_t,2),ne=Zn(ne,Ue),dt=!1,mt=0,new ti().box("mdat",function(kt){mt=kt.size+kt.start,dt=!0}).parse(ne,!1,!0),!dt){_t.A(4);break}return pt=ne.subarray(0,mt),ne=ne.subarray(mt),L(_t,E5(i,u,d,T,v,pt,!0,y),5);case 5:u.ha&&u.ua&&Db(u.ha,v.startTime,!0);case 4:z(_t,0);break;case 2:me=G(_t),B(_t)}})},L(Je,Nb(i,u,v,ge),9)):(W=Nb(i,u,v),L(Je,W,7)));case 7:return q=Je.h,gi(i.l),i.F?Je.return():(gi(i.l),u.ec?(u.Ja=!1,la(i,u,0),Je.return()):L(Je,E5(i,u,d,T,v,q,!1,y),6));case 9:if(De=Je.h,me)throw me;if(fe){Je.A(10);break}return ue=!0,gi(i.l),i.F?Je.return():u.ec?(u.Ja=!1,la(i,u,0),Je.return()):L(Je,E5(i,u,d,T,v,De,!1,y),10);case 10:u.ha&&u.ua&&Db(u.ha,v.startTime,!0);case 6:if(gi(i.l),i.F)return Je.return();u.La=v,P.next(),u.Ja=!1,u.ah=!1,Ae=i.g.Z.Fc(),He=Ae[u.type],JSON.stringify(He),u.ec||(it=null,u.type===w.Aa?it=i.h.get(w.ka):u.type===w.ka&&(it=i.h.get(w.Aa)),it&&it.type==w.ka?i.g.wf(v,u.stream,it.stream.isAudioMuxedInVideo):i.g.wf(v,u.stream,u.stream.codecs.includes(","))),jf(u),la(i,u,0),z(Je,0);break;case 2:if(gt=G(Je),gi(i.l,gt),i.F)return Je.return();if(u.Ja=!1,gt.code==7001)u.Ja=!1,jf(u),la(i,u,0),Je.A(0);else if(u.type==w.Na&&i.i.ignoreTextStreamFailures)i.h.delete(w.Na),Je.A(0);else return gt.code==3017?L(Je,uke(i,u,gt),0):(u.Zd=!0,gt.category==1&&u.ha&&Ob(u.ha,v),gt.severity=2,L(Je,A5(i,u,gt),0))}})}function Uq(i,u,d,v){var y,w,T,P,N,V,W,q,ne,ue,fe;return ae(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(N=P.ba,!N||Tb(N,u.pb)){me.A(3);break}return u.pb=N,F(me,4),L(me,Nb(i,u,N),6);case 6:V=me.h;var ge=i.g.Z;ge.H&&Jr(ge.H,V,0,y),i.O=[],z(me,3);break;case 4:throw W=G(me),u.pb=null,W;case 3:if(u.La&&u.La==P){me.A(0);break}return u.La=P,F(me,8),L(me,Nb(i,u,P),10);case 10:q=me.h,ge=i.g.Z,ge.H&&Jr(ge.H,q,0,y),i.O.push(P.startTime),z(me,9);break;case 8:throw ne=G(me),u.La=null,ne;case 9:if(ue=Math.max.apply(Math,[0].concat(A(i.O))),fe=i.g.lc(),fe+v>ue)return L(me,Uq(i,u,P.startTime,v),0);me.A(0)}})}function uke(i,u,d){var v,y,w,T,P,N,V;return ae(function(W){switch(W.g){case 1:if(v=Array.from(i.h.values()),v.some(function(q){return q!=u&&q.ah})){W.A(2);break}if(i.i.avoidEvictionOnQuotaExceededError)return y=I5(i,d),i.g.disableStream(u.stream,y)||la(i,u,4),W.return();if(w=Math.round(100*i.C),w>20){i.C-=.2,W.A(3);break}if(w>4){i.C-=.04,W.A(3);break}if(T=I5(i,d),P=i.g.disableStream(u.stream,T),!P){u.Zd=!0,i.F=!0,i.g.onError(d),W.A(5);break}return i.C=1,N=i.g.lc(),L(W,Qw(i,u,N),5);case 5:return W.return();case 3:return u.ah=!0,V=i.g.lc(),L(W,Qw(i,u,V),2);case 2:la(i,u,4),B(W)}})}function cke(i,u,d,v){var y,w,T,P,N,V,W,q,ne,ue,fe,me,ge,De,Ae,He;return ae(function(it){switch(it.g){case 1:if(y=Br,w=u.La==null,T=[],P=Math.max(0,Math.max(d.appendWindowStart,i.aa)-.1),N=Math.min(d.appendWindowEnd,i.$)+.1,V=d.codecs||u.stream.codecs,W=Zh(V),q=_l(d.mimeType||u.stream.mimeType),ne=d.timestampOffset,ne==u.kf&&P==u.qc&&N==u.nc&&W==u.hf&&q==u.jf){it.A(2);break}if(ue=u.hf&&u.jf&&$2e(i.g.Z,u.type,q,V,rC(i)),!ue){it.A(3);break}if(fe=null,u.type===y.Aa?fe=i.h.get(y.ka):u.type===y.ka&&(fe=i.h.get(y.Aa)),!fe){it.A(3);break}return L(it,tC(fe).catch(function(){}),5);case 5:fe.pb=null,fe.qc=null,fe.nc=null,w5(i,fe);case 3:return L(it,Vq(i,u,ne,P,N,d,W,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,Je,Ue,dt,mt,pt,_t,kt,Ot,$t,Ct;return ae(function(At){switch(At.g){case 1:return F(At,2),L(At,me,4);case 4:return gt=At.h,gi(i.l),Je=null,Ue=new Map,dt={projection:null,hfov:null},u.stream&&(mt=u.stream.videoLayout)&&(pt=mt.split("/"),pt.includes("PROJ-RECT")?dt.projection="rect":pt.includes("PROJ-EQUI")?dt.projection="equi":pt.includes("PROJ-HEQU")?dt.projection="hequ":pt.includes("PROJ-PRIM")?dt.projection="prim":pt.includes("PROJ-AIV")&&(dt.projection="hequ")),_t=new ti,_t.box("moov",Jn).box("trak",Jn).box("mdia",Jn).S("mdhd",function(zt){Je=Nw(zt.reader,zt.version).timescale}).box("hdlr",function(zt){switch(zt=zt.reader,zt.skip(8),zt.Yc()){case"soun":Ue.set(y.ka,Je);break;case"vide":Ue.set(y.Aa,Je)}Je=null}),u.type!==y.Aa||dt.projection||_t.box("minf",Jn).box("stbl",Jn).S("stsd",$f).box("encv",Sl).box("avc1",Sl).box("avc3",Sl).box("hev1",Sl).box("hvc1",Sl).box("dvav",Sl).box("dva1",Sl).box("dvh1",Sl).box("dvhe",Sl).box("dvc1",Sl).box("dvi1",Sl).box("vexu",Jn).box("proj",Jn).S("prji",function(zt){zt=zt.reader.Yc(),dt.projection=zt}).box("hfov",function(zt){zt=zt.reader.U()/1e3,dt.hfov=zt}),_t.parse(gt,!0,!0),u.type===y.Aa&&dke(i,dt),Ue.has(u.type)?d.ba.timescale=Ue.get(u.type):Je!=null&&(d.ba.timescale=Je),kt=u.stream.segmentIndex,kt instanceof zi&&(Ot=V2e(kt,d.startTime)),$t=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,L(At,i.g.Oh(u.type,gt),5);case 5:return L(At,Ww(i.g.Z,u.type,gt,null,u.stream,$t,u.bd,v,!1,!1,Ot),6);case 6:z(At,0);break;case 2:throw Ct=G(At),u.pb=null,Ct}})},De=d.startTime,w&&(Ae=Hv(i.g.Z,u.type),Ae!=null&&(De=Ae)),i.g.Ck(De,d.ba),T.push(ge()))),He=u.La?u.La.i:-1,d.i!=He&&T.push(I2e(i.g.Z,u.type,d.startTime)),L(it,Promise.all(T),0)}})}function Vq(i,u,d,v,y,w,T,P){var N,V,W,q,ne;return ae(function(ue){switch(ue.g){case 1:if(N=Br,V=rC(i),F(ue,2),u.qc=v,u.nc=y,T&&(u.hf=T),P&&(u.jf=P),u.kf=d,W=i.j.sequenceMode||i.j.type=="HLS",q=null,u.type===N.Aa?q=i.h.get(N.ka):u.type===N.ka&&(q=i.h.get(N.Aa)),!(q&&q.stream&&q.stream.isAudioMuxedInVideo)){ue.A(4);break}return L(ue,sq(i.g.Z,q.type,d,v,y,W,q.stream.mimeType,q.stream.codecs,V),4);case 4:return L(ue,sq(i.g.Z,u.type,d,v,y,W,w.mimeType||u.stream.mimeType,w.codecs||u.stream.codecs,V),6);case 6:z(ue,0);break;case 2:throw ne=G(ue),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,ne}})}function E5(i,u,d,v,y,w,T,P){T=T===void 0?!1:T,P=P===void 0?!1:P;var N,V,W,q;return ae(function(ne){switch(ne.g){case 1:return N=v.closedCaptions&&v.closedCaptions.size>0,i.i.shouldFixTimestampOffset&&(V=v.mimeType=="video/mp4"||v.mimeType=="audio/mp4",W=null,y.ba&&(W=y.ba.timescale),V&&W&&v.type==="video"&&i.j.type=="DASH"&&new ti().box("moof",Jn).box("traf",Jn).S("tfdt",function(ue){var fe,me,ge,De,Ae,He;return ae(function(it){return fe=$w(ue.reader,ue.version),me=fe.baseMediaDecodeTime,me?(ge=-me/W,De=Number(u.kf)||0,DeN&&(q=Math.max(P-w,V-N-T)),q<=N?ne.return():L(ne,i.g.Z.remove(u.type,T,T+q,y),2));if(ne.g!=4)return gi(i.l),i.H?L(ne,Qw(i,i.H,d),4):ne.A(0);gi(i.l),B(ne)})}function x5(i){return i&&i.type==yn&&(i.stream.mimeType=="application/cea-608"||i.stream.mimeType=="application/cea-708")}function Nb(i,u,d,v){var y,w,T,P,N;return ae(function(V){switch(V.g){case 1:if(y=d.Yb())return V.return(y);if(w=null,u.ha){var W=u.ha,q=W.g;d instanceof Ga&&(q=W.j),q.has(d)?(W=q.get(d),v&&(W.wh=v),w=W.je):w=null}return w||(w=eC(d,u.stream,v||null,i.i.retryParameters,i.g.tc)),T=0,u.ua&&(T=u.ua.h),u.Va=w,L(V,w.promise,2);case 2:if(P=V.h,u.Va=null,N=P.data,!d.aesKey){V.A(3);break}return L(V,k5(N,d.aesKey,T),4);case 4:N=V.h;case 3:return V.return(N)}})}function eC(i,u,d,v,y,w){w=w===void 0?!1:w;var T=i instanceof Mn?i:void 0,P=T?1:0;return i=$b(i.P(),i.startByte,i.endByte,v,d),i.contentType=u.type,y.request(Pu,i,{type:P,stream:u,segment:T,isPreload:w})}function T5(i,u,d,v){var y,w;return ae(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)&&Yc(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,oq(i.g.Z,u.type),4);if(T.g!=3)return gi(i.l),d?L(T,i.g.Z.flush(u.type),3):T.A(3);gi(i.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||la(i,u,0),B(T)})}function la(i,u,d){var v=u.type;(v!=yn||i.h.has(v))&&(u.qb=new mb(function(){var y;return ae(function(w){if(w.g==1)return F(w,2),L(w,ske(i,u),4);if(w.g!=2)return z(w,0);y=G(w),i.g&&i.g.onError(y),B(w)})}).ia(d))}function jf(i){i.qb!=null&&(i.qb.stop(),i.qb=null)}function tC(i){return ae(function(u){return i.Va?L(u,i.Va.abort(),0):u.A(0)})}function A5(i,u,d){var v;return ae(function(y){if(y.g==1)return d.code==3024?(u.Ja=!1,jf(u),la(i,u,0),y.return()):L(y,uK(i.X),2);if(gi(i.l),d.category===1&&d.code!=1003){if(u.Mc)return Nq(i,!1),y.return();v=I5(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 I5(i,u){return i.i.maxDisabledTime===0&&u.code==1011?1:i.i.maxDisabledTime}function nC(i,u){u=u===void 0?!1:u;var d,v,y,w,T,P;return ae(function(N){if(N.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!==Br.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 zq(i){i.G.Pa(),Bb(i)&&(i.G.D(i.g.video,"waiting",function(){return L5(i)}),i.G.D(i.g.video,"timeupdate",function(){return L5(i)}))}function L5(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 fke(i,u,d){if(u.type===yn)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=Gs(Wa(v.mimeType)),T=Gs(Wa(v.mimeType));v.mimeType==y.mimeType&&w==T&&(d=!1)}return d&&(i.J||u.bd)&&(i.J=!1,nC(i,!0).then(function(){var P=new Map().set("oldEncrypted",v.encrypted).set("newEncrypted",y.encrypted);i.g.onEvent(new vn("boundarycrossed",P))})),d}function rC(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=Hv(i.g.Z,T.type),N=i.g.lc();(T=jq(i,T,N,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(yn,i.B),v}function iC(){}function P5(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,N=!0,V;for(V in u){var W=y+"."+V,q=w?v[y]:d[V];P||V in d?u[V]===void 0?q===void 0||P?delete i[V]:i[V]=on(q):T?i[V]=u[V]:q.constructor==Object&&u[V]&&u[V].constructor==Object?(i[V]||(i[V]=on(q)),W=P5(i[V],u[V],q,v,W),N=N&&W):typeof u[V]!=typeof q||u[V]==null||typeof u[V]!="function"&&u[V].constructor!=q.constructor?(Qe("Invalid config, wrong type for "+W),N=!1):typeof d[V]=="function"&&d[V].length!=u[V].length?(rt("Unexpected number of arguments for "+W),i[V]=u[V]):i[V]=Array.isArray(i[V])?u[V].slice():u[V]:(Qe("Invalid config, unrecognized key "+W),N=!1)}return N}function oC(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 Hq(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 N=w[P];Array.isArray(N)&&N.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,N){var V=w[N];return T.hasOwnProperty(N)?V instanceof HTMLElement&&T[N]instanceof HTMLElement?V.isEqualNode(T[N])||(P[N]=V):y(V)&&y(T[N])?(V=v(V,T[N]),(Object.keys(V).length>0||!y(V))&&(P[N]=V)):Array.isArray(V)&&Array.isArray(T[N])?rn(V,T[N])||(P[N]=V):Number.isNaN(V)&&Number.isNaN(T[N])||V!==T[N]&&(P[N]=V):P[N]=V,P},{})}function y(w){return w&&typeof w=="object"&&!Array.isArray(w)}return i=v(i,u),d(i),i}Ge("shaka.util.ConfigUtils",iC),iC.getDifferenceFromConfigObjects=Hq,iC.convertToConfigObject=oC,iC.mergeConfigObjects=P5,Ge("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function Ka(){}function Wq(i){return i=Yt(i),new Yr(i).Db}function Fb(i,u,d){function v(P){nt(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=sn(u,!0):y=u,i=Yt(i),i=sn(i,!0);var w=new Uint8Array(12+i.byteLength+y.byteLength+d.byteLength),T=0;return v(i),v(y),v(d),w}function R5(i,u,d){return u!=="skd"?i:(u=d.serverCertificate,d=Yt(i).split("skd://").pop(),Fb(i,d,u))}function sC(i,u){i===2&&(i=u.drmInfo)&&Ew(i.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}Ge("shaka.drm.FairPlay",Ka),Ka.commonFairPlayResponse=function(i,u){if(i===2&&(i=u.originalRequest.drmInfo)&&Ew(i.keySystem)){try{var d=ot(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=Se(rr(d)))}},Ka.muxFairPlayRequest=function(i,u){sC(i,u)},Ka.expressplayFairPlayRequest=function(i,u){if(i===2){var d=u.drmInfo;d&&Ew(d.keySystem)&&sC(i,u)}},Ka.conaxFairPlayRequest=function(i,u){sC(i,u)},Ka.ezdrmFairPlayRequest=function(i,u){sC(i,u)},Ka.verimatrixFairPlayRequest=function(i,u){i===2&&(i=u.drmInfo)&&Ew(i.keySystem)&&(i=Le(u.body),i=Vn(i),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=Vt("spc="+i))},Ka.muxInitDataTransform=function(i,u,d){return R5(i,u,d)},Ka.expressplayInitDataTransform=function(i,u,d){return R5(i,u,d)},Ka.conaxInitDataTransform=function(i,u,d){if(u!=="skd")return i;u=d.serverCertificate,d=Yt(i).split("skd://").pop().split("?").shift(),d=o.atob(d);var v=new ArrayBuffer(d.length*2);v=lt(v);for(var y=0,w=d.length;y2||y.channelsCount>2)&&v.channelsCount!=y.channelsCount||v.spatialAudio!==y.spatialAudio||u&&!Gq(v,y))&&Kq(v.roles,y.roles)&&v.groupId===y.groupId)}return!v&&(v=d.video&&i.video)&&(d=d.video,v=i.video,v=!((!u||Gq(d,v))&&Kq(d.roles,v.roles))),v?!1:(this.g.add(i),!0)},aC.prototype.values=function(){return this.g.values()};function Gq(i,u){if(i.mimeType!=u.mimeType||(i=i.codecs.split(",").map(function(v){return Zh(v)}),u=u.codecs.split(",").map(function(v){return Zh(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 bke(i,u){if(u=="AUTO"){var d=i.some(function(v){return!!(v.video&&v.video.hdr&&v.video.hdr=="HLG")});u=Pe().sd(d)}return i.filter(function(v){return!(v.video&&v.video.hdr&&v.video.hdr!=u)})}function _ke(i,u){return i.filter(function(d){return!(d.video&&d.video.videoLayout&&d.video.videoLayout!=u)})}function Ske(i,u){return i.filter(function(d){return!(d.audio&&d.audio.spatialAudio!=u)})}function kke(i,u){return i.filter(function(d){return!(d.audio&&d.audio.codecs!=u)})}function lC(){}function g0(){var i=1/0,u=Pe();navigator.connection&&navigator.connection.saveData&&(i=360);var d={retryParameters:dc(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(P,N,V){return o.shakaMediaKeysPolyfill==="apple"&&N=="skd"&&(N=V.serverCertificate,V=Wq(P),P=Fb(P,V,N)),P},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},v="reload";ic()&&u.Pc()&&(v="smooth");var y={retryParameters:dc(),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:uC,manifestPreprocessorTXml:cC,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:uC,manifestPreprocessorTXml:cC,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},w={trackSelectionCallback:function(P){return ae(function(N){return N.return(P)})},downloadSizeCallback:function(P){var N;return ae(function(V){return V.g==1?navigator.storage&&navigator.storage.estimate?L(V,navigator.storage.estimate(),3):V.return(!0):(N=V.h,V.return(N.usage+P0?L(T,Promise.all(d),0):T.A(0)})}function $ke(i){var u,d,v,y,w;return ae(function(T){return!i.o&&(u=Qq(i))&&(i.o=u),i.o?(d=i.h.presentationTimeline.W(),v=[],y=i.o,y.video&&v.push($5(i,y.video,d)),y.audio&&v.push($5(i,y.audio,d)),(w=Xg(i.h.textStreams,i.g.preferredTextLanguage,i.g.preferredTextRole,i.g.preferForcedSubs)[0]||null)&&rK(y.audio,w,i.g)&&(v.push($5(i,w,d)),i.T=w),L(T,Promise.all(v),0)):T.A(0)})}function Qq(i){if(!i.u){var u=i.g.abrFactory;i.u=u(),i.u.configure(i.g.abr)}return u=kw(i.h.variants),u=i.C.create(u),i.u.setVariants(Array.from(u.values())),i.u.chooseVariant(!0)}function $5(i,u,d){var v,y,w,T,P;return ae(function(N){return N.g==1?(v=i.g.streaming.segmentPrefetchLimit||2,y=new Xw(v,u,function(V,W,q){return eC(V,W,q||null,i.g.streaming.retryParameters,i.Da,i.F)},!1),i.M.set(u.id,y),u.segmentIndex?N.A(2):L(N,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=qc(u.segmentIndex)),P?d?P.ba?L(N,Rq(y,P.ba),0):N.A(0):L(N,Db(y,P.startTime),0):N.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var i=this,u,d,v;return ae(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,Yc(v);B(y)})};function eY(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))}Ge("shaka.media.PreloadManager",Mu),Mu.prototype.destroy=Mu.prototype.destroy,Mu.prototype.waitForFinish=Mu.prototype.ll,Mu.prototype.getPrefetchedTextTrack=Mu.prototype.Qj,Mu.prototype.getPrefetchedVariantTrack=Mu.prototype.Rj;function Gv(i,u){jr.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 Vf(d,"enter",v,y)}},{kd:Vb,jd:y0,Uc:function(v,y){return Vf(d,"enter",v,y)}},{kd:zb,jd:y0,Uc:function(v,y){return Vf(d,"enter",v,y)}},{kd:y0,jd:Vb,Uc:function(v,y){return Vf(d,"exit",v,y)}},{kd:y0,jd:zb,Uc:function(v,y){return Vf(d,"exit",v,y)}},{kd:Vb,jd:zb,Uc:function(v,y){y?Vf(d,"skip",v,y):(Vf(d,"enter",v,y),Vf(d,"exit",v,y))}},{kd:zb,jd:Vb,Uc:function(v,y){return Vf(d,"skip",v,y)}}],this.h=new ze,this.h.D(this.i,"regionremove",function(v){d.g.delete(v.region)})}E(Gv,jr),Gv.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,jr.prototype.release.call(this)},Gv.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 Vf(i,u,d,v){u=new vn(u,new Map([["region",d],["seeking",v]])),i.dispatchEvent(u)}var Vb=1,y0=2,zb=3;function Kv(i,u,d){var v,y,w,T,P,N,V;return ae(function(W){switch(W.g){case 1:return v=b0(i),(y=Nke.get(v))?W.return(y):(w=0,T=Po([i],d),F(W,2),T.method="HEAD",L(W,u.request(w,T).promise,4));case 4:P=W.h,y=P.headers["content-type"],z(W,3);break;case 2:if(N=G(W),!N||N.code!=1002&&N.code!=1001){W.A(3);break}return T.method="GET",L(W,u.request(w,T).promise,6);case 6:V=W.h,y=V.headers["content-type"];case 3:return W.return(y?y.toLowerCase().split(";").shift():"")}})}function b0(i){return i=new Yr(i).Sb.split("/").pop().split("."),i.length==1?"":i.pop().toLowerCase()}var Nke=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 rp={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"},tY=_(Object.keys(rp)),N5=tY.next();!N5.done;N5=tY.next()){var nY=N5.value;rp[nY.toLowerCase()]=rp[nY]}function rY(i,u){if(i.lineBreak)return` `;if(i.nestedCues.length)return i.nestedCues.map(function(T){return rY(T,i)}).join("");if(!i.payload)return i.payload;var d=[],v=i.fontWeight>=Gg,y=i.fontStyle==Kg,w=i.textDecoration.includes(Lf);return v&&d.push(["b"]),y&&d.push(["i"]),w&&d.push(["u"]),y=i.color,y==""&&u&&(y=u.color),v="",(y=iY(y))&&(v+="."+y),y=i.backgroundColor,y==""&&u&&(y=u.backgroundColor),(u=iY(y))&&(v+=".bg_"+u),v&&d.push(["c",v]),d.reduceRight(function(T,P){var N=_(P);return P=N.next().value,N=N.next().value,"<"+P+(N===void 0?"":N)+">"+T+""},i.payload)}function iY(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 B5(i,u){var d=[];i=_(oY(i));for(var v=i.next();!v.done;v=i.next())if(v=v.value,v.isContainer)d.push.apply(d,A(B5(v.nestedCues,v)));else{var y=v.clone();y.nestedCues=[],y.payload=rY(v,u),d.push(y)}return d}function oY(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 fw(y.ig,w)}})(v))||u.push(v.ig);return u}function Bke(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 sY(i,u){var d=B5(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=Bke(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 F5(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 ar(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=Go.prototype,l.configure=function(){},l.remove=function(i,u){if(this.i)this.h.has(this.g)&&F5(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)&&sY(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 Fke(i){var u=Pe();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"}Ge("shaka.text.NativeTextDisplayer",Go),Go.prototype.enableTextDisplayer=Go.prototype.enableTextDisplayer,Go.prototype.setTextLanguage=Go.prototype.setTextLanguage,Go.prototype.setTextVisibility=Go.prototype.setTextVisibility,Go.prototype.isTextVisible=Go.prototype.isTextVisible,Go.prototype.destroy=Go.prototype.destroy,Go.prototype.append=Go.prototype.append,Go.prototype.remove=Go.prototype.remove,Go.prototype.configure=Go.prototype.configure;function Ks(i,u){for(qt("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=Ks.prototype,l.configure=function(){},l.remove=function(i,u){return this.g?(F5(this.g,function(d){return d.startTimei}),!0):!1},l.append=function(i){this.g&&sY(this.g,i)},l.destroy=function(){return this.g&&(F5(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&&aY(this),this.g&&(this.g.mode=i?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){aY(this)};function aY(i){i.h&&!i.g&&(i.g=i.h.addTextTrack("subtitles",i.i),i.g.mode="hidden")}Ge("shaka.text.SimpleTextDisplayer",Ks),Ks.prototype.enableTextDisplayer=Ks.prototype.enableTextDisplayer,Ks.prototype.setTextLanguage=Ks.prototype.setTextLanguage,Ks.prototype.setTextVisibility=Ks.prototype.setTextVisibility,Ks.prototype.isTextVisible=Ks.prototype.isTextVisible,Ks.prototype.destroy=Ks.prototype.destroy,Ks.prototype.append=Ks.prototype.append,Ks.prototype.remove=Ks.prototype.remove,Ks.prototype.configure=Ks.prototype.configure;function qs(){}l=qs.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(){},Ge("shaka.text.StubTextDisplayer",qs),qs.prototype.enableTextDisplayer=qs.prototype.enableTextDisplayer,qs.prototype.setTextLanguage=qs.prototype.setTextLanguage,qs.prototype.setTextVisibility=qs.prototype.setTextVisibility,qs.prototype.isTextVisible=qs.prototype.isTextVisible,qs.prototype.destroy=qs.prototype.destroy,qs.prototype.append=qs.prototype.append,qs.prototype.remove=qs.prototype.remove,qs.prototype.configure=qs.prototype.configure;function Ys(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 ar(function(){d.j.paused||ip(d)}),Hb(this),this.l=new Map,this.i=new ze,this.i.D(document,"fullscreenchange",function(){ip(d,!0)}),this.i.D(this.j,"seeking",function(){ip(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(){ip(d,!0)}),this.F.observe(this.g)),this.G=new Map}l=Ys.prototype,l.configure=function(i){this.C=i,Hb(this),ip(this,!0)},l.append=function(i){var u=[].concat(A(this.h));i=_(oY(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 fw(w,y.jg)}})(v))||this.h.push(v.jg);this.h.length&&Hb(this),ip(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}),ip(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),ip(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 jke(i,u){for(;u!=null;){if(u==i.g)return!0;u=u.parentElement}return!1}function lY(i,u,d,v,y){var w=!1,T=[],P=[];u=_(u);for(var N=u.next();!N.done;N=u.next()){N=N.value,y.push(N);var V=i.l.get(N),W=N.startTime<=v&&N.endTime>v,q=V?V.gj:null;V&&(T.push(V.kg),V.$c&&T.push(V.$c),W||(w=!0,i.l.delete(N),V=null)),W&&(P.push(N),V?jke(i,q)||(w=!0):(Uke(i,N,y),V=i.l.get(N),q=V.gj,w=!0)),N.nestedCues.length>0&&q&&lY(i,N.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(ne,ue){return ne.startTime!=ue.startTime?ne.startTime-ue.startTime:ne.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 ip(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&&lY(i,i.h,i.g,d,[])}}function Uke(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"&&zke(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==vs?"%":"px")+"-"+T.viewportAnchorX+"x"+T.viewportAnchorY+(T.viewportAnchorUnits==vs?"%":"px"),i.G.has(d))d=i.G.get(d);else{y=document.createElement("span");var N=T.heightUnits==vs?"%":"px",V=T.widthUnits==vs?"%":"px",W=T.viewportAnchorUnits==vs?"%":"px";y.id="shaka-text-region---"+d,y.classList.add("shaka-text-region"),y.style.position="absolute";var q=T.height,ne=T.width;T.heightUnits===2&&(q=T.height*5.33,N="%"),T.widthUnits===2&&(ne=T.width*P,V="%"),y.style.height=q+N,y.style.width=ne+V,T.viewportAnchorUnits===2?(P=T.viewportAnchorY/75*100,N=T.viewportAnchorX/(i.u===4/3?160:210)*100,P-=T.regionAnchorY*q/100,N-=T.regionAnchorX*ne/100,y.style.top=P+"%",y.style.left=N+"%"):(y.style.top=T.viewportAnchorY-T.regionAnchorY*q/100+W,y.style.left=T.viewportAnchorX-T.regionAnchorX*ne/100+W),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 Vke(i){var u=i.direction,d=i.positionAlign;return i=i.textAlign,d!==pw?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 zke(i,u,d,v,y){var w=u.style,T=d.nestedCues.length==0,P=v.length>1;w.whiteSpace="pre-wrap";var N=d.payload.replace(/\s+$/g,function(W){return" ".repeat(W.length)});if(w.webkitTextStrokeColor=d.textStrokeColor,w.webkitTextStrokeWidth=d.textStrokeWidth,w.color=d.color,w.direction=d.direction,w.opacity=d.opacity,w.paddingLeft=j5(d.linePadding,d,i.o),w.paddingRight=j5(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 V=u;else V=document.createElement("span"),u.appendChild(V);d.border&&(V.style.border=d.border),y||((u=Hke(v,function(W){return W.backgroundColor}))?V.style.backgroundColor=u:N&&(V.style.backgroundColor="rgba(0, 0, 0, 0.8)")),N&&(V.setAttribute("translate","no"),V.textContent=N)}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=j5(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==Pv?(w.width="100%",d.lineAlign==Rv?w.top=v+"%":d.lineAlign=="end"&&(w.bottom=100-v+"%")):d.writingMode=="vertical-lr"?(w.height="100%",d.lineAlign==Rv?w.left=v+"%":d.lineAlign=="end"&&(w.right=100-v+"%")):(w.height="100%",d.lineAlign==Rv?w.right=v+"%":d.lineAlign=="end"&&(w.left=100-v+"%")))),w.lineHeight=d.lineHeight,i=Vke(d),i=="line-left"?(w.cssFloat="left",d.position!==null&&(w.position="absolute",d.writingMode==Pv?(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==Pv?(w.right=100-d.position+"%",w.width="auto"):w.bottom=d.position+"%")):d.position!==null&&d.position!=50&&(w.position="absolute",d.writingMode==Pv?(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==Pv?w.width=d.size+"%":w.height=d.size+"%")}function j5(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 Hke(i,u){for(var d=i.length-1;d>=0;d--){var v=u(i[d]);if(v||v===0)return v}return null}Ge("shaka.text.UITextDisplayer",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.remove=Ys.prototype.remove,Ys.prototype.destroy=Ys.prototype.destroy,Ys.prototype.append=Ys.prototype.append,Ys.prototype.configure=Ys.prototype.configure;function Wke(i,u){function d(w){for(var T=w,P=_(u),N=P.next();!N.done;N=P.next())N=N.value,N.end&&N.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 Dd: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}Ge("shaka.text.WebVttGenerator",function(){});function U5(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 ze,this.G=[],this.h=null}U5.prototype.setMediaElement=function(i){this.h=i,Xke(this)},U5.prototype.configure=function(i){this.g=i,Zke(this)};function Gke(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},uY(i),i.m={},i.h=null,i.i.Pa()}function Kke(i,u){i.o=u,i.o?i.l==gC?i.l=yC:i.l==bC&&(i.l=_C):i.l==yC?i.l=gC:i.l==_C&&(i.l=bC)}function qke(i,u){if(i.g&&i.g.enabled&&(Xs(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 Yke(i,u,d){try{if(!i.g.enabled)return u;var v=V5(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=hC;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":y=vC;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=gY;break e}y=void 0}v.ot=y,v.su=!0;var w=Wb(v);return fC(u,w)}catch(T){return yt("CMCD_SRC_ERROR","Could not generate src CMCD data.",T),u}}function Xke(i){i.i.D(i.h,"playing",function(){i.B||(i.B=Date.now()),Xs(i,"ps",{dd:"p"})}),i.i.D(i.h,"volumechange",function(){Xs(i,i.h.muted?"m":"um")}),i.i.D(i.h,"play",function(){i.u||(i.u=Date.now(),Xs(i,"ps",{dd:"s"}))}),i.i.D(i.h,"pause",function(){Xs(i,"ps",{dd:"a"})}),i.i.D(i.j,"buffering",function(){Xs(i,"ps",{dd:"w"})}),i.i.D(i.h,"seeking",function(){return Xs(i,"ps",{dd:"k"})}),i.i.D(document,"fullscreenchange",function(){Xs(i,document.fullscreenElement?"pe":"pc")});var u=i.h;(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.i.D(u,"webkitpresentationmodechanged",function(){u.webkitPresentationMode?Xs(i,u.webkitPresentationMode!=="inline"?"pe":"pc"):u.webkitSupportsFullscreen&&Xs(i,u.webkitDisplayingFullscreen?"pe":"pc")}),i.i.D(i.h,"enterpictureinpicture",function(){Xs(i,"pe")}),i.i.D(i.h,"leavepictureinpicture",function(){Xs(i,"pc")}),"documentPictureInPicture"in o&&i.i.D(o.documentPictureInPicture,"enter",function(d){Xs(i,"pe"),i.i.Ba(d.window,"pagehide",function(){Xs(i,"pc")})}),i.i.D(document,"visibilitychange",function(){document.hidden?Xs(i,"b",{bg:!0}):Xs(i,"b")}),i.i.D(i.j,"complete",function(){Xs(i,"ps",{dd:"e"})})}function Zke(i){uY(i);var u=cY(i);u=_(u);for(var d=u.next();!d.done;d=u.next())if(d=d.value.timeInterval,d===void 0&&(d=cwe),d>=1){var v=new ar(function(){return Xs(i,dwe)});v.Ea(d),i.G.push(v)}}function uY(i){if(i.G)for(var u=_(i.G),d=u.next();!d.done;d=u.next())d.value.stop();i.G=[]}function cY(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===kY&&u.enabled}):[]}function dY(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===SY&&u.enabled===!0}):[]}function V5(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 Xs(i,u,d){if(d=d===void 0?{}:d,u=Object.assign({e:u,ts:Date.now()},d),u=W5(i,u,kY),d=i.g.targets,!(i.g.version0&&!T.includes(P))||fY(i,w,y)}}}function _0(i,u,d){if(i.g.enabled){d=W5(i,d,_Y);var v=hY({mode:_Y,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==K5?Array.from(new Set([].concat(A(q5),A(owe)))):yY;v=z5(v,y),d=H5(d,v),Jke(d,u,i.g.useHeaders)}}function fY(i,u,d,v){var y=dc(),w=d.url;if(d.useHeaders){if(u=mY(u),!Object.keys(u).length)return;v&&Object.assign(v.headers,u),v=Po([w],y),Object.assign(v.headers,u)}else{if(u=Wb(u),!u)return;w=fC(w,u),v&&(v.uri=w),v=Po([w],y)}i.j.Wb().request(9,v)}function Jke(i,u,d){if(d)i=mY(i),Object.keys(i).length&&Object.assign(u.headers,i);else{var v=Wb(i);v&&(u.uris=u.uris.map(function(y){return fC(y,v)}))}}function z5(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 H5(i,u){return Object.keys(i).reduce(function(d,v){return u.includes(v)&&(d[v]=i[v]),d},{})}function Qke(i){if(i.type===0)return nwe;if(i=i.stream){var u=i.type;if(u=="video")return i.codecs&&i.codecs.includes(",")?vC:pC;if(u=="audio")return hC;if(u=="text")return i.mimeType==="application/mp4"?mC:G5}}function hY(i){var u=Object.keys(i).sort().reduce(function(d,v){return v!=="enabled"&&(d[v]=i[v]),d},{});return JSON.stringify(u)}function ewe(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 pY(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 twe(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 pC:return i.videoBandwidth||NaN;case hC:return i.audioBandwidth||NaN;default:return i.bandwidth}}function vY(i,u,d){var v=u.segment,y=0;v&&(y=v.endTime-v.startTime),y={d:y*1e3,st:i.j.W()?iwe:rwe},y.ot=Qke(u);var w=y.ot===pC||y.ot===hC||y.ot===vC||y.ot===mC;if(u=u.stream){var T=i.j.Ob();if(w&&(y.bl=ewe(i,u.type),y.ot!==mC)){var P=pY(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&&!qe(v.P(),T.P())){var N=T.P()[0];P=new URL(N);var V=new URL(d);if(P.origin!==V.origin)d=N;else{d=P.pathname.split("/").slice(1),N=V.pathname.split("/").slice(1,-1),V=Math.min(d.length,N.length);for(var W=0;W0&&d<=1?i*(1-d)+u*d:i};function wY(i){return i?i.toLowerCase()==="false"?!1:/^[-0-9]/.test(i)?parseInt(i,10):i.replace(/["]+/g,""):!0}Ge("shaka.util.CmsdManager",Du),Du.prototype.getBandwidthEstimate=Du.prototype.getBandwidthEstimate,Du.prototype.getRoundTripTime=Du.prototype.Uj,Du.prototype.getResponseDelay=Du.prototype.Tj,Du.prototype.getEstimatedThroughput=Du.prototype.$h,Du.prototype.getMaxBitrate=Du.prototype.bi;var CY="etp",EY="mb",xY="rd",TY="rtt";function AY(){this.g=null,this.h=[]}function Y5(i,u){return ae(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)})}AY.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function Mt(i,u,d){u=u===void 0?null:u,jr.call(this);var v=this;this.m=xC,this.h=null,this.xe=u,this.$=!1,this.Ie=new ze,this.ye=new ze,this.j=new ze,this.ac=new ze,this.yc=new ze,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new AY,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=Xc(this),this.Zf=qq(),this.V=null,this.Ke=-1,this.Zb=null,this.xa={width:1/0,height:1/0},this.Ae=new qP(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 U5(this,this.g.cmcd),this.wa=new Du(this.g.cmsd),this.J=OY(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new ar(function(){return ae(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)})}),TC&&(this.C=TC(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(y){var w;return ae(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 ae(function(y){return v.h||!v.Jd?y.A(0):L(y,v.fc(v.Jd,!0),0)})})),AC&&(this.Da=AC(this),this.Da.configure(this.g.queue)),this.Ie.D(o,"online",function(){rR(v),v.fh()}),this.De=new ar(function(){for(var y=Date.now()/1e3,w=!1,T=!0,P=_(v.i.variants),N=P.next();!N.done;N=P.next())N=N.value,N.disabledUntilTime>0&&N.disabledUntilTime<=y&&(N.disabledUntilTime=0,w=!0),N.disabledUntilTime>0&&(T=!1);T&&v.De.stop(),w&&op(v,!1,void 0,!1,!1)}),this.Ta=null,i&&(qt("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fc(i,!0)),this.u=null}E(Mt,jr);function SC(i){i.T!=null&&(ql(i.T),i.T.release(),i.T=null)}function fwe(i,u,d){d||u.lcevc.enabled?(SC(i),i.T==null&&(i.T=new No(i.h,i.Kh,u.lcevc,d),i.H&&(i.H.H=i.T))):SC(i)}function li(i,u){return new vn(i,u)}l=Mt.prototype,l.destroy=function(){var i=this,u;return ae(function(d){switch(d.g){case 1:return i.m==fc?d.return():(SC(i),u=i.detach(),i.m=fc,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),jr.prototype.release.call(i),B(d)}})};function IY(i,u){iX.set(i,u)}function S0(i,u){i.dispatchEvent(li("onstatechange",new Map().set("state",u)))}l.fc=function(i,u){u=u===void 0?!0:u;var d=this,v,y,w;return ae(function(T){switch(T.g){case 1:if(d.m==fc)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,X5(d,"attach"),4);case 4:if(T.h)return T.return();if(F(T,5,6),v||(S0(d,"attach"),y=function(){var P=iR(d,!1);P&&k0(d,P)},d.ye.D(i,"error",y),d.h=i,d.M&&d.M.setMediaElement(i)),Pe(),!u||!$d()||d.H){T.A(6);break}return L(T,Z5(d),6);case 6:Y(T),d.ma.release(),re(T,0);break;case 5:return w=G(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 ae(function(d){if(d.g==1){if(u.m==fc)throw new Ee(2,7,7e3);return L(d,u.Bc(!1,i),2)}if(d.g!=3)return L(d,X5(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 X5(i,u){var d;return ae(function(v){return v.g==1?(d=++i.Je,L(v,Y5(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,N,V,W,q,ne,ue,fe,me,ge,De,Ae;return ae(function(He){switch(He.g){case 1:return d.m!=fc&&(d.m=xC),L(He,X5(d,"unload"),2);case 2:return He.h?He.return():(U(He,3),d.Sa=!1,S0(d,"unload"),SC(d),v=d.ze.map(function(it){return it()}),d.ze=[],L(He,Promise.all(v),5));case 5:if(d.dispatchEvent(li("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){He.A(6);break}return L(He,d.I.stop(),7);case 7:d.I=null,d.xc=null;case 6:if(d.o&&d.o.stop(),!d.l){He.A(8);break}return L(He,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){He.A(10);break}return L(He,d.F.destroy(),11);case 11:d.F=null;case 10:if(!d.H){He.A(12);break}return L(He,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&&Gke(d.M),d.wa&&(d.wa.g=null),!d.u){He.A(14);break}return L(He,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=[],Uw(d.h)&&d.h.load()}if(!d.F){He.A(16);break}return L(He,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),N=P.next();!N.done;N=P.next())for(V=N.value,W=_([V.audio,V.video]),q=W.next();!q.done;q=W.next())(ne=q.value)&&ne.segmentIndex&&ne.segmentIndex.release();for(ue=_(d.i.textStreams),fe=ue.next();!fe.done;fe=ue.next())me=fe.value,me.segmentIndex&&me.segmentIndex.release()}for(d.g&&d.g.streaming.clearDecodingCache&&(ww.clear(),Zg.clear()),d.i=null,d.B=new dC,d.Jh=null,d.Zb=null,d.V=null,d.Ke=-1,d.Ge=[],ge=_(d.uc.values()),De=ge.next();!De.done;De=ge.next())Ae=De.value,Ae.stop();d.uc.clear(),d.kb=[],d.Xf=-1,d.J&&d.J.Qh(),Gb(d);case 3:Y(He),d.ma.release(),re(He,4);break;case 4:if(Pe(),i&&$d()&&!d.H&&d.h)return L(He,Z5(d),0);He.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,N,V,W,q,ne,ue,fe,me,ge,De;return ae(function(Ae){switch(Ae.g){case 1:if(v.m==fc)throw new Ee(2,7,7e3);if(y=null,w="",i instanceof Mu){if(i.j)throw new Ee(2,7,7006);y=i,w=y.rd()||""}else w=i||"";return L(Ae,Y5(v.ma,"load"),2);case 2:if(v.ma.release(),!v.h)throw new Ee(2,7,7002);if(!v.X){Ae.A(3);break}return v.X=w,L(Ae,v.Bc(!1),3);case 3:if(T=++v.Je,P=function(){return ae(function(He){if(He.g==1)return v.Je==T?He.A(0):y?L(He,y.destroy(),3):He.A(3);throw new Ee(2,7,7e3)})},N=function(He,it){return ae(function(gt){switch(gt.g){case 1:return U(gt,2),L(gt,Y5(v.ma,it),4);case 4:return L(gt,P(),5);case 5:return L(gt,He(),6);case 6:return L(gt,P(),7);case 7:y&&v.g&&(y.g=v.g);case 2:Y(gt),v.ma.release(),re(gt,0)}})},F(Ae,5,6),u==null&&y&&(u=y.getStartTime()),v.O=u,v.Sa=!1,v.dispatchEvent(li("loading")),y){d=y.V,Ae.A(8);break}if(d){Ae.A(8);break}return L(Ae,N(function(){return ae(function(He){if(He.g==1)return L(He,MY(v,w),2);d=He.h,B(He)})},"guessMimeType_"),8);case 8:if(V=!!y,y){Zq(y,v),v.B=y.getStats(),Ae.A(11);break}return L(Ae,PY(v,w,u,d,!0,v.g),12);case 12:(y=Ae.h)?(y.F=!1,Zq(y,v),v.B=y.getStats(),y.start(),y.B.catch(function(){})):v.B=new dC;case 11:return W=!y,q=Date.now()/1e3,v.B=y?y.getStats():new dC,v.X=w,v.aa=d||null,Gb(v),ne=function(){var He=v.h?v.h.buffered:null;return{start:YK(He)||0,end:jw(He)||0}},v.ya=new Mb(ne),v.ya.addEventListener("regionadd",function(He){J5(v,He.region,"metadataadded")}),W?L(Ae,N(function(){return ae(function(He){return L(He,mwe(v,d),0)})},"initializeSrcEqualsDrmInner_"),23):(v.ib=new Mb(ne),L(Ae,N(function(){return ae(function(He){if(He.g==1)return L(He,Promise.race([y.ma,y.B]),2);v.xc=y.H;var it=y;it.qa=!0,v.I=it.l,v.i=y.Hg(),B(He)})},"waitForFinish"),15));case 15:if(v.H){Ae.A(16);break}return L(Ae,N(function(){return ae(function(He){return L(He,Z5(v),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return v.i&&v.i.textStreams.length&&(v.u.enableTextDisplayer?v.u.enableTextDisplayer():qt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),L(Ae,N(function(){return ae(function(He){return L(He,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=Pke(y),v.ue=y.Fa,(ue=y.C)&&(v.K=ue),V&&v.h&&v.h.nodeName==="AUDIO"&&(hwe(v),v.configure("manifest.disableVideo",!0)),y.i){Ae.A(19);break}return L(Ae,N(function(){return ae(function(He){return L(He,Jq(y,v.h),0)})},"drmEngine_.init"),19);case 19:return v.F=Rke(y),L(Ae,N(function(){return ae(function(He){return L(He,v.F.fc(v.h),0)})},"drmEngine_.attach"),21);case 21:return fe=v.g.abrFactory,v.o&&v.Ce==fe||(v.Ce=fe,v.o&&v.o.release(),v.o=fe(),typeof v.o.setMediaElement!="function"&&(qt("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),v.o.setMediaElement=function(){}),typeof v.o.setCmsdManager!="function"&&(qt("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),v.o.setCmsdManager=function(){}),typeof v.o.trySuggestStreams!="function"&&(qt("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),v.o.trySuggestStreams=function(){}),v.o.configure(v.g.abr)),me=Mke(y),ge=y.o,L(Ae,N(function(){return ae(function(He){return L(He,vwe(v,q,ge,me),0)})},"loadInner_"),22);case 22:Lke(y),v.aa&&Pe().aj()&&fb(v.aa)&&k2e(v.H,v.X,v.aa),Ae.A(14);break;case 23:return L(Ae,N(function(){return ae(function(He){return L(He,gwe(v,q,d),0)})},"srcEqualsInner_"),14);case 14:v.dispatchEvent(li("loaded"));case 6:if(Y(Ae),!y){Ae.A(25);break}return L(Ae,y.destroy(),25);case 25:v.Ta=null,re(Ae,0);break;case 5:if(De=G(Ae),!De||De.code==7e3){Ae.A(27);break}return L(Ae,v.Bc(!1),27);case 27:throw De}})};function hwe(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 ae(function(y){return y.g==1?L(y,LY(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 ae(function(y){return y.g==1?L(y,LY(d,u),2):y.g!=3?(v=y.h,L(y,d.detach(i),3)):y.return(v)})};function LY(i,u){u=u===void 0?!1:u;var d,v,y;return ae(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,RY(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,N=i.xc;T.h=i.i,T.l=P,T.H=N,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 ae(function(P){return P.g==1?(w=Xc(y),Uf(w,v||y.g,Xc(y)),L(P,PY(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 ae(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 PY(i,u,d,v,y,w){y=y===void 0?!1:y;var T,P,N;return ae(function(V){return V.g==1?v?V.A(2):L(V,MY(i,u),3):(V.g!=2&&(v=V.h),pwe(i,v)?V.return(null):(T=w||i.g,P=!1,y&&i.h&&i.h.nodeName==="AUDIO"&&(P=!0),N=RY(i,u,d,v||null,T,!y,P),N=y?N.then(function(W){return W.F=!1,W}):N.then(function(W){return i.Ee.push(W),W}),V.return(N)))})}function RY(i,u,d,v,y,w,T){w=w===void 0?!0:w,T=T===void 0?!1:T;var P,N,V,W,q,ne,ue,fe,me,ge,De,Ae,He,it,gt;return ae(function(Je){return Je.g==1?(P=null,N=on(y),T&&(N.manifest.disableVideo=!0),V=function(){return P.R&&P.j?null:P},W=function(){return V()?V().getConfiguration():i.g},i.xa.width!=1/0||i.xa.height!=1/0||i.g.ignoreHardwareResolution?Je.A(2):(q=Pe(),L(Je,q.jc(),3))):(Je.g!=2&&(ne=Je.h,i.xa.width=ne.width,i.xa.height=ne.height),ue=new qP(N,i.xa,null),fe={networkingEngine:i.J,filter:function(Ue){var dt,mt;return ae(function(pt){if(pt.g==1)return L(pt,MK(ue,Ue),2);if(pt.g!=4)return dt=pt.h,dt?(mt=li("trackschanged"),L(pt,Promise.resolve(),4)):pt.A(0);P.dispatchEvent(mt),B(pt)})},makeTextStreamsForClosedCaptions:function(Ue){return Lwe(i,Ue)},onTimelineRegionAdded:function(Ue){g5(P.I,Ue)},onEvent:function(Ue){return P.dispatchEvent(Ue)},onError:function(Ue){return P.onError(Ue)},isLowLatencyMode:function(){return W().streaming.lowLatencyMode},updateDuration:function(){i.l&&P.R&&i.l.updateDuration()},newDrmInfo:function(Ue){var dt=P.i,mt=dt?dt.g:null;mt&&dt.B&&$K(ue,mt.keySystem,Ue)},onManifestUpdated:function(){var Ue=new Map().set("isLive",i.W());P.dispatchEvent(li("manifestupdated",Ue)),Ub(P,!1,function(){i.C&&i.C.onManifestUpdated(i.W())})},getBandwidthEstimate:function(){return i.o.getBandwidthEstimate()},onMetadata:function(Ue,dt,mt,pt){var _t=Ue;(Ue=="com.apple.hls.interstitial"||Ue=="com.apple.hls.overlay")&&(_t="com.apple.quicktime.HLS",Ue={startTime:dt,endTime:mt,values:pt},i.C&&i.C.onHLSInterstitialMetadata(i,i.h,Ue)),pt=_(pt),Ue=pt.next();for(var kt={};!Ue.done;kt={Yg:void 0},Ue=pt.next())kt.Yg=Ue.value,kt.Yg.name!="ID"&&Ub(P,!1,(function(Ot){return function(){Q5(i,dt,mt,_t,Ot.Yg)}})(kt))},disableStream:function(Ue){return i.disableStream(Ue,i.g.streaming.maxDisabledTime)},addFont:function(Ue,dt){return i.addFont(Ue,dt)}},me=new Mb(function(){return i.Qa()}),me.addEventListener("regionadd",function(Ue){var dt=Ue.region;Yb(i,"timelineregionadded",dt,P),Ub(P,!1,function(){i.C&&(i.C.onDashTimedMetadata(dt),i.C.onDASHInterstitialMetadata(i,i.h,dt))})}),ge=null,N.streaming.observeQualityChanges&&(ge=new qw(function(){return i.Fc()}),ge.addEventListener("qualitychange",function(Ue){eX(i,Ue.quality,Ue.position)}),ge.addEventListener("audiotrackchange",function(Ue){eX(i,Ue.quality,Ue.position,!0)})),De=!0,Ae={tc:i.J,onError:function(Ue){return P.onError(Ue)},vf:function(Ue){Ub(P,!0,function(){i.F&&Rwe(i,Ue)})},onExpirationUpdated:function(Ue,dt){var mt=li("expirationupdated");P.dispatchEvent(mt),(mt=P.l)&&mt.onExpirationUpdated&&mt.onExpirationUpdated(Ue,dt)},onEvent:function(Ue){P.dispatchEvent(Ue),Ue.type=="drmsessionupdate"&&De&&(De=!1,Ue=Date.now()/1e3-P.ya,(i.B||P.getStats()).m=Ue,i.T&&ql(i.T))}},He=OY(i,V),hK(i.J,He),it=function(){return i.md(Ae)},gt={config:N,wk:fe,Hk:me,Gk:ge,md:it,vk:ue,networkingEngine:He,ij:w},P=new Mu(u,v,d,gt),Je.return(P))})}function MY(i,u){var d,v,y,w;return ae(function(T){return T.g==1?(d=i.g.manifest.retryParameters,L(T,Kv(u,i.J,d),2)):(v=T.h,v=="application/x-mpegurl"&&(y=Pe(),y.Ha()==="WEBKIT"&&(v="application/vnd.apple.mpegurl")),v=="video/quicktime"&&(w=Pe(),w.Ha()==="CHROMIUM"&&(v="video/mp4")),T.return(v))})}function pwe(i,u){if(!$d(Pe()))return!0;if(u){if((i.h||jv()).canPlayType(u)=="")return!1;if(!$d(Pe())||!i0.has(u))return!0;if(fb(u))return Pe().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 kC(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):qt("Text displayer w/ configure",'Text displayer should have a "configure" method!'),i.u.setTextLanguage||qt("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&&P2e(i.H,i.u),i.Jh=d,i.l&&nke(i.l)):i.u&&i.u.configure&&i.u.configure(i.g.textDisplayer)}function Z5(i){var u,d,v;return ae(function(y){if(y.g==1)return Pe(),S0(i,"media-source"),i.g.mediaSource.useSourceElements&&Uw(i.h),kC(i),u=Ewe(i.h,i.u,{Jj:function(){return i.keySystem()},onMetadata:function(w,T,P){w=_(w);for(var N=w.next();!N.done;N=w.next())if(N=N.value,N.data&&typeof N.cueTime=="number"&&N.frames){var V=N.cueTime+T,W=P;W&&V>W&&(W=V);for(var q=_(N.frames),ne=q.next();!ne.done;ne=q.next())Q5(i,V,W,"org.id3",ne.value);i.C&&i.C.onHlsTimedMetadata(N,V)}},Bk:function(w){i.ib&&g5(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 DY(i,u,d){function v(){return tR(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==Ds&&i.o.playbackRateChanged(w),WY(i,w)),w=li("ratechange"),i.dispatchEvent(w))}),u.remote&&(i.j.D(u.remote,"connect",function(){i.l&&u.remote.state=="connected"&&zf(i),Sa(i)}),i.j.D(u.remote,"connecting",function(){return Sa(i)}),i.j.D(u.remote,"disconnect",function(){return ae(function(w){if(w.g==1)return i.l&&u.remote.state=="disconnected"?L(w,nC(i.l),3):w.A(2);w.g!=2&&zf(i),Sa(i),B(w)})})),u.audioTracks&&(i.j.D(u.audioTracks,"addtrack",function(){return Sa(i)}),i.j.D(u.audioTracks,"removetrack",function(){return Sa(i)}),i.j.D(u.audioTracks,"change",function(){return Sa(i)})),u.videoTracks&&(i.j.D(u.videoTracks,"addtrack",function(){return Sa(i)}),i.j.D(u.videoTracks,"removetrack",function(){return Sa(i)}),i.j.D(u.videoTracks,"change",function(){return Sa(i)})),(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.j.D(u,"webkitpresentationmodechanged",function(){i.xe&&kC(i,!0)}),u.textTracks){var y=function(){i.m===Cl&&i.u instanceof Go&&zf(i),Sa(i)};i.j.D(u.textTracks,"addtrack",function(w){if(w.track)switch(w=w.track,w.kind){case"metadata":_we(i,w);break;case"chapters":Swe(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 vwe(i,u,d,v){var y,w,T,P,N,V,W,q,ne,ue,fe,me,ge,De,Ae,He,it,gt,Je,Ue,dt,mt,pt,_t,kt,Ot,$t,Ct;return ae(function(At){switch(At.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(zt){y.playbackRate=zt},ui:function(zt){y.currentTime+=zt}}),DY(i,y,u),("onchange"in o.screen)&&i.j.D(o.screen,"change",function(){if(i.K.getConfiguration){var zt=i.K.getConfiguration();zt.hdrLevel=="AUTO"?qv(i):i.g.preferredVideoHdrLevel=="AUTO"&&i.g.abr.enabled&&(zt.hdrLevel="AUTO",i.K.configure(zt),qv(i))}}),w=!1,T=_(i.i.variants),P=T.next();!P.done;P=T.next())N=P.value,(V=N.video&&N.video.dependencyStream)&&(w=bl(V));fwe(i,i.g,w),i.Fd=i.g.preferredTextLanguage,i.Md=i.g.preferredTextRole,i.Ld=i.g.preferForcedSubs,oR(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),i.o.init(function(zt,tn,Hn){i.i&&i.l&&zt!=i.l.o&&Kb(i,zt,!0,tn===void 0?!1:tn,Hn===void 0?0:Hn)}),i.o.setMediaElement(y),i.o.setCmsdManager(i.wa),i.l=xwe(i),i.l.configure(i.g.streaming),i.m=Ds,i.dispatchEvent(li("streaming")),W=d;case 2:for((ne=i.l.o)||W||(W=KY(i,!0)),ue=[],q=ne||W,fe=_([q.video,q.audio]),me=fe.next();!me.done;me=fe.next())(ge=me.value)&&!ge.segmentIndex&&(ue.push(ge.createSegmentIndex()),ge.dependencyStream&&ue.push(ge.dependencyStream.createSegmentIndex()));if(!(ue.length>0)){At.A(4);break}return L(At,Promise.all(ue),4);case 4:if(!q||q.disabledUntilTime!=0){At.A(2);break}if(i.I&&i.I.onInitialVariantChosen&&i.I.onInitialVariantChosen(q),i.i.isLowLatency&&(i.g.streaming.lowLatencyMode?i.configure(i.Zf):rt("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.")),i.M&&(Kke(i.M,i.i.isLowLatency&&i.g.streaming.lowLatencyMode),qke(i.M,u*1e3)),oR(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),Q2e(i.l,i.g.playRangeStart,i.g.playRangeEnd),i.Sa=!0,i.dispatchEvent(li("canupdatestarttime")),De=function(zt){i.G=kwe(i,zt),i.ob=wwe(i,zt),$Y(i,y,!1)},i.g.streaming.startAtSegmentBoundary||(Ae=i.O,Ae==null&&i.i.startTime&&(Ae=i.i.startTime),De(Ae)),ne){At.A(7);break}if(!i.g.streaming.startAtSegmentBoundary){At.A(8);break}return He=i.i.presentationTimeline,i.O instanceof Date&&(gt=He.m||He.i,Je=i.O.getTime()/1e3-gt,Je!=null&&(it=Je)),it==null&&(it=typeof i.O=="number"?i.O:i.h.currentTime),i.O==null&&i.i.startTime&&(it=i.i.startTime),Ue=He.Xb(),dt=He.Gb(),itdt&&(it=dt),L(At,Pwe(W,it),9);case 9:mt=At.h,De(mt);case 8:Kb(i,W,!0,!1,0);case 7:return i.G.ready(),pt=i.Kc().find(function(zt){return zt.active}),pt||((_t=Xg(i.i.textStreams,i.Fd,i.Md,i.Ld)[0]||null)&&D5(i.B.h,_t,!0),W&&(_t?(rK(W.audio,_t,i.g)&&(i.$=!0),i.$&&i.u.setTextVisibility(!0)):(i.$=!1,i.u.setTextVisibility(!1)),JY(i)),_t&&(i.g.streaming.alwaysStreamText||i.Og())&&(Zw(i.l,_t),qb(i))),L(At,i.l.start(v),10);case 10:i.g.abr.enabled&&(i.o.enable(),QY(i)),Sa(i),i.i.variants.some(function(zt){return zt.primary}),((kt=i.W())&&(i.g.streaming.liveSync&&i.g.streaming.liveSync.enabled||i.i.serviceDescription||i.g.streaming.liveSync.panicMode)||i.g.streaming.vodDynamicPlaybackRate)&&(Ot=function(){return GY(i)},i.j.D(y,"timeupdate",Ot)),kt||($t=function(){return EC(i)},i.j.D(y,"timeupdate",$t),EC(i),i.i.nextUrl&&(i.g.streaming.preloadNextUrlWindow>0&&(Ct=function(){var zt;return ae(function(tn){if(tn.g==1)return zt=i.Qa().end-i.h.currentTime,isNaN(zt)||!(zt<=i.g.streaming.preloadNextUrlWindow)?tn.A(0):(i.j.Ma(y,"timeupdate",Ct),L(tn,i.preload(i.i.nextUrl),4));i.Ta=tn.h,B(tn)})},i.j.D(y,"timeupdate",Ct)),i.j.D(y,"ended",function(){i.load(i.Ta||i.i.nextUrl)}))),i.C&&i.C.onManifestUpdated(kt),B(At)}})}function mwe(i,u){var d,v,y;return ae(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=li("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=iK([u]),i.F.O=!0,L(w,SK(i.F,[y],[]),2)):L(w,i.F.fc(i.h),0)})}function gwe(i,u,d){var v,y,w,T,P,N,V,W,q,ne,ue,fe;return ae(function(me){switch(me.g){case 1:if(S0(i,"src-equals"),v=i.h,i.G=new kq(v),y=!1,i.ze.push(function(){y=!0}),i.dispatchEvent(li("canupdatestarttime")),i.O!=null&&i.G.Wf(i.O),i.ob=Cwe(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}}),$Y(i,v,!0),v.textTracks&&(kC(i),w=function(ge){if(!(i.u instanceof Go)){var De=wC(i).find(function(Ae){return Ae.mode!=="disabled"});De&&(De.mode=ge?"showing":"hidden"),i.u instanceof Ks&&(De=Twe(i))&&(De.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)})),DY(i,v,u),P=Yke(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 Uw(v),v.src=P,N=Pe(),N.Ua()=="TV"&&v.load(),v.preload!="none"&&!v.autoplay&&fb(d)&&N.Ha()==="WEBKIT"&&v.load(),i.m=Cl,i.dispatchEvent(li("streaming")),V=new ei,p0(v,HTMLMediaElement.HAVE_METADATA,i.j,function(){i.G.ready(),i.aa&&fb(i.aa)||V.resolve()}),W=function(){return new Promise(function(ge){var De=new ar(ge);i.j.D(v.textTracks,"change",function(){return De.ia(.5)}),De.ia(.5)})},p0(v,HTMLMediaElement.HAVE_CURRENT_DATA,i.j,function(){var ge,De,Ae,He,it;return ae(function(gt){if(gt.g==1)return L(gt,W(),2);if(y)return gt.return();if(ywe(i),ge=wC(i),ge.some(function(Je){return Je.mode==="showing"})&&(i.$=!0,i.u.setTextVisibility(!0)),!(i.u instanceof Go))for(ge.length&&(i.u.enableTextDisplayer?i.u.enableTextDisplayer():qt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),De=!1,Ae=_(ge),He=Ae.next();!He.done;He=Ae.next())it=He.value,it.mode!=="disabled"&&(De?(it.mode="disabled",rt("Found more than one enabled text track, disabling it",it)):(VY(i,it),De=!0));bwe(i),i.aa&&fb(i.aa)&&V.resolve(),B(gt)})}),v.error?V.reject(iR(i)):v.preload=="none"&&(rt('With