From f5a67e6ebd1cbe64ca94f83dab64dac077d1612d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Oct 2023 11:12:12 +0000 Subject: [PATCH] Deploy to GitHub pages --- playground/assets/Form.244f63e7.js | 1 + playground/assets/Home.ffe708ad.js | 1 + playground/assets/Server.d60781cf.js | 1 + .../assets/jsoneditor-icons.45c98bf0.svg | 749 ++++++++++ playground/assets/main.adc53250.js | 1302 +++++++++++++++++ playground/assets/style.72f3f13c.css | 6 + playground/index.html | 58 + 7 files changed, 2118 insertions(+) create mode 100644 playground/assets/Form.244f63e7.js create mode 100644 playground/assets/Home.ffe708ad.js create mode 100644 playground/assets/Server.d60781cf.js create mode 100644 playground/assets/jsoneditor-icons.45c98bf0.svg create mode 100644 playground/assets/main.adc53250.js create mode 100644 playground/assets/style.72f3f13c.css create mode 100644 playground/index.html diff --git a/playground/assets/Form.244f63e7.js b/playground/assets/Form.244f63e7.js new file mode 100644 index 0000000..904cf73 --- /dev/null +++ b/playground/assets/Form.244f63e7.js @@ -0,0 +1 @@ +import{S as _}from"./Server.d60781cf.js";import{d as g,D as C,f as y,r as m,h as D,g as h,_ as k,i as v,w as t,b as s,o as F,a,j as r}from"./main.adc53250.js";const w=g({components:{Dynamicform:C},setup(){const o=y(()=>_?.get("allFormList")),e=m(),n=m(),u=m({}),{proxy:i}=h();return D(()=>{e.value.init("\u8868\u5355\u9884\u89C8","icon-biaodan"),e.value.isFullScreen=!0,e.value.show()}),{formResult:u,previewDialog:e,dynamicform:n,list:o,goBack(){i?.$router.go(-1)},getData(){window.VApp.$alert(u.value)},handleDialogClose(){i.goBack()},resetForm(){n.value.reset()},goValidate(){n.value.getValidate()},handleFormUpdate(){console.log("\u8868\u5355\u66F4\u65B0\u56DE\u8C03")}}}});const V=r("\u5173\u95ED"),B=r("\u91CD\u7F6E\u8868\u5355"),$=r("\u83B7\u53D6\u6570\u636E"),b=r("\u6821\u9A8C");function E(o,e,n,u,i,L){const c=s("Dynamicform"),l=s("el-button"),d=s("el-footer"),p=s("CustomDialog");return F(),v(p,{dialogclass:"preview",ref:"previewDialog",onClose:o.handleDialogClose},{default:t(()=>[a(c,{modelValue:o.formResult,"onUpdate:modelValue":e[0]||(e[0]=f=>o.formResult=f),allFormList:o.list,onChange:o.handleFormUpdate,ref:"dynamicform",style:{height:"100%",overflow:"auto"}},null,8,["modelValue","allFormList","onChange"]),a(d,{class:"my-Footer",style:{"text-align":"center"}},{default:t(()=>[a(l,{onClick:o.goBack,type:"primary"},{default:t(()=>[V]),_:1},8,["onClick"]),a(l,{type:"primary",onClick:o.resetForm},{default:t(()=>[B]),_:1},8,["onClick"]),a(l,{type:"primary",onClick:o.getData},{default:t(()=>[$]),_:1},8,["onClick"]),a(l,{type:"primary",onClick:o.goValidate},{default:t(()=>[b]),_:1},8,["onClick"])]),_:1})]),_:1},8,["onClose"])}const U=k(w,[["render",E]]);export{U as default}; diff --git a/playground/assets/Home.ffe708ad.js b/playground/assets/Home.ffe708ad.js new file mode 100644 index 0000000..cd4b4b9 --- /dev/null +++ b/playground/assets/Home.ffe708ad.js @@ -0,0 +1 @@ +import{S as r}from"./Server.d60781cf.js";import{d as u,r as a,g as l,_ as c,c as i,a as f,b as _,o as p}from"./main.adc53250.js";const d=u({name:"App",setup(){const e=a(),{proxy:t}=l(),o=a({left:[],right:[],column:!0});return{starfishRef:e,menu:o,goPreview(){t?.$router.push("/about")},onSave(s){r.set("allFormList",s)},goSave(){e.value.getJson()},setJson(){e.value.setJson([{ControlType:"Text",nameCn:"\u6587\u672C\u6846",id:"fPgb7Xb_w6HXixCAyA4k4",layout:!1,data:{fieldName:"Text_n6SZkfztwMLHMr1A0GX5B",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:""}}])}}}});const m={class:"container"};function v(e,t,o,s,h,g){const n=_("starfish-editor");return p(),i("div",m,[f(n,{class:"starfish-editor",onSave:e.onSave,ref:"starfishRef"},null,8,["onSave"])])}const C=c(d,[["render",v]]);export{C as default}; diff --git a/playground/assets/Server.d60781cf.js b/playground/assets/Server.d60781cf.js new file mode 100644 index 0000000..a1062a4 --- /dev/null +++ b/playground/assets/Server.d60781cf.js @@ -0,0 +1 @@ +import{e as s}from"./main.adc53250.js";const e=s({allFormList:[]});class o{get(t){return e[t]}set(t,r){e[t]=r}}const n=new o;export{n as S}; diff --git a/playground/assets/jsoneditor-icons.45c98bf0.svg b/playground/assets/jsoneditor-icons.45c98bf0.svg new file mode 100644 index 0000000..c2c2765 --- /dev/null +++ b/playground/assets/jsoneditor-icons.45c98bf0.svg @@ -0,0 +1,749 @@ + + + JSON Editor Icons + + + + image/svg+xml + + JSON Editor Icons + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/playground/assets/main.adc53250.js b/playground/assets/main.adc53250.js new file mode 100644 index 0000000..705be7f --- /dev/null +++ b/playground/assets/main.adc53250.js @@ -0,0 +1,1302 @@ +(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const $ of document.querySelectorAll('link[rel="modulepreload"]'))g($);new MutationObserver($=>{for(const L of $)if(L.type==="childList")for(const k of L.addedNodes)k.tagName==="LINK"&&k.rel==="modulepreload"&&g(k)}).observe(document,{childList:!0,subtree:!0});function r($){const L={};return $.integrity&&(L.integrity=$.integrity),$.referrerpolicy&&(L.referrerPolicy=$.referrerpolicy),$.crossorigin==="use-credentials"?L.credentials="include":$.crossorigin==="anonymous"?L.credentials="omit":L.credentials="same-origin",L}function g($){if($.ep)return;$.ep=!0;const L=r($);fetch($.href,L)}})();function makeMap(e,n){const r=Object.create(null),g=e.split(",");for(let $=0;$!!r[$.toLowerCase()]:$=>!!r[$]}const GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED),specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(e){return!!e||e===""}function normalizeStyle(e){if(isArray$4(e)){const n={};for(let r=0;r{if(r){const g=r.split(propertyDelimiterRE);g.length>1&&(n[g[0].trim()]=g[1].trim())}}),n}function normalizeClass(e){let n="";if(isString$2(e))n=e;else if(isArray$4(e))for(let r=0;rlooseEqual(r,n))}const toDisplayString=e=>isString$2(e)?e:e==null?"":isArray$4(e)||isObject$4(e)&&(e.toString===objectToString$1||!isFunction$1(e.toString))?JSON.stringify(e,replacer,2):String(e),replacer=(e,n)=>n&&n.__v_isRef?replacer(e,n.value):isMap$2(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[g,$])=>(r[`${g} =>`]=$,r),{})}:isSet$2(n)?{[`Set(${n.size})`]:[...n.values()]}:isObject$4(n)&&!isArray$4(n)&&!isPlainObject(n)?String(n):n,EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=e=>onRE.test(e),isModelListener=e=>e.startsWith("onUpdate:"),extend$2=Object.assign,remove$1=(e,n)=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)},hasOwnProperty$d=Object.prototype.hasOwnProperty,hasOwn=(e,n)=>hasOwnProperty$d.call(e,n),isArray$4=Array.isArray,isMap$2=e=>toTypeString(e)==="[object Map]",isSet$2=e=>toTypeString(e)==="[object Set]",isDate=e=>toTypeString(e)==="[object Date]",isFunction$1=e=>typeof e=="function",isString$2=e=>typeof e=="string",isSymbol$1=e=>typeof e=="symbol",isObject$4=e=>e!==null&&typeof e=="object",isPromise=e=>isObject$4(e)&&isFunction$1(e.then)&&isFunction$1(e.catch),objectToString$1=Object.prototype.toString,toTypeString=e=>objectToString$1.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString$2(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=e=>{const n=Object.create(null);return r=>n[r]||(n[r]=e(r))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,(n,r)=>r?r.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize(e)}`:""),hasChanged=(e,n)=>!Object.is(e,n),invokeArrayFns=(e,n)=>{for(let r=0;r{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value:r})},toNumber$1=e=>{const n=parseFloat(e);return isNaN(n)?e:n};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let activeEffectScope;class EffectScope{constructor(n=!1){this.active=!0,this.effects=[],this.cleanups=[],!n&&activeEffectScope&&(this.parent=activeEffectScope,this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}run(n){if(this.active){const r=activeEffectScope;try{return activeEffectScope=this,n()}finally{activeEffectScope=r}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(n){if(this.active){let r,g;for(r=0,g=this.effects.length;r{const n=new Set(e);return n.w=0,n.n=0,n},wasTracked=e=>(e.w&trackOpBit)>0,newTracked=e=>(e.n&trackOpBit)>0,initDepMarkers=({deps:e})=>{if(e.length)for(let n=0;n{const{deps:n}=e;if(n.length){let r=0;for(let g=0;g{(ae==="length"||ae>=g)&&oe.push(re)});else switch(r!==void 0&&oe.push(k.get(r)),n){case"add":isArray$4(e)?isIntegerKey(r)&&oe.push(k.get("length")):(oe.push(k.get(ITERATE_KEY)),isMap$2(e)&&oe.push(k.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$4(e)||(oe.push(k.get(ITERATE_KEY)),isMap$2(e)&&oe.push(k.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$2(e)&&oe.push(k.get(ITERATE_KEY));break}if(oe.length===1)oe[0]&&triggerEffects(oe[0]);else{const re=[];for(const ae of oe)ae&&re.push(...ae);triggerEffects(createDep(re))}}function triggerEffects(e,n){const r=isArray$4(e)?e:[...e];for(const g of r)g.computed&&triggerEffect(g);for(const g of r)g.computed||triggerEffect(g)}function triggerEffect(e,n){(e!==activeEffect||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(isSymbol$1)),get$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach(n=>{e[n]=function(...r){const g=toRaw(this);for(let L=0,k=this.length;L{e[n]=function(...r){pauseTracking();const g=toRaw(this)[n].apply(this,r);return resetTracking(),g}}),e}function createGetter(e=!1,n=!1){return function(g,$,L){if($==="__v_isReactive")return!e;if($==="__v_isReadonly")return e;if($==="__v_isShallow")return n;if($==="__v_raw"&&L===(e?n?shallowReadonlyMap:readonlyMap:n?shallowReactiveMap:reactiveMap).get(g))return g;const k=isArray$4(g);if(!e&&k&&hasOwn(arrayInstrumentations,$))return Reflect.get(arrayInstrumentations,$,L);const oe=Reflect.get(g,$,L);return(isSymbol$1($)?builtInSymbols.has($):isNonTrackableKeys($))||(e||track(g,"get",$),n)?oe:isRef(oe)?k&&isIntegerKey($)?oe:oe.value:isObject$4(oe)?e?readonly(oe):reactive(oe):oe}}const set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(e=!1){return function(r,g,$,L){let k=r[g];if(isReadonly(k)&&isRef(k)&&!isRef($))return!1;if(!e&&!isReadonly($)&&(isShallow($)||($=toRaw($),k=toRaw(k)),!isArray$4(r)&&isRef(k)&&!isRef($)))return k.value=$,!0;const oe=isArray$4(r)&&isIntegerKey(g)?Number(g)e,getProto=e=>Reflect.getPrototypeOf(e);function get$1$1(e,n,r=!1,g=!1){e=e.__v_raw;const $=toRaw(e),L=toRaw(n);r||(n!==L&&track($,"get",n),track($,"get",L));const{has:k}=getProto($),oe=g?toShallow:r?toReadonly:toReactive;if(k.call($,n))return oe(e.get(n));if(k.call($,L))return oe(e.get(L));e!==$&&e.get(n)}function has$1(e,n=!1){const r=this.__v_raw,g=toRaw(r),$=toRaw(e);return n||(e!==$&&track(g,"has",e),track(g,"has",$)),e===$?r.has(e):r.has(e)||r.has($)}function size(e,n=!1){return e=e.__v_raw,!n&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add$1(e){e=toRaw(e);const n=toRaw(this);return getProto(n).has.call(n,e)||(n.add(e),trigger(n,"add",e,e)),this}function set$1$1(e,n){n=toRaw(n);const r=toRaw(this),{has:g,get:$}=getProto(r);let L=g.call(r,e);L||(e=toRaw(e),L=g.call(r,e));const k=$.call(r,e);return r.set(e,n),L?hasChanged(n,k)&&trigger(r,"set",e,n):trigger(r,"add",e,n),this}function deleteEntry(e){const n=toRaw(this),{has:r,get:g}=getProto(n);let $=r.call(n,e);$||(e=toRaw(e),$=r.call(n,e)),g&&g.call(n,e);const L=n.delete(e);return $&&trigger(n,"delete",e,void 0),L}function clear(){const e=toRaw(this),n=e.size!==0,r=e.clear();return n&&trigger(e,"clear",void 0,void 0),r}function createForEach(e,n){return function(g,$){const L=this,k=L.__v_raw,oe=toRaw(k),re=n?toShallow:e?toReadonly:toReactive;return!e&&track(oe,"iterate",ITERATE_KEY),k.forEach((ae,le)=>g.call($,re(ae),re(le),L))}}function createIterableMethod(e,n,r){return function(...g){const $=this.__v_raw,L=toRaw($),k=isMap$2(L),oe=e==="entries"||e===Symbol.iterator&&k,re=e==="keys"&&k,ae=$[e](...g),le=r?toShallow:n?toReadonly:toReactive;return!n&&track(L,"iterate",re?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:ue,done:pe}=ae.next();return pe?{value:ue,done:pe}:{value:oe?[le(ue[0]),le(ue[1])]:le(ue),done:pe}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...n){return e==="delete"?!1:this}}function createInstrumentations(){const e={get(L){return get$1$1(this,L)},get size(){return size(this)},has:has$1,add:add$1,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},n={get(L){return get$1$1(this,L,!1,!0)},get size(){return size(this)},has:has$1,add:add$1,set:set$1$1,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},r={get(L){return get$1$1(this,L,!0)},get size(){return size(this,!0)},has(L){return has$1.call(this,L,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},g={get(L){return get$1$1(this,L,!0,!0)},get size(){return size(this,!0)},has(L){return has$1.call(this,L,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(L=>{e[L]=createIterableMethod(L,!1,!1),r[L]=createIterableMethod(L,!0,!1),n[L]=createIterableMethod(L,!1,!0),g[L]=createIterableMethod(L,!0,!0)}),[e,r,n,g]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,n){const r=n?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(g,$,L)=>$==="__v_isReactive"?!e:$==="__v_isReadonly"?e:$==="__v_raw"?g:Reflect.get(hasOwn(r,$)&&$ in g?r:g,$,L)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(e){return createReactiveObject(e,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(e,n,r,g,$){if(!isObject$4(e)||e.__v_raw&&!(n&&e.__v_isReactive))return e;const L=$.get(e);if(L)return L;const k=getTargetType(e);if(k===0)return e;const oe=new Proxy(e,k===2?g:r);return $.set(e,oe),oe}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!!(e&&e.__v_isReactive)}function isReadonly(e){return!!(e&&e.__v_isReadonly)}function isShallow(e){return!!(e&&e.__v_isShallow)}function isProxy(e){return isReactive(e)||isReadonly(e)}function toRaw(e){const n=e&&e.__v_raw;return n?toRaw(n):e}function markRaw(e){return def(e,"__v_skip",!0),e}const toReactive=e=>isObject$4(e)?reactive(e):e,toReadonly=e=>isObject$4(e)?readonly(e):e;function trackRefValue(e){shouldTrack&&activeEffect&&(e=toRaw(e),trackEffects(e.dep||(e.dep=createDep())))}function triggerRefValue(e,n){e=toRaw(e),e.dep&&triggerEffects(e.dep)}function isRef(e){return!!(e&&e.__v_isRef===!0)}function ref(e){return createRef(e,!1)}function shallowRef(e){return createRef(e,!0)}function createRef(e,n){return isRef(e)?e:new RefImpl(e,n)}class RefImpl{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:toRaw(n),this._value=r?n:toReactive(n)}get value(){return trackRefValue(this),this._value}set value(n){n=this.__v_isShallow?n:toRaw(n),hasChanged(n,this._rawValue)&&(this._rawValue=n,this._value=this.__v_isShallow?n:toReactive(n),triggerRefValue(this))}}function triggerRef(e){triggerRefValue(e)}function unref(e){return isRef(e)?e.value:e}const shallowUnwrapHandlers={get:(e,n,r)=>unref(Reflect.get(e,n,r)),set:(e,n,r,g)=>{const $=e[n];return isRef($)&&!isRef(r)?($.value=r,!0):Reflect.set(e,n,r,g)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}class CustomRefImpl{constructor(n){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:g}=n(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=r,this._set=g}get value(){return this._get()}set value(n){this._set(n)}}function customRef(e){return new CustomRefImpl(e)}function toRefs(e){const n=isArray$4(e)?new Array(e.length):{};for(const r in e)n[r]=toRef(e,r);return n}class ObjectRefImpl{constructor(n,r,g){this._object=n,this._key=r,this._defaultValue=g,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}}function toRef(e,n,r){const g=e[n];return isRef(g)?g:new ObjectRefImpl(e,n,r)}class ComputedRefImpl{constructor(n,r,g,$){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new ReactiveEffect(n,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!$,this.__v_isReadonly=g}get value(){const n=toRaw(this);return trackRefValue(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function computed$1(e,n,r=!1){let g,$;const L=isFunction$1(e);return L?(g=e,$=NOOP):(g=e.get,$=e.set),new ComputedRefImpl(g,$,L||!$,r)}const stack=[];function warn(e,...n){pauseTracking();const r=stack.length?stack[stack.length-1].component:null,g=r&&r.appContext.config.warnHandler,$=getComponentTrace();if(g)callWithErrorHandling(g,r,11,[e+n.join(""),r&&r.proxy,$.map(({vnode:L})=>`at <${formatComponentName(r,L.type)}>`).join(` +`),$]);else{const L=[`[Vue warn]: ${e}`,...n];$.length&&L.push(` +`,...formatTrace($)),console.warn(...L)}resetTracking()}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const n=[];for(;e;){const r=n[0];r&&r.vnode===e?r.recurseCount++:n.push({vnode:e,recurseCount:0});const g=e.component&&e.component.parent;e=g&&g.vnode}return n}function formatTrace(e){const n=[];return e.forEach((r,g)=>{n.push(...g===0?[]:[` +`],...formatTraceEntry(r))}),n}function formatTraceEntry({vnode:e,recurseCount:n}){const r=n>0?`... (${n} recursive calls)`:"",g=e.component?e.component.parent==null:!1,$=` at <${formatComponentName(e.component,e.type,g)}`,L=">"+r;return e.props?[$,...formatProps(e.props),L]:[$+L]}function formatProps(e){const n=[],r=Object.keys(e);return r.slice(0,3).forEach(g=>{n.push(...formatProp(g,e[g]))}),r.length>3&&n.push(" ..."),n}function formatProp(e,n,r){return isString$2(n)?(n=JSON.stringify(n),r?n:[`${e}=${n}`]):typeof n=="number"||typeof n=="boolean"||n==null?r?n:[`${e}=${n}`]:isRef(n)?(n=formatProp(e,toRaw(n.value),!0),r?n:[`${e}=Ref<`,n,">"]):isFunction$1(n)?[`${e}=fn${n.name?`<${n.name}>`:""}`]:(n=toRaw(n),r?n:[`${e}=`,n])}function callWithErrorHandling(e,n,r,g){let $;try{$=g?e(...g):e()}catch(L){handleError(L,n,r)}return $}function callWithAsyncErrorHandling(e,n,r,g){if(isFunction$1(e)){const L=callWithErrorHandling(e,n,r,g);return L&&isPromise(L)&&L.catch(k=>{handleError(k,n,r)}),L}const $=[];for(let L=0;L>>1;getId(queue[g])flushIndex&&queue.splice(n,1)}function queueCb(e,n,r,g){isArray$4(e)?r.push(...e):(!n||!n.includes(e,e.allowRecurse?g+1:g))&&r.push(e),queueFlush()}function queuePreFlushCb(e){queueCb(e,activePreFlushCbs,pendingPreFlushCbs,preFlushIndex)}function queuePostFlushCb(e){queueCb(e,activePostFlushCbs,pendingPostFlushCbs,postFlushIndex)}function flushPreFlushCbs(e,n=null){if(pendingPreFlushCbs.length){for(currentPreFlushParentJob=n,activePreFlushCbs=[...new Set(pendingPreFlushCbs)],pendingPreFlushCbs.length=0,preFlushIndex=0;preFlushIndexgetId(r)-getId(g)),postFlushIndex=0;postFlushIndexe.id==null?1/0:e.id;function flushJobs(e){isFlushPending=!1,isFlushing=!0,flushPreFlushCbs(e),queue.sort((r,g)=>getId(r)-getId(g));const n=NOOP;try{for(flushIndex=0;flushIndexdevtools.emit($,...L)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!(!((g=(r=window.navigator)===null||r===void 0?void 0:r.userAgent)===null||g===void 0)&&g.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(L=>{setDevtoolsHook(L,n)}),setTimeout(()=>{devtools||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit$1(e,n,...r){if(e.isUnmounted)return;const g=e.vnode.props||EMPTY_OBJ;let $=r;const L=n.startsWith("update:"),k=L&&n.slice(7);if(k&&k in g){const le=`${k==="modelValue"?"model":k}Modifiers`,{number:ue,trim:pe}=g[le]||EMPTY_OBJ;pe&&($=r.map(de=>de.trim())),ue&&($=r.map(toNumber$1))}let oe,re=g[oe=toHandlerKey(n)]||g[oe=toHandlerKey(camelize(n))];!re&&L&&(re=g[oe=toHandlerKey(hyphenate(n))]),re&&callWithAsyncErrorHandling(re,e,6,$);const ae=g[oe+"Once"];if(ae){if(!e.emitted)e.emitted={};else if(e.emitted[oe])return;e.emitted[oe]=!0,callWithAsyncErrorHandling(ae,e,6,$)}}function normalizeEmitsOptions(e,n,r=!1){const g=n.emitsCache,$=g.get(e);if($!==void 0)return $;const L=e.emits;let k={},oe=!1;if(!isFunction$1(e)){const re=ae=>{const le=normalizeEmitsOptions(ae,n,!0);le&&(oe=!0,extend$2(k,le))};!r&&n.mixins.length&&n.mixins.forEach(re),e.extends&&re(e.extends),e.mixins&&e.mixins.forEach(re)}return!L&&!oe?(g.set(e,null),null):(isArray$4(L)?L.forEach(re=>k[re]=null):extend$2(k,L),g.set(e,k),k)}function isEmitListener(e,n){return!e||!isOn(n)?!1:(n=n.slice(2).replace(/Once$/,""),hasOwn(e,n[0].toLowerCase()+n.slice(1))||hasOwn(e,hyphenate(n))||hasOwn(e,n))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const n=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,n}function pushScopeId(e){currentScopeId=e}function popScopeId(){currentScopeId=null}const withScopeId=e=>withCtx;function withCtx(e,n=currentRenderingInstance,r){if(!n||e._n)return e;const g=(...$)=>{g._d&&setBlockTracking(-1);const L=setCurrentRenderingInstance(n),k=e(...$);return setCurrentRenderingInstance(L),g._d&&setBlockTracking(1),k};return g._n=!0,g._c=!0,g._d=!0,g}function markAttrsAccessed(){}function renderComponentRoot(e){const{type:n,vnode:r,proxy:g,withProxy:$,props:L,propsOptions:[k],slots:oe,attrs:re,emit:ae,render:le,renderCache:ue,data:pe,setupState:de,ctx:Fe,inheritAttrs:ze}=e;let Ce,Ie;const _e=setCurrentRenderingInstance(e);try{if(r.shapeFlag&4){const qe=$||g;Ce=normalizeVNode(le.call(qe,qe,ue,L,de,pe,Fe)),Ie=re}else{const qe=n;Ce=normalizeVNode(qe.length>1?qe(L,{attrs:re,slots:oe,emit:ae}):qe(L,null)),Ie=n.props?re:getFunctionalFallthrough(re)}}catch(qe){blockStack.length=0,handleError(qe,e,1),Ce=createVNode(Comment)}let At=Ce;if(Ie&&ze!==!1){const qe=Object.keys(Ie),{shapeFlag:xe}=At;qe.length&&xe&7&&(k&&qe.some(isModelListener)&&(Ie=filterModelListeners(Ie,k)),At=cloneVNode(At,Ie))}return r.dirs&&(At=cloneVNode(At),At.dirs=At.dirs?At.dirs.concat(r.dirs):r.dirs),r.transition&&(At.transition=r.transition),Ce=At,setCurrentRenderingInstance(_e),Ce}function filterSingleRoot(e){let n;for(let r=0;r{let n;for(const r in e)(r==="class"||r==="style"||isOn(r))&&((n||(n={}))[r]=e[r]);return n},filterModelListeners=(e,n)=>{const r={};for(const g in e)(!isModelListener(g)||!(g.slice(9)in n))&&(r[g]=e[g]);return r};function shouldUpdateComponent(e,n,r){const{props:g,children:$,component:L}=e,{props:k,children:oe,patchFlag:re}=n,ae=L.emitsOptions;if(n.dirs||n.transition)return!0;if(r&&re>=0){if(re&1024)return!0;if(re&16)return g?hasPropsChanged(g,k,ae):!!k;if(re&8){const le=n.dynamicProps;for(let ue=0;uee.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process(e,n,r,g,$,L,k,oe,re,ae){e==null?mountSuspense(n,r,g,$,L,k,oe,re,ae):patchSuspense(e,n,r,g,$,k,oe,re,ae)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent$1(e,n){const r=e.props&&e.props[n];isFunction$1(r)&&r()}function mountSuspense(e,n,r,g,$,L,k,oe,re){const{p:ae,o:{createElement:le}}=re,ue=le("div"),pe=e.suspense=createSuspenseBoundary(e,$,g,n,ue,r,L,k,oe,re);ae(null,pe.pendingBranch=e.ssContent,ue,null,g,pe,L,k),pe.deps>0?(triggerEvent$1(e,"onPending"),triggerEvent$1(e,"onFallback"),ae(null,e.ssFallback,n,r,g,null,L,k),setActiveBranch(pe,e.ssFallback)):pe.resolve()}function patchSuspense(e,n,r,g,$,L,k,oe,{p:re,um:ae,o:{createElement:le}}){const ue=n.suspense=e.suspense;ue.vnode=n,n.el=e.el;const pe=n.ssContent,de=n.ssFallback,{activeBranch:Fe,pendingBranch:ze,isInFallback:Ce,isHydrating:Ie}=ue;if(ze)ue.pendingBranch=pe,isSameVNodeType(pe,ze)?(re(ze,pe,ue.hiddenContainer,null,$,ue,L,k,oe),ue.deps<=0?ue.resolve():Ce&&(re(Fe,de,r,g,$,null,L,k,oe),setActiveBranch(ue,de))):(ue.pendingId++,Ie?(ue.isHydrating=!1,ue.activeBranch=ze):ae(ze,$,ue),ue.deps=0,ue.effects.length=0,ue.hiddenContainer=le("div"),Ce?(re(null,pe,ue.hiddenContainer,null,$,ue,L,k,oe),ue.deps<=0?ue.resolve():(re(Fe,de,r,g,$,null,L,k,oe),setActiveBranch(ue,de))):Fe&&isSameVNodeType(pe,Fe)?(re(Fe,pe,r,g,$,ue,L,k,oe),ue.resolve(!0)):(re(null,pe,ue.hiddenContainer,null,$,ue,L,k,oe),ue.deps<=0&&ue.resolve()));else if(Fe&&isSameVNodeType(pe,Fe))re(Fe,pe,r,g,$,ue,L,k,oe),setActiveBranch(ue,pe);else if(triggerEvent$1(n,"onPending"),ue.pendingBranch=pe,ue.pendingId++,re(null,pe,ue.hiddenContainer,null,$,ue,L,k,oe),ue.deps<=0)ue.resolve();else{const{timeout:_e,pendingId:At}=ue;_e>0?setTimeout(()=>{ue.pendingId===At&&ue.fallback(de)},_e):_e===0&&ue.fallback(de)}}function createSuspenseBoundary(e,n,r,g,$,L,k,oe,re,ae,le=!1){const{p:ue,m:pe,um:de,n:Fe,o:{parentNode:ze,remove:Ce}}=ae,Ie=toNumber$1(e.props&&e.props.timeout),_e={vnode:e,parent:n,parentComponent:r,isSVG:k,container:g,hiddenContainer:$,anchor:L,deps:0,pendingId:0,timeout:typeof Ie=="number"?Ie:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:le,isUnmounted:!1,effects:[],resolve(At=!1){const{vnode:qe,activeBranch:xe,pendingBranch:Ve,pendingId:he,effects:Oe,parentComponent:$e,container:Ne}=_e;if(_e.isHydrating)_e.isHydrating=!1;else if(!At){const Et=xe&&Ve.transition&&Ve.transition.mode==="out-in";Et&&(xe.transition.afterLeave=()=>{he===_e.pendingId&&pe(Ve,Ne,Pt,0)});let{anchor:Pt}=_e;xe&&(Pt=Fe(xe),de(xe,$e,_e,!0)),Et||pe(Ve,Ne,Pt,0)}setActiveBranch(_e,Ve),_e.pendingBranch=null,_e.isInFallback=!1;let Ue=_e.parent,kt=!1;for(;Ue;){if(Ue.pendingBranch){Ue.effects.push(...Oe),kt=!0;break}Ue=Ue.parent}kt||queuePostFlushCb(Oe),_e.effects=[],triggerEvent$1(qe,"onResolve")},fallback(At){if(!_e.pendingBranch)return;const{vnode:qe,activeBranch:xe,parentComponent:Ve,container:he,isSVG:Oe}=_e;triggerEvent$1(qe,"onFallback");const $e=Fe(xe),Ne=()=>{!_e.isInFallback||(ue(null,At,he,$e,Ve,null,Oe,oe,re),setActiveBranch(_e,At))},Ue=At.transition&&At.transition.mode==="out-in";Ue&&(xe.transition.afterLeave=Ne),_e.isInFallback=!0,de(xe,Ve,null,!0),Ue||Ne()},move(At,qe,xe){_e.activeBranch&&pe(_e.activeBranch,At,qe,xe),_e.container=At},next(){return _e.activeBranch&&Fe(_e.activeBranch)},registerDep(At,qe){const xe=!!_e.pendingBranch;xe&&_e.deps++;const Ve=At.vnode.el;At.asyncDep.catch(he=>{handleError(he,At,0)}).then(he=>{if(At.isUnmounted||_e.isUnmounted||_e.pendingId!==At.suspenseId)return;At.asyncResolved=!0;const{vnode:Oe}=At;handleSetupResult(At,he,!1),Ve&&(Oe.el=Ve);const $e=!Ve&&At.subTree.el;qe(At,Oe,ze(Ve||At.subTree.el),Ve?null:Fe(At.subTree),_e,k,re),$e&&Ce($e),updateHOCHostEl(At,Oe.el),xe&&--_e.deps===0&&_e.resolve()})},unmount(At,qe){_e.isUnmounted=!0,_e.activeBranch&&de(_e.activeBranch,r,At,qe),_e.pendingBranch&&de(_e.pendingBranch,r,At,qe)}};return _e}function hydrateSuspense(e,n,r,g,$,L,k,oe,re){const ae=n.suspense=createSuspenseBoundary(n,g,r,e.parentNode,document.createElement("div"),null,$,L,k,oe,!0),le=re(e,ae.pendingBranch=n.ssContent,r,ae,L,k);return ae.deps===0&&ae.resolve(),le}function normalizeSuspenseChildren(e){const{shapeFlag:n,children:r}=e,g=n&32;e.ssContent=normalizeSuspenseSlot(g?r.default:r),e.ssFallback=g?normalizeSuspenseSlot(r.fallback):createVNode(Comment)}function normalizeSuspenseSlot(e){let n;if(isFunction$1(e)){const r=isBlockTreeEnabled&&e._c;r&&(e._d=!1,openBlock()),e=e(),r&&(e._d=!0,n=currentBlock,closeBlock())}return isArray$4(e)&&(e=filterSingleRoot(e)),e=normalizeVNode(e),n&&!e.dynamicChildren&&(e.dynamicChildren=n.filter(r=>r!==e)),e}function queueEffectWithSuspense(e,n){n&&n.pendingBranch?isArray$4(e)?n.effects.push(...e):n.effects.push(e):queuePostFlushCb(e)}function setActiveBranch(e,n){e.activeBranch=n;const{vnode:r,parentComponent:g}=e,$=r.el=n.el;g&&g.subTree===r&&(g.vnode.el=$,updateHOCHostEl(g,$))}function provide(e,n){if(currentInstance){let r=currentInstance.provides;const g=currentInstance.parent&¤tInstance.parent.provides;g===r&&(r=currentInstance.provides=Object.create(g)),r[e]=n}}function inject(e,n,r=!1){const g=currentInstance||currentRenderingInstance;if(g){const $=g.parent==null?g.vnode.appContext&&g.vnode.appContext.provides:g.parent.provides;if($&&e in $)return $[e];if(arguments.length>1)return r&&isFunction$1(n)?n.call(g.proxy):n}}function watchEffect(e,n){return doWatch(e,null,n)}function watchPostEffect(e,n){return doWatch(e,null,{flush:"post"})}function watchSyncEffect(e,n){return doWatch(e,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(e,n,r){return doWatch(e,n,r)}function doWatch(e,n,{immediate:r,deep:g,flush:$,onTrack:L,onTrigger:k}=EMPTY_OBJ){const oe=currentInstance;let re,ae=!1,le=!1;if(isRef(e)?(re=()=>e.value,ae=isShallow(e)):isReactive(e)?(re=()=>e,g=!0):isArray$4(e)?(le=!0,ae=e.some(Ie=>isReactive(Ie)||isShallow(Ie)),re=()=>e.map(Ie=>{if(isRef(Ie))return Ie.value;if(isReactive(Ie))return traverse(Ie);if(isFunction$1(Ie))return callWithErrorHandling(Ie,oe,2)})):isFunction$1(e)?n?re=()=>callWithErrorHandling(e,oe,2):re=()=>{if(!(oe&&oe.isUnmounted))return ue&&ue(),callWithAsyncErrorHandling(e,oe,3,[pe])}:re=NOOP,n&&g){const Ie=re;re=()=>traverse(Ie())}let ue,pe=Ie=>{ue=Ce.onStop=()=>{callWithErrorHandling(Ie,oe,4)}};if(isInSSRComponentSetup)return pe=NOOP,n?r&&callWithAsyncErrorHandling(n,oe,3,[re(),le?[]:void 0,pe]):re(),NOOP;let de=le?[]:INITIAL_WATCHER_VALUE;const Fe=()=>{if(!!Ce.active)if(n){const Ie=Ce.run();(g||ae||(le?Ie.some((_e,At)=>hasChanged(_e,de[At])):hasChanged(Ie,de)))&&(ue&&ue(),callWithAsyncErrorHandling(n,oe,3,[Ie,de===INITIAL_WATCHER_VALUE?void 0:de,pe]),de=Ie)}else Ce.run()};Fe.allowRecurse=!!n;let ze;$==="sync"?ze=Fe:$==="post"?ze=()=>queuePostRenderEffect(Fe,oe&&oe.suspense):ze=()=>queuePreFlushCb(Fe);const Ce=new ReactiveEffect(re,ze);return n?r?Fe():de=Ce.run():$==="post"?queuePostRenderEffect(Ce.run.bind(Ce),oe&&oe.suspense):Ce.run(),()=>{Ce.stop(),oe&&oe.scope&&remove$1(oe.scope.effects,Ce)}}function instanceWatch(e,n,r){const g=this.proxy,$=isString$2(e)?e.includes(".")?createPathGetter(g,e):()=>g[e]:e.bind(g,g);let L;isFunction$1(n)?L=n:(L=n.handler,r=n);const k=currentInstance;setCurrentInstance(this);const oe=doWatch($,L.bind(g),r);return k?setCurrentInstance(k):unsetCurrentInstance(),oe}function createPathGetter(e,n){const r=n.split(".");return()=>{let g=e;for(let $=0;${traverse(r,n)});else if(isPlainObject(e))for(const r in e)traverse(e[r],n);return e}function useTransitionState(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{e.isMounted=!0}),onBeforeUnmount(()=>{e.isUnmounting=!0}),e}const TransitionHookValidator=[Function,Array],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup(e,{slots:n}){const r=getCurrentInstance(),g=useTransitionState();let $;return()=>{const L=n.default&&getTransitionRawChildren(n.default(),!0);if(!L||!L.length)return;let k=L[0];if(L.length>1){for(const ze of L)if(ze.type!==Comment){k=ze;break}}const oe=toRaw(e),{mode:re}=oe;if(g.isLeaving)return emptyPlaceholder(k);const ae=getKeepAliveChild(k);if(!ae)return emptyPlaceholder(k);const le=resolveTransitionHooks(ae,oe,g,r);setTransitionHooks(ae,le);const ue=r.subTree,pe=ue&&getKeepAliveChild(ue);let de=!1;const{getTransitionKey:Fe}=ae.type;if(Fe){const ze=Fe();$===void 0?$=ze:ze!==$&&($=ze,de=!0)}if(pe&&pe.type!==Comment&&(!isSameVNodeType(ae,pe)||de)){const ze=resolveTransitionHooks(pe,oe,g,r);if(setTransitionHooks(pe,ze),re==="out-in")return g.isLeaving=!0,ze.afterLeave=()=>{g.isLeaving=!1,r.update()},emptyPlaceholder(k);re==="in-out"&&ae.type!==Comment&&(ze.delayLeave=(Ce,Ie,_e)=>{const At=getLeavingNodesForType(g,pe);At[String(pe.key)]=pe,Ce._leaveCb=()=>{Ie(),Ce._leaveCb=void 0,delete le.delayedLeave},le.delayedLeave=_e})}return k}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,n){const{leavingVNodes:r}=e;let g=r.get(n.type);return g||(g=Object.create(null),r.set(n.type,g)),g}function resolveTransitionHooks(e,n,r,g){const{appear:$,mode:L,persisted:k=!1,onBeforeEnter:oe,onEnter:re,onAfterEnter:ae,onEnterCancelled:le,onBeforeLeave:ue,onLeave:pe,onAfterLeave:de,onLeaveCancelled:Fe,onBeforeAppear:ze,onAppear:Ce,onAfterAppear:Ie,onAppearCancelled:_e}=n,At=String(e.key),qe=getLeavingNodesForType(r,e),xe=(Oe,$e)=>{Oe&&callWithAsyncErrorHandling(Oe,g,9,$e)},Ve=(Oe,$e)=>{const Ne=$e[1];xe(Oe,$e),isArray$4(Oe)?Oe.every(Ue=>Ue.length<=1)&&Ne():Oe.length<=1&&Ne()},he={mode:L,persisted:k,beforeEnter(Oe){let $e=oe;if(!r.isMounted)if($)$e=ze||oe;else return;Oe._leaveCb&&Oe._leaveCb(!0);const Ne=qe[At];Ne&&isSameVNodeType(e,Ne)&&Ne.el._leaveCb&&Ne.el._leaveCb(),xe($e,[Oe])},enter(Oe){let $e=re,Ne=ae,Ue=le;if(!r.isMounted)if($)$e=Ce||re,Ne=Ie||ae,Ue=_e||le;else return;let kt=!1;const Et=Oe._enterCb=Pt=>{kt||(kt=!0,Pt?xe(Ue,[Oe]):xe(Ne,[Oe]),he.delayedLeave&&he.delayedLeave(),Oe._enterCb=void 0)};$e?Ve($e,[Oe,Et]):Et()},leave(Oe,$e){const Ne=String(e.key);if(Oe._enterCb&&Oe._enterCb(!0),r.isUnmounting)return $e();xe(ue,[Oe]);let Ue=!1;const kt=Oe._leaveCb=Et=>{Ue||(Ue=!0,$e(),Et?xe(Fe,[Oe]):xe(de,[Oe]),Oe._leaveCb=void 0,qe[Ne]===e&&delete qe[Ne])};qe[Ne]=e,pe?Ve(pe,[Oe,kt]):kt()},clone(Oe){return resolveTransitionHooks(Oe,n,r,g)}};return he}function emptyPlaceholder(e){if(isKeepAlive(e))return e=cloneVNode(e),e.children=null,e}function getKeepAliveChild(e){return isKeepAlive(e)?e.children?e.children[0]:void 0:e}function setTransitionHooks(e,n){e.shapeFlag&6&&e.component?setTransitionHooks(e.component.subTree,n):e.shapeFlag&128?(e.ssContent.transition=n.clone(e.ssContent),e.ssFallback.transition=n.clone(e.ssFallback)):e.transition=n}function getTransitionRawChildren(e,n=!1,r){let g=[],$=0;for(let L=0;L1)for(let L=0;L!!e.type.__asyncLoader;function defineAsyncComponent(e){isFunction$1(e)&&(e={loader:e});const{loader:n,loadingComponent:r,errorComponent:g,delay:$=200,timeout:L,suspensible:k=!0,onError:oe}=e;let re=null,ae,le=0;const ue=()=>(le++,re=null,pe()),pe=()=>{let de;return re||(de=re=n().catch(Fe=>{if(Fe=Fe instanceof Error?Fe:new Error(String(Fe)),oe)return new Promise((ze,Ce)=>{oe(Fe,()=>ze(ue()),()=>Ce(Fe),le+1)});throw Fe}).then(Fe=>de!==re&&re?re:(Fe&&(Fe.__esModule||Fe[Symbol.toStringTag]==="Module")&&(Fe=Fe.default),ae=Fe,Fe)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:pe,get __asyncResolved(){return ae},setup(){const de=currentInstance;if(ae)return()=>createInnerComp(ae,de);const Fe=_e=>{re=null,handleError(_e,de,13,!g)};if(k&&de.suspense||isInSSRComponentSetup)return pe().then(_e=>()=>createInnerComp(_e,de)).catch(_e=>(Fe(_e),()=>g?createVNode(g,{error:_e}):null));const ze=ref(!1),Ce=ref(),Ie=ref(!!$);return $&&setTimeout(()=>{Ie.value=!1},$),L!=null&&setTimeout(()=>{if(!ze.value&&!Ce.value){const _e=new Error(`Async component timed out after ${L}ms.`);Fe(_e),Ce.value=_e}},L),pe().then(()=>{ze.value=!0,de.parent&&isKeepAlive(de.parent.vnode)&&queueJob(de.parent.update)}).catch(_e=>{Fe(_e),Ce.value=_e}),()=>{if(ze.value&&ae)return createInnerComp(ae,de);if(Ce.value&&g)return createVNode(g,{error:Ce.value});if(r&&!Ie.value)return createVNode(r)}}})}function createInnerComp(e,{vnode:{ref:n,props:r,children:g,shapeFlag:$},parent:L}){const k=createVNode(e,r,g);return k.ref=n,k}const isKeepAlive=e=>e.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:n}){const r=getCurrentInstance(),g=r.ctx;if(!g.renderer)return()=>{const _e=n.default&&n.default();return _e&&_e.length===1?_e[0]:_e};const $=new Map,L=new Set;let k=null;const oe=r.suspense,{renderer:{p:re,m:ae,um:le,o:{createElement:ue}}}=g,pe=ue("div");g.activate=(_e,At,qe,xe,Ve)=>{const he=_e.component;ae(_e,At,qe,0,oe),re(he.vnode,_e,At,qe,he,oe,xe,_e.slotScopeIds,Ve),queuePostRenderEffect(()=>{he.isDeactivated=!1,he.a&&invokeArrayFns(he.a);const Oe=_e.props&&_e.props.onVnodeMounted;Oe&&invokeVNodeHook(Oe,he.parent,_e)},oe)},g.deactivate=_e=>{const At=_e.component;ae(_e,pe,null,1,oe),queuePostRenderEffect(()=>{At.da&&invokeArrayFns(At.da);const qe=_e.props&&_e.props.onVnodeUnmounted;qe&&invokeVNodeHook(qe,At.parent,_e),At.isDeactivated=!0},oe)};function de(_e){resetShapeFlag(_e),le(_e,r,oe,!0)}function Fe(_e){$.forEach((At,qe)=>{const xe=getComponentName(At.type);xe&&(!_e||!_e(xe))&&ze(qe)})}function ze(_e){const At=$.get(_e);!k||At.type!==k.type?de(At):k&&resetShapeFlag(k),$.delete(_e),L.delete(_e)}watch(()=>[e.include,e.exclude],([_e,At])=>{_e&&Fe(qe=>matches$1(_e,qe)),At&&Fe(qe=>!matches$1(At,qe))},{flush:"post",deep:!0});let Ce=null;const Ie=()=>{Ce!=null&&$.set(Ce,getInnerChild(r.subTree))};return onMounted(Ie),onUpdated(Ie),onBeforeUnmount(()=>{$.forEach(_e=>{const{subTree:At,suspense:qe}=r,xe=getInnerChild(At);if(_e.type===xe.type){resetShapeFlag(xe);const Ve=xe.component.da;Ve&&queuePostRenderEffect(Ve,qe);return}de(_e)})}),()=>{if(Ce=null,!n.default)return null;const _e=n.default(),At=_e[0];if(_e.length>1)return k=null,_e;if(!isVNode(At)||!(At.shapeFlag&4)&&!(At.shapeFlag&128))return k=null,At;let qe=getInnerChild(At);const xe=qe.type,Ve=getComponentName(isAsyncWrapper(qe)?qe.type.__asyncResolved||{}:xe),{include:he,exclude:Oe,max:$e}=e;if(he&&(!Ve||!matches$1(he,Ve))||Oe&&Ve&&matches$1(Oe,Ve))return k=qe,At;const Ne=qe.key==null?xe:qe.key,Ue=$.get(Ne);return qe.el&&(qe=cloneVNode(qe),At.shapeFlag&128&&(At.ssContent=qe)),Ce=Ne,Ue?(qe.el=Ue.el,qe.component=Ue.component,qe.transition&&setTransitionHooks(qe,qe.transition),qe.shapeFlag|=512,L.delete(Ne),L.add(Ne)):(L.add(Ne),$e&&L.size>parseInt($e,10)&&ze(L.values().next().value)),qe.shapeFlag|=256,k=qe,isSuspense(At.type)?At:qe}}},KeepAlive=KeepAliveImpl;function matches$1(e,n){return isArray$4(e)?e.some(r=>matches$1(r,n)):isString$2(e)?e.split(",").includes(n):e.test?e.test(n):!1}function onActivated(e,n){registerKeepAliveHook(e,"a",n)}function onDeactivated(e,n){registerKeepAliveHook(e,"da",n)}function registerKeepAliveHook(e,n,r=currentInstance){const g=e.__wdc||(e.__wdc=()=>{let $=r;for(;$;){if($.isDeactivated)return;$=$.parent}return e()});if(injectHook(n,g,r),r){let $=r.parent;for(;$&&$.parent;)isKeepAlive($.parent.vnode)&&injectToKeepAliveRoot(g,n,r,$),$=$.parent}}function injectToKeepAliveRoot(e,n,r,g){const $=injectHook(n,e,g,!0);onUnmounted(()=>{remove$1(g[n],$)},r)}function resetShapeFlag(e){let n=e.shapeFlag;n&256&&(n-=256),n&512&&(n-=512),e.shapeFlag=n}function getInnerChild(e){return e.shapeFlag&128?e.ssContent:e}function injectHook(e,n,r=currentInstance,g=!1){if(r){const $=r[e]||(r[e]=[]),L=n.__weh||(n.__weh=(...k)=>{if(r.isUnmounted)return;pauseTracking(),setCurrentInstance(r);const oe=callWithAsyncErrorHandling(n,r,e,k);return unsetCurrentInstance(),resetTracking(),oe});return g?$.unshift(L):$.push(L),L}}const createHook=e=>(n,r=currentInstance)=>(!isInSSRComponentSetup||e==="sp")&&injectHook(e,n,r),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e,n=currentInstance){injectHook("ec",e,n)}function withDirectives(e,n){const r=currentRenderingInstance;if(r===null)return e;const g=getExposeProxy(r)||r.proxy,$=e.dirs||(e.dirs=[]);for(let L=0;Ln(k,oe,void 0,L&&L[oe]));else{const k=Object.keys(e);$=new Array(k.length);for(let oe=0,re=k.length;oeisVNode(n)?!(n.type===Comment||n.type===Fragment&&!ensureValidVNode(n.children)):!0)?e:null}function toHandlers(e){const n={};for(const r in e)n[toHandlerKey(r)]=e[r];return n}const getPublicInstance=e=>e?isStatefulComponent(e)?getExposeProxy(e)||e.proxy:getPublicInstance(e.parent):null,publicPropertiesMap=extend$2(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=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>e.f||(e.f=()=>queueJob(e.update)),$nextTick:e=>e.n||(e.n=nextTick.bind(e.proxy)),$watch:e=>instanceWatch.bind(e)}),PublicInstanceProxyHandlers={get({_:e},n){const{ctx:r,setupState:g,data:$,props:L,accessCache:k,type:oe,appContext:re}=e;let ae;if(n[0]!=="$"){const de=k[n];if(de!==void 0)switch(de){case 1:return g[n];case 2:return $[n];case 4:return r[n];case 3:return L[n]}else{if(g!==EMPTY_OBJ&&hasOwn(g,n))return k[n]=1,g[n];if($!==EMPTY_OBJ&&hasOwn($,n))return k[n]=2,$[n];if((ae=e.propsOptions[0])&&hasOwn(ae,n))return k[n]=3,L[n];if(r!==EMPTY_OBJ&&hasOwn(r,n))return k[n]=4,r[n];shouldCacheAccess&&(k[n]=0)}}const le=publicPropertiesMap[n];let ue,pe;if(le)return n==="$attrs"&&track(e,"get",n),le(e);if((ue=oe.__cssModules)&&(ue=ue[n]))return ue;if(r!==EMPTY_OBJ&&hasOwn(r,n))return k[n]=4,r[n];if(pe=re.config.globalProperties,hasOwn(pe,n))return pe[n]},set({_:e},n,r){const{data:g,setupState:$,ctx:L}=e;return $!==EMPTY_OBJ&&hasOwn($,n)?($[n]=r,!0):g!==EMPTY_OBJ&&hasOwn(g,n)?(g[n]=r,!0):hasOwn(e.props,n)||n[0]==="$"&&n.slice(1)in e?!1:(L[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:g,appContext:$,propsOptions:L}},k){let oe;return!!r[k]||e!==EMPTY_OBJ&&hasOwn(e,k)||n!==EMPTY_OBJ&&hasOwn(n,k)||(oe=L[0])&&hasOwn(oe,k)||hasOwn(g,k)||hasOwn(publicPropertiesMap,k)||hasOwn($.config.globalProperties,k)},defineProperty(e,n,r){return r.get!=null?e._.accessCache[n]=0:hasOwn(r,"value")&&this.set(e,n,r.value,null),Reflect.defineProperty(e,n,r)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$2({},PublicInstanceProxyHandlers,{get(e,n){if(n!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(e,n,e)},has(e,n){return n[0]!=="_"&&!isGloballyWhitelisted(n)}});let shouldCacheAccess=!0;function applyOptions(e){const n=resolveMergedOptions(e),r=e.proxy,g=e.ctx;shouldCacheAccess=!1,n.beforeCreate&&callHook$1(n.beforeCreate,e,"bc");const{data:$,computed:L,methods:k,watch:oe,provide:re,inject:ae,created:le,beforeMount:ue,mounted:pe,beforeUpdate:de,updated:Fe,activated:ze,deactivated:Ce,beforeDestroy:Ie,beforeUnmount:_e,destroyed:At,unmounted:qe,render:xe,renderTracked:Ve,renderTriggered:he,errorCaptured:Oe,serverPrefetch:$e,expose:Ne,inheritAttrs:Ue,components:kt,directives:Et,filters:Pt}=n;if(ae&&resolveInjections(ae,g,null,e.appContext.config.unwrapInjectedRef),k)for(const hn in k){const Dt=k[hn];isFunction$1(Dt)&&(g[hn]=Dt.bind(r))}if($){const hn=$.call(r,r);isObject$4(hn)&&(e.data=reactive(hn))}if(shouldCacheAccess=!0,L)for(const hn in L){const Dt=L[hn],jt=isFunction$1(Dt)?Dt.bind(r,r):isFunction$1(Dt.get)?Dt.get.bind(r,r):NOOP,bn=!isFunction$1(Dt)&&isFunction$1(Dt.set)?Dt.set.bind(r):NOOP,Sn=computed({get:jt,set:bn});Object.defineProperty(g,hn,{enumerable:!0,configurable:!0,get:()=>Sn.value,set:Cn=>Sn.value=Cn})}if(oe)for(const hn in oe)createWatcher(oe[hn],g,r,hn);if(re){const hn=isFunction$1(re)?re.call(r):re;Reflect.ownKeys(hn).forEach(Dt=>{provide(Dt,hn[Dt])})}le&&callHook$1(le,e,"c");function vn(hn,Dt){isArray$4(Dt)?Dt.forEach(jt=>hn(jt.bind(r))):Dt&&hn(Dt.bind(r))}if(vn(onBeforeMount,ue),vn(onMounted,pe),vn(onBeforeUpdate,de),vn(onUpdated,Fe),vn(onActivated,ze),vn(onDeactivated,Ce),vn(onErrorCaptured,Oe),vn(onRenderTracked,Ve),vn(onRenderTriggered,he),vn(onBeforeUnmount,_e),vn(onUnmounted,qe),vn(onServerPrefetch,$e),isArray$4(Ne))if(Ne.length){const hn=e.exposed||(e.exposed={});Ne.forEach(Dt=>{Object.defineProperty(hn,Dt,{get:()=>r[Dt],set:jt=>r[Dt]=jt})})}else e.exposed||(e.exposed={});xe&&e.render===NOOP&&(e.render=xe),Ue!=null&&(e.inheritAttrs=Ue),kt&&(e.components=kt),Et&&(e.directives=Et)}function resolveInjections(e,n,r=NOOP,g=!1){isArray$4(e)&&(e=normalizeInject(e));for(const $ in e){const L=e[$];let k;isObject$4(L)?"default"in L?k=inject(L.from||$,L.default,!0):k=inject(L.from||$):k=inject(L),isRef(k)&&g?Object.defineProperty(n,$,{enumerable:!0,configurable:!0,get:()=>k.value,set:oe=>k.value=oe}):n[$]=k}}function callHook$1(e,n,r){callWithAsyncErrorHandling(isArray$4(e)?e.map(g=>g.bind(n.proxy)):e.bind(n.proxy),n,r)}function createWatcher(e,n,r,g){const $=g.includes(".")?createPathGetter(r,g):()=>r[g];if(isString$2(e)){const L=n[e];isFunction$1(L)&&watch($,L)}else if(isFunction$1(e))watch($,e.bind(r));else if(isObject$4(e))if(isArray$4(e))e.forEach(L=>createWatcher(L,n,r,g));else{const L=isFunction$1(e.handler)?e.handler.bind(r):n[e.handler];isFunction$1(L)&&watch($,L,e)}}function resolveMergedOptions(e){const n=e.type,{mixins:r,extends:g}=n,{mixins:$,optionsCache:L,config:{optionMergeStrategies:k}}=e.appContext,oe=L.get(n);let re;return oe?re=oe:!$.length&&!r&&!g?re=n:(re={},$.length&&$.forEach(ae=>mergeOptions$2(re,ae,k,!0)),mergeOptions$2(re,n,k)),L.set(n,re),re}function mergeOptions$2(e,n,r,g=!1){const{mixins:$,extends:L}=n;L&&mergeOptions$2(e,L,r,!0),$&&$.forEach(k=>mergeOptions$2(e,k,r,!0));for(const k in n)if(!(g&&k==="expose")){const oe=internalOptionMergeStrats[k]||r&&r[k];e[k]=oe?oe(e[k],n[k]):n[k]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,n){return n?e?function(){return extend$2(isFunction$1(e)?e.call(this,this):e,isFunction$1(n)?n.call(this,this):n)}:n:e}function mergeInject(e,n){return mergeObjectOptions(normalizeInject(e),normalizeInject(n))}function normalizeInject(e){if(isArray$4(e)){const n={};for(let r=0;r0)&&!(k&16)){if(k&8){const le=e.vnode.dynamicProps;for(let ue=0;ue{re=!0;const[pe,de]=normalizePropsOptions(ue,n,!0);extend$2(k,pe),de&&oe.push(...de)};!r&&n.mixins.length&&n.mixins.forEach(le),e.extends&&le(e.extends),e.mixins&&e.mixins.forEach(le)}if(!L&&!re)return g.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray$4(L))for(let le=0;le-1,de[1]=ze<0||Fe-1||hasOwn(de,"default"))&&oe.push(ue)}}}const ae=[k,oe];return g.set(e,ae),ae}function validatePropName(e){return e[0]!=="$"}function getType(e){const n=e&&e.toString().match(/^\s*function (\w+)/);return n?n[1]:e===null?"null":""}function isSameType(e,n){return getType(e)===getType(n)}function getTypeIndex(e,n){return isArray$4(n)?n.findIndex(r=>isSameType(r,e)):isFunction$1(n)&&isSameType(n,e)?0:-1}const isInternalKey=e=>e[0]==="_"||e==="$stable",normalizeSlotValue=e=>isArray$4(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot$1=(e,n,r)=>{if(n._n)return n;const g=withCtx((...$)=>normalizeSlotValue(n(...$)),r);return g._c=!1,g},normalizeObjectSlots=(e,n,r)=>{const g=e._ctx;for(const $ in e){if(isInternalKey($))continue;const L=e[$];if(isFunction$1(L))n[$]=normalizeSlot$1($,L,g);else if(L!=null){const k=normalizeSlotValue(L);n[$]=()=>k}}},normalizeVNodeSlots=(e,n)=>{const r=normalizeSlotValue(n);e.slots.default=()=>r},initSlots=(e,n)=>{if(e.vnode.shapeFlag&32){const r=n._;r?(e.slots=toRaw(n),def(n,"_",r)):normalizeObjectSlots(n,e.slots={})}else e.slots={},n&&normalizeVNodeSlots(e,n);def(e.slots,InternalObjectKey,1)},updateSlots=(e,n,r)=>{const{vnode:g,slots:$}=e;let L=!0,k=EMPTY_OBJ;if(g.shapeFlag&32){const oe=n._;oe?r&&oe===1?L=!1:(extend$2($,n),!r&&oe===1&&delete $._):(L=!n.$stable,normalizeObjectSlots(n,$)),k=n}else n&&(normalizeVNodeSlots(e,n),k={default:1});if(L)for(const oe in $)!isInternalKey(oe)&&!(oe in k)&&delete $[oe]};function createAppContext(){return{app:null,config:{isNativeTag:NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uid$1=0;function createAppAPI(e,n){return function(g,$=null){isFunction$1(g)||(g=Object.assign({},g)),$!=null&&!isObject$4($)&&($=null);const L=createAppContext(),k=new Set;let oe=!1;const re=L.app={_uid:uid$1++,_component:g,_props:$,_container:null,_context:L,_instance:null,version:version$2,get config(){return L.config},set config(ae){},use(ae,...le){return k.has(ae)||(ae&&isFunction$1(ae.install)?(k.add(ae),ae.install(re,...le)):isFunction$1(ae)&&(k.add(ae),ae(re,...le))),re},mixin(ae){return L.mixins.includes(ae)||L.mixins.push(ae),re},component(ae,le){return le?(L.components[ae]=le,re):L.components[ae]},directive(ae,le){return le?(L.directives[ae]=le,re):L.directives[ae]},mount(ae,le,ue){if(!oe){const pe=createVNode(g,$);return pe.appContext=L,le&&n?n(pe,ae):e(pe,ae,ue),oe=!0,re._container=ae,ae.__vue_app__=re,getExposeProxy(pe.component)||pe.component.proxy}},unmount(){oe&&(e(null,re._container),delete re._container.__vue_app__)},provide(ae,le){return L.provides[ae]=le,re}};return re}}function setRef(e,n,r,g,$=!1){if(isArray$4(e)){e.forEach((pe,de)=>setRef(pe,n&&(isArray$4(n)?n[de]:n),r,g,$));return}if(isAsyncWrapper(g)&&!$)return;const L=g.shapeFlag&4?getExposeProxy(g.component)||g.component.proxy:g.el,k=$?null:L,{i:oe,r:re}=e,ae=n&&n.r,le=oe.refs===EMPTY_OBJ?oe.refs={}:oe.refs,ue=oe.setupState;if(ae!=null&&ae!==re&&(isString$2(ae)?(le[ae]=null,hasOwn(ue,ae)&&(ue[ae]=null)):isRef(ae)&&(ae.value=null)),isFunction$1(re))callWithErrorHandling(re,oe,12,[k,le]);else{const pe=isString$2(re),de=isRef(re);if(pe||de){const Fe=()=>{if(e.f){const ze=pe?le[re]:re.value;$?isArray$4(ze)&&remove$1(ze,L):isArray$4(ze)?ze.includes(L)||ze.push(L):pe?(le[re]=[L],hasOwn(ue,re)&&(ue[re]=le[re])):(re.value=[L],e.k&&(le[e.k]=re.value))}else pe?(le[re]=k,hasOwn(ue,re)&&(ue[re]=k)):de&&(re.value=k,e.k&&(le[e.k]=k))};k?(Fe.id=-1,queuePostRenderEffect(Fe,r)):Fe()}}}let hasMismatch=!1;const isSVGContainer=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",isComment$1=e=>e.nodeType===8;function createHydrationFunctions(e){const{mt:n,p:r,o:{patchProp:g,createText:$,nextSibling:L,parentNode:k,remove:oe,insert:re,createComment:ae}}=e,le=(Ie,_e)=>{if(!_e.hasChildNodes()){r(null,Ie,_e),flushPostFlushCbs(),_e._vnode=Ie;return}hasMismatch=!1,ue(_e.firstChild,Ie,null,null,null),flushPostFlushCbs(),_e._vnode=Ie,hasMismatch&&console.error("Hydration completed but contains mismatches.")},ue=(Ie,_e,At,qe,xe,Ve=!1)=>{const he=isComment$1(Ie)&&Ie.data==="[",Oe=()=>ze(Ie,_e,At,qe,xe,he),{type:$e,ref:Ne,shapeFlag:Ue,patchFlag:kt}=_e,Et=Ie.nodeType;_e.el=Ie,kt===-2&&(Ve=!1,_e.dynamicChildren=null);let Pt=null;switch($e){case Text$2:Et!==3?_e.children===""?(re(_e.el=$(""),k(Ie),Ie),Pt=Ie):Pt=Oe():(Ie.data!==_e.children&&(hasMismatch=!0,Ie.data=_e.children),Pt=L(Ie));break;case Comment:Et!==8||he?Pt=Oe():Pt=L(Ie);break;case Static:if(Et!==1&&Et!==3)Pt=Oe();else{Pt=Ie;const Lt=!_e.children.length;for(let vn=0;vn<_e.staticCount;vn++)Lt&&(_e.children+=Pt.nodeType===1?Pt.outerHTML:Pt.data),vn===_e.staticCount-1&&(_e.anchor=Pt),Pt=L(Pt);return Pt}break;case Fragment:he?Pt=Fe(Ie,_e,At,qe,xe,Ve):Pt=Oe();break;default:if(Ue&1)Et!==1||_e.type.toLowerCase()!==Ie.tagName.toLowerCase()?Pt=Oe():Pt=pe(Ie,_e,At,qe,xe,Ve);else if(Ue&6){_e.slotScopeIds=xe;const Lt=k(Ie);if(n(_e,Lt,null,At,qe,isSVGContainer(Lt),Ve),Pt=he?Ce(Ie):L(Ie),Pt&&isComment$1(Pt)&&Pt.data==="teleport end"&&(Pt=L(Pt)),isAsyncWrapper(_e)){let vn;he?(vn=createVNode(Fragment),vn.anchor=Pt?Pt.previousSibling:Lt.lastChild):vn=Ie.nodeType===3?createTextVNode(""):createVNode("div"),vn.el=Ie,_e.component.subTree=vn}}else Ue&64?Et!==8?Pt=Oe():Pt=_e.type.hydrate(Ie,_e,At,qe,xe,Ve,e,de):Ue&128&&(Pt=_e.type.hydrate(Ie,_e,At,qe,isSVGContainer(k(Ie)),xe,Ve,e,ue))}return Ne!=null&&setRef(Ne,null,qe,_e),Pt},pe=(Ie,_e,At,qe,xe,Ve)=>{Ve=Ve||!!_e.dynamicChildren;const{type:he,props:Oe,patchFlag:$e,shapeFlag:Ne,dirs:Ue}=_e,kt=he==="input"&&Ue||he==="option";if(kt||$e!==-1){if(Ue&&invokeDirectiveHook(_e,null,At,"created"),Oe)if(kt||!Ve||$e&48)for(const Pt in Oe)(kt&&Pt.endsWith("value")||isOn(Pt)&&!isReservedProp(Pt))&&g(Ie,Pt,null,Oe[Pt],!1,void 0,At);else Oe.onClick&&g(Ie,"onClick",null,Oe.onClick,!1,void 0,At);let Et;if((Et=Oe&&Oe.onVnodeBeforeMount)&&invokeVNodeHook(Et,At,_e),Ue&&invokeDirectiveHook(_e,null,At,"beforeMount"),((Et=Oe&&Oe.onVnodeMounted)||Ue)&&queueEffectWithSuspense(()=>{Et&&invokeVNodeHook(Et,At,_e),Ue&&invokeDirectiveHook(_e,null,At,"mounted")},qe),Ne&16&&!(Oe&&(Oe.innerHTML||Oe.textContent))){let Pt=de(Ie.firstChild,_e,Ie,At,qe,xe,Ve);for(;Pt;){hasMismatch=!0;const Lt=Pt;Pt=Pt.nextSibling,oe(Lt)}}else Ne&8&&Ie.textContent!==_e.children&&(hasMismatch=!0,Ie.textContent=_e.children)}return Ie.nextSibling},de=(Ie,_e,At,qe,xe,Ve,he)=>{he=he||!!_e.dynamicChildren;const Oe=_e.children,$e=Oe.length;for(let Ne=0;Ne<$e;Ne++){const Ue=he?Oe[Ne]:Oe[Ne]=normalizeVNode(Oe[Ne]);if(Ie)Ie=ue(Ie,Ue,qe,xe,Ve,he);else{if(Ue.type===Text$2&&!Ue.children)continue;hasMismatch=!0,r(null,Ue,At,null,qe,xe,isSVGContainer(At),Ve)}}return Ie},Fe=(Ie,_e,At,qe,xe,Ve)=>{const{slotScopeIds:he}=_e;he&&(xe=xe?xe.concat(he):he);const Oe=k(Ie),$e=de(L(Ie),_e,Oe,At,qe,xe,Ve);return $e&&isComment$1($e)&&$e.data==="]"?L(_e.anchor=$e):(hasMismatch=!0,re(_e.anchor=ae("]"),Oe,$e),$e)},ze=(Ie,_e,At,qe,xe,Ve)=>{if(hasMismatch=!0,_e.el=null,Ve){const $e=Ce(Ie);for(;;){const Ne=L(Ie);if(Ne&&Ne!==$e)oe(Ne);else break}}const he=L(Ie),Oe=k(Ie);return oe(Ie),r(null,_e,Oe,he,At,qe,isSVGContainer(Oe),xe),he},Ce=Ie=>{let _e=0;for(;Ie;)if(Ie=L(Ie),Ie&&isComment$1(Ie)&&(Ie.data==="["&&_e++,Ie.data==="]")){if(_e===0)return L(Ie);_e--}return Ie};return[le,ue]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function createHydrationRenderer(e){return baseCreateRenderer(e,createHydrationFunctions)}function baseCreateRenderer(e,n){const r=getGlobalThis();r.__VUE__=!0;const{insert:g,remove:$,patchProp:L,createElement:k,createText:oe,createComment:re,setText:ae,setElementText:le,parentNode:ue,nextSibling:pe,setScopeId:de=NOOP,cloneNode:Fe,insertStaticContent:ze}=e,Ce=(Nn,Rn,wn,Tn=null,xn=null,Bn=null,Ln=!1,Hn=null,zn=!!Rn.dynamicChildren)=>{if(Nn===Rn)return;Nn&&!isSameVNodeType(Nn,Rn)&&(Tn=Pn(Nn),On(Nn,xn,Bn,!0),Nn=null),Rn.patchFlag===-2&&(zn=!1,Rn.dynamicChildren=null);const{type:Jn,ref:co,shapeFlag:Gn}=Rn;switch(Jn){case Text$2:Ie(Nn,Rn,wn,Tn);break;case Comment:_e(Nn,Rn,wn,Tn);break;case Static:Nn==null&&At(Rn,wn,Tn,Ln);break;case Fragment:Et(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn);break;default:Gn&1?Ve(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn):Gn&6?Pt(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn):(Gn&64||Gn&128)&&Jn.process(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn,Mn)}co!=null&&xn&&setRef(co,Nn&&Nn.ref,Bn,Rn||Nn,!Rn)},Ie=(Nn,Rn,wn,Tn)=>{if(Nn==null)g(Rn.el=oe(Rn.children),wn,Tn);else{const xn=Rn.el=Nn.el;Rn.children!==Nn.children&&ae(xn,Rn.children)}},_e=(Nn,Rn,wn,Tn)=>{Nn==null?g(Rn.el=re(Rn.children||""),wn,Tn):Rn.el=Nn.el},At=(Nn,Rn,wn,Tn)=>{[Nn.el,Nn.anchor]=ze(Nn.children,Rn,wn,Tn,Nn.el,Nn.anchor)},qe=({el:Nn,anchor:Rn},wn,Tn)=>{let xn;for(;Nn&&Nn!==Rn;)xn=pe(Nn),g(Nn,wn,Tn),Nn=xn;g(Rn,wn,Tn)},xe=({el:Nn,anchor:Rn})=>{let wn;for(;Nn&&Nn!==Rn;)wn=pe(Nn),$(Nn),Nn=wn;$(Rn)},Ve=(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn)=>{Ln=Ln||Rn.type==="svg",Nn==null?he(Rn,wn,Tn,xn,Bn,Ln,Hn,zn):Ne(Nn,Rn,xn,Bn,Ln,Hn,zn)},he=(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn)=>{let zn,Jn;const{type:co,props:Gn,shapeFlag:eo,transition:ao,patchFlag:ho,dirs:Yn}=Nn;if(Nn.el&&Fe!==void 0&&ho===-1)zn=Nn.el=Fe(Nn.el);else{if(zn=Nn.el=k(Nn.type,Bn,Gn&&Gn.is,Gn),eo&8?le(zn,Nn.children):eo&16&&$e(Nn.children,zn,null,Tn,xn,Bn&&co!=="foreignObject",Ln,Hn),Yn&&invokeDirectiveHook(Nn,null,Tn,"created"),Gn){for(const Vn in Gn)Vn!=="value"&&!isReservedProp(Vn)&&L(zn,Vn,null,Gn[Vn],Bn,Nn.children,Tn,xn,$n);"value"in Gn&&L(zn,"value",null,Gn.value),(Jn=Gn.onVnodeBeforeMount)&&invokeVNodeHook(Jn,Tn,Nn)}Oe(zn,Nn,Nn.scopeId,Ln,Tn)}Yn&&invokeDirectiveHook(Nn,null,Tn,"beforeMount");const Wn=(!xn||xn&&!xn.pendingBranch)&&ao&&!ao.persisted;Wn&&ao.beforeEnter(zn),g(zn,Rn,wn),((Jn=Gn&&Gn.onVnodeMounted)||Wn||Yn)&&queuePostRenderEffect(()=>{Jn&&invokeVNodeHook(Jn,Tn,Nn),Wn&&ao.enter(zn),Yn&&invokeDirectiveHook(Nn,null,Tn,"mounted")},xn)},Oe=(Nn,Rn,wn,Tn,xn)=>{if(wn&&de(Nn,wn),Tn)for(let Bn=0;Bn{for(let Jn=zn;Jn{const Hn=Rn.el=Nn.el;let{patchFlag:zn,dynamicChildren:Jn,dirs:co}=Rn;zn|=Nn.patchFlag&16;const Gn=Nn.props||EMPTY_OBJ,eo=Rn.props||EMPTY_OBJ;let ao;wn&&toggleRecurse(wn,!1),(ao=eo.onVnodeBeforeUpdate)&&invokeVNodeHook(ao,wn,Rn,Nn),co&&invokeDirectiveHook(Rn,Nn,wn,"beforeUpdate"),wn&&toggleRecurse(wn,!0);const ho=xn&&Rn.type!=="foreignObject";if(Jn?Ue(Nn.dynamicChildren,Jn,Hn,wn,Tn,ho,Bn):Ln||jt(Nn,Rn,Hn,null,wn,Tn,ho,Bn,!1),zn>0){if(zn&16)kt(Hn,Rn,Gn,eo,wn,Tn,xn);else if(zn&2&&Gn.class!==eo.class&&L(Hn,"class",null,eo.class,xn),zn&4&&L(Hn,"style",Gn.style,eo.style,xn),zn&8){const Yn=Rn.dynamicProps;for(let Wn=0;Wn{ao&&invokeVNodeHook(ao,wn,Rn,Nn),co&&invokeDirectiveHook(Rn,Nn,wn,"updated")},Tn)},Ue=(Nn,Rn,wn,Tn,xn,Bn,Ln)=>{for(let Hn=0;Hn{if(wn!==Tn){for(const Hn in Tn){if(isReservedProp(Hn))continue;const zn=Tn[Hn],Jn=wn[Hn];zn!==Jn&&Hn!=="value"&&L(Nn,Hn,Jn,zn,Ln,Rn.children,xn,Bn,$n)}if(wn!==EMPTY_OBJ)for(const Hn in wn)!isReservedProp(Hn)&&!(Hn in Tn)&&L(Nn,Hn,wn[Hn],null,Ln,Rn.children,xn,Bn,$n);"value"in Tn&&L(Nn,"value",wn.value,Tn.value)}},Et=(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn)=>{const Jn=Rn.el=Nn?Nn.el:oe(""),co=Rn.anchor=Nn?Nn.anchor:oe("");let{patchFlag:Gn,dynamicChildren:eo,slotScopeIds:ao}=Rn;ao&&(Hn=Hn?Hn.concat(ao):ao),Nn==null?(g(Jn,wn,Tn),g(co,wn,Tn),$e(Rn.children,wn,co,xn,Bn,Ln,Hn,zn)):Gn>0&&Gn&64&&eo&&Nn.dynamicChildren?(Ue(Nn.dynamicChildren,eo,wn,xn,Bn,Ln,Hn),(Rn.key!=null||xn&&Rn===xn.subTree)&&traverseStaticChildren(Nn,Rn,!0)):jt(Nn,Rn,wn,co,xn,Bn,Ln,Hn,zn)},Pt=(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn)=>{Rn.slotScopeIds=Hn,Nn==null?Rn.shapeFlag&512?xn.ctx.activate(Rn,wn,Tn,Ln,zn):Lt(Rn,wn,Tn,xn,Bn,Ln,zn):vn(Nn,Rn,zn)},Lt=(Nn,Rn,wn,Tn,xn,Bn,Ln)=>{const Hn=Nn.component=createComponentInstance(Nn,Tn,xn);if(isKeepAlive(Nn)&&(Hn.ctx.renderer=Mn),setupComponent(Hn),Hn.asyncDep){if(xn&&xn.registerDep(Hn,hn),!Nn.el){const zn=Hn.subTree=createVNode(Comment);_e(null,zn,Rn,wn)}return}hn(Hn,Nn,Rn,wn,xn,Bn,Ln)},vn=(Nn,Rn,wn)=>{const Tn=Rn.component=Nn.component;if(shouldUpdateComponent(Nn,Rn,wn))if(Tn.asyncDep&&!Tn.asyncResolved){Dt(Tn,Rn,wn);return}else Tn.next=Rn,invalidateJob(Tn.update),Tn.update();else Rn.el=Nn.el,Tn.vnode=Rn},hn=(Nn,Rn,wn,Tn,xn,Bn,Ln)=>{const Hn=()=>{if(Nn.isMounted){let{next:co,bu:Gn,u:eo,parent:ao,vnode:ho}=Nn,Yn=co,Wn;toggleRecurse(Nn,!1),co?(co.el=ho.el,Dt(Nn,co,Ln)):co=ho,Gn&&invokeArrayFns(Gn),(Wn=co.props&&co.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Wn,ao,co,ho),toggleRecurse(Nn,!0);const Vn=renderComponentRoot(Nn),_n=Nn.subTree;Nn.subTree=Vn,Ce(_n,Vn,ue(_n.el),Pn(_n),Nn,xn,Bn),co.el=Vn.el,Yn===null&&updateHOCHostEl(Nn,Vn.el),eo&&queuePostRenderEffect(eo,xn),(Wn=co.props&&co.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Wn,ao,co,ho),xn)}else{let co;const{el:Gn,props:eo}=Rn,{bm:ao,m:ho,parent:Yn}=Nn,Wn=isAsyncWrapper(Rn);if(toggleRecurse(Nn,!1),ao&&invokeArrayFns(ao),!Wn&&(co=eo&&eo.onVnodeBeforeMount)&&invokeVNodeHook(co,Yn,Rn),toggleRecurse(Nn,!0),Gn&&kn){const Vn=()=>{Nn.subTree=renderComponentRoot(Nn),kn(Gn,Nn.subTree,Nn,xn,null)};Wn?Rn.type.__asyncLoader().then(()=>!Nn.isUnmounted&&Vn()):Vn()}else{const Vn=Nn.subTree=renderComponentRoot(Nn);Ce(null,Vn,wn,Tn,Nn,xn,Bn),Rn.el=Vn.el}if(ho&&queuePostRenderEffect(ho,xn),!Wn&&(co=eo&&eo.onVnodeMounted)){const Vn=Rn;queuePostRenderEffect(()=>invokeVNodeHook(co,Yn,Vn),xn)}(Rn.shapeFlag&256||Yn&&isAsyncWrapper(Yn.vnode)&&Yn.vnode.shapeFlag&256)&&Nn.a&&queuePostRenderEffect(Nn.a,xn),Nn.isMounted=!0,Rn=wn=Tn=null}},zn=Nn.effect=new ReactiveEffect(Hn,()=>queueJob(Jn),Nn.scope),Jn=Nn.update=()=>zn.run();Jn.id=Nn.uid,toggleRecurse(Nn,!0),Jn()},Dt=(Nn,Rn,wn)=>{Rn.component=Nn;const Tn=Nn.vnode.props;Nn.vnode=Rn,Nn.next=null,updateProps(Nn,Rn.props,Tn,wn),updateSlots(Nn,Rn.children,wn),pauseTracking(),flushPreFlushCbs(void 0,Nn.update),resetTracking()},jt=(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn=!1)=>{const Jn=Nn&&Nn.children,co=Nn?Nn.shapeFlag:0,Gn=Rn.children,{patchFlag:eo,shapeFlag:ao}=Rn;if(eo>0){if(eo&128){Sn(Jn,Gn,wn,Tn,xn,Bn,Ln,Hn,zn);return}else if(eo&256){bn(Jn,Gn,wn,Tn,xn,Bn,Ln,Hn,zn);return}}ao&8?(co&16&&$n(Jn,xn,Bn),Gn!==Jn&&le(wn,Gn)):co&16?ao&16?Sn(Jn,Gn,wn,Tn,xn,Bn,Ln,Hn,zn):$n(Jn,xn,Bn,!0):(co&8&&le(wn,""),ao&16&&$e(Gn,wn,Tn,xn,Bn,Ln,Hn,zn))},bn=(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn)=>{Nn=Nn||EMPTY_ARR,Rn=Rn||EMPTY_ARR;const Jn=Nn.length,co=Rn.length,Gn=Math.min(Jn,co);let eo;for(eo=0;eoco?$n(Nn,xn,Bn,!0,!1,Gn):$e(Rn,wn,Tn,xn,Bn,Ln,Hn,zn,Gn)},Sn=(Nn,Rn,wn,Tn,xn,Bn,Ln,Hn,zn)=>{let Jn=0;const co=Rn.length;let Gn=Nn.length-1,eo=co-1;for(;Jn<=Gn&&Jn<=eo;){const ao=Nn[Jn],ho=Rn[Jn]=zn?cloneIfMounted(Rn[Jn]):normalizeVNode(Rn[Jn]);if(isSameVNodeType(ao,ho))Ce(ao,ho,wn,null,xn,Bn,Ln,Hn,zn);else break;Jn++}for(;Jn<=Gn&&Jn<=eo;){const ao=Nn[Gn],ho=Rn[eo]=zn?cloneIfMounted(Rn[eo]):normalizeVNode(Rn[eo]);if(isSameVNodeType(ao,ho))Ce(ao,ho,wn,null,xn,Bn,Ln,Hn,zn);else break;Gn--,eo--}if(Jn>Gn){if(Jn<=eo){const ao=eo+1,ho=aoeo)for(;Jn<=Gn;)On(Nn[Jn],xn,Bn,!0),Jn++;else{const ao=Jn,ho=Jn,Yn=new Map;for(Jn=ho;Jn<=eo;Jn++){const Zn=Rn[Jn]=zn?cloneIfMounted(Rn[Jn]):normalizeVNode(Rn[Jn]);Zn.key!=null&&Yn.set(Zn.key,Jn)}let Wn,Vn=0;const _n=eo-ho+1;let Qn=!1,jn=0;const Un=new Array(_n);for(Jn=0;Jn<_n;Jn++)Un[Jn]=0;for(Jn=ao;Jn<=Gn;Jn++){const Zn=Nn[Jn];if(Vn>=_n){On(Zn,xn,Bn,!0);continue}let to;if(Zn.key!=null)to=Yn.get(Zn.key);else for(Wn=ho;Wn<=eo;Wn++)if(Un[Wn-ho]===0&&isSameVNodeType(Zn,Rn[Wn])){to=Wn;break}to===void 0?On(Zn,xn,Bn,!0):(Un[to-ho]=Jn+1,to>=jn?jn=to:Qn=!0,Ce(Zn,Rn[to],wn,null,xn,Bn,Ln,Hn,zn),Vn++)}const Xn=Qn?getSequence(Un):EMPTY_ARR;for(Wn=Xn.length-1,Jn=_n-1;Jn>=0;Jn--){const Zn=ho+Jn,to=Rn[Zn],ro=Zn+1{const{el:Bn,type:Ln,transition:Hn,children:zn,shapeFlag:Jn}=Nn;if(Jn&6){Cn(Nn.component.subTree,Rn,wn,Tn);return}if(Jn&128){Nn.suspense.move(Rn,wn,Tn);return}if(Jn&64){Ln.move(Nn,Rn,wn,Mn);return}if(Ln===Fragment){g(Bn,Rn,wn);for(let Gn=0;GnHn.enter(Bn),xn);else{const{leave:Gn,delayLeave:eo,afterLeave:ao}=Hn,ho=()=>g(Bn,Rn,wn),Yn=()=>{Gn(Bn,()=>{ho(),ao&&ao()})};eo?eo(Bn,ho,Yn):Yn()}else g(Bn,Rn,wn)},On=(Nn,Rn,wn,Tn=!1,xn=!1)=>{const{type:Bn,props:Ln,ref:Hn,children:zn,dynamicChildren:Jn,shapeFlag:co,patchFlag:Gn,dirs:eo}=Nn;if(Hn!=null&&setRef(Hn,null,wn,Nn,!0),co&256){Rn.ctx.deactivate(Nn);return}const ao=co&1&&eo,ho=!isAsyncWrapper(Nn);let Yn;if(ho&&(Yn=Ln&&Ln.onVnodeBeforeUnmount)&&invokeVNodeHook(Yn,Rn,Nn),co&6)In(Nn.component,wn,Tn);else{if(co&128){Nn.suspense.unmount(wn,Tn);return}ao&&invokeDirectiveHook(Nn,null,Rn,"beforeUnmount"),co&64?Nn.type.remove(Nn,Rn,wn,xn,Mn,Tn):Jn&&(Bn!==Fragment||Gn>0&&Gn&64)?$n(Jn,Rn,wn,!1,!0):(Bn===Fragment&&Gn&384||!xn&&co&16)&&$n(zn,Rn,wn),Tn&&En(Nn)}(ho&&(Yn=Ln&&Ln.onVnodeUnmounted)||ao)&&queuePostRenderEffect(()=>{Yn&&invokeVNodeHook(Yn,Rn,Nn),ao&&invokeDirectiveHook(Nn,null,Rn,"unmounted")},wn)},En=Nn=>{const{type:Rn,el:wn,anchor:Tn,transition:xn}=Nn;if(Rn===Fragment){An(wn,Tn);return}if(Rn===Static){xe(Nn);return}const Bn=()=>{$(wn),xn&&!xn.persisted&&xn.afterLeave&&xn.afterLeave()};if(Nn.shapeFlag&1&&xn&&!xn.persisted){const{leave:Ln,delayLeave:Hn}=xn,zn=()=>Ln(wn,Bn);Hn?Hn(Nn.el,Bn,zn):zn()}else Bn()},An=(Nn,Rn)=>{let wn;for(;Nn!==Rn;)wn=pe(Nn),$(Nn),Nn=wn;$(Rn)},In=(Nn,Rn,wn)=>{const{bum:Tn,scope:xn,update:Bn,subTree:Ln,um:Hn}=Nn;Tn&&invokeArrayFns(Tn),xn.stop(),Bn&&(Bn.active=!1,On(Ln,Nn,Rn,wn)),Hn&&queuePostRenderEffect(Hn,Rn),queuePostRenderEffect(()=>{Nn.isUnmounted=!0},Rn),Rn&&Rn.pendingBranch&&!Rn.isUnmounted&&Nn.asyncDep&&!Nn.asyncResolved&&Nn.suspenseId===Rn.pendingId&&(Rn.deps--,Rn.deps===0&&Rn.resolve())},$n=(Nn,Rn,wn,Tn=!1,xn=!1,Bn=0)=>{for(let Ln=Bn;LnNn.shapeFlag&6?Pn(Nn.component.subTree):Nn.shapeFlag&128?Nn.suspense.next():pe(Nn.anchor||Nn.el),Dn=(Nn,Rn,wn)=>{Nn==null?Rn._vnode&&On(Rn._vnode,null,null,!0):Ce(Rn._vnode||null,Nn,Rn,null,null,null,wn),flushPostFlushCbs(),Rn._vnode=Nn},Mn={p:Ce,um:On,m:Cn,r:En,mt:Lt,mc:$e,pc:jt,pbc:Ue,n:Pn,o:e};let Fn,kn;return n&&([Fn,kn]=n(Mn)),{render:Dn,hydrate:Fn,createApp:createAppAPI(Dn,Fn)}}function toggleRecurse({effect:e,update:n},r){e.allowRecurse=n.allowRecurse=r}function traverseStaticChildren(e,n,r=!1){const g=e.children,$=n.children;if(isArray$4(g)&&isArray$4($))for(let L=0;L>1,e[r[oe]]0&&(n[g]=r[L-1]),r[L]=g)}}for(L=r.length,k=r[L-1];L-- >0;)r[L]=k,k=n[k];return r}const isTeleport=e=>e.__isTeleport,isTeleportDisabled=e=>e&&(e.disabled||e.disabled===""),isTargetSVG=e=>typeof SVGElement<"u"&&e instanceof SVGElement,resolveTarget=(e,n)=>{const r=e&&e.to;return isString$2(r)?n?n(r):null:r},TeleportImpl={__isTeleport:!0,process(e,n,r,g,$,L,k,oe,re,ae){const{mc:le,pc:ue,pbc:pe,o:{insert:de,querySelector:Fe,createText:ze,createComment:Ce}}=ae,Ie=isTeleportDisabled(n.props);let{shapeFlag:_e,children:At,dynamicChildren:qe}=n;if(e==null){const xe=n.el=ze(""),Ve=n.anchor=ze("");de(xe,r,g),de(Ve,r,g);const he=n.target=resolveTarget(n.props,Fe),Oe=n.targetAnchor=ze("");he&&(de(Oe,he),k=k||isTargetSVG(he));const $e=(Ne,Ue)=>{_e&16&&le(At,Ne,Ue,$,L,k,oe,re)};Ie?$e(r,Ve):he&&$e(he,Oe)}else{n.el=e.el;const xe=n.anchor=e.anchor,Ve=n.target=e.target,he=n.targetAnchor=e.targetAnchor,Oe=isTeleportDisabled(e.props),$e=Oe?r:Ve,Ne=Oe?xe:he;if(k=k||isTargetSVG(Ve),qe?(pe(e.dynamicChildren,qe,$e,$,L,k,oe),traverseStaticChildren(e,n,!0)):re||ue(e,n,$e,Ne,$,L,k,oe,!1),Ie)Oe||moveTeleport(n,r,xe,ae,1);else if((n.props&&n.props.to)!==(e.props&&e.props.to)){const Ue=n.target=resolveTarget(n.props,Fe);Ue&&moveTeleport(n,Ue,null,ae,0)}else Oe&&moveTeleport(n,Ve,he,ae,1)}},remove(e,n,r,g,{um:$,o:{remove:L}},k){const{shapeFlag:oe,children:re,anchor:ae,targetAnchor:le,target:ue,props:pe}=e;if(ue&&L(le),(k||!isTeleportDisabled(pe))&&(L(ae),oe&16))for(let de=0;de0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(e),e}function createElementBlock(e,n,r,g,$,L){return setupBlock(createBaseVNode(e,n,r,g,$,L,!0))}function createBlock(e,n,r,g,$){return setupBlock(createVNode(e,n,r,g,$,!0))}function isVNode(e){return e?e.__v_isVNode===!0:!1}function isSameVNodeType(e,n){return e.type===n.type&&e.key===n.key}function transformVNodeArgs(e){}const InternalObjectKey="__vInternal",normalizeKey=({key:e})=>e??null,normalizeRef=({ref:e,ref_key:n,ref_for:r})=>e!=null?isString$2(e)||isRef(e)||isFunction$1(e)?{i:currentRenderingInstance,r:e,k:n,f:!!r}:e:null;function createBaseVNode(e,n=null,r=null,g=0,$=null,L=e===Fragment?0:1,k=!1,oe=!1){const re={__v_isVNode:!0,__v_skip:!0,type:e,props:n,key:n&&normalizeKey(n),ref:n&&normalizeRef(n),scopeId:currentScopeId,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:L,patchFlag:g,dynamicProps:$,dynamicChildren:null,appContext:null};return oe?(normalizeChildren(re,r),L&128&&e.normalize(re)):r&&(re.shapeFlag|=isString$2(r)?8:16),isBlockTreeEnabled>0&&!k&¤tBlock&&(re.patchFlag>0||L&6)&&re.patchFlag!==32&¤tBlock.push(re),re}const createVNode=_createVNode;function _createVNode(e,n=null,r=null,g=0,$=null,L=!1){if((!e||e===NULL_DYNAMIC_COMPONENT)&&(e=Comment),isVNode(e)){const oe=cloneVNode(e,n,!0);return r&&normalizeChildren(oe,r),isBlockTreeEnabled>0&&!L&¤tBlock&&(oe.shapeFlag&6?currentBlock[currentBlock.indexOf(e)]=oe:currentBlock.push(oe)),oe.patchFlag|=-2,oe}if(isClassComponent(e)&&(e=e.__vccOpts),n){n=guardReactiveProps(n);let{class:oe,style:re}=n;oe&&!isString$2(oe)&&(n.class=normalizeClass(oe)),isObject$4(re)&&(isProxy(re)&&!isArray$4(re)&&(re=extend$2({},re)),n.style=normalizeStyle(re))}const k=isString$2(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$4(e)?4:isFunction$1(e)?2:0;return createBaseVNode(e,n,r,g,$,k,L,!0)}function guardReactiveProps(e){return e?isProxy(e)||InternalObjectKey in e?extend$2({},e):e:null}function cloneVNode(e,n,r=!1){const{props:g,ref:$,patchFlag:L,children:k}=e,oe=n?mergeProps(g||{},n):g;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:oe,key:oe&&normalizeKey(oe),ref:n&&n.ref?r&&$?isArray$4($)?$.concat(normalizeRef(n)):[$,normalizeRef(n)]:normalizeRef(n):$,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:k,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:n&&e.type!==Fragment?L===-1?16:L|16:L,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor}}function createTextVNode(e=" ",n=0){return createVNode(Text$2,null,e,n)}function createStaticVNode(e,n){const r=createVNode(Static,null,e);return r.staticCount=n,r}function createCommentVNode(e="",n=!1){return n?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return e==null||typeof e=="boolean"?createVNode(Comment):isArray$4(e)?createVNode(Fragment,null,e.slice()):typeof e=="object"?cloneIfMounted(e):createVNode(Text$2,null,String(e))}function cloneIfMounted(e){return e.el===null||e.memo?e:cloneVNode(e)}function normalizeChildren(e,n){let r=0;const{shapeFlag:g}=e;if(n==null)n=null;else if(isArray$4(n))r=16;else if(typeof n=="object")if(g&65){const $=n.default;$&&($._c&&($._d=!1),normalizeChildren(e,$()),$._c&&($._d=!0));return}else{r=32;const $=n._;!$&&!(InternalObjectKey in n)?n._ctx=currentRenderingInstance:$===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?n._=1:(n._=2,e.patchFlag|=1024))}else isFunction$1(n)?(n={default:n,_ctx:currentRenderingInstance},r=32):(n=String(n),g&64?(r=16,n=[createTextVNode(n)]):r=8);e.children=n,e.shapeFlag|=r}function mergeProps(...e){const n={};for(let r=0;rcurrentInstance||currentRenderingInstance,setCurrentInstance=e=>{currentInstance=e,e.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),currentInstance=null};function isStatefulComponent(e){return e.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(e,n=!1){isInSSRComponentSetup=n;const{props:r,children:g}=e.vnode,$=isStatefulComponent(e);initProps(e,r,$,n),initSlots(e,g);const L=$?setupStatefulComponent(e,n):void 0;return isInSSRComponentSetup=!1,L}function setupStatefulComponent(e,n){const r=e.type;e.accessCache=Object.create(null),e.proxy=markRaw(new Proxy(e.ctx,PublicInstanceProxyHandlers));const{setup:g}=r;if(g){const $=e.setupContext=g.length>1?createSetupContext(e):null;setCurrentInstance(e),pauseTracking();const L=callWithErrorHandling(g,e,0,[e.props,$]);if(resetTracking(),unsetCurrentInstance(),isPromise(L)){if(L.then(unsetCurrentInstance,unsetCurrentInstance),n)return L.then(k=>{handleSetupResult(e,k,n)}).catch(k=>{handleError(k,e,0)});e.asyncDep=L}else handleSetupResult(e,L,n)}else finishComponentSetup(e,n)}function handleSetupResult(e,n,r){isFunction$1(n)?e.type.__ssrInlineRender?e.ssrRender=n:e.render=n:isObject$4(n)&&(e.setupState=proxyRefs(n)),finishComponentSetup(e,r)}let compile$1,installWithProxy;function registerRuntimeCompiler(e){compile$1=e,installWithProxy=n=>{n.render._rc&&(n.withProxy=new Proxy(n.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup(e,n,r){const g=e.type;if(!e.render){if(!n&&compile$1&&!g.render){const $=g.template;if($){const{isCustomElement:L,compilerOptions:k}=e.appContext.config,{delimiters:oe,compilerOptions:re}=g,ae=extend$2(extend$2({isCustomElement:L,delimiters:oe},k),re);g.render=compile$1($,ae)}}e.render=g.render||NOOP,installWithProxy&&installWithProxy(e)}setCurrentInstance(e),pauseTracking(),applyOptions(e),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(e){return new Proxy(e.attrs,{get(n,r){return track(e,"get","$attrs"),n[r]}})}function createSetupContext(e){const n=g=>{e.exposed=g||{}};let r;return{get attrs(){return r||(r=createAttrsProxy(e))},slots:e.slots,emit:e.emit,expose:n}}function getExposeProxy(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get(n,r){if(r in n)return n[r];if(r in publicPropertiesMap)return publicPropertiesMap[r](e)}}))}const classifyRE=/(?:^|[-_])(\w)/g,classify=e=>e.replace(classifyRE,n=>n.toUpperCase()).replace(/[-_]/g,"");function getComponentName(e,n=!0){return isFunction$1(e)?e.displayName||e.name:e.name||n&&e.__name}function formatComponentName(e,n,r=!1){let g=getComponentName(n);if(!g&&n.__file){const $=n.__file.match(/([^/\\]+)\.\w+$/);$&&(g=$[1])}if(!g&&e&&e.parent){const $=L=>{for(const k in L)if(L[k]===n)return k};g=$(e.components||e.parent.type.components)||$(e.appContext.components)}return g?classify(g):r?"App":"Anonymous"}function isClassComponent(e){return isFunction$1(e)&&"__vccOpts"in e}const computed=(e,n)=>computed$1(e,n,isInSSRComponentSetup);function defineProps(){return null}function defineEmits(){return null}function defineExpose(e){}function withDefaults(e,n){return null}function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function getContext(){const e=getCurrentInstance();return e.setupContext||(e.setupContext=createSetupContext(e))}function mergeDefaults(e,n){const r=isArray$4(e)?e.reduce((g,$)=>(g[$]={},g),{}):e;for(const g in n){const $=r[g];$?isArray$4($)||isFunction$1($)?r[g]={type:$,default:n[g]}:$.default=n[g]:$===null&&(r[g]={default:n[g]})}return r}function createPropsRestProxy(e,n){const r={};for(const g in e)n.includes(g)||Object.defineProperty(r,g,{enumerable:!0,get:()=>e[g]});return r}function withAsyncContext(e){const n=getCurrentInstance();let r=e();return unsetCurrentInstance(),isPromise(r)&&(r=r.catch(g=>{throw setCurrentInstance(n),g})),[r,()=>setCurrentInstance(n)]}function h$2(e,n,r){const g=arguments.length;return g===2?isObject$4(n)&&!isArray$4(n)?isVNode(n)?createVNode(e,null,[n]):createVNode(e,n):createVNode(e,null,n):(g>3?r=Array.prototype.slice.call(arguments,2):g===3&&isVNode(r)&&(r=[r]),createVNode(e,n,r))}const ssrContextKey=Symbol(""),useSSRContext=()=>{{const e=inject(ssrContextKey);return e||warn("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function initCustomFormatter(){}function withMemo(e,n,r,g){const $=r[g];if($&&isMemoSame($,e))return $;const L=n();return L.memo=e.slice(),r[g]=L}function isMemoSame(e,n){const r=e.memo;if(r.length!=n.length)return!1;for(let g=0;g0&¤tBlock&¤tBlock.push(e),!0}const version$2="3.2.37",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc$1=typeof document<"u"?document:null,templateContainer=doc$1&&doc$1.createElement("template"),nodeOps={insert:(e,n,r)=>{n.insertBefore(e,r||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,r,g)=>{const $=n?doc$1.createElementNS(svgNS,e):doc$1.createElement(e,r?{is:r}:void 0);return e==="select"&&g&&g.multiple!=null&&$.setAttribute("multiple",g.multiple),$},createText:e=>doc$1.createTextNode(e),createComment:e=>doc$1.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc$1.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},cloneNode(e){const n=e.cloneNode(!0);return"_value"in e&&(n._value=e._value),n},insertStaticContent(e,n,r,g,$,L){const k=r?r.previousSibling:n.lastChild;if($&&($===L||$.nextSibling))for(;n.insertBefore($.cloneNode(!0),r),!($===L||!($=$.nextSibling)););else{templateContainer.innerHTML=g?`${e}`:e;const oe=templateContainer.content;if(g){const re=oe.firstChild;for(;re.firstChild;)oe.appendChild(re.firstChild);oe.removeChild(re)}n.insertBefore(oe,r)}return[k?k.nextSibling:n.firstChild,r?r.previousSibling:n.lastChild]}};function patchClass(e,n,r){const g=e._vtc;g&&(n=(n?[n,...g]:[...g]).join(" ")),n==null?e.removeAttribute("class"):r?e.setAttribute("class",n):e.className=n}function patchStyle(e,n,r){const g=e.style,$=isString$2(r);if(r&&!$){for(const L in r)setStyle(g,L,r[L]);if(n&&!isString$2(n))for(const L in n)r[L]==null&&setStyle(g,L,"")}else{const L=g.display;$?n!==r&&(g.cssText=r):n&&e.removeAttribute("style"),"_vod"in e&&(g.display=L)}}const importantRE=/\s*!important$/;function setStyle(e,n,r){if(isArray$4(r))r.forEach(g=>setStyle(e,n,g));else if(r==null&&(r=""),n.startsWith("--"))e.setProperty(n,r);else{const g=autoPrefix(e,n);importantRE.test(r)?e.setProperty(hyphenate(g),r.replace(importantRE,""),"important"):e[g]=r}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,n){const r=prefixCache[n];if(r)return r;let g=camelize(n);if(g!=="filter"&&g in e)return prefixCache[n]=g;g=capitalize(g);for(let $=0;${let e=Date.now,n=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const r=navigator.userAgent.match(/firefox\/(\d+)/i);n=!!(r&&Number(r[1])<=53)}return[e,n]})();let cachedNow=0;const p$1=Promise.resolve(),reset=()=>{cachedNow=0},getNow=()=>cachedNow||(p$1.then(reset),cachedNow=_getNow());function addEventListener(e,n,r,g){e.addEventListener(n,r,g)}function removeEventListener(e,n,r,g){e.removeEventListener(n,r,g)}function patchEvent(e,n,r,g,$=null){const L=e._vei||(e._vei={}),k=L[n];if(g&&k)k.value=g;else{const[oe,re]=parseName(n);if(g){const ae=L[n]=createInvoker(g,$);addEventListener(e,oe,ae,re)}else k&&(removeEventListener(e,oe,k,re),L[n]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(e){let n;if(optionsModifierRE.test(e)){n={};let r;for(;r=e.match(optionsModifierRE);)e=e.slice(0,e.length-r[0].length),n[r[0].toLowerCase()]=!0}return[hyphenate(e.slice(2)),n]}function createInvoker(e,n){const r=g=>{const $=g.timeStamp||_getNow();(skipTimestampCheck||$>=r.attached-1)&&callWithAsyncErrorHandling(patchStopImmediatePropagation(g,r.value),n,5,[g])};return r.value=e,r.attached=getNow(),r}function patchStopImmediatePropagation(e,n){if(isArray$4(n)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},n.map(g=>$=>!$._stopped&&g&&g($))}else return n}const nativeOnRE=/^on[a-z]/,patchProp=(e,n,r,g,$=!1,L,k,oe,re)=>{n==="class"?patchClass(e,g,$):n==="style"?patchStyle(e,r,g):isOn(n)?isModelListener(n)||patchEvent(e,n,r,g,k):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):shouldSetAsProp(e,n,g,$))?patchDOMProp(e,n,g,L,k,oe,re):(n==="true-value"?e._trueValue=g:n==="false-value"&&(e._falseValue=g),patchAttr(e,n,g,$))};function shouldSetAsProp(e,n,r,g){return g?!!(n==="innerHTML"||n==="textContent"||n in e&&nativeOnRE.test(n)&&isFunction$1(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&e.tagName==="INPUT"||n==="type"&&e.tagName==="TEXTAREA"||nativeOnRE.test(n)&&isString$2(r)?!1:n in e}function defineCustomElement(e,n){const r=defineComponent(e);class g extends VueElement{constructor(L){super(r,L,n)}}return g.def=r,g}const defineSSRCustomElement=e=>defineCustomElement(e,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(n,r={},g){super(),this._def=n,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&g?g(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let g=0;g{for(const $ of g)this._setAttr($.attributeName)}).observe(this,{attributes:!0});const n=g=>{const{props:$,styles:L}=g,k=!isArray$4($),oe=$?k?Object.keys($):$:[];let re;if(k)for(const ae in this._props){const le=$[ae];(le===Number||le&&le.type===Number)&&(this._props[ae]=toNumber$1(this._props[ae]),(re||(re=Object.create(null)))[ae]=!0)}this._numberProps=re;for(const ae of Object.keys(this))ae[0]!=="_"&&this._setProp(ae,this[ae],!0,!1);for(const ae of oe.map(camelize))Object.defineProperty(this,ae,{get(){return this._getProp(ae)},set(le){this._setProp(ae,le)}});this._applyStyles(L),this._update()},r=this._def.__asyncLoader;r?r().then(n):n(this._def)}_setAttr(n){let r=this.getAttribute(n);this._numberProps&&this._numberProps[n]&&(r=toNumber$1(r)),this._setProp(camelize(n),r,!1)}_getProp(n){return this._props[n]}_setProp(n,r,g=!0,$=!0){r!==this._props[n]&&(this._props[n]=r,$&&this._instance&&this._update(),g&&(r===!0?this.setAttribute(hyphenate(n),""):typeof r=="string"||typeof r=="number"?this.setAttribute(hyphenate(n),r+""):r||this.removeAttribute(hyphenate(n))))}_update(){render(this._createVNode(),this.shadowRoot)}_createVNode(){const n=createVNode(this._def,extend$2({},this._props));return this._instance||(n.ce=r=>{this._instance=r,r.isCE=!0,r.emit=($,...L)=>{this.dispatchEvent(new CustomEvent($,{detail:L}))};let g=this;for(;g=g&&(g.parentNode||g.host);)if(g instanceof VueElement){r.parent=g._instance;break}}),n}_applyStyles(n){n&&n.forEach(r=>{const g=document.createElement("style");g.textContent=r,this.shadowRoot.appendChild(g)})}}function useCssModule(e="$style"){{const n=getCurrentInstance();if(!n)return EMPTY_OBJ;const r=n.type.__cssModules;if(!r)return EMPTY_OBJ;const g=r[e];return g||EMPTY_OBJ}}function useCssVars(e){const n=getCurrentInstance();if(!n)return;const r=()=>setVarsOnVNode(n.subTree,e(n.proxy));watchPostEffect(r),onMounted(()=>{const g=new MutationObserver(r);g.observe(n.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>g.disconnect())})}function setVarsOnVNode(e,n){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{setVarsOnVNode(r.activeBranch,n)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)setVarsOnNode(e.el,n);else if(e.type===Fragment)e.children.forEach(r=>setVarsOnVNode(r,n));else if(e.type===Static){let{el:r,anchor:g}=e;for(;r&&(setVarsOnNode(r,n),r!==g);)r=r.nextSibling}}function setVarsOnNode(e,n){if(e.nodeType===1){const r=e.style;for(const g in n)r.setProperty(`--${g}`,n[g])}}const TRANSITION="transition",ANIMATION="animation",Transition=(e,{slots:n})=>h$2(BaseTransition,resolveTransitionProps(e),n);Transition.displayName="Transition";const DOMTransitionPropsValidators={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},TransitionPropsValidators=Transition.props=extend$2({},BaseTransition.props,DOMTransitionPropsValidators),callHook=(e,n=[])=>{isArray$4(e)?e.forEach(r=>r(...n)):e&&e(...n)},hasExplicitCallback=e=>e?isArray$4(e)?e.some(n=>n.length>1):e.length>1:!1;function resolveTransitionProps(e){const n={};for(const kt in e)kt in DOMTransitionPropsValidators||(n[kt]=e[kt]);if(e.css===!1)return n;const{name:r="v",type:g,duration:$,enterFromClass:L=`${r}-enter-from`,enterActiveClass:k=`${r}-enter-active`,enterToClass:oe=`${r}-enter-to`,appearFromClass:re=L,appearActiveClass:ae=k,appearToClass:le=oe,leaveFromClass:ue=`${r}-leave-from`,leaveActiveClass:pe=`${r}-leave-active`,leaveToClass:de=`${r}-leave-to`}=e,Fe=normalizeDuration($),ze=Fe&&Fe[0],Ce=Fe&&Fe[1],{onBeforeEnter:Ie,onEnter:_e,onEnterCancelled:At,onLeave:qe,onLeaveCancelled:xe,onBeforeAppear:Ve=Ie,onAppear:he=_e,onAppearCancelled:Oe=At}=n,$e=(kt,Et,Pt)=>{removeTransitionClass(kt,Et?le:oe),removeTransitionClass(kt,Et?ae:k),Pt&&Pt()},Ne=(kt,Et)=>{kt._isLeaving=!1,removeTransitionClass(kt,ue),removeTransitionClass(kt,de),removeTransitionClass(kt,pe),Et&&Et()},Ue=kt=>(Et,Pt)=>{const Lt=kt?he:_e,vn=()=>$e(Et,kt,Pt);callHook(Lt,[Et,vn]),nextFrame(()=>{removeTransitionClass(Et,kt?re:L),addTransitionClass(Et,kt?le:oe),hasExplicitCallback(Lt)||whenTransitionEnds(Et,g,ze,vn)})};return extend$2(n,{onBeforeEnter(kt){callHook(Ie,[kt]),addTransitionClass(kt,L),addTransitionClass(kt,k)},onBeforeAppear(kt){callHook(Ve,[kt]),addTransitionClass(kt,re),addTransitionClass(kt,ae)},onEnter:Ue(!1),onAppear:Ue(!0),onLeave(kt,Et){kt._isLeaving=!0;const Pt=()=>Ne(kt,Et);addTransitionClass(kt,ue),forceReflow(),addTransitionClass(kt,pe),nextFrame(()=>{!kt._isLeaving||(removeTransitionClass(kt,ue),addTransitionClass(kt,de),hasExplicitCallback(qe)||whenTransitionEnds(kt,g,Ce,Pt))}),callHook(qe,[kt,Pt])},onEnterCancelled(kt){$e(kt,!1),callHook(At,[kt])},onAppearCancelled(kt){$e(kt,!0),callHook(Oe,[kt])},onLeaveCancelled(kt){Ne(kt),callHook(xe,[kt])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$4(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const n=NumberOf(e);return[n,n]}}function NumberOf(e){return toNumber$1(e)}function addTransitionClass(e,n){n.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(n)}function removeTransitionClass(e,n){n.split(/\s+/).forEach(g=>g&&e.classList.remove(g));const{_vtc:r}=e;r&&(r.delete(n),r.size||(e._vtc=void 0))}function nextFrame(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let endId=0;function whenTransitionEnds(e,n,r,g){const $=e._endId=++endId,L=()=>{$===e._endId&&g()};if(r)return setTimeout(L,r);const{type:k,timeout:oe,propCount:re}=getTransitionInfo(e,n);if(!k)return g();const ae=k+"end";let le=0;const ue=()=>{e.removeEventListener(ae,pe),L()},pe=de=>{de.target===e&&++le>=re&&ue()};setTimeout(()=>{le(r[Fe]||"").split(", "),$=g(TRANSITION+"Delay"),L=g(TRANSITION+"Duration"),k=getTimeout($,L),oe=g(ANIMATION+"Delay"),re=g(ANIMATION+"Duration"),ae=getTimeout(oe,re);let le=null,ue=0,pe=0;n===TRANSITION?k>0&&(le=TRANSITION,ue=k,pe=L.length):n===ANIMATION?ae>0&&(le=ANIMATION,ue=ae,pe=re.length):(ue=Math.max(k,ae),le=ue>0?k>ae?TRANSITION:ANIMATION:null,pe=le?le===TRANSITION?L.length:re.length:0);const de=le===TRANSITION&&/\b(transform|all)(,|$)/.test(r[TRANSITION+"Property"]);return{type:le,timeout:ue,propCount:pe,hasTransform:de}}function getTimeout(e,n){for(;e.lengthtoMs(r)+toMs(e[g])))}function toMs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(e,{slots:n}){const r=getCurrentInstance(),g=useTransitionState();let $,L;return onUpdated(()=>{if(!$.length)return;const k=e.moveClass||`${e.name||"v"}-move`;if(!hasCSSTransform($[0].el,r.vnode.el,k))return;$.forEach(callPendingCbs),$.forEach(recordPosition);const oe=$.filter(applyTranslation);forceReflow(),oe.forEach(re=>{const ae=re.el,le=ae.style;addTransitionClass(ae,k),le.transform=le.webkitTransform=le.transitionDuration="";const ue=ae._moveCb=pe=>{pe&&pe.target!==ae||(!pe||/transform$/.test(pe.propertyName))&&(ae.removeEventListener("transitionend",ue),ae._moveCb=null,removeTransitionClass(ae,k))};ae.addEventListener("transitionend",ue)})}),()=>{const k=toRaw(e),oe=resolveTransitionProps(k);let re=k.tag||Fragment;$=L,L=n.default?getTransitionRawChildren(n.default()):[];for(let ae=0;ae{k.split(/\s+/).forEach(oe=>oe&&g.classList.remove(oe))}),r.split(/\s+/).forEach(k=>k&&g.classList.add(k)),g.style.display="none";const $=n.nodeType===1?n:n.parentNode;$.appendChild(g);const{hasTransform:L}=getTransitionInfo(g);return $.removeChild(g),L}const getModelAssigner=e=>{const n=e.props["onUpdate:modelValue"]||!1;return isArray$4(n)?r=>invokeArrayFns(n,r):n};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){const n=e.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const vModelText={created(e,{modifiers:{lazy:n,trim:r,number:g}},$){e._assign=getModelAssigner($);const L=g||$.props&&$.props.type==="number";addEventListener(e,n?"change":"input",k=>{if(k.target.composing)return;let oe=e.value;r&&(oe=oe.trim()),L&&(oe=toNumber$1(oe)),e._assign(oe)}),r&&addEventListener(e,"change",()=>{e.value=e.value.trim()}),n||(addEventListener(e,"compositionstart",onCompositionStart),addEventListener(e,"compositionend",onCompositionEnd),addEventListener(e,"change",onCompositionEnd))},mounted(e,{value:n}){e.value=n??""},beforeUpdate(e,{value:n,modifiers:{lazy:r,trim:g,number:$}},L){if(e._assign=getModelAssigner(L),e.composing||document.activeElement===e&&e.type!=="range"&&(r||g&&e.value.trim()===n||($||e.type==="number")&&toNumber$1(e.value)===n))return;const k=n??"";e.value!==k&&(e.value=k)}},vModelCheckbox={deep:!0,created(e,n,r){e._assign=getModelAssigner(r),addEventListener(e,"change",()=>{const g=e._modelValue,$=getValue$2(e),L=e.checked,k=e._assign;if(isArray$4(g)){const oe=looseIndexOf(g,$),re=oe!==-1;if(L&&!re)k(g.concat($));else if(!L&&re){const ae=[...g];ae.splice(oe,1),k(ae)}}else if(isSet$2(g)){const oe=new Set(g);L?oe.add($):oe.delete($),k(oe)}else k(getCheckboxValue(e,L))})},mounted:setChecked,beforeUpdate(e,n,r){e._assign=getModelAssigner(r),setChecked(e,n,r)}};function setChecked(e,{value:n,oldValue:r},g){e._modelValue=n,isArray$4(n)?e.checked=looseIndexOf(n,g.props.value)>-1:isSet$2(n)?e.checked=n.has(g.props.value):n!==r&&(e.checked=looseEqual(n,getCheckboxValue(e,!0)))}const vModelRadio={created(e,{value:n},r){e.checked=looseEqual(n,r.props.value),e._assign=getModelAssigner(r),addEventListener(e,"change",()=>{e._assign(getValue$2(e))})},beforeUpdate(e,{value:n,oldValue:r},g){e._assign=getModelAssigner(g),n!==r&&(e.checked=looseEqual(n,g.props.value))}},vModelSelect={deep:!0,created(e,{value:n,modifiers:{number:r}},g){const $=isSet$2(n);addEventListener(e,"change",()=>{const L=Array.prototype.filter.call(e.options,k=>k.selected).map(k=>r?toNumber$1(getValue$2(k)):getValue$2(k));e._assign(e.multiple?$?new Set(L):L:L[0])}),e._assign=getModelAssigner(g)},mounted(e,{value:n}){setSelected(e,n)},beforeUpdate(e,n,r){e._assign=getModelAssigner(r)},updated(e,{value:n}){setSelected(e,n)}};function setSelected(e,n){const r=e.multiple;if(!(r&&!isArray$4(n)&&!isSet$2(n))){for(let g=0,$=e.options.length;g<$;g++){const L=e.options[g],k=getValue$2(L);if(r)isArray$4(n)?L.selected=looseIndexOf(n,k)>-1:L.selected=n.has(k);else if(looseEqual(getValue$2(L),n)){e.selectedIndex!==g&&(e.selectedIndex=g);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function getValue$2(e){return"_value"in e?e._value:e.value}function getCheckboxValue(e,n){const r=n?"_trueValue":"_falseValue";return r in e?e[r]:n}const vModelDynamic={created(e,n,r){callModelHook(e,n,r,null,"created")},mounted(e,n,r){callModelHook(e,n,r,null,"mounted")},beforeUpdate(e,n,r,g){callModelHook(e,n,r,g,"beforeUpdate")},updated(e,n,r,g){callModelHook(e,n,r,g,"updated")}};function resolveDynamicModel(e,n){switch(e){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(n){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(e,n,r,g,$){const k=resolveDynamicModel(e.tagName,r.props&&r.props.type)[$];k&&k(e,n,r,g)}function initVModelForSSR(){vModelText.getSSRProps=({value:e})=>({value:e}),vModelRadio.getSSRProps=({value:e},n)=>{if(n.props&&looseEqual(n.props.value,e))return{checked:!0}},vModelCheckbox.getSSRProps=({value:e},n)=>{if(isArray$4(e)){if(n.props&&looseIndexOf(e,n.props.value)>-1)return{checked:!0}}else if(isSet$2(e)){if(n.props&&e.has(n.props.value))return{checked:!0}}else if(e)return{checked:!0}},vModelDynamic.getSSRProps=(e,n)=>{if(typeof n.type!="string")return;const r=resolveDynamicModel(n.type.toUpperCase(),n.props&&n.props.type);if(r.getSSRProps)return r.getSSRProps(e,n)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={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,n)=>systemModifiers.some(r=>e[`${r}Key`]&&!n.includes(r))},withModifiers=(e,n)=>(r,...g)=>{for(let $=0;$r=>{if(!("key"in r))return;const g=hyphenate(r.key);if(n.some($=>$===g||keyNames[$]===g))return e(r)},vShow={beforeMount(e,{value:n},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&n?r.beforeEnter(e):setDisplay(e,n)},mounted(e,{value:n},{transition:r}){r&&n&&r.enter(e)},updated(e,{value:n,oldValue:r},{transition:g}){!n!=!r&&(g?n?(g.beforeEnter(e),setDisplay(e,!0),g.enter(e)):g.leave(e,()=>{setDisplay(e,!1)}):setDisplay(e,n))},beforeUnmount(e,{value:n}){setDisplay(e,n)}};function setDisplay(e,n){e.style.display=n?e._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const rendererOptions=extend$2({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render=(...e)=>{ensureRenderer().render(...e)},hydrate=(...e)=>{ensureHydrationRenderer().hydrate(...e)},createApp=(...e)=>{const n=ensureRenderer().createApp(...e),{mount:r}=n;return n.mount=g=>{const $=normalizeContainer(g);if(!$)return;const L=n._component;!isFunction$1(L)&&!L.render&&!L.template&&(L.template=$.innerHTML),$.innerHTML="";const k=r($,!1,$ instanceof SVGElement);return $ instanceof Element&&($.removeAttribute("v-cloak"),$.setAttribute("data-v-app","")),k},n},createSSRApp=(...e)=>{const n=ensureHydrationRenderer().createApp(...e),{mount:r}=n;return n.mount=g=>{const $=normalizeContainer(g);if($)return r($,!0,$ instanceof SVGElement)},n};function normalizeContainer(e){return isString$2(e)?document.querySelector(e):e}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},compile=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,compile,EffectScope,ReactiveEffect,customRef,effect,effectScope,getCurrentScope,isProxy,isReactive,isReadonly,isRef,isShallow,markRaw,onScopeDispose,proxyRefs,reactive,readonly,ref,shallowReactive,shallowReadonly,shallowRef,stop,toRaw,toRef,toRefs,triggerRef,unref,camelize,capitalize,normalizeClass,normalizeProps,normalizeStyle,toDisplayString,toHandlerKey,BaseTransition,Comment,Fragment,KeepAlive,Static,Suspense,Teleport,Text:Text$2,callWithAsyncErrorHandling,callWithErrorHandling,cloneVNode,compatUtils,computed,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSlots,createStaticVNode,createTextVNode,createVNode,defineAsyncComponent,defineComponent,defineEmits,defineExpose,defineProps,get devtools(){return devtools},getCurrentInstance,getTransitionRawChildren,guardReactiveProps,h:h$2,handleError,initCustomFormatter,inject,isMemoSame,isRuntimeOnly,isVNode,mergeDefaults,mergeProps,nextTick,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,pushScopeId,queuePostFlushCb,registerRuntimeCompiler,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,ssrContextKey,ssrUtils,toHandlers,transformVNodeArgs,useAttrs:useAttrs$1,useSSRContext,useSlots,useTransitionState,version:version$2,warn,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withMemo,withScopeId,Transition,TransitionGroup,VueElement,createApp,createSSRApp,defineCustomElement,defineSSRCustomElement,hydrate,initDirectivesForSSR,render,useCssModule,useCssVars,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,withKeys,withModifiers},Symbol.toStringTag,{value:"Module"})),_export_sfc$3=(e,n)=>{const r=e.__vccOpts||e;for(const[g,$]of n)r[g]=$;return r},_sfc_main$2M={};function _sfc_render$1a(e,n){const r=resolveComponent("router-view");return openBlock(),createBlock(r)}const App=_export_sfc$3(_sfc_main$2M,[["render",_sfc_render$1a]]);var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$1=root$1.Symbol;const Symbol$2=Symbol$1;var objectProto$e=Object.prototype,hasOwnProperty$c=objectProto$e.hasOwnProperty,nativeObjectToString$1=objectProto$e.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(e){var n=hasOwnProperty$c.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var g=!0}catch{}var $=nativeObjectToString$1.call(e);return g&&(n?e[symToStringTag$1]=r:delete e[symToStringTag$1]),$}var objectProto$d=Object.prototype,nativeObjectToString=objectProto$d.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}var symbolTag$3="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==symbolTag$3}function arrayMap(e,n){for(var r=-1,g=e==null?0:e.length,$=Array(g);++r0){if(++n>=HOT_COUNT)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function constant(e){return function(){return e}}var defineProperty=function(){try{var e=getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(e,n){return defineProperty$1(e,"toString",{configurable:!0,enumerable:!1,value:constant(n),writable:!0})}:identity;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(e,n){for(var r=-1,g=e==null?0:e.length;++r-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,n){var r=typeof e;return n=n??MAX_SAFE_INTEGER$1,!!n&&(r=="number"||r!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var objectProto$a=Object.prototype;function isPrototype(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||objectProto$a;return e===r}function baseTimes(e,n){for(var r=-1,g=Array(e);++r-1}function listCacheSet(e,n){var r=this.__data__,g=assocIndexOf(r,e);return g<0?(++this.size,r.push([e,n])):r[g][1]=n,this}function ListCache(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n0&&r(oe)?n>1?baseFlatten(oe,n-1,r,g,$):arrayPush($,oe):g||($[$.length]=oe)}return $}function flatten$1(e){var n=e==null?0:e.length;return n?baseFlatten(e,1):[]}function flatRest(e){return setToString$1(overRest(e,void 0,flatten$1),e+"")}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;function castArray$1(){if(!arguments.length)return[];var e=arguments[0];return isArray$3(e)?e:[e]}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function stackGet(e){return this.__data__.get(e)}function stackHas(e){return this.__data__.has(e)}var LARGE_ARRAY_SIZE$1=200;function stackSet(e,n){var r=this.__data__;if(r instanceof ListCache){var g=r.__data__;if(!Map$2||g.lengthoe))return!1;var ae=L.get(e),le=L.get(n);if(ae&&le)return ae==n&&le==e;var ue=-1,pe=!0,de=r&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(L.set(e,n),L.set(n,e);++ue=n||he<0||ue&&Oe>=L}function Ie(){var Ve=now$2();if(Ce(Ve))return _e(Ve);oe=setTimeout(Ie,ze(Ve))}function _e(Ve){return oe=void 0,pe&&g?de(Ve):(g=$=void 0,k)}function At(){oe!==void 0&&clearTimeout(oe),ae=0,g=re=$=oe=void 0}function qe(){return oe===void 0?k:_e(now$2())}function xe(){var Ve=now$2(),he=Ce(Ve);if(g=arguments,$=this,re=Ve,he){if(oe===void 0)return Fe(re);if(ue)return clearTimeout(oe),oe=setTimeout(Ie,n),de(re)}return oe===void 0&&(oe=setTimeout(Ie,n)),k}return xe.cancel=At,xe.flush=qe,xe}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function arrayIncludesWith(e,n,r){for(var g=-1,$=e==null?0:e.length;++g<$;)if(r(n,e[g]))return!0;return!1}var INFINITY$1=1/0;function flattenDeep(e){var n=e==null?0:e.length;return n?baseFlatten(e,INFINITY$1):[]}function fromPairs(e){for(var n=-1,r=e==null?0:e.length,g={};++n=LARGE_ARRAY_SIZE){var ae=n?null:createSet$1(e);if(ae)return setToArray(ae);k=!1,$=cacheHas,re=new SetCache}else re=n?[]:oe;e:for(;++ggetComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,obtainAllFocusableElements$1=e=>Array.from(e.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(n=>isFocusable(n)&&isVisible(n)),isFocusable=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function(e,n,...r){let g;n.includes("mouse")||n.includes("click")?g="MouseEvents":n.includes("key")?g="KeyboardEvent":g="HTMLEvents";const $=document.createEvent(g);return $.initEvent(n,...r),e.dispatchEvent($),e},isLeaf=e=>!e.getAttribute("aria-owns"),getSibling=(e,n,r)=>{const{parentNode:g}=e;if(!g)return null;const $=g.querySelectorAll(r),L=Array.prototype.indexOf.call($,e);return $[L+n]||null},focusNode=e=>{!e||(e.focus(),!isLeaf(e)&&e.click())},composeEventHandlers=(e,n,{checkForDefaultPrevented:r=!0}={})=>$=>{const L=e?.($);if(r===!1||!L)return n?.($)},whenMouse=e=>n=>n.pointerType==="mouse"?e(n):void 0;var __defProp$9=Object.defineProperty,__defProps$6=Object.defineProperties,__getOwnPropDescs$6=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$b=Object.getOwnPropertySymbols,__hasOwnProp$b=Object.prototype.hasOwnProperty,__propIsEnum$b=Object.prototype.propertyIsEnumerable,__defNormalProp$9=(e,n,r)=>n in e?__defProp$9(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,__spreadValues$9=(e,n)=>{for(var r in n||(n={}))__hasOwnProp$b.call(n,r)&&__defNormalProp$9(e,r,n[r]);if(__getOwnPropSymbols$b)for(var r of __getOwnPropSymbols$b(n))__propIsEnum$b.call(n,r)&&__defNormalProp$9(e,r,n[r]);return e},__spreadProps$6=(e,n)=>__defProps$6(e,__getOwnPropDescs$6(n));function computedEager(e,n){var r;const g=shallowRef();return watchEffect(()=>{g.value=e()},__spreadProps$6(__spreadValues$9({},n),{flush:(r=n?.flush)!=null?r:"sync"})),readonly(g)}var _a$1;const isClient=typeof window<"u",isDef=e=>typeof e<"u",isBoolean=e=>typeof e=="boolean",isNumber=e=>typeof e=="number",isString$1=e=>typeof e=="string",noop$1=()=>{};isClient&&((_a$1=window?.navigator)==null?void 0:_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function createFilterWrapper(e,n){function r(...g){e(()=>n.apply(this,g),{fn:n,thisArg:this,args:g})}return r}function debounceFilter(e,n={}){let r,g;return L=>{const k=unref(e),oe=unref(n.maxWait);if(r&&clearTimeout(r),k<=0||oe!==void 0&&oe<=0)return g&&(clearTimeout(g),g=null),L();oe&&!g&&(g=setTimeout(()=>{r&&clearTimeout(r),g=null,L()},oe)),r=setTimeout(()=>{g&&clearTimeout(g),g=null,L()},k)}}function throttleFilter(e,n=!0,r=!0){let g=0,$,L=!0;const k=()=>{$&&(clearTimeout($),$=void 0)};return re=>{const ae=unref(e),le=Date.now()-g;if(k(),ae<=0)return g=Date.now(),re();le>ae&&(r||!L)?(g=Date.now(),re()):n&&($=setTimeout(()=>{g=Date.now(),L=!0,k(),re()},ae)),!r&&!$&&($=setTimeout(()=>L=!0,ae)),L=!1}}function tryOnScopeDispose(e){return getCurrentScope()?(onScopeDispose(e),!0):!1}function useDebounceFn(e,n=200,r={}){return createFilterWrapper(debounceFilter(n,r),e)}function refDebounced(e,n=200,r={}){if(n<=0)return e;const g=ref(e.value),$=useDebounceFn(()=>{g.value=e.value},n,r);return watch(e,()=>$()),g}function useThrottleFn(e,n=200,r=!0,g=!0){return createFilterWrapper(throttleFilter(n,r,g),e)}function tryOnMounted(e,n=!0){getCurrentInstance()?onMounted(e):n?e():nextTick(e)}function useTimeoutFn(e,n,r={}){const{immediate:g=!0}=r,$=ref(!1);let L=null;function k(){L&&(clearTimeout(L),L=null)}function oe(){$.value=!1,k()}function re(...ae){k(),$.value=!0,L=setTimeout(()=>{$.value=!1,L=null,e(...ae)},unref(n))}return g&&($.value=!0,isClient&&re()),tryOnScopeDispose(oe),{isPending:$,start:re,stop:oe}}function unrefElement(e){var n;const r=unref(e);return(n=r?.$el)!=null?n:r}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...e){let n,r,g,$;if(isString$1(e[0])?([r,g,$]=e,n=defaultWindow):[n,r,g,$]=e,!n)return noop$1;let L=noop$1;const k=watch(()=>unrefElement(n),re=>{L(),re&&(re.addEventListener(r,g,$),L=()=>{re.removeEventListener(r,g,$),L=noop$1})},{immediate:!0,flush:"post"}),oe=()=>{k(),L()};return tryOnScopeDispose(oe),oe}function onClickOutside(e,n,r={}){const{window:g=defaultWindow,ignore:$,capture:L=!0,detectIframe:k=!1}=r;if(!g)return;const oe=ref(!0);let re;const ae=pe=>{g.clearTimeout(re);const de=unrefElement(e),Fe=pe.composedPath();!de||de===pe.target||Fe.includes(de)||!oe.value||$&&$.length>0&&$.some(ze=>{const Ce=unrefElement(ze);return Ce&&(pe.target===Ce||Fe.includes(Ce))})||n(pe)},le=[useEventListener(g,"click",ae,{passive:!0,capture:L}),useEventListener(g,"pointerdown",pe=>{const de=unrefElement(e);oe.value=!!de&&!pe.composedPath().includes(de)},{passive:!0}),useEventListener(g,"pointerup",pe=>{if(pe.button===0){const de=pe.composedPath();pe.composedPath=()=>de,re=g.setTimeout(()=>ae(pe),50)}},{passive:!0}),k&&useEventListener(g,"blur",pe=>{var de;const Fe=unrefElement(e);((de=document.activeElement)==null?void 0:de.tagName)==="IFRAME"&&!Fe?.contains(document.activeElement)&&n(pe)})].filter(Boolean);return()=>le.forEach(pe=>pe())}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};_global[globalKey];function useDocumentVisibility({document:e=defaultDocument}={}){if(!e)return ref("visible");const n=ref(e.visibilityState);return useEventListener(e,"visibilitychange",()=>{n.value=e.visibilityState}),n}var __getOwnPropSymbols$e=Object.getOwnPropertySymbols,__hasOwnProp$e=Object.prototype.hasOwnProperty,__propIsEnum$e=Object.prototype.propertyIsEnumerable,__objRest$2=(e,n)=>{var r={};for(var g in e)__hasOwnProp$e.call(e,g)&&n.indexOf(g)<0&&(r[g]=e[g]);if(e!=null&&__getOwnPropSymbols$e)for(var g of __getOwnPropSymbols$e(e))n.indexOf(g)<0&&__propIsEnum$e.call(e,g)&&(r[g]=e[g]);return r};function useResizeObserver(e,n,r={}){const g=r,{window:$=defaultWindow}=g,L=__objRest$2(g,["window"]);let k;const oe=$&&"ResizeObserver"in $,re=()=>{k&&(k.disconnect(),k=void 0)},ae=watch(()=>unrefElement(e),ue=>{re(),oe&&$&&ue&&(k=new ResizeObserver(n),k.observe(ue,L))},{immediate:!0,flush:"post"}),le=()=>{re(),ae()};return tryOnScopeDispose(le),{isSupported:oe,stop:le}}function useElementBounding(e,n={}){const{reset:r=!0,windowResize:g=!0,windowScroll:$=!0,immediate:L=!0}=n,k=ref(0),oe=ref(0),re=ref(0),ae=ref(0),le=ref(0),ue=ref(0),pe=ref(0),de=ref(0);function Fe(){const ze=unrefElement(e);if(!ze){r&&(k.value=0,oe.value=0,re.value=0,ae.value=0,le.value=0,ue.value=0,pe.value=0,de.value=0);return}const Ce=ze.getBoundingClientRect();k.value=Ce.height,oe.value=Ce.bottom,re.value=Ce.left,ae.value=Ce.right,le.value=Ce.top,ue.value=Ce.width,pe.value=Ce.x,de.value=Ce.y}return useResizeObserver(e,Fe),watch(()=>unrefElement(e),ze=>!ze&&Fe()),$&&useEventListener("scroll",Fe,{passive:!0}),g&&useEventListener("resize",Fe,{passive:!0}),tryOnMounted(()=>{L&&Fe()}),{height:k,bottom:oe,left:re,right:ae,top:le,width:ue,x:pe,y:de,update:Fe}}var SwipeDirection;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));function useVModel(e,n,r,g={}){var $,L,k;const{passive:oe=!1,eventName:re,deep:ae=!1,defaultValue:le}=g,ue=getCurrentInstance(),pe=r||ue?.emit||(($=ue?.$emit)==null?void 0:$.bind(ue))||((k=(L=ue?.proxy)==null?void 0:L.$emit)==null?void 0:k.bind(ue?.proxy));let de=re;n||(n="modelValue"),de=re||de||`update:${n.toString()}`;const Fe=()=>isDef(e[n])?e[n]:le;if(oe){const ze=ref(Fe());return watch(()=>e[n],Ce=>ze.value=Ce),watch(ze,Ce=>{(Ce!==e[n]||ae)&&pe(de,Ce)},{deep:ae}),ze}else return computed({get(){return Fe()},set(ze){pe(de,ze)}})}function useWindowFocus({window:e=defaultWindow}={}){if(!e)return ref(!1);const n=ref(e.document.hasFocus());return useEventListener(e,"blur",()=>{n.value=!1}),useEventListener(e,"focus",()=>{n.value=!0}),n}function useWindowSize(e={}){const{window:n=defaultWindow,initialWidth:r=1/0,initialHeight:g=1/0,listenOrientation:$=!0}=e,L=ref(r),k=ref(g),oe=()=>{n&&(L.value=n.innerWidth,k.value=n.innerHeight)};return oe(),tryOnMounted(oe),useEventListener("resize",oe,{passive:!0}),$&&useEventListener("orientationchange",oe,{passive:!0}),{width:L,height:k}}const isInContainer=(e,n)=>{if(!isClient||!e||!n)return!1;const r=e.getBoundingClientRect();let g;return n instanceof Element?g=n.getBoundingClientRect():g={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},r.topg.top&&r.right>g.left&&r.left{let n=0,r=e;for(;r;)n+=r.offsetTop,r=r.offsetParent;return n},getOffsetTopDistance=(e,n)=>Math.abs(getOffsetTop(e)-getOffsetTop(n)),getClientXY=e=>{let n,r;return e.type==="touchend"?(r=e.changedTouches[0].clientY,n=e.changedTouches[0].clientX):e.type.startsWith("touch")?(r=e.touches[0].clientY,n=e.touches[0].clientX):(r=e.clientY,n=e.clientX),{clientX:n,clientY:r}},isUndefined=e=>e===void 0,isEmpty=e=>!e&&e!==0||isArray$4(e)&&e.length===0||isObject$4(e)&&!Object.keys(e).length,isElement$1=e=>typeof Element>"u"?!1:e instanceof Element,isPropAbsent=e=>isNil(e),escapeStringRegexp=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),keysOf=e=>Object.keys(e),entriesOf=e=>Object.entries(e),getProp=(e,n,r)=>({get value(){return get(e,n,r)},set value(g){set(e,n,g)}});class ElementPlusError extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function throwError(e,n){throw new ElementPlusError(`[${e}] ${n}`)}function debugWarn(e,n){}const classNameToArray=(e="")=>e.split(" ").filter(n=>!!n.trim()),hasClass=(e,n)=>{if(!e||!n)return!1;if(n.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(n)},addClass=(e,n)=>{!e||!n.trim()||e.classList.add(...classNameToArray(n))},removeClass=(e,n)=>{!e||!n.trim()||e.classList.remove(...classNameToArray(n))},getStyle=(e,n)=>{var r;if(!isClient||!e||!n)return"";let g=camelize(n);g==="float"&&(g="cssFloat");try{const $=e.style[g];if($)return $;const L=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return L?L[g]:""}catch{return e.style[g]}};function addUnit(e,n="px"){if(!e)return"";if(isString$2(e))return e;if(isNumber(e))return`${e}${n}`}const isScroll=(e,n)=>{if(!isClient)return!1;const r={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(n)],g=getStyle(e,r);return["scroll","auto","overlay"].some($=>g.includes($))},getScrollContainer=(e,n)=>{if(!isClient)return;let r=e;for(;r;){if([window,document,document.documentElement].includes(r))return window;if(isScroll(r,n))return r;r=r.parentNode}return r};let scrollBarWidth;const getScrollBarWidth=e=>{var n;if(!isClient)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const r=document.createElement("div");r.className=`${e}-scrollbar__wrap`,r.style.visibility="hidden",r.style.width="100px",r.style.position="absolute",r.style.top="-9999px",document.body.appendChild(r);const g=r.offsetWidth;r.style.overflow="scroll";const $=document.createElement("div");$.style.width="100%",r.appendChild($);const L=$.offsetWidth;return(n=r.parentNode)==null||n.removeChild(r),scrollBarWidth=g-L,scrollBarWidth};function scrollIntoView$2(e,n){if(!isClient)return;if(!n){e.scrollTop=0;return}const r=[];let g=n.offsetParent;for(;g!==null&&e!==g&&e.contains(g);)r.push(g),g=g.offsetParent;const $=n.offsetTop+r.reduce((re,ae)=>re+ae.offsetTop,0),L=$+n.offsetHeight,k=e.scrollTop,oe=k+e.clientHeight;$oe&&(e.scrollTop=L-e.clientHeight)}/*! Element Plus Icons Vue v2.0.8 */var export_helper_default=(e,n)=>{let r=e.__vccOpts||e;for(let[g,$]of n)r[g]=$;return r},_sfc_main6={name:"ArrowDown"},_hoisted_16$5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_26=createBaseVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),_hoisted_36=[_hoisted_26];function _sfc_render6(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_16$5,_hoisted_36)}var arrow_down_default=export_helper_default(_sfc_main6,[["render",_sfc_render6],["__file","arrow-down.vue"]]),_sfc_main8={name:"ArrowLeft"},_hoisted_18$5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_28=createBaseVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_38=[_hoisted_28];function _sfc_render8(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_18$5,_hoisted_38)}var arrow_left_default=export_helper_default(_sfc_main8,[["render",_sfc_render8],["__file","arrow-left.vue"]]),_sfc_main10={name:"ArrowRight"},_hoisted_110={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_210=createBaseVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_310=[_hoisted_210];function _sfc_render10(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_110,_hoisted_310)}var arrow_right_default=export_helper_default(_sfc_main10,[["render",_sfc_render10],["__file","arrow-right.vue"]]),_sfc_main12={name:"ArrowUp"},_hoisted_112={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_212=createBaseVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),_hoisted_312=[_hoisted_212];function _sfc_render12(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_112,_hoisted_312)}var arrow_up_default=export_helper_default(_sfc_main12,[["render",_sfc_render12],["__file","arrow-up.vue"]]),_sfc_main14={name:"Back"},_hoisted_114={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_214=createBaseVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),_hoisted_314=createBaseVNode("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),_hoisted_44=[_hoisted_214,_hoisted_314];function _sfc_render14(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_114,_hoisted_44)}var back_default=export_helper_default(_sfc_main14,[["render",_sfc_render14],["__file","back.vue"]]),_sfc_main29={name:"Calendar"},_hoisted_129={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_229=createBaseVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),_hoisted_328=[_hoisted_229];function _sfc_render29(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_129,_hoisted_328)}var calendar_default=export_helper_default(_sfc_main29,[["render",_sfc_render29],["__file","calendar.vue"]]),_sfc_main34={name:"CaretRight"},_hoisted_134={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_234=createBaseVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),_hoisted_333=[_hoisted_234];function _sfc_render34(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_134,_hoisted_333)}var caret_right_default=export_helper_default(_sfc_main34,[["render",_sfc_render34],["__file","caret-right.vue"]]),_sfc_main35={name:"CaretTop"},_hoisted_135={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_235=createBaseVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),_hoisted_334=[_hoisted_235];function _sfc_render35(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_135,_hoisted_334)}var caret_top_default=export_helper_default(_sfc_main35,[["render",_sfc_render35],["__file","caret-top.vue"]]),_sfc_main43={name:"Check"},_hoisted_143={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_243=createBaseVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),_hoisted_342=[_hoisted_243];function _sfc_render43(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_143,_hoisted_342)}var check_default=export_helper_default(_sfc_main43,[["render",_sfc_render43],["__file","check.vue"]]),_sfc_main47={name:"CircleCheckFilled"},_hoisted_147={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_247=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_346=[_hoisted_247];function _sfc_render47(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_147,_hoisted_346)}var circle_check_filled_default=export_helper_default(_sfc_main47,[["render",_sfc_render47],["__file","circle-check-filled.vue"]]),_sfc_main48={name:"CircleCheck"},_hoisted_148={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_248=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_347=createBaseVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),_hoisted_414=[_hoisted_248,_hoisted_347];function _sfc_render48(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_148,_hoisted_414)}var circle_check_default=export_helper_default(_sfc_main48,[["render",_sfc_render48],["__file","circle-check.vue"]]),_sfc_main49={name:"CircleCloseFilled"},_hoisted_149={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_249=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),_hoisted_348=[_hoisted_249];function _sfc_render49(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_149,_hoisted_348)}var circle_close_filled_default=export_helper_default(_sfc_main49,[["render",_sfc_render49],["__file","circle-close-filled.vue"]]),_sfc_main50={name:"CircleClose"},_hoisted_150={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_250=createBaseVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),_hoisted_349=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_415=[_hoisted_250,_hoisted_349];function _sfc_render50(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_150,_hoisted_415)}var circle_close_default=export_helper_default(_sfc_main50,[["render",_sfc_render50],["__file","circle-close.vue"]]),_sfc_main53={name:"Clock"},_hoisted_153={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_253=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_352=createBaseVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_417=createBaseVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),_hoisted_55=[_hoisted_253,_hoisted_352,_hoisted_417];function _sfc_render53(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_153,_hoisted_55)}var clock_default=export_helper_default(_sfc_main53,[["render",_sfc_render53],["__file","clock.vue"]]),_sfc_main55={name:"Close"},_hoisted_155={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_255=createBaseVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_hoisted_354=[_hoisted_255];function _sfc_render55(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_155,_hoisted_354)}var close_default=export_helper_default(_sfc_main55,[["render",_sfc_render55],["__file","close.vue"]]),_sfc_main71={name:"DArrowLeft"},_hoisted_171={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_271=createBaseVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),_hoisted_370=[_hoisted_271];function _sfc_render71(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_171,_hoisted_370)}var d_arrow_left_default=export_helper_default(_sfc_main71,[["render",_sfc_render71],["__file","d-arrow-left.vue"]]),_sfc_main72={name:"DArrowRight"},_hoisted_172={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_272=createBaseVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),_hoisted_371=[_hoisted_272];function _sfc_render72(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_172,_hoisted_371)}var d_arrow_right_default=export_helper_default(_sfc_main72,[["render",_sfc_render72],["__file","d-arrow-right.vue"]]),_sfc_main79={name:"Delete"},_hoisted_179={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_279=createBaseVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_378=[_hoisted_279];function _sfc_render79(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_179,_hoisted_378)}var delete_default=export_helper_default(_sfc_main79,[["render",_sfc_render79],["__file","delete.vue"]]),_sfc_main89={name:"Document"},_hoisted_189={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_289=createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_388=[_hoisted_289];function _sfc_render89(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_189,_hoisted_388)}var document_default=export_helper_default(_sfc_main89,[["render",_sfc_render89],["__file","document.vue"]]),_sfc_main93={name:"Edit"},_hoisted_193={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_293=createBaseVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),_hoisted_392=createBaseVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1),_hoisted_430=[_hoisted_293,_hoisted_392];function _sfc_render93(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_193,_hoisted_430)}var edit_default=export_helper_default(_sfc_main93,[["render",_sfc_render93],["__file","edit.vue"]]),_sfc_main117={name:"FullScreen"},_hoisted_1117={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2117=createBaseVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),_hoisted_3116=[_hoisted_2117];function _sfc_render117(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1117,_hoisted_3116)}var full_screen_default=export_helper_default(_sfc_main117,[["render",_sfc_render117],["__file","full-screen.vue"]]),_sfc_main130={name:"Hide"},_hoisted_1130={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2130=createBaseVNode("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),_hoisted_3129=createBaseVNode("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),_hoisted_436=[_hoisted_2130,_hoisted_3129];function _sfc_render130(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1130,_hoisted_436)}var hide_default=export_helper_default(_sfc_main130,[["render",_sfc_render130],["__file","hide.vue"]]),_sfc_main140={name:"InfoFilled"},_hoisted_1140={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2140=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_hoisted_3139=[_hoisted_2140];function _sfc_render140(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1140,_hoisted_3139)}var info_filled_default=export_helper_default(_sfc_main140,[["render",_sfc_render140],["__file","info-filled.vue"]]),_sfc_main147={name:"Loading"},_hoisted_1147={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2147=createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),_hoisted_3146=[_hoisted_2147];function _sfc_render147(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1147,_hoisted_3146)}var loading_default=export_helper_default(_sfc_main147,[["render",_sfc_render147],["__file","loading.vue"]]),_sfc_main165={name:"Minus"},_hoisted_1165={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2165=createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),_hoisted_3164=[_hoisted_2165];function _sfc_render165(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1165,_hoisted_3164)}var minus_default=export_helper_default(_sfc_main165,[["render",_sfc_render165],["__file","minus.vue"]]),_sfc_main170={name:"MoreFilled"},_hoisted_1170={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2170=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),_hoisted_3169=[_hoisted_2170];function _sfc_render170(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1170,_hoisted_3169)}var more_filled_default=export_helper_default(_sfc_main170,[["render",_sfc_render170],["__file","more-filled.vue"]]),_sfc_main171={name:"More"},_hoisted_1171={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2171=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),_hoisted_3170=[_hoisted_2171];function _sfc_render171(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1171,_hoisted_3170)}var more_default=export_helper_default(_sfc_main171,[["render",_sfc_render171],["__file","more.vue"]]),_sfc_main191={name:"PictureFilled"},_hoisted_1191={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2191=createBaseVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),_hoisted_3190=[_hoisted_2191];function _sfc_render191(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1191,_hoisted_3190)}var picture_filled_default=export_helper_default(_sfc_main191,[["render",_sfc_render191],["__file","picture-filled.vue"]]),_sfc_main197={name:"Plus"},_hoisted_1197={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2197=createBaseVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),_hoisted_3196=[_hoisted_2197];function _sfc_render197(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1197,_hoisted_3196)}var plus_default=export_helper_default(_sfc_main197,[["render",_sfc_render197],["__file","plus.vue"]]),_sfc_main206={name:"QuestionFilled"},_hoisted_1206={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2206=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),_hoisted_3205=[_hoisted_2206];function _sfc_render206(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1206,_hoisted_3205)}var question_filled_default=export_helper_default(_sfc_main206,[["render",_sfc_render206],["__file","question-filled.vue"]]),_sfc_main210={name:"RefreshLeft"},_hoisted_1210={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2210=createBaseVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),_hoisted_3209=[_hoisted_2210];function _sfc_render210(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1210,_hoisted_3209)}var refresh_left_default=export_helper_default(_sfc_main210,[["render",_sfc_render210],["__file","refresh-left.vue"]]),_sfc_main211={name:"RefreshRight"},_hoisted_1211={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2211=createBaseVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),_hoisted_3210=[_hoisted_2211];function _sfc_render211(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1211,_hoisted_3210)}var refresh_right_default=export_helper_default(_sfc_main211,[["render",_sfc_render211],["__file","refresh-right.vue"]]),_sfc_main217={name:"ScaleToOriginal"},_hoisted_1217={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2217=createBaseVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),_hoisted_3216=[_hoisted_2217];function _sfc_render217(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1217,_hoisted_3216)}var scale_to_original_default=export_helper_default(_sfc_main217,[["render",_sfc_render217],["__file","scale-to-original.vue"]]),_sfc_main220={name:"Search"},_hoisted_1220={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2220=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),_hoisted_3219=[_hoisted_2220];function _sfc_render220(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1220,_hoisted_3219)}var search_default=export_helper_default(_sfc_main220,[["render",_sfc_render220],["__file","search.vue"]]),_sfc_main236={name:"SortDown"},_hoisted_1236={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2236=createBaseVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),_hoisted_3235=[_hoisted_2236];function _sfc_render236(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1236,_hoisted_3235)}var sort_down_default=export_helper_default(_sfc_main236,[["render",_sfc_render236],["__file","sort-down.vue"]]),_sfc_main237={name:"SortUp"},_hoisted_1237={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2237=createBaseVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),_hoisted_3236=[_hoisted_2237];function _sfc_render237(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1237,_hoisted_3236)}var sort_up_default=export_helper_default(_sfc_main237,[["render",_sfc_render237],["__file","sort-up.vue"]]),_sfc_main240={name:"StarFilled"},_hoisted_1240={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2240=createBaseVNode("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),_hoisted_3239=[_hoisted_2240];function _sfc_render240(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1240,_hoisted_3239)}var star_filled_default=export_helper_default(_sfc_main240,[["render",_sfc_render240],["__file","star-filled.vue"]]),_sfc_main241={name:"Star"},_hoisted_1241={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2241=createBaseVNode("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),_hoisted_3240=[_hoisted_2241];function _sfc_render241(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1241,_hoisted_3240)}var star_default=export_helper_default(_sfc_main241,[["render",_sfc_render241],["__file","star.vue"]]),_sfc_main243={name:"SuccessFilled"},_hoisted_1243={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2243=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3242=[_hoisted_2243];function _sfc_render243(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1243,_hoisted_3242)}var success_filled_default=export_helper_default(_sfc_main243,[["render",_sfc_render243],["__file","success-filled.vue"]]),_sfc_main274={name:"View"},_hoisted_1274={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2274=createBaseVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),_hoisted_3273=[_hoisted_2274];function _sfc_render274(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1274,_hoisted_3273)}var view_default=export_helper_default(_sfc_main274,[["render",_sfc_render274],["__file","view.vue"]]),_sfc_main277={name:"WarningFilled"},_hoisted_1277={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2277=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),_hoisted_3276=[_hoisted_2277];function _sfc_render277(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1277,_hoisted_3276)}var warning_filled_default=export_helper_default(_sfc_main277,[["render",_sfc_render277],["__file","warning-filled.vue"]]),_sfc_main282={name:"ZoomIn"},_hoisted_1282={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2282=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),_hoisted_3281=[_hoisted_2282];function _sfc_render282(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1282,_hoisted_3281)}var zoom_in_default=export_helper_default(_sfc_main282,[["render",_sfc_render282],["__file","zoom-in.vue"]]),_sfc_main283={name:"ZoomOut"},_hoisted_1283={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2283=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3282=[_hoisted_2283];function _sfc_render283(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1283,_hoisted_3282)}var zoom_out_default=export_helper_default(_sfc_main283,[["render",_sfc_render283],["__file","zoom-out.vue"]]);const epPropKey="__epPropKey",definePropType=e=>e,isEpProp=e=>isObject$4(e)&&!!e[epPropKey],buildProp=(e,n)=>{if(!isObject$4(e)||isEpProp(e))return e;const{values:r,required:g,default:$,type:L,validator:k}=e,re={type:L,required:!!g,validator:r||k?ae=>{let le=!1,ue=[];if(r&&(ue=Array.from(r),hasOwn(e,"default")&&ue.push($),le||(le=ue.includes(ae))),k&&(le||(le=k(ae))),!le&&ue.length>0){const pe=[...new Set(ue)].map(de=>JSON.stringify(de)).join(", ");warn(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${pe}], got value ${JSON.stringify(ae)}.`)}return le}:void 0,[epPropKey]:!0};return hasOwn(e,"default")&&(re.default=$),re},buildProps=e=>fromPairs(Object.entries(e).map(([n,r])=>[n,buildProp(r,n)])),iconPropType=definePropType([String,Object,Function]),CloseComponents={Close:close_default},TypeComponents={Close:close_default,SuccessFilled:success_filled_default,InfoFilled:info_filled_default,WarningFilled:warning_filled_default,CircleCloseFilled:circle_close_filled_default},TypeComponentsMap={success:success_filled_default,warning:warning_filled_default,error:circle_close_filled_default,info:info_filled_default},ValidateComponentsMap={validating:loading_default,success:circle_check_default,error:circle_close_default},withInstall=(e,n)=>{if(e.install=r=>{for(const g of[e,...Object.values(n??{})])r.component(g.name,g)},n)for(const[r,g]of Object.entries(n))e[r]=g;return e},withInstallFunction=(e,n)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[n]=e},e),withInstallDirective=(e,n)=>(e.install=r=>{r.directive(n,e)},e),withNoopInstall=e=>(e.install=NOOP,e),composeRefs=(...e)=>n=>{e.forEach(r=>{isFunction$1(r)?r(n):r.value=n})},EVENT_CODE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},datePickTypes=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],WEEK_DAYS=["sun","mon","tue","wed","thu","fri","sat"],UPDATE_MODEL_EVENT="update:modelValue",CHANGE_EVENT="change",INPUT_EVENT="input",INSTALLED_KEY=Symbol("INSTALLED_KEY"),componentSizes=["","default","small","large"],componentSizeMap={large:40,default:32,small:24},getComponentSize=e=>componentSizeMap[e||"default"],isValidComponentSize=e=>["",...componentSizes].includes(e);var PatchFlags=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(PatchFlags||{});function isFragment(e){return isVNode(e)&&e.type===Fragment}function isComment(e){return isVNode(e)&&e.type===Comment}function isValidElementNode(e){return isVNode(e)&&!isFragment(e)&&!isComment(e)}const getNormalizedProps=e=>{if(!isVNode(e))return{};const n=e.props||{},r=(isVNode(e.type)?e.type.props:void 0)||{},g={};return Object.keys(r).forEach($=>{hasOwn(r[$],"default")&&(g[$]=r[$].default)}),Object.keys(n).forEach($=>{g[camelize($)]=n[$]}),g},ensureOnlyChild=e=>{if(!isArray$4(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},cubic=e=>e**3,easeInOutCubic=e=>e<.5?cubic(e*2)/2:1-cubic((1-e)*2)/2,unique=e=>[...new Set(e)],castArray=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],isFirefox=()=>isClient&&/firefox/i.test(window.navigator.userAgent),isKorean=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),rAF=e=>isClient?window.requestAnimationFrame(e):setTimeout(e,16),cAF=e=>isClient?window.cancelAnimationFrame(e):clearTimeout(e),generateId=()=>Math.floor(Math.random()*1e4),mutable=e=>e,DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=(e={})=>{const{excludeListeners:n=!1,excludeKeys:r}=e,g=computed(()=>(r?.value||[]).concat(DEFAULT_EXCLUDE_KEYS)),$=getCurrentInstance();return computed($?()=>{var L;return fromPairs(Object.entries((L=$.proxy)==null?void 0:L.$attrs).filter(([k])=>!g.value.includes(k)&&!(n&&LISTENER_PREFIX.test(k))))}:()=>({}))},breadcrumbKey=Symbol("breadcrumbKey"),buttonGroupContextKey=Symbol("buttonGroupContextKey"),carouselContextKey=Symbol("carouselContextKey"),collapseContextKey=Symbol("collapseContextKey"),configProviderContextKey=Symbol(),dialogInjectionKey=Symbol("dialogInjectionKey"),formContextKey=Symbol("formContextKey"),formItemContextKey=Symbol("formItemContextKey"),elPaginationKey=Symbol("elPaginationKey"),radioGroupKey=Symbol("radioGroupKey"),rowContextKey=Symbol("rowContextKey"),scrollbarContextKey=Symbol("scrollbarContextKey"),sliderContextKey=Symbol("sliderContextKey"),tabsRootContextKey=Symbol("tabsRootContextKey"),uploadContextKey=Symbol("uploadContextKey"),POPPER_INJECTION_KEY=Symbol("popper"),POPPER_CONTENT_INJECTION_KEY=Symbol("popperContent"),tooltipV2RootKey=Symbol("tooltipV2"),tooltipV2ContentKey=Symbol("tooltipV2Content"),TOOLTIP_V2_OPEN="tooltip_v2.open",ROOT_PICKER_INJECTION_KEY=Symbol(),useProp=e=>{const n=getCurrentInstance();return computed(()=>{var r,g;return(g=((r=n.proxy)==null?void 0:r.$props)[e])!=null?g:void 0})},globalConfig=ref();function useGlobalConfig(e,n=void 0){const r=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return e?computed(()=>{var g,$;return($=(g=r.value)==null?void 0:g[e])!=null?$:n}):r}const provideGlobalConfig=(e,n,r=!1)=>{var g;const $=!!getCurrentInstance(),L=$?useGlobalConfig():void 0,k=(g=n?.provide)!=null?g:$?provide:void 0;if(!k)return;const oe=computed(()=>{const re=unref(e);return L?.value?mergeConfig(L.value,re):re});return k(configProviderContextKey,oe),(r||!globalConfig.value)&&(globalConfig.value=oe.value),oe},mergeConfig=(e,n)=>{var r;const g=[...new Set([...keysOf(e),...keysOf(n)])],$={};for(const L of g)$[L]=(r=n[L])!=null?r:e[L];return $},useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),useSize=(e,n={})=>{const r=ref(void 0),g=n.prop?r:useProp("size"),$=n.global?r:useGlobalConfig("size"),L=n.form?{size:void 0}:inject(formContextKey,void 0),k=n.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>g.value||unref(e)||k?.size||L?.size||$.value||"")},useDisabled$1=e=>{const n=useProp("disabled"),r=inject(formContextKey,void 0);return computed(()=>n.value||unref(e)||r?.disabled||!1)},useDeprecated=({from:e,replacement:n,scope:r,version:g,ref:$,type:L="API"},k)=>{watch(()=>unref(k),oe=>{},{immediate:!0})},useDraggable=(e,n,r)=>{let g={offsetX:0,offsetY:0};const $=oe=>{const re=oe.clientX,ae=oe.clientY,{offsetX:le,offsetY:ue}=g,pe=e.value.getBoundingClientRect(),de=pe.left,Fe=pe.top,ze=pe.width,Ce=pe.height,Ie=document.documentElement.clientWidth,_e=document.documentElement.clientHeight,At=-de+le,qe=-Fe+ue,xe=Ie-de-ze+le,Ve=_e-Fe-Ce+ue,he=$e=>{const Ne=Math.min(Math.max(le+$e.clientX-re,At),xe),Ue=Math.min(Math.max(ue+$e.clientY-ae,qe),Ve);g={offsetX:Ne,offsetY:Ue},e.value.style.transform=`translate(${addUnit(Ne)}, ${addUnit(Ue)})`},Oe=()=>{document.removeEventListener("mousemove",he),document.removeEventListener("mouseup",Oe)};document.addEventListener("mousemove",he),document.addEventListener("mouseup",Oe)},L=()=>{n.value&&e.value&&n.value.addEventListener("mousedown",$)},k=()=>{n.value&&e.value&&n.value.removeEventListener("mousedown",$)};onMounted(()=>{watchEffect(()=>{r.value?L():k()})}),onBeforeUnmount(()=>{k()})},useFocus=e=>({focus:()=>{var n,r;(r=(n=e.value)==null?void 0:n.focus)==null||r.call(n)}}),defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useId=e=>{const n=inject(ID_INJECTION_KEY,defaultIdInjection);return computed(()=>unref(e)||`el-id-${n.prefix}-${n.current++}`)},useFormItem=()=>{const e=inject(formContextKey,void 0),n=inject(formItemContextKey,void 0);return{form:e,formItem:n}},useFormItemInputId=(e,{formItemContext:n,disableIdGeneration:r,disableIdManagement:g})=>{r||(r=ref(!1)),g||(g=ref(!1));const $=ref();let L;const k=computed(()=>{var oe;return!!(!e.label&&n&&n.inputIds&&((oe=n.inputIds)==null?void 0:oe.length)<=1)});return onMounted(()=>{L=watch([toRef(e,"id"),r],([oe,re])=>{const ae=oe??(re?void 0:useId().value);ae!==$.value&&(n?.removeInputId&&($.value&&n.removeInputId($.value),!g?.value&&!re&&ae&&n.addInputId(ae)),$.value=ae)},{immediate:!0})}),onUnmounted(()=>{L&&L(),n?.removeInputId&&$.value&&n.removeInputId($.value)}),{isLabeledByFormItem:k,inputId:$}};var English={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const buildTranslator=e=>(n,r)=>translate(n,r,unref(e)),translate=(e,n,r)=>get(r,e,e).replace(/\{(\w+)\}/g,(g,$)=>{var L;return`${(L=n?.[$])!=null?L:`{${$}}`}`}),buildLocaleContext=e=>{const n=computed(()=>unref(e).name),r=isRef(e)?e:ref(e);return{lang:n,locale:r,t:buildTranslator(e)}},useLocale=()=>{const e=useGlobalConfig("locale");return buildLocaleContext(computed(()=>e.value||English))},defaultNamespace="el",statePrefix="is-",_bem=(e,n,r,g,$)=>{let L=`${e}-${n}`;return r&&(L+=`-${r}`),g&&(L+=`__${g}`),$&&(L+=`--${$}`),L},useNamespace=e=>{const n=useGlobalConfig("namespace"),r=computed(()=>n.value||defaultNamespace);return{namespace:r,b:(ze="")=>_bem(unref(r),e,ze,"",""),e:ze=>ze?_bem(unref(r),e,"",ze,""):"",m:ze=>ze?_bem(unref(r),e,"","",ze):"",be:(ze,Ce)=>ze&&Ce?_bem(unref(r),e,ze,Ce,""):"",em:(ze,Ce)=>ze&&Ce?_bem(unref(r),e,"",ze,Ce):"",bm:(ze,Ce)=>ze&&Ce?_bem(unref(r),e,ze,"",Ce):"",bem:(ze,Ce,Ie)=>ze&&Ce&&Ie?_bem(unref(r),e,ze,Ce,Ie):"",is:(ze,...Ce)=>{const Ie=Ce.length>=1?Ce[0]:!0;return ze&&Ie?`${statePrefix}${ze}`:""},cssVar:ze=>{const Ce={};for(const Ie in ze)ze[Ie]&&(Ce[`--${r.value}-${Ie}`]=ze[Ie]);return Ce},cssVarName:ze=>`--${r.value}-${ze}`,cssVarBlock:ze=>{const Ce={};for(const Ie in ze)ze[Ie]&&(Ce[`--${r.value}-${e}-${Ie}`]=ze[Ie]);return Ce},cssVarBlockName:ze=>`--${r.value}-${e}-${ze}`}},useLockscreen=e=>{isRef(e)||throwError("[useLockscreen]","You need to pass a ref param to this function");const n=useNamespace("popup"),r=computed$1(()=>n.bm("parent","hidden"));if(!isClient||hasClass(document.body,r.value))return;let g=0,$=!1,L="0",k=0;const oe=()=>{removeClass(document.body,r.value),$&&(document.body.style.paddingRight=L)};watch(e,re=>{if(!re){oe();return}$=!hasClass(document.body,r.value),$&&(L=document.body.style.paddingRight,k=Number.parseInt(getStyle(document.body,"paddingRight"),10)),g=getScrollBarWidth(n.namespace.value);const ae=document.documentElement.clientHeight0&&(ae||le==="scroll")&&$&&(document.body.style.paddingRight=`${k+g}px`),addClass(document.body,r.value)}),onScopeDispose(()=>oe())},_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=e=>{const n=`update:${e}`,r=`onUpdate:${e}`,g=[n],$={[e]:_prop,[r]:_event};return{useModelToggle:({indicator:k,toggleReason:oe,shouldHideWhenRouteChanges:re,shouldProceed:ae,onShow:le,onHide:ue})=>{const pe=getCurrentInstance(),{emit:de}=pe,Fe=pe.props,ze=computed(()=>isFunction$1(Fe[r])),Ce=computed(()=>Fe[e]===null),Ie=he=>{k.value!==!0&&(k.value=!0,oe&&(oe.value=he),isFunction$1(le)&&le(he))},_e=he=>{k.value!==!1&&(k.value=!1,oe&&(oe.value=he),isFunction$1(ue)&&ue(he))},At=he=>{if(Fe.disabled===!0||isFunction$1(ae)&&!ae())return;const Oe=ze.value&&isClient;Oe&&de(n,!0),(Ce.value||!Oe)&&Ie(he)},qe=he=>{if(Fe.disabled===!0||!isClient)return;const Oe=ze.value&&isClient;Oe&&de(n,!1),(Ce.value||!Oe)&&_e(he)},xe=he=>{!isBoolean(he)||(Fe.disabled&&he?ze.value&&de(n,!1):k.value!==he&&(he?Ie():_e()))},Ve=()=>{k.value?qe():At()};return watch(()=>Fe[e],xe),re&&pe.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...pe.proxy.$route}),()=>{re.value&&k.value&&qe()}),onMounted(()=>{xe(Fe[e])}),{hide:qe,show:At,toggle:Ve,hasUpdateHandler:ze}},useModelToggleProps:$,useModelToggleEmits:g}},useRestoreActive=(e,n)=>{let r;watch(()=>e.value,g=>{var $,L;g?(r=document.activeElement,isRef(n)&&((L=($=n.value).focus)==null||L.call($))):r.focus()})},useSameTarget=e=>{if(!e)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let n=!1,r=!1;return{onClick:k=>{n&&r&&e(k),n=r=!1},onMousedown:k=>{n=k.target===k.currentTarget},onMouseup:k=>{r=k.target===k.currentTarget}}},useThrottleRender=(e,n=0)=>{if(n===0)return e;const r=ref(!1);let g=0;const $=()=>{g&&clearTimeout(g),g=window.setTimeout(()=>{r.value=e.value},n)};return onMounted($),watch(()=>e.value,L=>{L?$():r.value=L}),r};function useTimeout(){let e;const n=(g,$)=>{r(),e=window.setTimeout(g,$)},r=()=>window.clearTimeout(e);return tryOnScopeDispose(()=>r()),{registerTimeout:n,cancelTimeout:r}}let registeredEscapeHandlers=[];const cachedHandler=e=>{const n=e;n.key===EVENT_CODE.esc&®isteredEscapeHandlers.forEach(r=>r(n))},useEscapeKeydown=e=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient&®isteredEscapeHandlers.push(e)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(n=>n!==e),registeredEscapeHandlers.length===0&&isClient&&document.removeEventListener("keydown",cachedHandler)})};let cachedContainer;const POPPER_CONTAINER_ID=`el-popper-container-${generateId()}`,POPPER_CONTAINER_SELECTOR=`#${POPPER_CONTAINER_ID}`,createContainer=()=>{const e=document.createElement("div");return e.id=POPPER_CONTAINER_ID,document.body.appendChild(e),e},usePopperContainer=()=>{onBeforeMount(()=>{!isClient||(!cachedContainer||!document.body.querySelector(POPPER_CONTAINER_SELECTOR))&&(cachedContainer=createContainer())})},useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),useDelayedToggle=({showAfter:e,hideAfter:n,open:r,close:g})=>{const{registerTimeout:$}=useTimeout();return{onOpen:oe=>{$(()=>{r(oe)},unref(e))},onClose:oe=>{$(()=>{g(oe)},unref(n))}}},FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=e=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:r=>{e.value=r}})},useForwardRefDirective=e=>({mounted(n){e(n)},updated(n){e(n)},unmounted(){e(null)}}),zIndex=ref(0),useZIndex=()=>{const e=useGlobalConfig("zIndex",2e3),n=computed(()=>e.value+zIndex.value);return{initialZIndex:e,currentZIndex:n,nextZIndex:()=>(zIndex.value++,n.value)}};function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getMainAxisFromPlacement(e){return["top","bottom"].includes(getSide(e))?"x":"y"}function getLengthFromAxis(e){return e==="y"?"height":"width"}function computeCoordsFromPlacement(e,n,r){let{reference:g,floating:$}=e;const L=g.x+g.width/2-$.width/2,k=g.y+g.height/2-$.height/2,oe=getMainAxisFromPlacement(n),re=getLengthFromAxis(oe),ae=g[re]/2-$[re]/2,le=getSide(n),ue=oe==="x";let pe;switch(le){case"top":pe={x:L,y:g.y-$.height};break;case"bottom":pe={x:L,y:g.y+g.height};break;case"right":pe={x:g.x+g.width,y:k};break;case"left":pe={x:g.x-$.width,y:k};break;default:pe={x:g.x,y:g.y}}switch(getAlignment(n)){case"start":pe[oe]-=ae*(r&&ue?-1:1);break;case"end":pe[oe]+=ae*(r&&ue?-1:1);break}return pe}const computePosition$1=async(e,n,r)=>{const{placement:g="bottom",strategy:$="absolute",middleware:L=[],platform:k}=r,oe=await(k.isRTL==null?void 0:k.isRTL(n));let re=await k.getElementRects({reference:e,floating:n,strategy:$}),{x:ae,y:le}=computeCoordsFromPlacement(re,g,oe),ue=g,pe={},de=0;for(let Fe=0;Fe({name:"arrow",options:e,async fn(n){const{element:r,padding:g=0}=e??{},{x:$,y:L,placement:k,rects:oe,platform:re}=n;if(r==null)return{};const ae=getSideObjectFromPadding(g),le={x:$,y:L},ue=getMainAxisFromPlacement(k),pe=getAlignment(k),de=getLengthFromAxis(ue),Fe=await re.getDimensions(r),ze=ue==="y"?"top":"left",Ce=ue==="y"?"bottom":"right",Ie=oe.reference[de]+oe.reference[ue]-le[ue]-oe.floating[de],_e=le[ue]-oe.reference[ue],At=await(re.getOffsetParent==null?void 0:re.getOffsetParent(r));let qe=At?ue==="y"?At.clientHeight||0:At.clientWidth||0:0;qe===0&&(qe=oe.floating[de]);const xe=Ie/2-_e/2,Ve=ae[ze],he=qe-Fe[de]-ae[Ce],Oe=qe/2-Fe[de]/2+xe,$e=within(Ve,Oe,he),kt=(pe==="start"?ae[ze]:ae[Ce])>0&&Oe!==$e&&oe.reference[de]<=oe.floating[de]?Oen.brand+"/"+n.version).join(" "):navigator.userAgent}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement}function isElement(e){return e instanceof getWindow(e).Element}function isNode(e){return e instanceof getWindow(e).Node}function isShadowRoot(e){if(typeof ShadowRoot>"u")return!1;const n=getWindow(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}function isOverflowElement(e){const{overflow:n,overflowX:r,overflowY:g}=getComputedStyle$1(e);return/auto|scroll|overlay|hidden/.test(n+g+r)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isContainingBlock(e){const n=/firefox/i.test(getUAString()),r=getComputedStyle$1(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||n&&r.willChange==="filter"||n&&(r.filter?r.filter!=="none":!1)}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}const min$1=Math.min,max$1=Math.max,round=Math.round;function getBoundingClientRect(e,n,r){var g,$,L,k;n===void 0&&(n=!1),r===void 0&&(r=!1);const oe=e.getBoundingClientRect();let re=1,ae=1;n&&isHTMLElement(e)&&(re=e.offsetWidth>0&&round(oe.width)/e.offsetWidth||1,ae=e.offsetHeight>0&&round(oe.height)/e.offsetHeight||1);const le=isElement(e)?getWindow(e):window,ue=!isLayoutViewport()&&r,pe=(oe.left+(ue&&(g=($=le.visualViewport)==null?void 0:$.offsetLeft)!=null?g:0))/re,de=(oe.top+(ue&&(L=(k=le.visualViewport)==null?void 0:k.offsetTop)!=null?L:0))/ae,Fe=oe.width/re,ze=oe.height/ae;return{width:Fe,height:ze,top:de,right:pe+Fe,bottom:de+ze,left:pe,x:pe,y:de}}function getDocumentElement(e){return((isNode(e)?e.ownerDocument:e.document)||window.document).documentElement}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getNodeScroll(e).scrollLeft}function isScaled(e){const n=getBoundingClientRect(e);return round(n.width)!==e.offsetWidth||round(n.height)!==e.offsetHeight}function getRectRelativeToOffsetParent(e,n,r){const g=isHTMLElement(n),$=getDocumentElement(n),L=getBoundingClientRect(e,g&&isScaled(n),r==="fixed");let k={scrollLeft:0,scrollTop:0};const oe={x:0,y:0};if(g||!g&&r!=="fixed")if((getNodeName(n)!=="body"||isOverflowElement($))&&(k=getNodeScroll(n)),isHTMLElement(n)){const re=getBoundingClientRect(n,!0);oe.x=re.x+n.clientLeft,oe.y=re.y+n.clientTop}else $&&(oe.x=getWindowScrollBarX($));return{x:L.left+k.scrollLeft-oe.x,y:L.top+k.scrollTop-oe.y,width:L.width,height:L.height}}function getParentNode(e){return getNodeName(e)==="html"?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return!isHTMLElement(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function getContainingBlock(e){let n=getParentNode(e);for(isShadowRoot(n)&&(n=n.host);isHTMLElement(n)&&!["html","body"].includes(getNodeName(n));){if(isContainingBlock(n))return n;n=n.parentNode}return null}function getOffsetParent(e){const n=getWindow(e);let r=getTrueOffsetParent(e);for(;r&&isTableElement(r)&&getComputedStyle(r).position==="static";)r=getTrueOffsetParent(r);return r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static"&&!isContainingBlock(r))?n:r||getContainingBlock(e)||n}function getDimensions(e){if(isHTMLElement(e))return{width:e.offsetWidth,height:e.offsetHeight};const n=getBoundingClientRect(e);return{width:n.width,height:n.height}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{rect:n,offsetParent:r,strategy:g}=e;const $=isHTMLElement(r),L=getDocumentElement(r);if(r===L)return n;let k={scrollLeft:0,scrollTop:0};const oe={x:0,y:0};if(($||!$&&g!=="fixed")&&((getNodeName(r)!=="body"||isOverflowElement(L))&&(k=getNodeScroll(r)),isHTMLElement(r))){const re=getBoundingClientRect(r,!0);oe.x=re.x+r.clientLeft,oe.y=re.y+r.clientTop}return{...n,x:n.x-k.scrollLeft+oe.x,y:n.y-k.scrollTop+oe.y}}function getViewportRect(e,n){const r=getWindow(e),g=getDocumentElement(e),$=r.visualViewport;let L=g.clientWidth,k=g.clientHeight,oe=0,re=0;if($){L=$.width,k=$.height;const ae=isLayoutViewport();(ae||!ae&&n==="fixed")&&(oe=$.offsetLeft,re=$.offsetTop)}return{width:L,height:k,x:oe,y:re}}function getDocumentRect(e){var n;const r=getDocumentElement(e),g=getNodeScroll(e),$=(n=e.ownerDocument)==null?void 0:n.body,L=max$1(r.scrollWidth,r.clientWidth,$?$.scrollWidth:0,$?$.clientWidth:0),k=max$1(r.scrollHeight,r.clientHeight,$?$.scrollHeight:0,$?$.clientHeight:0);let oe=-g.scrollLeft+getWindowScrollBarX(e);const re=-g.scrollTop;return getComputedStyle$1($||r).direction==="rtl"&&(oe+=max$1(r.clientWidth,$?$.clientWidth:0)-L),{width:L,height:k,x:oe,y:re}}function getNearestOverflowAncestor(e){const n=getParentNode(e);return["html","body","#document"].includes(getNodeName(n))?e.ownerDocument.body:isHTMLElement(n)&&isOverflowElement(n)?n:getNearestOverflowAncestor(n)}function getOverflowAncestors(e,n){var r;n===void 0&&(n=[]);const g=getNearestOverflowAncestor(e),$=g===((r=e.ownerDocument)==null?void 0:r.body),L=getWindow(g),k=$?[L].concat(L.visualViewport||[],isOverflowElement(g)?g:[]):g,oe=n.concat(k);return $?oe:oe.concat(getOverflowAncestors(k))}function contains$1(e,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(e.contains(n))return!0;if(r&&isShadowRoot(r)){let g=n;do{if(g&&e===g)return!0;g=g.parentNode||g.host}while(g)}return!1}function getInnerBoundingClientRect(e,n){const r=getBoundingClientRect(e,!1,n==="fixed"),g=r.top+e.clientTop,$=r.left+e.clientLeft;return{top:g,left:$,x:$,y:g,right:$+e.clientWidth,bottom:g+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function getClientRectFromClippingAncestor(e,n,r){return n==="viewport"?rectToClientRect(getViewportRect(e,r)):isElement(n)?getInnerBoundingClientRect(n,r):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingAncestors(e){const n=getOverflowAncestors(e),g=["absolute","fixed"].includes(getComputedStyle$1(e).position)&&isHTMLElement(e)?getOffsetParent(e):e;return isElement(g)?n.filter($=>isElement($)&&contains$1($,g)&&getNodeName($)!=="body"):[]}function getClippingRect(e){let{element:n,boundary:r,rootBoundary:g,strategy:$}=e;const k=[...r==="clippingAncestors"?getClippingAncestors(n):[].concat(r),g],oe=k[0],re=k.reduce((ae,le)=>{const ue=getClientRectFromClippingAncestor(n,le,$);return ae.top=max$1(ue.top,ae.top),ae.right=min$1(ue.right,ae.right),ae.bottom=min$1(ue.bottom,ae.bottom),ae.left=max$1(ue.left,ae.left),ae},getClientRectFromClippingAncestor(n,oe,$));return{width:re.right-re.left,height:re.bottom-re.top,x:re.left,y:re.top}}const platform={getClippingRect,convertOffsetParentRelativeRectToViewportRelativeRect,isElement,getDimensions,getOffsetParent,getDocumentElement,getElementRects:e=>{let{reference:n,floating:r,strategy:g}=e;return{reference:getRectRelativeToOffsetParent(n,getOffsetParent(r),g),floating:{...getDimensions(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>getComputedStyle$1(e).direction==="rtl"},computePosition=(e,n,r)=>computePosition$1(e,n,{platform,...r});buildProps({});const unrefReference=e=>{if(!isClient)return;if(!e)return e;const n=unrefElement(e);return n||(isRef(e)?n:e)},useFloating=({middleware:e,placement:n,strategy:r})=>{const g=ref(),$=ref(),L=ref(),k=ref(),oe=ref({}),re={x:L,y:k,placement:n,strategy:r,middlewareData:oe},ae=async()=>{if(!isClient)return;const le=unrefReference(g),ue=unrefElement($);if(!le||!ue)return;const pe=await computePosition(le,ue,{placement:unref(n),strategy:unref(r),middleware:unref(e)});keysOf(re).forEach(de=>{re[de].value=pe[de]})};return onMounted(()=>{watchEffect(()=>{ae()})}),{...re,update:ae,referenceRef:g,contentRef:$}},arrowMiddleware=({arrowRef:e,padding:n})=>({name:"arrow",options:{element:e,padding:n},fn(r){const g=unref(e);return g?arrow({element:g,padding:n}).fn(r):{}}});function useCursor(e){const n=ref();function r(){if(e.value==null)return;const{selectionStart:$,selectionEnd:L,value:k}=e.value;if($==null||L==null)return;const oe=k.slice(0,Math.max(0,$)),re=k.slice(Math.max(0,L));n.value={selectionStart:$,selectionEnd:L,value:k,beforeTxt:oe,afterTxt:re}}function g(){if(e.value==null||n.value==null)return;const{value:$}=e.value,{beforeTxt:L,afterTxt:k,selectionStart:oe}=n.value;if(L==null||k==null||oe==null)return;let re=$.length;if($.endsWith(k))re=$.length-k.length;else if($.startsWith(L))re=L.length;else{const ae=L[oe-1],le=$.indexOf(ae,oe-1);le!==-1&&(re=le+1)}e.value.setSelectionRange(re,re)}return[r,g]}const version$1="2.2.12",makeInstaller=(e=[])=>({version:version$1,install:(r,g)=>{r[INSTALLED_KEY]||(r[INSTALLED_KEY]=!0,e.forEach($=>r.use($)),g&&provideGlobalConfig(g,r,!0))}}),affixProps=buildProps({zIndex:{type:definePropType([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),affixEmits={scroll:({scrollTop:e,fixed:n})=>isNumber(e)&&isBoolean(n),[CHANGE_EVENT]:e=>isBoolean(e)};var _export_sfc$2=(e,n)=>{const r=e.__vccOpts||e;for(const[g,$]of n)r[g]=$;return r};const __default__$1p={name:"ElAffix"},_sfc_main$2L=defineComponent({...__default__$1p,props:affixProps,emits:affixEmits,setup(e,{expose:n,emit:r}){const g=e,$="ElAffix",L=useNamespace("affix"),k=shallowRef(),oe=shallowRef(),re=shallowRef(),{height:ae}=useWindowSize(),{height:le,width:ue,top:pe,bottom:de,update:Fe}=useElementBounding(oe),ze=useElementBounding(k),Ce=ref(!1),Ie=ref(0),_e=ref(0),At=computed(()=>({height:Ce.value?`${le.value}px`:"",width:Ce.value?`${ue.value}px`:""})),qe=computed(()=>{if(!Ce.value)return{};const he=g.offset?`${g.offset}px`:0;return{height:`${le.value}px`,width:`${ue.value}px`,top:g.position==="top"?he:"",bottom:g.position==="bottom"?he:"",transform:_e.value?`translateY(${_e.value}px)`:"",zIndex:g.zIndex}}),xe=()=>{if(!!re.value)if(Ie.value=re.value instanceof Window?document.documentElement.scrollTop:re.value.scrollTop||0,g.position==="top")if(g.target){const he=ze.bottom.value-g.offset-le.value;Ce.value=g.offset>pe.value&&ze.bottom.value>0,_e.value=he<0?he:0}else Ce.value=g.offset>pe.value;else if(g.target){const he=ae.value-ze.top.value-g.offset-le.value;Ce.value=ae.value-g.offsetze.top.value,_e.value=he<0?-he:0}else Ce.value=ae.value-g.offset{r("scroll",{scrollTop:Ie.value,fixed:Ce.value})};return watch(Ce,he=>r("change",he)),onMounted(()=>{var he;g.target?(k.value=(he=document.querySelector(g.target))!=null?he:void 0,k.value||throwError($,`Target is not existed: ${g.target}`)):k.value=document.documentElement,re.value=getScrollContainer(oe.value,!0),Fe()}),useEventListener(re,"scroll",Ve),watchEffect(xe),n({update:xe}),(he,Oe)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:oe,class:normalizeClass(unref(L).b()),style:normalizeStyle(unref(At))},[createBaseVNode("div",{class:normalizeClass({[unref(L).m("fixed")]:Ce.value}),style:normalizeStyle(unref(qe))},[renderSlot(he.$slots,"default")],6)],6))}});var Affix=_export_sfc$2(_sfc_main$2L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const ElAffix=withInstall(Affix),iconProps=buildProps({size:{type:definePropType([Number,String])},color:{type:String}}),__default__$1o={name:"ElIcon",inheritAttrs:!1},_sfc_main$2K=defineComponent({...__default__$1o,props:iconProps,setup(e){const n=e,r=useNamespace("icon"),g=computed(()=>!n.size&&!n.color?{}:{fontSize:isUndefined(n.size)?void 0:addUnit(n.size),"--color":n.color});return($,L)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(r).b(),style:unref(g)},$.$attrs),[renderSlot($.$slots,"default")],16))}});var Icon=_export_sfc$2(_sfc_main$2K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ElIcon=withInstall(Icon),alertEffects=["light","dark"],alertProps=buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:keysOf(TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:alertEffects,default:"light"}}),alertEmits={close:e=>e instanceof MouseEvent},__default__$1n={name:"ElAlert"},_sfc_main$2J=defineComponent({...__default__$1n,props:alertProps,emits:alertEmits,setup(e,{emit:n}){const r=e,{Close:g}=TypeComponents,$=useSlots(),L=useNamespace("alert"),k=ref(!0),oe=computed(()=>TypeComponentsMap[r.type]),re=computed(()=>[L.e("icon"),{[L.is("big")]:!!r.description||!!$.default}]),ae=computed(()=>r.description||{[L.is("bold")]:$.default}),le=ue=>{k.value=!1,n("close",ue)};return(ue,pe)=>(openBlock(),createBlock(Transition,{name:unref(L).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(L).b(),unref(L).m(ue.type),unref(L).is("center",ue.center),unref(L).is(ue.effect)]),role:"alert"},[ue.showIcon&&unref(oe)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(re))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(oe))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(L).e("content"))},[ue.title||ue.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(L).e("title"),unref(ae)])},[renderSlot(ue.$slots,"title",{},()=>[createTextVNode(toDisplayString(ue.title),1)])],2)):createCommentVNode("v-if",!0),ue.$slots.default||ue.description?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(L).e("description"))},[renderSlot(ue.$slots,"default",{},()=>[createTextVNode(toDisplayString(ue.description),1)])],2)):createCommentVNode("v-if",!0),ue.closable?(openBlock(),createElementBlock(Fragment,{key:2},[ue.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(L).e("close-btn"),unref(L).is("customed")]),onClick:le},toDisplayString(ue.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(L).e("close-btn")),onClick:le},{default:withCtx(()=>[createVNode(unref(g))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,k.value]])]),_:3},8,["name"]))}});var Alert=_export_sfc$2(_sfc_main$2J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const ElAlert=withInstall(Alert);let hiddenTextarea;const HIDDEN_STYLE=` + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling(e){const n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing"),g=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),$=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(k=>`${k}:${n.getPropertyValue(k)}`).join(";"),paddingSize:g,borderSize:$,boxSizing:r}}function calcTextareaHeight(e,n=1,r){var g;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:$,borderSize:L,boxSizing:k,contextStyle:oe}=calculateNodeStyling(e);hiddenTextarea.setAttribute("style",`${oe};${HIDDEN_STYLE}`),hiddenTextarea.value=e.value||e.placeholder||"";let re=hiddenTextarea.scrollHeight;const ae={};k==="border-box"?re=re+L:k==="content-box"&&(re=re-$),hiddenTextarea.value="";const le=hiddenTextarea.scrollHeight-$;if(isNumber(n)){let ue=le*n;k==="border-box"&&(ue=ue+$+L),re=Math.max(ue,re),ae.minHeight=`${ue}px`}if(isNumber(r)){let ue=le*r;k==="border-box"&&(ue=ue+$+L),re=Math.min(ue,re)}return ae.height=`${re}px`,(g=hiddenTextarea.parentNode)==null||g.removeChild(hiddenTextarea),hiddenTextarea=void 0,ae}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:iconPropType,default:""},prefixIcon:{type:iconPropType,default:""},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})}}),inputEmits={[UPDATE_MODEL_EVENT]:e=>isString$2(e),input:e=>isString$2(e),change:e=>isString$2(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},_hoisted_1$1z=["role"],_hoisted_2$14=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],_hoisted_3$A=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],__default__$1m={name:"ElInput",inheritAttrs:!1},_sfc_main$2I=defineComponent({...__default__$1m,props:inputProps,emits:inputEmits,setup(e,{expose:n,emit:r}){const g=e,$={suffix:"append",prefix:"prepend"},L=getCurrentInstance(),k=useAttrs$1(),oe=useSlots(),re=computed(()=>{const Gn={};return g.containerRole==="combobox"&&(Gn["aria-haspopup"]=k["aria-haspopup"],Gn["aria-owns"]=k["aria-owns"],Gn["aria-expanded"]=k["aria-expanded"]),Gn}),ae=useAttrs({excludeKeys:computed(()=>Object.keys(re.value))}),{form:le,formItem:ue}=useFormItem(),{inputId:pe}=useFormItemInputId(g,{formItemContext:ue}),de=useSize(),Fe=useDisabled$1(),ze=useNamespace("input"),Ce=useNamespace("textarea"),Ie=shallowRef(),_e=shallowRef(),At=ref(!1),qe=ref(!1),xe=ref(!1),Ve=ref(!1),he=ref(),Oe=shallowRef(g.inputStyle),$e=computed(()=>Ie.value||_e.value),Ne=computed(()=>{var Gn;return(Gn=le?.statusIcon)!=null?Gn:!1}),Ue=computed(()=>ue?.validateState||""),kt=computed(()=>Ue.value&&ValidateComponentsMap[Ue.value]),Et=computed(()=>Ve.value?view_default:hide_default),Pt=computed(()=>[k.style,g.inputStyle]),Lt=computed(()=>[g.inputStyle,Oe.value,{resize:g.resize}]),vn=computed(()=>isNil(g.modelValue)?"":String(g.modelValue)),hn=computed(()=>g.clearable&&!Fe.value&&!g.readonly&&!!vn.value&&(At.value||qe.value)),Dt=computed(()=>g.showPassword&&!Fe.value&&!g.readonly&&!!vn.value&&(!!vn.value||At.value)),jt=computed(()=>g.showWordLimit&&!!ae.value.maxlength&&(g.type==="text"||g.type==="textarea")&&!Fe.value&&!g.readonly&&!g.showPassword),bn=computed(()=>Array.from(vn.value).length),Sn=computed(()=>!!jt.value&&bn.value>Number(ae.value.maxlength)),Cn=computed(()=>!!oe.suffix||!!g.suffixIcon||hn.value||g.showPassword||jt.value||!!Ue.value&&Ne.value),[On,En]=useCursor(Ie);useResizeObserver(_e,Gn=>{if(!jt.value||g.resize!=="both")return;const eo=Gn[0],{width:ao}=eo.contentRect;he.value={right:`calc(100% - ${ao+15+6}px)`}});const An=()=>{const{type:Gn,autosize:eo}=g;if(!(!isClient||Gn!=="textarea"))if(eo){const ao=isObject$4(eo)?eo.minRows:void 0,ho=isObject$4(eo)?eo.maxRows:void 0;Oe.value={...calcTextareaHeight(_e.value,ao,ho)}}else Oe.value={minHeight:calcTextareaHeight(_e.value).minHeight}},In=()=>{const Gn=$e.value;!Gn||Gn.value===vn.value||(Gn.value=vn.value)},$n=Gn=>{const{el:eo}=L.vnode;if(!eo)return;const ho=Array.from(eo.querySelectorAll(`.${ze.e(Gn)}`)).find(Wn=>Wn.parentNode===eo);if(!ho)return;const Yn=$[Gn];oe[Yn]?ho.style.transform=`translateX(${Gn==="suffix"?"-":""}${eo.querySelector(`.${ze.be("group",Yn)}`).offsetWidth}px)`:ho.removeAttribute("style")},Pn=()=>{$n("prefix"),$n("suffix")},Dn=async Gn=>{On();let{value:eo}=Gn.target;g.formatter&&(eo=g.parser?g.parser(eo):eo,eo=g.formatter(eo)),!xe.value&&eo!==vn.value&&(r(UPDATE_MODEL_EVENT,eo),r("input",eo),await nextTick(),In(),En())},Mn=Gn=>{r("change",Gn.target.value)},Fn=Gn=>{r("compositionstart",Gn),xe.value=!0},kn=Gn=>{var eo;r("compositionupdate",Gn);const ao=(eo=Gn.target)==null?void 0:eo.value,ho=ao[ao.length-1]||"";xe.value=!isKorean(ho)},Nn=Gn=>{r("compositionend",Gn),xe.value&&(xe.value=!1,Dn(Gn))},Rn=()=>{Ve.value=!Ve.value,wn()},wn=async()=>{var Gn;await nextTick(),(Gn=$e.value)==null||Gn.focus()},Tn=()=>{var Gn;return(Gn=$e.value)==null?void 0:Gn.blur()},xn=Gn=>{At.value=!0,r("focus",Gn)},Bn=Gn=>{var eo;At.value=!1,r("blur",Gn),g.validateEvent&&((eo=ue?.validate)==null||eo.call(ue,"blur").catch(ao=>void 0))},Ln=Gn=>{qe.value=!1,r("mouseleave",Gn)},Hn=Gn=>{qe.value=!0,r("mouseenter",Gn)},zn=Gn=>{r("keydown",Gn)},Jn=()=>{var Gn;(Gn=$e.value)==null||Gn.select()},co=()=>{r(UPDATE_MODEL_EVENT,""),r("change",""),r("clear"),r("input","")};return watch(()=>g.modelValue,()=>{var Gn;nextTick(()=>An()),g.validateEvent&&((Gn=ue?.validate)==null||Gn.call(ue,"change").catch(eo=>void 0))}),watch(vn,()=>In()),watch(()=>g.type,async()=>{await nextTick(),In(),An(),Pn()}),onMounted(async()=>{!g.formatter&&g.parser,In(),Pn(),await nextTick(),An()}),onUpdated(async()=>{await nextTick(),Pn()}),n({input:Ie,textarea:_e,ref:$e,textareaStyle:Lt,autosize:toRef(g,"autosize"),focus:wn,blur:Tn,select:Jn,clear:co,resizeTextarea:An}),(Gn,eo)=>withDirectives((openBlock(),createElementBlock("div",mergeProps(unref(re),{class:[Gn.type==="textarea"?unref(Ce).b():unref(ze).b(),unref(ze).m(unref(de)),unref(ze).is("disabled",unref(Fe)),unref(ze).is("exceed",unref(Sn)),{[unref(ze).b("group")]:Gn.$slots.prepend||Gn.$slots.append,[unref(ze).bm("group","append")]:Gn.$slots.append,[unref(ze).bm("group","prepend")]:Gn.$slots.prepend,[unref(ze).m("prefix")]:Gn.$slots.prefix||Gn.prefixIcon,[unref(ze).m("suffix")]:Gn.$slots.suffix||Gn.suffixIcon||Gn.clearable||Gn.showPassword,[unref(ze).bm("suffix","password-clear")]:unref(hn)&&unref(Dt)},Gn.$attrs.class],style:unref(Pt),role:Gn.containerRole,onMouseenter:Hn,onMouseleave:Ln}),[createCommentVNode(" input "),Gn.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),Gn.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ze).be("group","prepend"))},[renderSlot(Gn.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([unref(ze).e("wrapper"),unref(ze).is("focus",At.value)])},[createCommentVNode(" prefix slot "),Gn.$slots.prefix||Gn.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ze).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(ze).e("prefix-inner"))},[renderSlot(Gn.$slots,"prefix"),Gn.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ze).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Gn.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(pe),ref_key:"input",ref:Ie,class:unref(ze).e("inner")},unref(ae),{type:Gn.showPassword?Ve.value?"text":"password":Gn.type,disabled:unref(Fe),formatter:Gn.formatter,parser:Gn.parser,readonly:Gn.readonly,autocomplete:Gn.autocomplete,tabindex:Gn.tabindex,"aria-label":Gn.label,placeholder:Gn.placeholder,style:Gn.inputStyle,onCompositionstart:Fn,onCompositionupdate:kn,onCompositionend:Nn,onInput:Dn,onFocus:xn,onBlur:Bn,onChange:Mn,onKeydown:zn}),null,16,_hoisted_2$14),createCommentVNode(" suffix slot "),unref(Cn)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ze).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(ze).e("suffix-inner"))},[!unref(hn)||!unref(Dt)||!unref(jt)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(Gn.$slots,"suffix"),Gn.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ze).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Gn.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(hn)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(ze).e("icon"),unref(ze).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:co},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),unref(Dt)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(ze).e("icon"),unref(ze).e("password")]),onClick:Rn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Et))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(jt)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(ze).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(ze).e("count-inner"))},toDisplayString(unref(bn))+" / "+toDisplayString(unref(ae).maxlength),3)],2)):createCommentVNode("v-if",!0),unref(Ue)&&unref(kt)&&unref(Ne)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(ze).e("icon"),unref(ze).e("validateIcon"),unref(ze).is("loading",unref(Ue)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(kt))))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),Gn.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ze).be("group","append"))},[renderSlot(Gn.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(pe),ref_key:"textarea",ref:_e,class:unref(Ce).e("inner")},unref(ae),{tabindex:Gn.tabindex,disabled:unref(Fe),readonly:Gn.readonly,autocomplete:Gn.autocomplete,style:unref(Lt),"aria-label":Gn.label,placeholder:Gn.placeholder,onCompositionstart:Fn,onCompositionupdate:kn,onCompositionend:Nn,onInput:Dn,onFocus:xn,onBlur:Bn,onChange:Mn,onKeydown:zn}),null,16,_hoisted_3$A),unref(jt)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle(he.value),class:normalizeClass(unref(ze).e("count"))},toDisplayString(unref(bn))+" / "+toDisplayString(unref(ae).maxlength),7)):createCommentVNode("v-if",!0)],64))],16,_hoisted_1$1z)),[[vShow,Gn.type!=="hidden"]])}});var Input=_export_sfc$2(_sfc_main$2I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ElInput=withInstall(Input),GAP=4,BAR_MAP={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},renderThumbStyle$1=({move:e,size:n,bar:r})=>({[r.size]:n,transform:`translate${r.axis}(${e}%)`}),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_sfc_main$2H=defineComponent({__name:"thumb",props:thumbProps,setup(e){const n=e,r="Thumb",g=inject(scrollbarContextKey),$=useNamespace("scrollbar");g||throwError(r,"can not inject scrollbar context");const L=ref(),k=ref(),oe=ref({}),re=ref(!1);let ae=!1,le=!1,ue=isClient?document.onselectstart:null;const pe=computed(()=>BAR_MAP[n.vertical?"vertical":"horizontal"]),de=computed(()=>renderThumbStyle$1({size:n.size,move:n.move,bar:pe.value})),Fe=computed(()=>L.value[pe.value.offset]**2/g.wrapElement[pe.value.scrollSize]/n.ratio/k.value[pe.value.offset]),ze=he=>{var Oe;if(he.stopPropagation(),he.ctrlKey||[1,2].includes(he.button))return;(Oe=window.getSelection())==null||Oe.removeAllRanges(),Ie(he);const $e=he.currentTarget;!$e||(oe.value[pe.value.axis]=$e[pe.value.offset]-(he[pe.value.client]-$e.getBoundingClientRect()[pe.value.direction]))},Ce=he=>{if(!k.value||!L.value||!g.wrapElement)return;const Oe=Math.abs(he.target.getBoundingClientRect()[pe.value.direction]-he[pe.value.client]),$e=k.value[pe.value.offset]/2,Ne=(Oe-$e)*100*Fe.value/L.value[pe.value.offset];g.wrapElement[pe.value.scroll]=Ne*g.wrapElement[pe.value.scrollSize]/100},Ie=he=>{he.stopImmediatePropagation(),ae=!0,document.addEventListener("mousemove",_e),document.addEventListener("mouseup",At),ue=document.onselectstart,document.onselectstart=()=>!1},_e=he=>{if(!L.value||!k.value||ae===!1)return;const Oe=oe.value[pe.value.axis];if(!Oe)return;const $e=(L.value.getBoundingClientRect()[pe.value.direction]-he[pe.value.client])*-1,Ne=k.value[pe.value.offset]-Oe,Ue=($e-Ne)*100*Fe.value/L.value[pe.value.offset];g.wrapElement[pe.value.scroll]=Ue*g.wrapElement[pe.value.scrollSize]/100},At=()=>{ae=!1,oe.value[pe.value.axis]=0,document.removeEventListener("mousemove",_e),document.removeEventListener("mouseup",At),Ve(),le&&(re.value=!1)},qe=()=>{le=!1,re.value=!!n.size},xe=()=>{le=!0,re.value=ae};onBeforeUnmount(()=>{Ve(),document.removeEventListener("mouseup",At)});const Ve=()=>{document.onselectstart!==ue&&(document.onselectstart=ue)};return useEventListener(toRef(g,"scrollbarElement"),"mousemove",qe),useEventListener(toRef(g,"scrollbarElement"),"mouseleave",xe),(he,Oe)=>(openBlock(),createBlock(Transition,{name:unref($).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:L,class:normalizeClass([unref($).e("bar"),unref($).is(unref(pe).key)]),onMousedown:Ce},[createBaseVNode("div",{ref_key:"thumb",ref:k,class:normalizeClass(unref($).e("thumb")),style:normalizeStyle(unref(de)),onMousedown:ze},null,38)],34),[[vShow,he.always||re.value]])]),_:1},8,["name"]))}});var Thumb=_export_sfc$2(_sfc_main$2H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const barProps=buildProps({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),_sfc_main$2G=defineComponent({__name:"bar",props:barProps,setup(e,{expose:n}){const r=e,g=ref(0),$=ref(0);return n({handleScroll:k=>{if(k){const oe=k.offsetHeight-GAP,re=k.offsetWidth-GAP;$.value=k.scrollTop*100/oe*r.ratioY,g.value=k.scrollLeft*100/re*r.ratioX}}}),(k,oe)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:g.value,ratio:k.ratioX,size:k.width,always:k.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:$.value,ratio:k.ratioY,size:k.height,vertical:"",always:k.always},null,8,["move","ratio","size","always"])],64))}});var Bar=_export_sfc$2(_sfc_main$2G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const scrollbarProps=buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),scrollbarEmits={scroll:({scrollTop:e,scrollLeft:n})=>[e,n].every(isNumber)},__default__$1l={name:"ElScrollbar"},_sfc_main$2F=defineComponent({...__default__$1l,props:scrollbarProps,emits:scrollbarEmits,setup(e,{expose:n,emit:r}){const g=e,$=useNamespace("scrollbar");let L,k;const oe=ref(),re=ref(),ae=ref(),le=ref("0"),ue=ref("0"),pe=ref(),de=ref(1),Fe=ref(1),ze=computed(()=>{const xe={};return g.height&&(xe.height=addUnit(g.height)),g.maxHeight&&(xe.maxHeight=addUnit(g.maxHeight)),[g.wrapStyle,xe]}),Ce=()=>{var xe;re.value&&((xe=pe.value)==null||xe.handleScroll(re.value),r("scroll",{scrollTop:re.value.scrollTop,scrollLeft:re.value.scrollLeft}))};function Ie(xe,Ve){isObject$4(xe)?re.value.scrollTo(xe):isNumber(xe)&&isNumber(Ve)&&re.value.scrollTo(xe,Ve)}const _e=xe=>{!isNumber(xe)||(re.value.scrollTop=xe)},At=xe=>{!isNumber(xe)||(re.value.scrollLeft=xe)},qe=()=>{if(!re.value)return;const xe=re.value.offsetHeight-GAP,Ve=re.value.offsetWidth-GAP,he=xe**2/re.value.scrollHeight,Oe=Ve**2/re.value.scrollWidth,$e=Math.max(he,g.minSize),Ne=Math.max(Oe,g.minSize);de.value=he/(xe-he)/($e/(xe-$e)),Fe.value=Oe/(Ve-Oe)/(Ne/(Ve-Ne)),ue.value=$e+GAPg.noresize,xe=>{xe?(L?.(),k?.()):({stop:L}=useResizeObserver(ae,qe),k=useEventListener("resize",qe))},{immediate:!0}),watch(()=>[g.maxHeight,g.height],()=>{g.native||nextTick(()=>{var xe;qe(),re.value&&((xe=pe.value)==null||xe.handleScroll(re.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:oe,wrapElement:re})),onMounted(()=>{g.native||nextTick(()=>{qe()})}),onUpdated(()=>qe()),n({wrap$:re,update:qe,scrollTo:Ie,setScrollTop:_e,setScrollLeft:At,handleScroll:Ce}),(xe,Ve)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbar$",ref:oe,class:normalizeClass(unref($).b())},[createBaseVNode("div",{ref_key:"wrap$",ref:re,class:normalizeClass([xe.wrapClass,unref($).e("wrap"),{[unref($).em("wrap","hidden-default")]:!xe.native}]),style:normalizeStyle(unref(ze)),onScroll:Ce},[(openBlock(),createBlock(resolveDynamicComponent(xe.tag),{ref_key:"resize$",ref:ae,class:normalizeClass([unref($).e("view"),xe.viewClass]),style:normalizeStyle(xe.viewStyle)},{default:withCtx(()=>[renderSlot(xe.$slots,"default")]),_:3},8,["class","style"]))],38),xe.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:pe,height:ue.value,width:le.value,always:xe.always,"ratio-x":Fe.value,"ratio-y":de.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Scrollbar=_export_sfc$2(_sfc_main$2F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ElScrollbar=withInstall(Scrollbar),Effect={LIGHT:"light",DARK:"dark"},usePopperProps=buildProps({role:{type:String,default:"tooltip"}}),__default__$1k={name:"ElPopperRoot",inheritAttrs:!1},_sfc_main$2E=defineComponent({...__default__$1k,props:usePopperProps,setup(e,{expose:n}){const r=e,g=ref(),$=ref(),L=ref(),k=ref(),oe=computed(()=>r.role),re={triggerRef:g,popperInstanceRef:$,contentRef:L,referenceRef:k,role:oe};return n(re),provide(POPPER_INJECTION_KEY,re),(ae,le)=>renderSlot(ae.$slots,"default")}});var Popper=_export_sfc$2(_sfc_main$2E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const usePopperArrowProps=buildProps({arrowOffset:{type:Number,default:5}}),__default__$1j={name:"ElPopperArrow",inheritAttrs:!1},_sfc_main$2D=defineComponent({...__default__$1j,props:usePopperArrowProps,setup(e,{expose:n}){const r=e,g=useNamespace("popper"),{arrowOffset:$,arrowRef:L}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return watch(()=>r.arrowOffset,k=>{$.value=k}),onBeforeUnmount(()=>{L.value=void 0}),n({arrowRef:L}),(k,oe)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:L,class:normalizeClass(unref(g).e("arrow")),"data-popper-arrow":""},null,2))}});var ElPopperArrow=_export_sfc$2(_sfc_main$2D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup(e,{slots:n,attrs:r}){var g;const $=inject(FORWARD_REF_INJECTION_KEY),L=useForwardRefDirective((g=$?.setForwardRef)!=null?g:NOOP);return()=>{var k;const oe=(k=n.default)==null?void 0:k.call(n,r);if(!oe||oe.length>1)return null;const re=findFirstLegitChild(oe);return re?withDirectives(cloneVNode(re,r),[[L]]):null}}});function findFirstLegitChild(e){if(!e)return null;const n=e;for(const r of n){if(isObject$4(r))switch(r.type){case Comment:continue;case Text$2:case"svg":return wrapTextContent(r);case Fragment:return findFirstLegitChild(r.children);default:return r}return wrapTextContent(r)}return null}function wrapTextContent(e){return createVNode("span",{class:"el-only-child__content"},[e])}const usePopperTriggerProps=buildProps({virtualRef:{type:definePropType(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),__default__$1i={name:"ElPopperTrigger",inheritAttrs:!1},_sfc_main$2C=defineComponent({...__default__$1i,props:usePopperTriggerProps,setup(e,{expose:n}){const r=e,{role:g,triggerRef:$}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef($);const L=computed(()=>oe.value?r.id:void 0),k=computed(()=>{if(g&&g.value==="tooltip")return r.open&&r.id?r.id:void 0}),oe=computed(()=>{if(g&&g.value!=="tooltip")return g.value}),re=computed(()=>oe.value?`${r.open}`:void 0);let ae;return onMounted(()=>{watch(()=>r.virtualRef,le=>{le&&($.value=unrefElement(le))},{immediate:!0}),watch(()=>$.value,(le,ue)=>{ae?.(),ae=void 0,isElement$1(le)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(pe=>{var de;const Fe=r[pe];Fe&&(le.addEventListener(pe.slice(2).toLowerCase(),Fe),(de=ue?.removeEventListener)==null||de.call(ue,pe.slice(2).toLowerCase(),Fe))}),ae=watch([L,k,oe,re],pe=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((de,Fe)=>{isNil(pe[Fe])?le.removeAttribute(de):le.setAttribute(de,pe[Fe])})},{immediate:!0})),isElement$1(ue)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(pe=>ue.removeAttribute(pe))},{immediate:!0})}),onBeforeUnmount(()=>{ae?.(),ae=void 0}),n({triggerRef:$}),(le,ue)=>le.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},le.$attrs,{"aria-controls":unref(L),"aria-describedby":unref(k),"aria-expanded":unref(re),"aria-haspopup":unref(oe)}),{default:withCtx(()=>[renderSlot(le.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ElPopperTrigger=_export_sfc$2(_sfc_main$2C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),E$2="top",R="bottom",W$1="right",P$2="left",me="auto",G=[E$2,R,W$1,P$2],U$2="start",J="end",Xe="clippingParents",je="viewport",K="popper",Ye="reference",De=G.reduce(function(e,n){return e.concat([n+"-"+U$2,n+"-"+J])},[]),Ee=[].concat(G,[me]).reduce(function(e,n){return e.concat([n,n+"-"+U$2,n+"-"+J])},[]),Ge="beforeRead",Je="read",Ke="afterRead",Qe="beforeMain",Ze="main",et="afterMain",tt="beforeWrite",nt="write",rt="afterWrite",ot=[Ge,Je,Ke,Qe,Ze,et,tt,nt,rt];function C$2(e){return e?(e.nodeName||"").toLowerCase():null}function H(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function Q(e){var n=H(e).Element;return e instanceof n||e instanceof Element}function B$1(e){var n=H(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function Pe(e){if(typeof ShadowRoot>"u")return!1;var n=H(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}function Mt(e){var n=e.state;Object.keys(n.elements).forEach(function(r){var g=n.styles[r]||{},$=n.attributes[r]||{},L=n.elements[r];!B$1(L)||!C$2(L)||(Object.assign(L.style,g),Object.keys($).forEach(function(k){var oe=$[k];oe===!1?L.removeAttribute(k):L.setAttribute(k,oe===!0?"":oe)}))})}function Rt(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow),function(){Object.keys(n.elements).forEach(function(g){var $=n.elements[g],L=n.attributes[g]||{},k=Object.keys(n.styles.hasOwnProperty(g)?n.styles[g]:r[g]),oe=k.reduce(function(re,ae){return re[ae]="",re},{});!B$1($)||!C$2($)||(Object.assign($.style,oe),Object.keys(L).forEach(function(re){$.removeAttribute(re)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Rt,requires:["computeStyles"]};function q(e){return e.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee(e,n){n===void 0&&(n=!1);var r=e.getBoundingClientRect(),g=1,$=1;if(B$1(e)&&n){var L=e.offsetHeight,k=e.offsetWidth;k>0&&(g=Z(r.width)/k||1),L>0&&($=Z(r.height)/L||1)}return{width:r.width/g,height:r.height/$,top:r.top/$,right:r.right/g,bottom:r.bottom/$,left:r.left/g,x:r.left/g,y:r.top/$}}function ke(e){var n=ee(e),r=e.offsetWidth,g=e.offsetHeight;return Math.abs(n.width-r)<=1&&(r=n.width),Math.abs(n.height-g)<=1&&(g=n.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:g}}function it(e,n){var r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&Pe(r)){var g=n;do{if(g&&e.isSameNode(g))return!0;g=g.parentNode||g.host}while(g)}return!1}function N$1(e){return H(e).getComputedStyle(e)}function Wt(e){return["table","td","th"].indexOf(C$2(e))>=0}function I$1(e){return((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function ge(e){return C$2(e)==="html"?e:e.assignedSlot||e.parentNode||(Pe(e)?e.host:null)||I$1(e)}function at(e){return!B$1(e)||N$1(e).position==="fixed"?null:e.offsetParent}function Bt(e){var n=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&B$1(e)){var g=N$1(e);if(g.position==="fixed")return null}var $=ge(e);for(Pe($)&&($=$.host);B$1($)&&["html","body"].indexOf(C$2($))<0;){var L=N$1($);if(L.transform!=="none"||L.perspective!=="none"||L.contain==="paint"||["transform","perspective"].indexOf(L.willChange)!==-1||n&&L.willChange==="filter"||n&&L.filter&&L.filter!=="none")return $;$=$.parentNode}return null}function se(e){for(var n=H(e),r=at(e);r&&Wt(r)&&N$1(r).position==="static";)r=at(r);return r&&(C$2(r)==="html"||C$2(r)==="body"&&N$1(r).position==="static")?n:r||Bt(e)||n}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fe(e,n,r){return X$1(e,ve(n,r))}function St(e,n,r){var g=fe(e,n,r);return g>r?r:g}function st(){return{top:0,right:0,bottom:0,left:0}}function ft(e){return Object.assign({},st(),e)}function ct(e,n){return n.reduce(function(r,g){return r[g]=e,r},{})}var Tt=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,ft(typeof e!="number"?e:ct(e,G))};function Ht(e){var n,r=e.state,g=e.name,$=e.options,L=r.elements.arrow,k=r.modifiersData.popperOffsets,oe=q(r.placement),re=Le(oe),ae=[P$2,W$1].indexOf(oe)>=0,le=ae?"height":"width";if(!(!L||!k)){var ue=Tt($.padding,r),pe=ke(L),de=re==="y"?E$2:P$2,Fe=re==="y"?R:W$1,ze=r.rects.reference[le]+r.rects.reference[re]-k[re]-r.rects.popper[le],Ce=k[re]-r.rects.reference[re],Ie=se(L),_e=Ie?re==="y"?Ie.clientHeight||0:Ie.clientWidth||0:0,At=ze/2-Ce/2,qe=ue[de],xe=_e-pe[le]-ue[Fe],Ve=_e/2-pe[le]/2+At,he=fe(qe,Ve,xe),Oe=re;r.modifiersData[g]=(n={},n[Oe]=he,n.centerOffset=he-Ve,n)}}function Ct(e){var n=e.state,r=e.options,g=r.element,$=g===void 0?"[data-popper-arrow]":g;$!=null&&(typeof $=="string"&&($=n.elements.popper.querySelector($),!$)||!it(n.elements.popper,$)||(n.elements.arrow=$))}var pt={name:"arrow",enabled:!0,phase:"main",fn:Ht,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(e){return e.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt(e){var n=e.x,r=e.y,g=window,$=g.devicePixelRatio||1;return{x:Z(n*$)/$||0,y:Z(r*$)/$||0}}function ut(e){var n,r=e.popper,g=e.popperRect,$=e.placement,L=e.variation,k=e.offsets,oe=e.position,re=e.gpuAcceleration,ae=e.adaptive,le=e.roundOffsets,ue=e.isFixed,pe=k.x,de=pe===void 0?0:pe,Fe=k.y,ze=Fe===void 0?0:Fe,Ce=typeof le=="function"?le({x:de,y:ze}):{x:de,y:ze};de=Ce.x,ze=Ce.y;var Ie=k.hasOwnProperty("x"),_e=k.hasOwnProperty("y"),At=P$2,qe=E$2,xe=window;if(ae){var Ve=se(r),he="clientHeight",Oe="clientWidth";if(Ve===H(r)&&(Ve=I$1(r),N$1(Ve).position!=="static"&&oe==="absolute"&&(he="scrollHeight",Oe="scrollWidth")),Ve=Ve,$===E$2||($===P$2||$===W$1)&&L===J){qe=R;var $e=ue&&Ve===xe&&xe.visualViewport?xe.visualViewport.height:Ve[he];ze-=$e-g.height,ze*=re?1:-1}if($===P$2||($===E$2||$===R)&&L===J){At=W$1;var Ne=ue&&Ve===xe&&xe.visualViewport?xe.visualViewport.width:Ve[Oe];de-=Ne-g.width,de*=re?1:-1}}var Ue=Object.assign({position:oe},ae&&qt),kt=le===!0?Vt({x:de,y:ze}):{x:de,y:ze};if(de=kt.x,ze=kt.y,re){var Et;return Object.assign({},Ue,(Et={},Et[qe]=_e?"0":"",Et[At]=Ie?"0":"",Et.transform=(xe.devicePixelRatio||1)<=1?"translate("+de+"px, "+ze+"px)":"translate3d("+de+"px, "+ze+"px, 0)",Et))}return Object.assign({},Ue,(n={},n[qe]=_e?ze+"px":"",n[At]=Ie?de+"px":"",n.transform="",n))}function Nt(e){var n=e.state,r=e.options,g=r.gpuAcceleration,$=g===void 0?!0:g,L=r.adaptive,k=L===void 0?!0:L,oe=r.roundOffsets,re=oe===void 0?!0:oe,ae={placement:q(n.placement),variation:te(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:$,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,ut(Object.assign({},ae,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:k,roundOffsets:re})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,ut(Object.assign({},ae,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:re})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt,data:{}},ye={passive:!0};function It(e){var n=e.state,r=e.instance,g=e.options,$=g.scroll,L=$===void 0?!0:$,k=g.resize,oe=k===void 0?!0:k,re=H(n.elements.popper),ae=[].concat(n.scrollParents.reference,n.scrollParents.popper);return L&&ae.forEach(function(le){le.addEventListener("scroll",r.update,ye)}),oe&&re.addEventListener("resize",r.update,ye),function(){L&&ae.forEach(function(le){le.removeEventListener("scroll",r.update,ye)}),oe&&re.removeEventListener("resize",r.update,ye)}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It,data:{}},_t={left:"right",right:"left",bottom:"top",top:"bottom"};function be(e){return e.replace(/left|right|bottom|top/g,function(n){return _t[n]})}var zt={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(n){return zt[n]})}function We(e){var n=H(e),r=n.pageXOffset,g=n.pageYOffset;return{scrollLeft:r,scrollTop:g}}function Be(e){return ee(I$1(e)).left+We(e).scrollLeft}function Ft(e){var n=H(e),r=I$1(e),g=n.visualViewport,$=r.clientWidth,L=r.clientHeight,k=0,oe=0;return g&&($=g.width,L=g.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(k=g.offsetLeft,oe=g.offsetTop)),{width:$,height:L,x:k+Be(e),y:oe}}function Ut(e){var n,r=I$1(e),g=We(e),$=(n=e.ownerDocument)==null?void 0:n.body,L=X$1(r.scrollWidth,r.clientWidth,$?$.scrollWidth:0,$?$.clientWidth:0),k=X$1(r.scrollHeight,r.clientHeight,$?$.scrollHeight:0,$?$.clientHeight:0),oe=-g.scrollLeft+Be(e),re=-g.scrollTop;return N$1($||r).direction==="rtl"&&(oe+=X$1(r.clientWidth,$?$.clientWidth:0)-L),{width:L,height:k,x:oe,y:re}}function Se(e){var n=N$1(e),r=n.overflow,g=n.overflowX,$=n.overflowY;return/auto|scroll|overlay|hidden/.test(r+$+g)}function dt(e){return["html","body","#document"].indexOf(C$2(e))>=0?e.ownerDocument.body:B$1(e)&&Se(e)?e:dt(ge(e))}function ce(e,n){var r;n===void 0&&(n=[]);var g=dt(e),$=g===((r=e.ownerDocument)==null?void 0:r.body),L=H(g),k=$?[L].concat(L.visualViewport||[],Se(g)?g:[]):g,oe=n.concat(k);return $?oe:oe.concat(ce(ge(k)))}function Te(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xt(e){var n=ee(e);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ht(e,n){return n===je?Te(Ft(e)):Q(n)?Xt(n):Te(Ut(I$1(e)))}function Yt(e){var n=ce(ge(e)),r=["absolute","fixed"].indexOf(N$1(e).position)>=0,g=r&&B$1(e)?se(e):e;return Q(g)?n.filter(function($){return Q($)&&it($,g)&&C$2($)!=="body"}):[]}function Gt(e,n,r){var g=n==="clippingParents"?Yt(e):[].concat(n),$=[].concat(g,[r]),L=$[0],k=$.reduce(function(oe,re){var ae=ht(e,re);return oe.top=X$1(ae.top,oe.top),oe.right=ve(ae.right,oe.right),oe.bottom=ve(ae.bottom,oe.bottom),oe.left=X$1(ae.left,oe.left),oe},ht(e,L));return k.width=k.right-k.left,k.height=k.bottom-k.top,k.x=k.left,k.y=k.top,k}function mt(e){var n=e.reference,r=e.element,g=e.placement,$=g?q(g):null,L=g?te(g):null,k=n.x+n.width/2-r.width/2,oe=n.y+n.height/2-r.height/2,re;switch($){case E$2:re={x:k,y:n.y-r.height};break;case R:re={x:k,y:n.y+n.height};break;case W$1:re={x:n.x+n.width,y:oe};break;case P$2:re={x:n.x-r.width,y:oe};break;default:re={x:n.x,y:n.y}}var ae=$?Le($):null;if(ae!=null){var le=ae==="y"?"height":"width";switch(L){case U$2:re[ae]=re[ae]-(n[le]/2-r[le]/2);break;case J:re[ae]=re[ae]+(n[le]/2-r[le]/2);break}}return re}function ne(e,n){n===void 0&&(n={});var r=n,g=r.placement,$=g===void 0?e.placement:g,L=r.boundary,k=L===void 0?Xe:L,oe=r.rootBoundary,re=oe===void 0?je:oe,ae=r.elementContext,le=ae===void 0?K:ae,ue=r.altBoundary,pe=ue===void 0?!1:ue,de=r.padding,Fe=de===void 0?0:de,ze=ft(typeof Fe!="number"?Fe:ct(Fe,G)),Ce=le===K?Ye:K,Ie=e.rects.popper,_e=e.elements[pe?Ce:le],At=Gt(Q(_e)?_e:_e.contextElement||I$1(e.elements.popper),k,re),qe=ee(e.elements.reference),xe=mt({reference:qe,element:Ie,strategy:"absolute",placement:$}),Ve=Te(Object.assign({},Ie,xe)),he=le===K?Ve:qe,Oe={top:At.top-he.top+ze.top,bottom:he.bottom-At.bottom+ze.bottom,left:At.left-he.left+ze.left,right:he.right-At.right+ze.right},$e=e.modifiersData.offset;if(le===K&&$e){var Ne=$e[$];Object.keys(Oe).forEach(function(Ue){var kt=[W$1,R].indexOf(Ue)>=0?1:-1,Et=[E$2,R].indexOf(Ue)>=0?"y":"x";Oe[Ue]+=Ne[Et]*kt})}return Oe}function Jt(e,n){n===void 0&&(n={});var r=n,g=r.placement,$=r.boundary,L=r.rootBoundary,k=r.padding,oe=r.flipVariations,re=r.allowedAutoPlacements,ae=re===void 0?Ee:re,le=te(g),ue=le?oe?De:De.filter(function(Fe){return te(Fe)===le}):G,pe=ue.filter(function(Fe){return ae.indexOf(Fe)>=0});pe.length===0&&(pe=ue);var de=pe.reduce(function(Fe,ze){return Fe[ze]=ne(e,{placement:ze,boundary:$,rootBoundary:L,padding:k})[q(ze)],Fe},{});return Object.keys(de).sort(function(Fe,ze){return de[Fe]-de[ze]})}function Kt(e){if(q(e)===me)return[];var n=be(e);return[lt(e),n,lt(n)]}function Qt(e){var n=e.state,r=e.options,g=e.name;if(!n.modifiersData[g]._skip){for(var $=r.mainAxis,L=$===void 0?!0:$,k=r.altAxis,oe=k===void 0?!0:k,re=r.fallbackPlacements,ae=r.padding,le=r.boundary,ue=r.rootBoundary,pe=r.altBoundary,de=r.flipVariations,Fe=de===void 0?!0:de,ze=r.allowedAutoPlacements,Ce=n.options.placement,Ie=q(Ce),_e=Ie===Ce,At=re||(_e||!Fe?[be(Ce)]:Kt(Ce)),qe=[Ce].concat(At).reduce(function(En,An){return En.concat(q(An)===me?Jt(n,{placement:An,boundary:le,rootBoundary:ue,padding:ae,flipVariations:Fe,allowedAutoPlacements:ze}):An)},[]),xe=n.rects.reference,Ve=n.rects.popper,he=new Map,Oe=!0,$e=qe[0],Ne=0;Ne=0,Lt=Pt?"width":"height",vn=ne(n,{placement:Ue,boundary:le,rootBoundary:ue,altBoundary:pe,padding:ae}),hn=Pt?Et?W$1:P$2:Et?R:E$2;xe[Lt]>Ve[Lt]&&(hn=be(hn));var Dt=be(hn),jt=[];if(L&&jt.push(vn[kt]<=0),oe&&jt.push(vn[hn]<=0,vn[Dt]<=0),jt.every(function(En){return En})){$e=Ue,Oe=!1;break}he.set(Ue,jt)}if(Oe)for(var bn=Fe?3:1,Sn=function(En){var An=qe.find(function(In){var $n=he.get(In);if($n)return $n.slice(0,En).every(function(Pn){return Pn})});if(An)return $e=An,"break"},Cn=bn;Cn>0;Cn--){var On=Sn(Cn);if(On==="break")break}n.placement!==$e&&(n.modifiersData[g]._skip=!0,n.placement=$e,n.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt(e,n,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-n.height-r.y,right:e.right-n.width+r.x,bottom:e.bottom-n.height+r.y,left:e.left-n.width-r.x}}function yt(e){return[E$2,W$1,R,P$2].some(function(n){return e[n]>=0})}function Zt(e){var n=e.state,r=e.name,g=n.rects.reference,$=n.rects.popper,L=n.modifiersData.preventOverflow,k=ne(n,{elementContext:"reference"}),oe=ne(n,{altBoundary:!0}),re=gt(k,g),ae=gt(oe,$,L),le=yt(re),ue=yt(ae);n.modifiersData[r]={referenceClippingOffsets:re,popperEscapeOffsets:ae,isReferenceHidden:le,hasPopperEscaped:ue},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":le,"data-popper-escaped":ue})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en(e,n,r){var g=q(e),$=[P$2,E$2].indexOf(g)>=0?-1:1,L=typeof r=="function"?r(Object.assign({},n,{placement:e})):r,k=L[0],oe=L[1];return k=k||0,oe=(oe||0)*$,[P$2,W$1].indexOf(g)>=0?{x:oe,y:k}:{x:k,y:oe}}function tn(e){var n=e.state,r=e.options,g=e.name,$=r.offset,L=$===void 0?[0,0]:$,k=Ee.reduce(function(le,ue){return le[ue]=en(ue,n.rects,L),le},{}),oe=k[n.placement],re=oe.x,ae=oe.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=re,n.modifiersData.popperOffsets.y+=ae),n.modifiersData[g]=k}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn(e){var n=e.state,r=e.name;n.modifiersData[r]=mt({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn(e){return e==="x"?"y":"x"}function on$1(e){var n=e.state,r=e.options,g=e.name,$=r.mainAxis,L=$===void 0?!0:$,k=r.altAxis,oe=k===void 0?!1:k,re=r.boundary,ae=r.rootBoundary,le=r.altBoundary,ue=r.padding,pe=r.tether,de=pe===void 0?!0:pe,Fe=r.tetherOffset,ze=Fe===void 0?0:Fe,Ce=ne(n,{boundary:re,rootBoundary:ae,padding:ue,altBoundary:le}),Ie=q(n.placement),_e=te(n.placement),At=!_e,qe=Le(Ie),xe=rn(qe),Ve=n.modifiersData.popperOffsets,he=n.rects.reference,Oe=n.rects.popper,$e=typeof ze=="function"?ze(Object.assign({},n.rects,{placement:n.placement})):ze,Ne=typeof $e=="number"?{mainAxis:$e,altAxis:$e}:Object.assign({mainAxis:0,altAxis:0},$e),Ue=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,kt={x:0,y:0};if(Ve){if(L){var Et,Pt=qe==="y"?E$2:P$2,Lt=qe==="y"?R:W$1,vn=qe==="y"?"height":"width",hn=Ve[qe],Dt=hn+Ce[Pt],jt=hn-Ce[Lt],bn=de?-Oe[vn]/2:0,Sn=_e===U$2?he[vn]:Oe[vn],Cn=_e===U$2?-Oe[vn]:-he[vn],On=n.elements.arrow,En=de&&On?ke(On):{width:0,height:0},An=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:st(),In=An[Pt],$n=An[Lt],Pn=fe(0,he[vn],En[vn]),Dn=At?he[vn]/2-bn-Pn-In-Ne.mainAxis:Sn-Pn-In-Ne.mainAxis,Mn=At?-he[vn]/2+bn+Pn+$n+Ne.mainAxis:Cn+Pn+$n+Ne.mainAxis,Fn=n.elements.arrow&&se(n.elements.arrow),kn=Fn?qe==="y"?Fn.clientTop||0:Fn.clientLeft||0:0,Nn=(Et=Ue?.[qe])!=null?Et:0,Rn=hn+Dn-Nn-kn,wn=hn+Mn-Nn,Tn=fe(de?ve(Dt,Rn):Dt,hn,de?X$1(jt,wn):jt);Ve[qe]=Tn,kt[qe]=Tn-hn}if(oe){var xn,Bn=qe==="x"?E$2:P$2,Ln=qe==="x"?R:W$1,Hn=Ve[xe],zn=xe==="y"?"height":"width",Jn=Hn+Ce[Bn],co=Hn-Ce[Ln],Gn=[E$2,P$2].indexOf(Ie)!==-1,eo=(xn=Ue?.[xe])!=null?xn:0,ao=Gn?Jn:Hn-he[zn]-Oe[zn]-eo+Ne.altAxis,ho=Gn?Hn+he[zn]+Oe[zn]-eo-Ne.altAxis:co,Yn=de&&Gn?St(ao,Hn,ho):fe(de?ao:Jn,Hn,de?ho:co);Ve[xe]=Yn,kt[xe]=Yn-Hn}n.modifiersData[g]=kt}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on$1,requiresIfExists:["offset"]};function an(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sn(e){return e===H(e)||!B$1(e)?We(e):an(e)}function fn(e){var n=e.getBoundingClientRect(),r=Z(n.width)/e.offsetWidth||1,g=Z(n.height)/e.offsetHeight||1;return r!==1||g!==1}function cn(e,n,r){r===void 0&&(r=!1);var g=B$1(n),$=B$1(n)&&fn(n),L=I$1(n),k=ee(e,$),oe={scrollLeft:0,scrollTop:0},re={x:0,y:0};return(g||!g&&!r)&&((C$2(n)!=="body"||Se(L))&&(oe=sn(n)),B$1(n)?(re=ee(n,!0),re.x+=n.clientLeft,re.y+=n.clientTop):L&&(re.x=Be(L))),{x:k.left+oe.scrollLeft-re.x,y:k.top+oe.scrollTop-re.y,width:k.width,height:k.height}}function pn(e){var n=new Map,r=new Set,g=[];e.forEach(function(L){n.set(L.name,L)});function $(L){r.add(L.name);var k=[].concat(L.requires||[],L.requiresIfExists||[]);k.forEach(function(oe){if(!r.has(oe)){var re=n.get(oe);re&&$(re)}}),g.push(L)}return e.forEach(function(L){r.has(L.name)||$(L)}),g}function un(e){var n=pn(e);return ot.reduce(function(r,g){return r.concat(n.filter(function($){return $.phase===g}))},[])}function ln(e){var n;return function(){return n||(n=new Promise(function(r){Promise.resolve().then(function(){n=void 0,r(e())})})),n}}function dn(e){var n=e.reduce(function(r,g){var $=r[g.name];return r[g.name]=$?Object.assign({},$,g,{options:Object.assign({},$.options,g.options),data:Object.assign({},$.data,g.data)}):g,r},{});return Object.keys(n).map(function(r){return n[r]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var e=arguments.length,n=new Array(e),r=0;r{const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:g=>{const $=g.tagName==="INPUT"&&g.type==="hidden";return g.disabled||g.hidden||$?NodeFilter.FILTER_SKIP:g.tabIndex>=0||g===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n},getVisibleElement=(e,n)=>{for(const r of e)if(!isHidden(r,n))return r},isHidden=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},getEdges=e=>{const n=obtainAllFocusableElements(e),r=getVisibleElement(n,e),g=getVisibleElement(n.reverse(),e);return[r,g]},isSelectable=e=>e instanceof HTMLInputElement&&"select"in e,tryFocus=(e,n)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&isSelectable(e)&&n&&e.select()}};function removeFromStack(e,n){const r=[...e],g=e.indexOf(n);return g!==-1&&r.splice(g,1),r}const createFocusableStack=()=>{let e=[];return{push:g=>{const $=e[0];$&&g!==$&&$.pause(),e=removeFromStack(e,g),e.unshift(g)},remove:g=>{var $,L;e=removeFromStack(e,g),(L=($=e[0])==null?void 0:$.resume)==null||L.call($)}}},focusFirstDescendant=(e,n=!1)=>{const r=document.activeElement;for(const g of e)if(tryFocus(g,n),document.activeElement!==r)return},focusableStack=createFocusableStack(),FOCUS_AFTER_TRAPPED="focus-trap.focus-after-trapped",FOCUS_AFTER_RELEASED="focus-trap.focus-after-released",FOCUS_AFTER_TRAPPED_OPTS={cancelable:!0,bubbles:!1},ON_TRAP_FOCUS_EVT="focusAfterTrapped",ON_RELEASE_FOCUS_EVT="focusAfterReleased",FOCUS_TRAP_INJECTION_KEY=Symbol("elFocusTrap"),_sfc_main$2B=defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ON_TRAP_FOCUS_EVT,ON_RELEASE_FOCUS_EVT,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const r=ref();let g,$;useEscapeKeydown(de=>{e.trapped&&!L.paused&&n("release-requested",de)});const L={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},k=de=>{if(!e.loop&&!e.trapped||L.paused)return;const{key:Fe,altKey:ze,ctrlKey:Ce,metaKey:Ie,currentTarget:_e,shiftKey:At}=de,{loop:qe}=e,xe=Fe===EVENT_CODE.tab&&!ze&&!Ce&&!Ie,Ve=document.activeElement;if(xe&&Ve){const he=_e,[Oe,$e]=getEdges(he);Oe&&$e?!At&&Ve===$e?(de.preventDefault(),qe&&tryFocus(Oe,!0),n("focusout-prevented")):At&&[Oe,he].includes(Ve)&&(de.preventDefault(),qe&&tryFocus($e,!0),n("focusout-prevented")):Ve===he&&(de.preventDefault(),n("focusout-prevented"))}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:r,onKeydown:k}),watch(()=>e.focusTrapEl,de=>{de&&(r.value=de)},{immediate:!0}),watch([r],([de],[Fe])=>{de&&(de.addEventListener("keydown",k),de.addEventListener("focusin",ae),de.addEventListener("focusout",le)),Fe&&(Fe.removeEventListener("keydown",k),Fe.removeEventListener("focusin",ae),Fe.removeEventListener("focusout",le))});const oe=de=>{n(ON_TRAP_FOCUS_EVT,de)},re=de=>n(ON_RELEASE_FOCUS_EVT,de),ae=de=>{const Fe=unref(r);if(!Fe)return;const ze=de.target,Ce=ze&&Fe.contains(ze);Ce&&n("focusin",de),!L.paused&&e.trapped&&(Ce?$=ze:tryFocus($,!0))},le=de=>{const Fe=unref(r);if(!(L.paused||!Fe))if(e.trapped){const ze=de.relatedTarget;!isNil(ze)&&!Fe.contains(ze)&&setTimeout(()=>{!L.paused&&e.trapped&&tryFocus($,!0)},0)}else{const ze=de.target;ze&&Fe.contains(ze)||n("focusout",de)}};async function ue(){await nextTick();const de=unref(r);if(de){focusableStack.push(L);const Fe=document.activeElement;if(g=Fe,!de.contains(Fe)){const Ce=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);de.addEventListener(FOCUS_AFTER_TRAPPED,oe),de.dispatchEvent(Ce),Ce.defaultPrevented||nextTick(()=>{let Ie=e.focusStartEl;isString$2(Ie)||(tryFocus(Ie),document.activeElement!==Ie&&(Ie="first")),Ie==="first"&&focusFirstDescendant(obtainAllFocusableElements(de),!0),(document.activeElement===Fe||Ie==="container")&&tryFocus(de)})}}}function pe(){const de=unref(r);if(de){de.removeEventListener(FOCUS_AFTER_TRAPPED,oe);const Fe=new Event(FOCUS_AFTER_RELEASED,FOCUS_AFTER_TRAPPED_OPTS);de.addEventListener(FOCUS_AFTER_RELEASED,re),de.dispatchEvent(Fe),Fe.defaultPrevented||tryFocus(g??document.body,!0),de.removeEventListener(FOCUS_AFTER_RELEASED,oe),focusableStack.remove(L)}}return onMounted(()=>{e.trapped&&ue(),watch(()=>e.trapped,de=>{de?ue():pe()})}),onBeforeUnmount(()=>{e.trapped&&pe()}),{onKeydown:k}}});function _sfc_render$19(e,n,r,g,$,L){return renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var ElFocusTrap=_export_sfc$2(_sfc_main$2B,[["render",_sfc_render$19],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const POSITIONING_STRATEGIES=["fixed","absolute"],usePopperCoreConfigProps=buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:definePropType(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ee,default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}}),usePopperContentProps=buildProps({...usePopperCoreConfigProps,id:String,style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:definePropType([String,Array,Object])},popperStyle:{type:definePropType([String,Array,Object])},referenceEl:{type:definePropType(Object)},triggerTargetEl:{type:definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),usePopperContentEmits=["mouseenter","mouseleave","focus","blur","close"],buildPopperOptions=(e,n)=>{const{placement:r,strategy:g,popperOptions:$}=e,L={placement:r,strategy:g,...$,modifiers:genModifiers(e)};return attachArrow(L,n),deriveExtraModifiers(L,$?.modifiers),L},unwrapMeasurableEl=e=>{if(!!isClient)return unrefElement(e)};function genModifiers(e){const{offset:n,gpuAcceleration:r,fallbackPlacements:g}=e;return[{name:"offset",options:{offset:[0,n??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:g??[]}},{name:"computeStyles",options:{gpuAcceleration:r,adaptive:r}}]}function attachArrow(e,{arrowEl:n,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:n,padding:r??5}})}function deriveExtraModifiers(e,n){n&&(e.modifiers=[...e.modifiers,...n??[]])}const __default__$1h={name:"ElPopperContent"},_sfc_main$2A=defineComponent({...__default__$1h,props:usePopperContentProps,emits:usePopperContentEmits,setup(e,{expose:n,emit:r}){const g=e,{popperInstanceRef:$,contentRef:L,triggerRef:k,role:oe}=inject(POPPER_INJECTION_KEY,void 0),re=inject(formItemContextKey,void 0),{nextZIndex:ae}=useZIndex(),le=useNamespace("popper"),ue=ref(),pe=ref("first"),de=ref(),Fe=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowRef:de,arrowOffset:Fe}),re&&(re.addInputId||re.removeInputId)&&provide(formItemContextKey,{...re,addInputId:NOOP,removeInputId:NOOP});const ze=ref(g.zIndex||ae()),Ce=ref(!1);let Ie;const _e=computed(()=>unwrapMeasurableEl(g.referenceEl)||unref(k)),At=computed(()=>[{zIndex:unref(ze)},g.popperStyle]),qe=computed(()=>[le.b(),le.is("pure",g.pure),le.is(g.effect),g.popperClass]),xe=computed(()=>oe&&oe.value==="dialog"?"false":void 0),Ve=({referenceEl:Pt,popperContentEl:Lt,arrowEl:vn})=>{const hn=buildPopperOptions(g,{arrowEl:vn,arrowOffset:unref(Fe)});return yn(Pt,Lt,hn)},he=(Pt=!0)=>{var Lt;(Lt=unref($))==null||Lt.update(),Pt&&(ze.value=g.zIndex||ae())},Oe=()=>{var Pt,Lt;const vn={name:"eventListeners",enabled:g.visible};(Lt=(Pt=unref($))==null?void 0:Pt.setOptions)==null||Lt.call(Pt,hn=>({...hn,modifiers:[...hn.modifiers||[],vn]})),he(!1),g.visible&&g.focusOnShow?Ce.value=!0:g.visible===!1&&(Ce.value=!1)},$e=()=>{r("focus")},Ne=()=>{pe.value="first",r("blur")},Ue=Pt=>{var Lt;g.visible&&!Ce.value&&(Pt.target&&(pe.value=Pt.target),Ce.value=!0,Pt.relatedTarget&&((Lt=Pt.relatedTarget)==null||Lt.focus()))},kt=()=>{g.trapping||(Ce.value=!1)},Et=()=>{Ce.value=!1,r("close")};return onMounted(()=>{let Pt;watch(_e,Lt=>{var vn;Pt?.();const hn=unref($);if((vn=hn?.destroy)==null||vn.call(hn),Lt){const Dt=unref(ue);L.value=Dt,$.value=Ve({referenceEl:Lt,popperContentEl:Dt,arrowEl:unref(de)}),Pt=watch(()=>Lt.getBoundingClientRect(),()=>he(),{immediate:!0})}else $.value=void 0},{immediate:!0}),watch(()=>g.triggerTargetEl,(Lt,vn)=>{Ie?.(),Ie=void 0;const hn=unref(Lt||ue.value),Dt=unref(vn||ue.value);if(isElement$1(hn)){const{ariaLabel:jt,id:bn}=toRefs(g);Ie=watch([oe,jt,xe,bn],Sn=>{["role","aria-label","aria-modal","id"].forEach((Cn,On)=>{isNil(Sn[On])?hn.removeAttribute(Cn):hn.setAttribute(Cn,Sn[On])})},{immediate:!0})}isElement$1(Dt)&&["role","aria-label","aria-modal","id"].forEach(jt=>{Dt.removeAttribute(jt)})},{immediate:!0}),watch(()=>g.visible,Oe,{immediate:!0}),watch(()=>buildPopperOptions(g,{arrowEl:unref(de),arrowOffset:unref(Fe)}),Lt=>{var vn;return(vn=$.value)==null?void 0:vn.setOptions(Lt)})}),onBeforeUnmount(()=>{Ie?.(),Ie=void 0}),n({popperContentRef:ue,popperInstanceRef:$,updatePopper:he,contentStyle:At}),(Pt,Lt)=>(openBlock(),createElementBlock("div",{ref_key:"popperContentRef",ref:ue,style:normalizeStyle(unref(At)),class:normalizeClass(unref(qe)),tabindex:"-1",onMouseenter:Lt[0]||(Lt[0]=vn=>Pt.$emit("mouseenter",vn)),onMouseleave:Lt[1]||(Lt[1]=vn=>Pt.$emit("mouseleave",vn))},[createVNode(unref(ElFocusTrap),{trapped:Ce.value,"trap-on-focus-in":!0,"focus-trap-el":ue.value,"focus-start-el":pe.value,onFocusAfterTrapped:$e,onFocusAfterReleased:Ne,onFocusin:Ue,onFocusoutPrevented:kt,onReleaseRequested:Et},{default:withCtx(()=>[renderSlot(Pt.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var ElPopperContent=_export_sfc$2(_sfc_main$2A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ElPopper=withInstall(Popper),ns=useNamespace("tooltip"),useTooltipContentProps=buildProps({...useDelayedToggleProps,...usePopperContentProps,appendTo:{type:definePropType([String,Object]),default:POPPER_CONTAINER_SELECTOR},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:definePropType(Boolean),default:null},transition:{type:String,default:`${ns.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),useTooltipTriggerProps=buildProps({...usePopperTriggerProps,disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.space]}}),useTooltipProps=buildProps({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),TOOLTIP_INJECTION_KEY=Symbol("elTooltip"),_sfc_main$2z=defineComponent({name:"ElTooltipContent",components:{ElPopperContent},inheritAttrs:!1,props:useTooltipContentProps,setup(e){const n=ref(null),r=ref(!1),g=ref(!1),$=ref(!1),L=ref(!1),{controlled:k,id:oe,open:re,trigger:ae,onClose:le,onOpen:ue,onShow:pe,onHide:de,onBeforeShow:Fe,onBeforeHide:ze}=inject(TOOLTIP_INJECTION_KEY,void 0),Ce=computed(()=>e.persistent);onBeforeUnmount(()=>{L.value=!0});const Ie=computed(()=>unref(Ce)?!0:unref(re)),_e=computed(()=>e.disabled?!1:unref(re)),At=computed(()=>{var Pt;return(Pt=e.style)!=null?Pt:{}}),qe=computed(()=>!unref(re)),xe=()=>{de()},Ve=()=>{if(unref(k))return!0},he=composeEventHandlers(Ve,()=>{e.enterable&&unref(ae)==="hover"&&ue()}),Oe=composeEventHandlers(Ve,()=>{unref(ae)==="hover"&&le()}),$e=()=>{var Pt,Lt;(Lt=(Pt=n.value)==null?void 0:Pt.updatePopper)==null||Lt.call(Pt),Fe?.()},Ne=()=>{ze?.()},Ue=()=>{pe(),Et=onClickOutside(computed(()=>{var Pt;return(Pt=n.value)==null?void 0:Pt.popperContentRef}),()=>{if(unref(k))return;unref(ae)!=="hover"&&le()})},kt=()=>{e.virtualTriggering||le()};let Et;return watch(()=>unref(re),Pt=>{Pt||Et?.()},{flush:"post"}),{ariaHidden:qe,entering:g,leaving:$,id:oe,intermediateOpen:r,contentStyle:At,contentRef:n,destroyed:L,shouldRender:Ie,shouldShow:_e,onClose:le,open:re,onAfterShow:Ue,onBeforeEnter:$e,onBeforeLeave:Ne,onContentEnter:he,onContentLeave:Oe,onTransitionLeave:xe,onBlur:kt}}});function _sfc_render$18(e,n,r,g,$,L){const k=resolveComponent("el-popper-content");return openBlock(),createBlock(Teleport,{disabled:!e.teleported,to:e.appendTo},[createVNode(Transition,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:withCtx(()=>[e.shouldRender?withDirectives((openBlock(),createBlock(k,mergeProps({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:withCtx(()=>[createCommentVNode(" Workaround bug #6378 "),e.destroyed?createCommentVNode("v-if",!0):renderSlot(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[vShow,e.shouldShow]]):createCommentVNode("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var ElTooltipContent=_export_sfc$2(_sfc_main$2z,[["render",_sfc_render$18],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const isTriggerType=(e,n)=>isArray$4(e)?e.includes(n):e===n,whenTrigger=(e,n,r)=>g=>{isTriggerType(unref(e),n)&&r(g)},_sfc_main$2y=defineComponent({name:"ElTooltipTrigger",components:{ElPopperTrigger},props:useTooltipTriggerProps,setup(e){const n=useNamespace("tooltip"),{controlled:r,id:g,open:$,onOpen:L,onClose:k,onToggle:oe}=inject(TOOLTIP_INJECTION_KEY,void 0),re=ref(null),ae=()=>{if(unref(r)||e.disabled)return!0},le=toRef(e,"trigger"),ue=composeEventHandlers(ae,whenTrigger(le,"hover",L)),pe=composeEventHandlers(ae,whenTrigger(le,"hover",k)),de=composeEventHandlers(ae,whenTrigger(le,"click",_e=>{_e.button===0&&oe(_e)})),Fe=composeEventHandlers(ae,whenTrigger(le,"focus",L)),ze=composeEventHandlers(ae,whenTrigger(le,"focus",k)),Ce=composeEventHandlers(ae,whenTrigger(le,"contextmenu",_e=>{_e.preventDefault(),oe(_e)})),Ie=composeEventHandlers(ae,_e=>{const{code:At}=_e;e.triggerKeys.includes(At)&&(_e.preventDefault(),oe(_e))});return{onBlur:ze,onContextMenu:Ce,onFocus:Fe,onMouseenter:ue,onMouseleave:pe,onClick:de,onKeydown:Ie,open:$,id:g,triggerRef:re,ns:n}}});function _sfc_render$17(e,n,r,g,$,L){const k=resolveComponent("el-popper-trigger");return openBlock(),createBlock(k,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:normalizeClass(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:withCtx(()=>[renderSlot(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var ElTooltipTrigger=_export_sfc$2(_sfc_main$2y,[["render",_sfc_render$17],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps,useModelToggle,useModelToggleEmits}=createModelToggleComposable("visible"),_sfc_main$2x=defineComponent({name:"ElTooltip",components:{ElPopper,ElPopperArrow,ElTooltipContent,ElTooltipTrigger},props:{...usePopperProps,...useModelToggleProps,...useTooltipContentProps,...useTooltipTriggerProps,...usePopperArrowProps,...useTooltipProps},emits:[...useModelToggleEmits,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:n}){usePopperContainer();const r=computed(()=>(isUndefined(e.openDelay),e.openDelay||e.showAfter)),g=computed(()=>(isUndefined(e.visibleArrow),isBoolean(e.visibleArrow)?e.visibleArrow:e.showArrow)),$=useId(),L=ref(null),k=ref(null),oe=()=>{var Ie;const _e=unref(L);_e&&((Ie=_e.popperInstanceRef)==null||Ie.update())},re=ref(!1),ae=ref(void 0),{show:le,hide:ue,hasUpdateHandler:pe}=useModelToggle({indicator:re,toggleReason:ae}),{onOpen:de,onClose:Fe}=useDelayedToggle({showAfter:r,hideAfter:toRef(e,"hideAfter"),open:le,close:ue}),ze=computed(()=>isBoolean(e.visible)&&!pe.value);provide(TOOLTIP_INJECTION_KEY,{controlled:ze,id:$,open:readonly(re),trigger:toRef(e,"trigger"),onOpen:Ie=>{de(Ie)},onClose:Ie=>{Fe(Ie)},onToggle:Ie=>{unref(re)?Fe(Ie):de(Ie)},onShow:()=>{n("show",ae.value)},onHide:()=>{n("hide",ae.value)},onBeforeShow:()=>{n("before-show",ae.value)},onBeforeHide:()=>{n("before-hide",ae.value)},updatePopper:oe}),watch(()=>e.disabled,Ie=>{Ie&&re.value&&(re.value=!1)});const Ce=()=>{var Ie,_e;const At=(_e=(Ie=k.value)==null?void 0:Ie.contentRef)==null?void 0:_e.popperContentRef;return At&&At.contains(document.activeElement)};return onDeactivated(()=>re.value&&ue()),{compatShowAfter:r,compatShowArrow:g,popperRef:L,contentRef:k,open:re,hide:ue,isFocusInsideContent:Ce,updatePopper:oe,onOpen:de,onClose:Fe}}}),_hoisted_1$1y=["innerHTML"],_hoisted_2$13={key:1};function _sfc_render$16(e,n,r,g,$,L){const k=resolveComponent("el-tooltip-trigger"),oe=resolveComponent("el-popper-arrow"),re=resolveComponent("el-tooltip-content"),ae=resolveComponent("el-popper");return openBlock(),createBlock(ae,{ref:"popperRef",role:e.role},{default:withCtx(()=>[createVNode(k,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:withCtx(()=>[e.$slots.default?renderSlot(e.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(re,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:withCtx(()=>[renderSlot(e.$slots,"content",{},()=>[e.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:e.content},null,8,_hoisted_1$1y)):(openBlock(),createElementBlock("span",_hoisted_2$13,toDisplayString(e.content),1))]),e.compatShowArrow?(openBlock(),createBlock(oe,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var Tooltip=_export_sfc$2(_sfc_main$2x,[["render",_sfc_render$16],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ElTooltip=withInstall(Tooltip),autocompleteProps=buildProps({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:definePropType([Function,Array]),default:NOOP},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:useTooltipContentProps.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1}}),autocompleteEmits={[UPDATE_MODEL_EVENT]:e=>isString$2(e),[INPUT_EVENT]:e=>isString$2(e),[CHANGE_EVENT]:e=>isString$2(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>isObject$4(e)},_hoisted_1$1x=["aria-expanded","aria-owns"],_hoisted_2$12={key:0},_hoisted_3$z=["id","aria-selected","onClick"],__default__$1g={name:"ElAutocomplete",inheritAttrs:!1},_sfc_main$2w=defineComponent({...__default__$1g,props:autocompleteProps,emits:autocompleteEmits,setup(e,{expose:n,emit:r}){const g=e,$="ElAutocomplete",L=useAttrs(),k=useAttrs$1(),oe=useDisabled$1(),re=useNamespace("autocomplete"),ae=ref(),le=ref(),ue=ref(),pe=ref();let de=!1;const Fe=ref([]),ze=ref(-1),Ce=ref(""),Ie=ref(!1),_e=ref(!1),At=ref(!1),qe=computed(()=>re.b(String(generateId()))),xe=computed(()=>k.style),Ve=computed(()=>(Fe.value.length>0||At.value)&&Ie.value),he=computed(()=>!g.hideLoading&&At.value),Oe=computed(()=>ae.value?Array.from(ae.value.$el.querySelectorAll("input")):[]),$e=async()=>{await nextTick(),Ve.value&&(Ce.value=`${ae.value.$el.offsetWidth}px`)},Ne=()=>{de=!0},Ue=()=>{de=!1,ze.value=-1},Et=debounce(async $n=>{if(_e.value)return;const Pn=Dn=>{At.value=!1,!_e.value&&(isArray$4(Dn)?(Fe.value=Dn,ze.value=g.highlightFirstItem?0:-1):throwError($,"autocomplete suggestions must be an array"))};if(At.value=!0,isArray$4(g.fetchSuggestions))Pn(g.fetchSuggestions);else{const Dn=await g.fetchSuggestions($n,Pn);isArray$4(Dn)&&Pn(Dn)}},g.debounce),Pt=$n=>{const Pn=!!$n;if(r(INPUT_EVENT,$n),r(UPDATE_MODEL_EVENT,$n),_e.value=!1,Ie.value||(Ie.value=Pn),!g.triggerOnFocus&&!$n){_e.value=!0,Fe.value=[];return}Et($n)},Lt=$n=>{var Pn;oe.value||(((Pn=$n.target)==null?void 0:Pn.tagName)!=="INPUT"||Oe.value.includes(document.activeElement))&&(Ie.value=!0)},vn=$n=>{r(CHANGE_EVENT,$n)},hn=$n=>{de||(Ie.value=!0,r("focus",$n),g.triggerOnFocus&&Et(String(g.modelValue)))},Dt=$n=>{de||r("blur",$n)},jt=()=>{Ie.value=!1,r(UPDATE_MODEL_EVENT,""),r("clear")},bn=async()=>{Ve.value&&ze.value>=0&&ze.value{Ve.value&&($n.preventDefault(),$n.stopPropagation(),Cn())},Cn=()=>{Ie.value=!1},On=()=>{var $n;($n=ae.value)==null||$n.focus()},En=()=>{var $n;($n=ae.value)==null||$n.blur()},An=async $n=>{r(INPUT_EVENT,$n[g.valueKey]),r(UPDATE_MODEL_EVENT,$n[g.valueKey]),r("select",$n),Fe.value=[],ze.value=-1},In=$n=>{if(!Ve.value||At.value)return;if($n<0){ze.value=-1;return}$n>=Fe.value.length&&($n=Fe.value.length-1);const Pn=le.value.querySelector(`.${re.be("suggestion","wrap")}`),Mn=Pn.querySelectorAll(`.${re.be("suggestion","list")} li`)[$n],Fn=Pn.scrollTop,{offsetTop:kn,scrollHeight:Nn}=Mn;kn+Nn>Fn+Pn.clientHeight&&(Pn.scrollTop+=Nn),kn{Ve.value&&Cn()}),onMounted(()=>{ae.value.ref.setAttribute("role","textbox"),ae.value.ref.setAttribute("aria-autocomplete","list"),ae.value.ref.setAttribute("aria-controls","id"),ae.value.ref.setAttribute("aria-activedescendant",`${qe.value}-item-${ze.value}`)}),n({highlightedIndex:ze,activated:Ie,loading:At,inputRef:ae,popperRef:ue,suggestions:Fe,handleSelect:An,handleKeyEnter:bn,focus:On,blur:En,close:Cn,highlight:In}),($n,Pn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:ue,visible:unref(Ve),placement:$n.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(re).e("popper"),$n.popperClass],teleported:$n.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(re).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:$e,onShow:Ne,onHide:Ue},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:le,class:normalizeClass([unref(re).b("suggestion"),unref(re).is("loading",unref(he))]),style:normalizeStyle({[$n.fitInputWidth?"width":"minWidth"]:Ce.value,outline:"none"}),role:"region"},[createVNode(unref(ElScrollbar),{id:unref(qe),tag:"ul","wrap-class":unref(re).be("suggestion","wrap"),"view-class":unref(re).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[unref(he)?(openBlock(),createElementBlock("li",_hoisted_2$12,[createVNode(unref(ElIcon),{class:normalizeClass(unref(re).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(Fe.value,(Dn,Mn)=>(openBlock(),createElementBlock("li",{id:`${unref(qe)}-item-${Mn}`,key:Mn,class:normalizeClass({highlighted:ze.value===Mn}),role:"option","aria-selected":ze.value===Mn,onClick:Fn=>An(Dn)},[renderSlot($n.$slots,"default",{item:Dn},()=>[createTextVNode(toDisplayString(Dn[$n.valueKey]),1)])],10,_hoisted_3$z))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:pe,class:normalizeClass([unref(re).b(),$n.$attrs.class]),style:normalizeStyle(unref(xe)),role:"combobox","aria-haspopup":"listbox","aria-expanded":unref(Ve),"aria-owns":unref(qe)},[createVNode(unref(ElInput),mergeProps({ref_key:"inputRef",ref:ae},unref(L),{"model-value":$n.modelValue,onInput:Pt,onChange:vn,onFocus:hn,onBlur:Dt,onClear:jt,onKeydown:[Pn[0]||(Pn[0]=withKeys(withModifiers(Dn=>In(ze.value-1),["prevent"]),["up"])),Pn[1]||(Pn[1]=withKeys(withModifiers(Dn=>In(ze.value+1),["prevent"]),["down"])),withKeys(bn,["enter"]),withKeys(Cn,["tab"]),withKeys(Sn,["esc"])],onMousedown:Lt}),createSlots({_:2},[$n.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot($n.$slots,"prepend")])}:void 0,$n.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot($n.$slots,"append")])}:void 0,$n.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot($n.$slots,"prefix")])}:void 0,$n.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot($n.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,_hoisted_1$1x)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Autocomplete=_export_sfc$2(_sfc_main$2w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const ElAutocomplete=withInstall(Autocomplete),avatarProps=buildProps({size:{type:[Number,String],values:componentSizes,default:"",validator:e=>isNumber(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:definePropType(String),default:"cover"}}),avatarEmits={error:e=>e instanceof Event},_hoisted_1$1w=["src","alt","srcset"],__default__$1f={name:"ElAvatar"},_sfc_main$2v=defineComponent({...__default__$1f,props:avatarProps,emits:avatarEmits,setup(e,{emit:n}){const r=e,g=useNamespace("avatar"),$=ref(!1),L=computed(()=>{const{size:ae,icon:le,shape:ue}=r,pe=[g.b()];return isString$2(ae)&&pe.push(g.m(ae)),le&&pe.push(g.m("icon")),ue&&pe.push(g.m(ue)),pe}),k=computed(()=>{const{size:ae}=r;return isNumber(ae)?g.cssVarBlock({size:addUnit(ae)||""}):void 0}),oe=computed(()=>({objectFit:r.fit}));watch(()=>r.src,()=>$.value=!1);function re(ae){$.value=!0,n("error",ae)}return(ae,le)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(L)),style:normalizeStyle(unref(k))},[(ae.src||ae.srcSet)&&!$.value?(openBlock(),createElementBlock("img",{key:0,src:ae.src,alt:ae.alt,srcset:ae.srcSet,style:normalizeStyle(unref(oe)),onError:re},null,44,_hoisted_1$1w)):ae.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ae.icon)))]),_:1})):renderSlot(ae.$slots,"default",{key:2})],6))}});var Avatar=_export_sfc$2(_sfc_main$2v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const ElAvatar=withInstall(Avatar),backtopProps={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},backtopEmits={click:e=>e instanceof MouseEvent},_hoisted_1$1v=["onClick"],__default__$1e={name:"ElBacktop"},_sfc_main$2u=defineComponent({...__default__$1e,props:backtopProps,emits:backtopEmits,setup(e,{emit:n}){const r=e,g="ElBacktop",$=useNamespace("backtop"),L=shallowRef(),k=shallowRef(),oe=ref(!1),re=computed(()=>({right:`${r.right}px`,bottom:`${r.bottom}px`})),ae=()=>{if(!L.value)return;const de=Date.now(),Fe=L.value.scrollTop,ze=()=>{if(!L.value)return;const Ce=(Date.now()-de)/500;Ce<1?(L.value.scrollTop=Fe*(1-easeInOutCubic(Ce)),requestAnimationFrame(ze)):L.value.scrollTop=0};requestAnimationFrame(ze)},le=()=>{L.value&&(oe.value=L.value.scrollTop>=r.visibilityHeight)},ue=de=>{ae(),n("click",de)},pe=useThrottleFn(le,300);return useEventListener(k,"scroll",pe),onMounted(()=>{var de;k.value=document,L.value=document.documentElement,r.target&&(L.value=(de=document.querySelector(r.target))!=null?de:void 0,L.value||throwError(g,`target is not existed: ${r.target}`),k.value=L.value)}),(de,Fe)=>(openBlock(),createBlock(Transition,{name:`${unref($).namespace.value}-fade-in`},{default:withCtx(()=>[oe.value?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle(unref(re)),class:normalizeClass(unref($).b()),onClick:withModifiers(ue,["stop"])},[renderSlot(de.$slots,"default",{},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref($).e("icon"))},{default:withCtx(()=>[createVNode(unref(caret_top_default))]),_:1},8,["class"])])],14,_hoisted_1$1v)):createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var Backtop=_export_sfc$2(_sfc_main$2u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const ElBacktop=withInstall(Backtop),badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),_hoisted_1$1u=["textContent"],__default__$1d={name:"ElBadge"},_sfc_main$2t=defineComponent({...__default__$1d,props:badgeProps,setup(e,{expose:n}){const r=e,g=useNamespace("badge"),$=computed(()=>r.isDot?"":isNumber(r.value)&&isNumber(r.max)?r.max(openBlock(),createElementBlock("div",{class:normalizeClass(unref(g).b())},[renderSlot(L.$slots,"default"),createVNode(Transition,{name:`${unref(g).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(g).e("content"),unref(g).em("content",L.type),unref(g).is("fixed",!!L.$slots.default),unref(g).is("dot",L.isDot)]),textContent:toDisplayString(unref($))},null,10,_hoisted_1$1u),[[vShow,!L.hidden&&(unref($)||L.isDot)]])]),_:1},8,["name"])],2))}});var Badge=_export_sfc$2(_sfc_main$2t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const ElBadge=withInstall(Badge),breadcrumbProps=buildProps({separator:{type:String,default:"/"},separatorIcon:{type:iconPropType,default:""}}),__default__$1c={name:"ElBreadcrumb"},_sfc_main$2s=defineComponent({...__default__$1c,props:breadcrumbProps,setup(e){const n=e,r=useNamespace("breadcrumb"),g=ref();return provide(breadcrumbKey,n),onMounted(()=>{const $=g.value.querySelectorAll(`.${r.e("item")}`);$.length&&$[$.length-1].setAttribute("aria-current","page")}),($,L)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:g,class:normalizeClass(unref(r).b()),"aria-label":"Breadcrumb",role:"navigation"},[renderSlot($.$slots,"default")],2))}});var Breadcrumb=_export_sfc$2(_sfc_main$2s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const breadcrumbItemProps=buildProps({to:{type:definePropType([String,Object]),default:""},replace:{type:Boolean,default:!1}}),__default__$1b={name:"ElBreadcrumbItem"},_sfc_main$2r=defineComponent({...__default__$1b,props:breadcrumbItemProps,setup(e){const n=e,r=getCurrentInstance(),g=inject(breadcrumbKey,void 0),$=useNamespace("breadcrumb"),{separator:L,separatorIcon:k}=toRefs(g),oe=r.appContext.config.globalProperties.$router,re=ref(),ae=()=>{!n.to||!oe||(n.replace?oe.replace(n.to):oe.push(n.to))};return(le,ue)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref($).e("item"))},[createBaseVNode("span",{ref_key:"link",ref:re,class:normalizeClass([unref($).e("inner"),unref($).is("link",!!le.to)]),role:"link",onClick:ae},[renderSlot(le.$slots,"default")],2),unref(k)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(k))))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref($).e("separator")),role:"presentation"},toDisplayString(unref(L)),3))],2))}});var BreadcrumbItem=_export_sfc$2(_sfc_main$2r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const ElBreadcrumb=withInstall(Breadcrumb,{BreadcrumbItem}),ElBreadcrumbItem=withNoopInstall(BreadcrumbItem),buttonTypes=["default","primary","success","warning","info","danger","text",""],buttonNativeTypes=["button","submit","reset"],buttonProps=buildProps({size:useSizeProp,disabled:Boolean,type:{type:String,values:buttonTypes,default:""},icon:{type:iconPropType,default:""},nativeType:{type:String,values:buttonNativeTypes,default:"button"},loading:Boolean,loadingIcon:{type:iconPropType,default:()=>loading_default},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),buttonEmits={click:e=>e instanceof MouseEvent};function bound01$1(e,n){isOnePointZero$1(e)&&(e="100%");var r=isPercentage$1(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function clamp01(e){return Math.min(1,Math.max(0,e))}function isOnePointZero$1(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function isPercentage$1(e){return typeof e=="string"&&e.indexOf("%")!==-1}function boundAlpha(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function convertToPercentage(e){return e<=1?"".concat(Number(e)*100,"%"):e}function pad2(e){return e.length===1?"0"+e:String(e)}function rgbToRgb(e,n,r){return{r:bound01$1(e,255)*255,g:bound01$1(n,255)*255,b:bound01$1(r,255)*255}}function rgbToHsl(e,n,r){e=bound01$1(e,255),n=bound01$1(n,255),r=bound01$1(r,255);var g=Math.max(e,n,r),$=Math.min(e,n,r),L=0,k=0,oe=(g+$)/2;if(g===$)k=0,L=0;else{var re=g-$;switch(k=oe>.5?re/(2-g-$):re/(g+$),g){case e:L=(n-r)/re+(n1&&(r-=1),r<1/6?e+(n-e)*(6*r):r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function hslToRgb(e,n,r){var g,$,L;if(e=bound01$1(e,360),n=bound01$1(n,100),r=bound01$1(r,100),n===0)$=r,L=r,g=r;else{var k=r<.5?r*(1+n):r+n-r*n,oe=2*r-k;g=hue2rgb(oe,k,e+1/3),$=hue2rgb(oe,k,e),L=hue2rgb(oe,k,e-1/3)}return{r:g*255,g:$*255,b:L*255}}function rgbToHsv(e,n,r){e=bound01$1(e,255),n=bound01$1(n,255),r=bound01$1(r,255);var g=Math.max(e,n,r),$=Math.min(e,n,r),L=0,k=g,oe=g-$,re=g===0?0:oe/g;if(g===$)L=0;else{switch(g){case e:L=(n-r)/oe+(n>16,g:(e&65280)>>8,b:e&255}}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB(e){var n={r:0,g:0,b:0},r=1,g=null,$=null,L=null,k=!1,oe=!1;return typeof e=="string"&&(e=stringInputToObject(e)),typeof e=="object"&&(isValidCSSUnit(e.r)&&isValidCSSUnit(e.g)&&isValidCSSUnit(e.b)?(n=rgbToRgb(e.r,e.g,e.b),k=!0,oe=String(e.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.v)?(g=convertToPercentage(e.s),$=convertToPercentage(e.v),n=hsvToRgb(e.h,g,$),k=!0,oe="hsv"):isValidCSSUnit(e.h)&&isValidCSSUnit(e.s)&&isValidCSSUnit(e.l)&&(g=convertToPercentage(e.s),L=convertToPercentage(e.l),n=hslToRgb(e.h,g,L),k=!0,oe="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=boundAlpha(r),{ok:k,format:e.format||oe,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(names[e])e=names[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=matchers.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=matchers.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=matchers.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=matchers.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=matchers.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=matchers.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=matchers.hex8.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),a:convertHexToDecimal(r[4]),format:n?"name":"hex8"}:(r=matchers.hex6.exec(e),r?{r:parseIntFromHex(r[1]),g:parseIntFromHex(r[2]),b:parseIntFromHex(r[3]),format:n?"name":"hex"}:(r=matchers.hex4.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),a:convertHexToDecimal(r[4]+r[4]),format:n?"name":"hex8"}:(r=matchers.hex3.exec(e),r?{r:parseIntFromHex(r[1]+r[1]),g:parseIntFromHex(r[2]+r[2]),b:parseIntFromHex(r[3]+r[3]),format:n?"name":"hex"}:!1)))))))))}function isValidCSSUnit(e){return Boolean(matchers.CSS_UNIT.exec(String(e)))}var TinyColor=function(){function e(n,r){n===void 0&&(n=""),r===void 0&&(r={});var g;if(n instanceof e)return n;typeof n=="number"&&(n=numberInputToObject(n)),this.originalInput=n;var $=inputToRGB(n);this.originalInput=n,this.r=$.r,this.g=$.g,this.b=$.b,this.a=$.a,this.roundA=Math.round(100*this.a)/100,this.format=(g=r.format)!==null&&g!==void 0?g:$.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=$.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),r,g,$,L=n.r/255,k=n.g/255,oe=n.b/255;return L<=.03928?r=L/12.92:r=Math.pow((L+.055)/1.055,2.4),k<=.03928?g=k/12.92:g=Math.pow((k+.055)/1.055,2.4),oe<=.03928?$=oe/12.92:$=Math.pow((oe+.055)/1.055,2.4),.2126*r+.7152*g+.0722*$},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=boundAlpha(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var n=rgbToHsv(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=rgbToHsv(this.r,this.g,this.b),r=Math.round(n.h*360),g=Math.round(n.s*100),$=Math.round(n.v*100);return this.a===1?"hsv(".concat(r,", ").concat(g,"%, ").concat($,"%)"):"hsva(".concat(r,", ").concat(g,"%, ").concat($,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=rgbToHsl(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=rgbToHsl(this.r,this.g,this.b),r=Math.round(n.h*360),g=Math.round(n.s*100),$=Math.round(n.l*100);return this.a===1?"hsl(".concat(r,", ").concat(g,"%, ").concat($,"%)"):"hsla(".concat(r,", ").concat(g,"%, ").concat($,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=!1),rgbToHex(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=!1),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=!1),rgbaToHex(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=!1),"#"+this.toHex8(n)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var n=Math.round(this.r),r=Math.round(this.g),g=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(r,", ").concat(g,")"):"rgba(".concat(n,", ").concat(r,", ").concat(g,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(r){return"".concat(Math.round(bound01$1(r,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(r){return Math.round(bound01$1(r,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var n="#"+rgbToHex(this.r,this.g,this.b,!1),r=0,g=Object.entries(names);r=0,L=!r&&$&&(n.startsWith("hex")||n==="name");return L?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(g=this.toRgbString()),n==="prgb"&&(g=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(g=this.toHexString()),n==="hex3"&&(g=this.toHexString(!0)),n==="hex4"&&(g=this.toHex8String(!0)),n==="hex8"&&(g=this.toHex8String()),n==="name"&&(g=this.toName()),n==="hsl"&&(g=this.toHslString()),n==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.l+=n/100,r.l=clamp01(r.l),new e(r)},e.prototype.brighten=function(n){n===void 0&&(n=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(n/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(n/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(n/100)))),new e(r)},e.prototype.darken=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.l-=n/100,r.l=clamp01(r.l),new e(r)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.s-=n/100,r.s=clamp01(r.s),new e(r)},e.prototype.saturate=function(n){n===void 0&&(n=10);var r=this.toHsl();return r.s+=n/100,r.s=clamp01(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var r=this.toHsl(),g=(r.h+n)%360;return r.h=g<0?360+g:g,new e(r)},e.prototype.mix=function(n,r){r===void 0&&(r=50);var g=this.toRgb(),$=new e(n).toRgb(),L=r/100,k={r:($.r-g.r)*L+g.r,g:($.g-g.g)*L+g.g,b:($.b-g.b)*L+g.b,a:($.a-g.a)*L+g.a};return new e(k)},e.prototype.analogous=function(n,r){n===void 0&&(n=6),r===void 0&&(r=30);var g=this.toHsl(),$=360/r,L=[this];for(g.h=(g.h-($*n>>1)+720)%360;--n;)g.h=(g.h+$)%360,L.push(new e(g));return L},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var r=this.toHsv(),g=r.h,$=r.s,L=r.v,k=[],oe=1/n;n--;)k.push(new e({h:g,s:$,v:L})),L=(L+oe)%1;return k},e.prototype.splitcomplement=function(){var n=this.toHsl(),r=n.h;return[this,new e({h:(r+72)%360,s:n.s,l:n.l}),new e({h:(r+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var r=this.toRgb(),g=new e(n).toRgb();return new e({r:g.r+(r.r-g.r)*r.a,g:g.g+(r.g-g.g)*r.a,b:g.b+(r.b-g.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var r=this.toHsl(),g=r.h,$=[this],L=360/n,k=1;k{let g={};const $=e.color;if($){const L=new TinyColor($),k=e.dark?L.tint(20).toString():darken(L,20);if(e.plain)g=r.cssVarBlock({"bg-color":e.dark?darken(L,90):L.tint(90).toString(),"text-color":$,"border-color":e.dark?darken(L,50):L.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":$,"hover-border-color":$,"active-bg-color":k,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":k}),n.value&&(g[r.cssVarBlockName("disabled-bg-color")]=e.dark?darken(L,90):L.tint(90).toString(),g[r.cssVarBlockName("disabled-text-color")]=e.dark?darken(L,50):L.tint(50).toString(),g[r.cssVarBlockName("disabled-border-color")]=e.dark?darken(L,80):L.tint(80).toString());else{const oe=e.dark?darken(L,30):L.tint(30).toString(),re=L.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(g=r.cssVarBlock({"bg-color":$,"text-color":re,"border-color":$,"hover-bg-color":oe,"hover-text-color":re,"hover-border-color":oe,"active-bg-color":k,"active-border-color":k}),n.value){const ae=e.dark?darken(L,50):L.tint(50).toString();g[r.cssVarBlockName("disabled-bg-color")]=ae,g[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,g[r.cssVarBlockName("disabled-border-color")]=ae}}}return g})}const _hoisted_1$1t=["aria-disabled","disabled","autofocus","type"],__default__$1a={name:"ElButton"},_sfc_main$2q=defineComponent({...__default__$1a,props:buttonProps,emits:buttonEmits,setup(e,{expose:n,emit:r}){const g=e,$=useSlots();useDeprecated({from:"type.text",replacement:"type.link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},computed(()=>g.type==="text"));const L=inject(buttonGroupContextKey,void 0),k=useGlobalConfig("button"),oe=useNamespace("button"),{form:re}=useFormItem(),ae=useSize(computed(()=>L?.size)),le=useDisabled$1(),ue=ref(),pe=computed(()=>g.type||L?.type||""),de=computed(()=>{var Ie,_e,At;return(At=(_e=g.autoInsertSpace)!=null?_e:(Ie=k.value)==null?void 0:Ie.autoInsertSpace)!=null?At:!1}),Fe=computed(()=>{var Ie;const _e=(Ie=$.default)==null?void 0:Ie.call($);if(de.value&&_e?.length===1){const At=_e[0];if(At?.type===Text$2){const qe=At.children;return/^\p{Unified_Ideograph}{2}$/u.test(qe.trim())}}return!1}),ze=useButtonCustomStyle(g),Ce=Ie=>{g.nativeType==="reset"&&re?.resetFields(),r("click",Ie)};return n({ref:ue,size:ae,type:pe,disabled:le,shouldAddSpace:Fe}),(Ie,_e)=>(openBlock(),createElementBlock("button",{ref_key:"_ref",ref:ue,class:normalizeClass([unref(oe).b(),unref(oe).m(unref(pe)),unref(oe).m(unref(ae)),unref(oe).is("disabled",unref(le)),unref(oe).is("loading",Ie.loading),unref(oe).is("plain",Ie.plain),unref(oe).is("round",Ie.round),unref(oe).is("circle",Ie.circle),unref(oe).is("text",Ie.text),unref(oe).is("link",Ie.link),unref(oe).is("has-bg",Ie.bg)]),"aria-disabled":unref(le)||Ie.loading,disabled:unref(le)||Ie.loading,autofocus:Ie.autofocus,type:Ie.nativeType,style:normalizeStyle(unref(ze)),onClick:Ce},[Ie.loading?(openBlock(),createElementBlock(Fragment,{key:0},[Ie.$slots.loading?renderSlot(Ie.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(oe).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.loadingIcon)))]),_:1},8,["class"]))],64)):Ie.icon||Ie.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[Ie.icon?(openBlock(),createBlock(resolveDynamicComponent(Ie.icon),{key:0})):renderSlot(Ie.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),Ie.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(oe).em("text","expand")]:unref(Fe)})},[renderSlot(Ie.$slots,"default")],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$1t))}});var Button=_export_sfc$2(_sfc_main$2q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const buttonGroupProps={size:buttonProps.size,type:buttonProps.type},__default__$19={name:"ElButtonGroup"},_sfc_main$2p=defineComponent({...__default__$19,props:buttonGroupProps,setup(e){const n=e;provide(buttonGroupContextKey,reactive({size:toRef(n,"size"),type:toRef(n,"type")}));const r=useNamespace("button");return(g,$)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`${unref(r).b("group")}`)},[renderSlot(g.$slots,"default")],2))}});var ButtonGroup=_export_sfc$2(_sfc_main$2p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const ElButton=withInstall(Button,{ButtonGroup}),ElButtonGroup$1=withNoopInstall(ButtonGroup);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){var n=e.default;if(typeof n=="function"){var r=function(){return n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(g){var $=Object.getOwnPropertyDescriptor(e,g);Object.defineProperty(r,g,$.get?$:{enumerable:!0,get:function(){return e[g]}})}),r}var dayjs_min={exports:{}};(function(e,n){(function(r,g){e.exports=g()})(commonjsGlobal,function(){var r=1e3,g=6e4,$=36e5,L="millisecond",k="second",oe="minute",re="hour",ae="day",le="week",ue="month",pe="quarter",de="year",Fe="date",ze="Invalid Date",Ce=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Ie=/\[([^\]]+)]|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("_")},At=function(Et,Pt,Lt){var vn=String(Et);return!vn||vn.length>=Pt?Et:""+Array(Pt+1-vn.length).join(Lt)+Et},qe={s:At,z:function(Et){var Pt=-Et.utcOffset(),Lt=Math.abs(Pt),vn=Math.floor(Lt/60),hn=Lt%60;return(Pt<=0?"+":"-")+At(vn,2,"0")+":"+At(hn,2,"0")},m:function Et(Pt,Lt){if(Pt.date()1)return Et(jt[0])}else{var bn=Pt.name;Ve[bn]=Pt,hn=bn}return!vn&&hn&&(xe=hn),hn||!vn&&xe},$e=function(Et,Pt){if(he(Et))return Et.clone();var Lt=typeof Pt=="object"?Pt:{};return Lt.date=Et,Lt.args=arguments,new Ue(Lt)},Ne=qe;Ne.l=Oe,Ne.i=he,Ne.w=function(Et,Pt){return $e(Et,{locale:Pt.$L,utc:Pt.$u,x:Pt.$x,$offset:Pt.$offset})};var Ue=function(){function Et(Lt){this.$L=Oe(Lt.locale,null,!0),this.parse(Lt)}var Pt=Et.prototype;return Pt.parse=function(Lt){this.$d=function(vn){var hn=vn.date,Dt=vn.utc;if(hn===null)return new Date(NaN);if(Ne.u(hn))return new Date;if(hn instanceof Date)return new Date(hn);if(typeof hn=="string"&&!/Z$/i.test(hn)){var jt=hn.match(Ce);if(jt){var bn=jt[2]-1||0,Sn=(jt[7]||"0").substring(0,3);return Dt?new Date(Date.UTC(jt[1],bn,jt[3]||1,jt[4]||0,jt[5]||0,jt[6]||0,Sn)):new Date(jt[1],bn,jt[3]||1,jt[4]||0,jt[5]||0,jt[6]||0,Sn)}}return new Date(hn)}(Lt),this.$x=Lt.x||{},this.init()},Pt.init=function(){var Lt=this.$d;this.$y=Lt.getFullYear(),this.$M=Lt.getMonth(),this.$D=Lt.getDate(),this.$W=Lt.getDay(),this.$H=Lt.getHours(),this.$m=Lt.getMinutes(),this.$s=Lt.getSeconds(),this.$ms=Lt.getMilliseconds()},Pt.$utils=function(){return Ne},Pt.isValid=function(){return this.$d.toString()!==ze},Pt.isSame=function(Lt,vn){var hn=$e(Lt);return this.startOf(vn)<=hn&&hn<=this.endOf(vn)},Pt.isAfter=function(Lt,vn){return $e(Lt)68?1900:2e3)},ae=function(ze){return function(Ce){this[ze]=+Ce}},le=[/[+-]\d\d:?(\d\d)?|Z/,function(ze){(this.zone||(this.zone={})).offset=function(Ce){if(!Ce||Ce==="Z")return 0;var Ie=Ce.match(/([+-]|\d\d)/g),_e=60*Ie[1]+(+Ie[2]||0);return _e===0?0:Ie[0]==="+"?-_e:_e}(ze)}],ue=function(ze){var Ce=oe[ze];return Ce&&(Ce.indexOf?Ce:Ce.s.concat(Ce.f))},pe=function(ze,Ce){var Ie,_e=oe.meridiem;if(_e){for(var At=1;At<=24;At+=1)if(ze.indexOf(_e(At,0,Ce))>-1){Ie=At>12;break}}else Ie=ze===(Ce?"pm":"PM");return Ie},de={A:[k,function(ze){this.afternoon=pe(ze,!1)}],a:[k,function(ze){this.afternoon=pe(ze,!0)}],S:[/\d/,function(ze){this.milliseconds=100*+ze}],SS:[$,function(ze){this.milliseconds=10*+ze}],SSS:[/\d{3}/,function(ze){this.milliseconds=+ze}],s:[L,ae("seconds")],ss:[L,ae("seconds")],m:[L,ae("minutes")],mm:[L,ae("minutes")],H:[L,ae("hours")],h:[L,ae("hours")],HH:[L,ae("hours")],hh:[L,ae("hours")],D:[L,ae("day")],DD:[$,ae("day")],Do:[k,function(ze){var Ce=oe.ordinal,Ie=ze.match(/\d+/);if(this.day=Ie[0],Ce)for(var _e=1;_e<=31;_e+=1)Ce(_e).replace(/\[|\]/g,"")===ze&&(this.day=_e)}],M:[L,ae("month")],MM:[$,ae("month")],MMM:[k,function(ze){var Ce=ue("months"),Ie=(ue("monthsShort")||Ce.map(function(_e){return _e.slice(0,3)})).indexOf(ze)+1;if(Ie<1)throw new Error;this.month=Ie%12||Ie}],MMMM:[k,function(ze){var Ce=ue("months").indexOf(ze)+1;if(Ce<1)throw new Error;this.month=Ce%12||Ce}],Y:[/[+-]?\d+/,ae("year")],YY:[$,function(ze){this.year=re(ze)}],YYYY:[/\d{4}/,ae("year")],Z:le,ZZ:le};function Fe(ze){var Ce,Ie;Ce=ze,Ie=oe&&oe.formats;for(var _e=(ze=Ce.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($e,Ne,Ue){var kt=Ue&&Ue.toUpperCase();return Ne||Ie[Ue]||r[Ue]||Ie[kt].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Et,Pt,Lt){return Pt||Lt.slice(1)})})).match(g),At=_e.length,qe=0;qe-1)return new Date((hn==="X"?1e3:1)*vn);var jt=Fe(hn)(vn),bn=jt.year,Sn=jt.month,Cn=jt.day,On=jt.hours,En=jt.minutes,An=jt.seconds,In=jt.milliseconds,$n=jt.zone,Pn=new Date,Dn=Cn||(bn||Sn?1:Pn.getDate()),Mn=bn||Pn.getFullYear(),Fn=0;bn&&!Sn||(Fn=Sn>0?Sn-1:Pn.getMonth());var kn=On||0,Nn=En||0,Rn=An||0,wn=In||0;return $n?new Date(Date.UTC(Mn,Fn,Dn,kn,Nn,Rn,wn+60*$n.offset*1e3)):Dt?new Date(Date.UTC(Mn,Fn,Dn,kn,Nn,Rn,wn)):new Date(Mn,Fn,Dn,kn,Nn,Rn,wn)}catch{return new Date("")}}(xe,Oe,Ve),this.init(),kt&&kt!==!0&&(this.$L=this.locale(kt).$L),Ue&&xe!=this.format(Oe)&&(this.$d=new Date("")),oe={}}else if(Oe instanceof Array)for(var Et=Oe.length,Pt=1;Pt<=Et;Pt+=1){he[1]=Oe[Pt-1];var Lt=Ie.apply(this,he);if(Lt.isValid()){this.$d=Lt.$d,this.$L=Lt.$L,this.init();break}Pt===Et&&(this.$d=new Date(""))}else At.call(this,qe)}}})})(customParseFormat$1);const customParseFormat=customParseFormat$1.exports,timeUnits=["hours","minutes","seconds"],DEFAULT_FORMATS_TIME="HH:mm:ss",DEFAULT_FORMATS_DATE="YYYY-MM-DD",DEFAULT_FORMATS_DATEPICKER={date:DEFAULT_FORMATS_DATE,dates:DEFAULT_FORMATS_DATE,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,monthrange:"YYYY-MM",daterange:DEFAULT_FORMATS_DATE,datetimerange:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`},buildTimeList=(e,n)=>[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),extractDateFormat=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dateEquals=function(e,n){const r=isDate(e),g=isDate(n);return r&&g?e.getTime()===n.getTime():!r&&!g?e===n:!1},valueEquals=function(e,n){const r=isArray$4(e),g=isArray$4(n);return r&&g?e.length!==n.length?!1:e.every(($,L)=>dateEquals($,n[L])):!r&&!g?dateEquals(e,n):!1},parseDate=function(e,n,r){const g=isEmpty(n)||n==="x"?dayjs(e).locale(r):dayjs(e,n).locale(r);return g.isValid()?g:void 0},formatter=function(e,n,r){return isEmpty(n)?e:n==="x"?+e:dayjs(e).locale(r).format(n)},makeList=(e,n)=>{var r;const g=[],$=n?.();for(let L=0;L({})},modelValue:{type:definePropType([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:definePropType([Date,Array])},defaultTime:{type:definePropType([Date,Array])},isRange:{type:Boolean,default:!1},...disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:definePropType([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),_hoisted_1$1s=["id","name","placeholder","value","disabled","readonly"],_hoisted_2$11=["id","name","placeholder","value","disabled","readonly"],__default__$18={name:"Picker"},_sfc_main$2o=defineComponent({...__default__$18,props:timePickerDefaultProps,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:n,emit:r}){const g=e,{lang:$}=useLocale(),L=useNamespace("date"),k=useNamespace("input"),oe=useNamespace("range"),re=inject(formContextKey,{}),ae=inject(formItemContextKey,{}),le=inject("ElPopperOptions",{}),ue=ref(),pe=ref(),de=ref(!1),Fe=ref(!1),ze=ref(null);let Ce=!1,Ie=!1;watch(de,Vn=>{Vn?ze.value=g.modelValue:(wn.value=null,nextTick(()=>{_e(g.modelValue)}))});const _e=(Vn,_n)=>{var Qn;(_n||!valueEquals(Vn,ze.value))&&(r("change",Vn),g.validateEvent&&((Qn=ae.validate)==null||Qn.call(ae,"change").catch(jn=>void 0)))},At=Vn=>{if(!valueEquals(g.modelValue,Vn)){let _n;isArray$4(Vn)?_n=Vn.map(Qn=>formatter(Qn,g.valueFormat,$.value)):Vn&&(_n=formatter(Vn,g.valueFormat,$.value)),r("update:modelValue",Vn&&_n,$.value)}},qe=Vn=>{r("keydown",Vn)},xe=computed(()=>{if(pe.value){const Vn=Fn.value?pe.value:pe.value.$el;return Array.from(Vn.querySelectorAll("input"))}return[]}),Ve=(Vn,_n,Qn)=>{const jn=xe.value;!jn.length||(!Qn||Qn==="min"?(jn[0].setSelectionRange(Vn,_n),jn[0].focus()):Qn==="max"&&(jn[1].setSelectionRange(Vn,_n),jn[1].focus()))},he=()=>{Et(!0,!0),nextTick(()=>{Ie=!1})},Oe=(Vn="",_n=!1)=>{_n||he(),de.value=_n;let Qn;isArray$4(Vn)?Qn=Vn.map(jn=>jn.toDate()):Qn=Vn&&Vn.toDate(),wn.value=null,At(Qn)},$e=()=>{Fe.value=!0},Ne=()=>{r("visible-change",!0)},Ue=Vn=>{Vn?.key===EVENT_CODE.esc&&Et(!0,!0)},kt=()=>{Fe.value=!1,Ie=!1,r("visible-change",!1)},Et=(Vn=!0,_n=!1)=>{Ie=_n;const[Qn,jn]=unref(xe);let Un=Qn;!Vn&&Fn.value&&(Un=jn),Un&&Un.focus()},Pt=Vn=>{g.readonly||hn.value||de.value||Ie||(de.value=!0,r("focus",Vn))};let Lt;const vn=Vn=>{const _n=async()=>{setTimeout(()=>{var Qn,jn;Lt===_n&&(!(((Qn=ue.value)==null?void 0:Qn.isFocusInsideContent())&&!Ce)&&xe.value.filter(Un=>Un.contains(document.activeElement)).length===0&&(Tn(),de.value=!1,r("blur",Vn),g.validateEvent&&((jn=ae.validate)==null||jn.call(ae,"blur").catch(Un=>void 0))),Ce=!1)},0)};Lt=_n,_n()},hn=computed(()=>g.disabled||re.disabled),Dt=computed(()=>{let Vn;if(In.value?ao.value.getDefaultValue&&(Vn=ao.value.getDefaultValue()):isArray$4(g.modelValue)?Vn=g.modelValue.map(_n=>parseDate(_n,g.valueFormat,$.value)):Vn=parseDate(g.modelValue,g.valueFormat,$.value),ao.value.getRangeAvailableTime){const _n=ao.value.getRangeAvailableTime(Vn);isEqual$1(_n,Vn)||(Vn=_n,At(isArray$4(Vn)?Vn.map(Qn=>Qn.toDate()):Vn.toDate()))}return isArray$4(Vn)&&Vn.some(_n=>!_n)&&(Vn=[]),Vn}),jt=computed(()=>{if(!ao.value.panelReady)return"";const Vn=Bn(Dt.value);return isArray$4(wn.value)?[wn.value[0]||Vn&&Vn[0]||"",wn.value[1]||Vn&&Vn[1]||""]:wn.value!==null?wn.value:!Sn.value&&In.value||!de.value&&In.value?"":Vn?Cn.value?Vn.join(", "):Vn:""}),bn=computed(()=>g.type.includes("time")),Sn=computed(()=>g.type.startsWith("time")),Cn=computed(()=>g.type==="dates"),On=computed(()=>g.prefixIcon||(bn.value?clock_default:calendar_default)),En=ref(!1),An=Vn=>{g.readonly||hn.value||En.value&&(Vn.stopPropagation(),he(),At(null),_e(null,!0),En.value=!1,de.value=!1,ao.value.handleClear&&ao.value.handleClear())},In=computed(()=>{const{modelValue:Vn}=g;return!Vn||isArray$4(Vn)&&!Vn.filter(Boolean).length}),$n=async Vn=>{var _n;g.readonly||hn.value||(((_n=Vn.target)==null?void 0:_n.tagName)!=="INPUT"||xe.value.includes(document.activeElement))&&(de.value=!0)},Pn=()=>{g.readonly||hn.value||!In.value&&g.clearable&&(En.value=!0)},Dn=()=>{En.value=!1},Mn=Vn=>{var _n;(((_n=Vn.touches[0].target)==null?void 0:_n.tagName)!=="INPUT"||xe.value.includes(document.activeElement))&&(de.value=!0)},Fn=computed(()=>g.type.includes("range")),kn=useSize(),Nn=computed(()=>{var Vn,_n;return(_n=(Vn=unref(ue))==null?void 0:Vn.popperRef)==null?void 0:_n.contentRef}),Rn=computed(()=>{var Vn;return unref(Fn)?unref(pe):(Vn=unref(pe))==null?void 0:Vn.$el});onClickOutside(Rn,Vn=>{const _n=unref(Nn),Qn=unref(Rn);_n&&(Vn.target===_n||Vn.composedPath().includes(_n))||Vn.target===Qn||Vn.composedPath().includes(Qn)||(de.value=!1)});const wn=ref(null),Tn=()=>{if(wn.value){const Vn=xn(jt.value);Vn&&Ln(Vn)&&(At(isArray$4(Vn)?Vn.map(_n=>_n.toDate()):Vn.toDate()),wn.value=null)}wn.value===""&&(At(null),_e(null),wn.value=null)},xn=Vn=>Vn?ao.value.parseUserInput(Vn):null,Bn=Vn=>Vn?ao.value.formatToString(Vn):null,Ln=Vn=>ao.value.isValidValue(Vn),Hn=async Vn=>{if(g.readonly||hn.value)return;const{code:_n}=Vn;if(qe(Vn),_n===EVENT_CODE.esc){de.value===!0&&(de.value=!1,Vn.preventDefault(),Vn.stopPropagation());return}if(_n===EVENT_CODE.down&&(ao.value.handleFocusPicker&&(Vn.preventDefault(),Vn.stopPropagation()),de.value===!1&&(de.value=!0,await nextTick()),ao.value.handleFocusPicker)){ao.value.handleFocusPicker();return}if(_n===EVENT_CODE.tab){Ce=!0;return}if(_n===EVENT_CODE.enter||_n===EVENT_CODE.numpadEnter){(wn.value===null||wn.value===""||Ln(xn(jt.value)))&&(Tn(),de.value=!1),Vn.stopPropagation();return}if(wn.value){Vn.stopPropagation();return}ao.value.handleKeydownInput&&ao.value.handleKeydownInput(Vn)},zn=Vn=>{wn.value=Vn,de.value||(de.value=!0)},Jn=Vn=>{const _n=Vn.target;wn.value?wn.value=[_n.value,wn.value[1]]:wn.value=[_n.value,null]},co=Vn=>{const _n=Vn.target;wn.value?wn.value=[wn.value[0],_n.value]:wn.value=[null,_n.value]},Gn=()=>{var Vn;const _n=wn.value,Qn=xn(_n&&_n[0]),jn=unref(Dt);if(Qn&&Qn.isValid()){wn.value=[Bn(Qn),((Vn=jt.value)==null?void 0:Vn[1])||null];const Un=[Qn,jn&&(jn[1]||null)];Ln(Un)&&(At(Un),wn.value=null)}},eo=()=>{var Vn;const _n=unref(wn),Qn=xn(_n&&_n[1]),jn=unref(Dt);if(Qn&&Qn.isValid()){wn.value=[((Vn=unref(jt))==null?void 0:Vn[0])||null,Bn(Qn)];const Un=[jn&&jn[0],Qn];Ln(Un)&&(At(Un),wn.value=null)}},ao=ref({}),ho=Vn=>{ao.value[Vn[0]]=Vn[1],ao.value.panelReady=!0},Yn=Vn=>{r("calendar-change",Vn)},Wn=(Vn,_n,Qn)=>{r("panel-change",Vn,_n,Qn)};return provide("EP_PICKER_BASE",{props:g}),n({focus:Et,handleFocusInput:Pt,handleBlurInput:vn,onPick:Oe}),(Vn,_n)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:ue,visible:de.value,effect:"light",pure:"",trigger:"click"},Vn.$attrs,{role:"dialog",teleported:"",transition:`${unref(L).namespace.value}-zoom-in-top`,"popper-class":[`${unref(L).namespace.value}-picker__popper`,Vn.popperClass],"popper-options":unref(le),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:$e,onShow:Ne,onHide:kt}),{default:withCtx(()=>[unref(Fn)?(openBlock(),createElementBlock("div",{key:1,ref_key:"inputRef",ref:pe,class:normalizeClass([unref(L).b("editor"),unref(L).bm("editor",Vn.type),unref(k).e("wrapper"),unref(L).is("disabled",unref(hn)),unref(L).is("active",de.value),unref(oe).b("editor"),unref(kn)?unref(oe).bm("editor",unref(kn)):"",Vn.$attrs.class]),style:normalizeStyle(Vn.$attrs.style),onClick:Pt,onMouseenter:Pn,onMouseleave:Dn,onTouchstart:Mn,onKeydown:Hn},[unref(On)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(k).e("icon"),unref(oe).e("icon")]),onMousedown:withModifiers($n,["prevent"]),onTouchstart:Mn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(On))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),createBaseVNode("input",{id:Vn.id&&Vn.id[0],autocomplete:"off",name:Vn.name&&Vn.name[0],placeholder:Vn.startPlaceholder,value:unref(jt)&&unref(jt)[0],disabled:unref(hn),readonly:!Vn.editable||Vn.readonly,class:normalizeClass(unref(oe).b("input")),onMousedown:$n,onInput:Jn,onChange:Gn,onFocus:Pt,onBlur:vn},null,42,_hoisted_1$1s),renderSlot(Vn.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(oe).b("separator"))},toDisplayString(Vn.rangeSeparator),3)]),createBaseVNode("input",{id:Vn.id&&Vn.id[1],autocomplete:"off",name:Vn.name&&Vn.name[1],placeholder:Vn.endPlaceholder,value:unref(jt)&&unref(jt)[1],disabled:unref(hn),readonly:!Vn.editable||Vn.readonly,class:normalizeClass(unref(oe).b("input")),onMousedown:$n,onFocus:Pt,onBlur:vn,onInput:co,onChange:eo},null,42,_hoisted_2$11),Vn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(k).e("icon"),unref(oe).e("close-icon"),{[unref(oe).e("close-icon--hidden")]:!En.value}]),onClick:An},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Vn.clearIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],38)):(openBlock(),createBlock(unref(ElInput),{key:0,id:Vn.id,ref_key:"inputRef",ref:pe,"container-role":"combobox","model-value":unref(jt),name:Vn.name,size:unref(kn),disabled:unref(hn),placeholder:Vn.placeholder,class:normalizeClass([unref(L).b("editor"),unref(L).bm("editor",Vn.type),Vn.$attrs.class]),style:normalizeStyle(Vn.$attrs.style),readonly:!Vn.editable||Vn.readonly||unref(Cn)||Vn.type==="week",label:Vn.label,tabindex:Vn.tabindex,"validate-event":Vn.validateEvent,onInput:zn,onFocus:Pt,onBlur:vn,onKeydown:Hn,onChange:Tn,onMousedown:$n,onMouseenter:Pn,onMouseleave:Dn,onTouchstart:Mn,onClick:_n[0]||(_n[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[unref(On)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(k).e("icon")),onMousedown:withModifiers($n,["prevent"]),onTouchstart:Mn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(On))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[En.value&&Vn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(k).e("icon")} clear-icon`),onClick:withModifiers(An,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Vn.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","validate-event","onKeydown"]))]),content:withCtx(()=>[renderSlot(Vn.$slots,"default",{visible:de.value,actualVisible:Fe.value,parsedValue:unref(Dt),format:Vn.format,unlinkPanels:Vn.unlinkPanels,type:Vn.type,defaultValue:Vn.defaultValue,onPick:Oe,onSelectRange:Ve,onSetPickerOption:ho,onCalendarChange:Yn,onPanelChange:Wn,onKeydown:Ue,onMousedown:_n[1]||(_n[1]=withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var CommonPicker=_export_sfc$2(_sfc_main$2o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const panelTimePickerProps=buildProps({...timePanelSharedProps,datetimeRole:String,parsedValue:{type:definePropType(Object)}}),useTimePanel=({getAvailableHours:e,getAvailableMinutes:n,getAvailableSeconds:r})=>{const g=(k,oe,re,ae)=>{const le={hour:e,minute:n,second:r};let ue=k;return["hour","minute","second"].forEach(pe=>{if(le[pe]){let de;const Fe=le[pe];switch(pe){case"minute":{de=Fe(ue.hour(),oe,ae);break}case"second":{de=Fe(ue.hour(),ue.minute(),oe,ae);break}default:{de=Fe(oe,ae);break}}if(de?.length&&!de.includes(ue[pe]())){const ze=re?0:de.length-1;ue=ue[pe](de[ze])}}}),ue},$={};return{timePickerOptions:$,getAvailableTime:g,onSetOption:([k,oe])=>{$[k]=oe}}},makeAvailableArr=e=>{const n=(g,$)=>g||$,r=g=>g!==!0;return e.map(n).filter(r)},getTimeLists=(e,n,r)=>({getHoursList:(k,oe)=>makeList(24,e&&(()=>e?.(k,oe))),getMinutesList:(k,oe,re)=>makeList(60,n&&(()=>n?.(k,oe,re))),getSecondsList:(k,oe,re,ae)=>makeList(60,r&&(()=>r?.(k,oe,re,ae)))}),buildAvailableTimeSlotGetter=(e,n,r)=>{const{getHoursList:g,getMinutesList:$,getSecondsList:L}=getTimeLists(e,n,r);return{getAvailableHours:(ae,le)=>makeAvailableArr(g(ae,le)),getAvailableMinutes:(ae,le,ue)=>makeAvailableArr($(ae,le,ue)),getAvailableSeconds:(ae,le,ue,pe)=>makeAvailableArr(L(ae,le,ue,pe))}},useOldValue=e=>{const n=ref(e.parsedValue);return watch(()=>e.visible,r=>{r||(n.value=e.parsedValue)}),n},nodeList=new Map;let startClick;isClient&&(document.addEventListener("mousedown",e=>startClick=e),document.addEventListener("mouseup",e=>{for(const n of nodeList.values())for(const{documentHandler:r}of n)r(e,startClick)}));function createDocumentHandler(e,n){let r=[];return Array.isArray(n.arg)?r=n.arg:isElement$1(n.arg)&&r.push(n.arg),function(g,$){const L=n.instance.popperRef,k=g.target,oe=$?.target,re=!n||!n.instance,ae=!k||!oe,le=e.contains(k)||e.contains(oe),ue=e===k,pe=r.length&&r.some(Fe=>Fe?.contains(k))||r.length&&r.includes(oe),de=L&&(L.contains(k)||L.contains(oe));re||ae||le||ue||pe||de||n.value(g,$)}}const ClickOutside={beforeMount(e,n){nodeList.has(e)||nodeList.set(e,[]),nodeList.get(e).push({documentHandler:createDocumentHandler(e,n),bindingFn:n.value})},updated(e,n){nodeList.has(e)||nodeList.set(e,[]);const r=nodeList.get(e),g=r.findIndex(L=>L.bindingFn===n.oldValue),$={documentHandler:createDocumentHandler(e,n),bindingFn:n.value};g>=0?r.splice(g,1,$):r.push($)},unmounted(e){nodeList.delete(e)}},RepeatClick={beforeMount(e,n){let r=null,g=!1;const $=()=>n.value&&n.value(),L=()=>{clearInterval(r),r=null,g||$(),g=!1};e.addEventListener("mousedown",k=>{k.button===0&&(document.addEventListener("mouseup",L,{once:!0}),clearInterval(r),r=setInterval(()=>{g=!0,$()},100))})}},FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=e=>{if(FOCUS_STACK.length===0)return;const n=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(n.length>0&&e.code===EVENT_CODE.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const r=e.shiftKey,g=e.target===n[0],$=e.target===n[n.length-1];g&&r&&(e.preventDefault(),n[n.length-1].focus()),$&&!r&&(e.preventDefault(),n[0].focus())}},TrapFocus={beforeMount(e){e[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(e),FOCUS_STACK.push(e),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated(e){nextTick(()=>{e[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(e)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}};var v=!1,o,f,s,u,d,N,l,p,m,w$1,D$1,x$1,E$1,M,F$1;function a(){if(!v){v=!0;var e=navigator.userAgent,n=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(x$1=/\b(iPhone|iP[ao]d)/.exec(e),E$1=/\b(iP[ao]d)/.exec(e),w$1=/Android/i.exec(e),M=/FBAN\/\w+;/i.exec(e),F$1=/Mobile/i.exec(e),D$1=!!/Win64/.exec(e),n){o=n[1]?parseFloat(n[1]):n[5]?parseFloat(n[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var g=/(?:Trident\/(\d+.\d+))/.exec(e);N=g?parseFloat(g[1])+4:o,f=n[2]?parseFloat(n[2]):NaN,s=n[3]?parseFloat(n[3]):NaN,u=n[4]?parseFloat(n[4]):NaN,u?(n=/(?:Chrome\/(\d+\.\d+))/.exec(e),d=n&&n[1]?parseFloat(n[1]):NaN):d=NaN}else o=f=s=d=u=NaN;if(r){if(r[1]){var $=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=$?parseFloat($[1].replace("_",".")):!0}else l=!1;p=!!r[2],m=!!r[3]}else l=p=m=!1}}var _$1={ie:function(){return a()||o},ieCompatibilityMode:function(){return a()||N>o},ie64:function(){return _$1.ie()&&D$1},firefox:function(){return a()||f},opera:function(){return a()||s},webkit:function(){return a()||u},safari:function(){return _$1.webkit()},chrome:function(){return a()||d},windows:function(){return a()||p},osx:function(){return a()||l},linux:function(){return a()||m},iphone:function(){return a()||x$1},mobile:function(){return a()||x$1||E$1||w$1||F$1},nativeApp:function(){return a()||M},android:function(){return a()||w$1},ipad:function(){return a()||E$1}},A=_$1,c=!!(typeof window<"u"&&window.document&&window.document.createElement),U$1={canUseDOM:c,canUseWorkers:typeof Worker<"u",canUseEventListeners:c&&!!(window.addEventListener||window.attachEvent),canUseViewport:c&&!!window.screen,isInWorker:!c},h$1=U$1,X;h$1.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S$1(e,n){if(!h$1.canUseDOM||n&&!("addEventListener"in document))return!1;var r="on"+e,g=r in document;if(!g){var $=document.createElement("div");$.setAttribute(r,"return;"),g=typeof $[r]=="function"}return!g&&X&&e==="wheel"&&(g=document.implementation.hasFeature("Events.wheel","3.0")),g}var b=S$1,O$1=10,I=40,P$1=800;function T$1(e){var n=0,r=0,g=0,$=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=r,r=0),g=n*O$1,$=r*O$1,"deltaY"in e&&($=e.deltaY),"deltaX"in e&&(g=e.deltaX),(g||$)&&e.deltaMode&&(e.deltaMode==1?(g*=I,$*=I):(g*=P$1,$*=P$1)),g&&!n&&(n=g<1?-1:1),$&&!r&&(r=$<1?-1:1),{spinX:n,spinY:r,pixelX:g,pixelY:$}}T$1.getEventType=function(){return A.firefox()?"DOMMouseScroll":b("wheel")?"wheel":"mousewheel"};var Y=T$1;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const mousewheel=function(e,n){if(e&&e.addEventListener){const r=function(g){const $=Y(g);n&&Reflect.apply(n,this,[g,$])};e.addEventListener("wheel",r,{passive:!0})}},Mousewheel={beforeMount(e,n){mousewheel(e,n.value)}},basicTimeSpinnerProps=buildProps({role:{type:String,required:!0},spinnerDate:{type:definePropType(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:definePropType(String),default:""},...disabledTimeListsProps}),_hoisted_1$1r=["onClick"],_hoisted_2$10=["onMouseenter"],_sfc_main$2n=defineComponent({__name:"basic-time-spinner",props:basicTimeSpinnerProps,emits:["change","select-range","set-option"],setup(e,{emit:n}){const r=e,g=useNamespace("time"),{getHoursList:$,getMinutesList:L,getSecondsList:k}=getTimeLists(r.disabledHours,r.disabledMinutes,r.disabledSeconds);let oe=!1;const re=ref(),ae=ref(),le=ref(),ue=ref(),pe={hours:ae,minutes:le,seconds:ue},de=computed(()=>r.showSeconds?timeUnits:timeUnits.slice(0,2)),Fe=computed(()=>{const{spinnerDate:Dt}=r,jt=Dt.hour(),bn=Dt.minute(),Sn=Dt.second();return{hours:jt,minutes:bn,seconds:Sn}}),ze=computed(()=>{const{hours:Dt,minutes:jt}=unref(Fe);return{hours:$(r.role),minutes:L(Dt,r.role),seconds:k(Dt,jt,r.role)}}),Ce=computed(()=>{const{hours:Dt,minutes:jt,seconds:bn}=unref(Fe);return{hours:buildTimeList(Dt,23),minutes:buildTimeList(jt,59),seconds:buildTimeList(bn,59)}}),Ie=debounce(Dt=>{oe=!1,qe(Dt)},200),_e=Dt=>{if(!!!r.amPmMode)return"";const bn=r.amPmMode==="A";let Sn=Dt<12?" am":" pm";return bn&&(Sn=Sn.toUpperCase()),Sn},At=Dt=>{let jt;switch(Dt){case"hours":jt=[0,2];break;case"minutes":jt=[3,5];break;case"seconds":jt=[6,8];break}const[bn,Sn]=jt;n("select-range",bn,Sn),re.value=Dt},qe=Dt=>{he(Dt,unref(Fe)[Dt])},xe=()=>{qe("hours"),qe("minutes"),qe("seconds")},Ve=Dt=>Dt.querySelector(`.${g.namespace.value}-scrollbar__wrap`),he=(Dt,jt)=>{if(r.arrowControl)return;const bn=unref(pe[Dt]);bn&&bn.$el&&(Ve(bn.$el).scrollTop=Math.max(0,jt*Oe(Dt)))},Oe=Dt=>{const jt=unref(pe[Dt]);return jt?.$el.querySelector("li").offsetHeight||0},$e=()=>{Ue(1)},Ne=()=>{Ue(-1)},Ue=Dt=>{re.value||At("hours");const jt=re.value;let bn=unref(Fe)[jt];const Sn=re.value==="hours"?24:60;bn=(bn+Dt+Sn)%Sn,kt(jt,bn),he(jt,bn),nextTick(()=>At(jt))},kt=(Dt,jt)=>{if(unref(ze)[Dt][jt])return;const{hours:Cn,minutes:On,seconds:En}=unref(Fe);let An;switch(Dt){case"hours":An=r.spinnerDate.hour(jt).minute(On).second(En);break;case"minutes":An=r.spinnerDate.hour(Cn).minute(jt).second(En);break;case"seconds":An=r.spinnerDate.hour(Cn).minute(On).second(jt);break}n("change",An)},Et=(Dt,{value:jt,disabled:bn})=>{bn||(kt(Dt,jt),At(Dt),he(Dt,jt))},Pt=Dt=>{oe=!0,Ie(Dt);const jt=Math.min(Math.round((Ve(unref(pe[Dt]).$el).scrollTop-(Lt(Dt)*.5-10)/Oe(Dt)+3)/Oe(Dt)),Dt==="hours"?23:59);kt(Dt,jt)},Lt=Dt=>unref(pe[Dt]).$el.offsetHeight,vn=()=>{const Dt=jt=>{const bn=unref(pe[jt]);bn&&bn.$el&&(Ve(bn.$el).onscroll=()=>{Pt(jt)})};Dt("hours"),Dt("minutes"),Dt("seconds")};onMounted(()=>{nextTick(()=>{!r.arrowControl&&vn(),xe(),r.role==="start"&&At("hours")})});const hn=(Dt,jt)=>{pe[jt].value=Dt};return n("set-option",[`${r.role}_scrollDown`,Ue]),n("set-option",[`${r.role}_emitSelectRange`,At]),watch(()=>r.spinnerDate,()=>{oe||xe()}),(Dt,jt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(g).b("spinner"),{"has-seconds":Dt.showSeconds}])},[Dt.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(unref(de),bn=>(openBlock(),createBlock(unref(ElScrollbar),{key:bn,ref_for:!0,ref:Sn=>hn(Sn,bn),class:normalizeClass(unref(g).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(g).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Sn=>At(bn),onMousemove:Sn=>qe(bn)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ze)[bn],(Sn,Cn)=>(openBlock(),createElementBlock("li",{key:Cn,class:normalizeClass([unref(g).be("spinner","item"),unref(g).is("active",Cn===unref(Fe)[bn]),unref(g).is("disabled",Sn)]),onClick:On=>Et(bn,{value:Cn,disabled:Sn})},[bn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(("0"+(Dt.amPmMode?Cn%12||12:Cn)).slice(-2))+toDisplayString(_e(Cn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(("0"+Cn).slice(-2)),1)],64))],10,_hoisted_1$1r))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),Dt.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(unref(de),bn=>(openBlock(),createElementBlock("div",{key:bn,class:normalizeClass([unref(g).be("spinner","wrapper"),unref(g).is("arrow")]),onMouseenter:Sn=>At(bn)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(g).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(RepeatClick),Ne]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(g).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(RepeatClick),$e]]),createBaseVNode("ul",{class:normalizeClass(unref(g).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ce)[bn],(Sn,Cn)=>(openBlock(),createElementBlock("li",{key:Cn,class:normalizeClass([unref(g).be("spinner","item"),unref(g).is("active",Sn===unref(Fe)[bn]),unref(g).is("disabled",unref(ze)[bn][Sn])])},[typeof Sn=="number"?(openBlock(),createElementBlock(Fragment,{key:0},[bn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(("0"+(Dt.amPmMode?Sn%12||12:Sn)).slice(-2))+toDisplayString(_e(Sn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(("0"+Sn).slice(-2)),1)],64))],64)):createCommentVNode("v-if",!0)],2))),128))],2)],42,_hoisted_2$10))),128)):createCommentVNode("v-if",!0)],2))}});var TimeSpinner=_export_sfc$2(_sfc_main$2n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _sfc_main$2m=defineComponent({__name:"panel-time-pick",props:panelTimePickerProps,emits:["pick","select-range","set-picker-option"],setup(e,{emit:n}){const r=e,g=inject("EP_PICKER_BASE"),{arrowControl:$,disabledHours:L,disabledMinutes:k,disabledSeconds:oe,defaultValue:re}=g.props,{getAvailableHours:ae,getAvailableMinutes:le,getAvailableSeconds:ue}=buildAvailableTimeSlotGetter(L,k,oe),pe=useNamespace("time"),{t:de,lang:Fe}=useLocale(),ze=ref([0,2]),Ce=useOldValue(r),Ie=computed(()=>isUndefined(r.actualVisible)?`${pe.namespace.value}-zoom-in-top`:""),_e=computed(()=>r.format.includes("ss")),At=computed(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),qe=Dt=>{const jt=dayjs(Dt).locale(Fe.value),bn=Pt(jt);return jt.isSame(bn)},xe=()=>{n("pick",Ce.value,!1)},Ve=(Dt=!1,jt=!1)=>{jt||n("pick",r.parsedValue,Dt)},he=Dt=>{if(!r.visible)return;const jt=Pt(Dt).millisecond(0);n("pick",jt,!0)},Oe=(Dt,jt)=>{n("select-range",Dt,jt),ze.value=[Dt,jt]},$e=Dt=>{const jt=[0,3].concat(_e.value?[6]:[]),bn=["hours","minutes"].concat(_e.value?["seconds"]:[]),Cn=(jt.indexOf(ze.value[0])+Dt+jt.length)%jt.length;Ue.start_emitSelectRange(bn[Cn])},Ne=Dt=>{const jt=Dt.code,{left:bn,right:Sn,up:Cn,down:On}=EVENT_CODE;if([bn,Sn].includes(jt)){$e(jt===bn?-1:1),Dt.preventDefault();return}if([Cn,On].includes(jt)){const En=jt===Cn?-1:1;Ue.start_scrollDown(En),Dt.preventDefault();return}},{timePickerOptions:Ue,onSetOption:kt,getAvailableTime:Et}=useTimePanel({getAvailableHours:ae,getAvailableMinutes:le,getAvailableSeconds:ue}),Pt=Dt=>Et(Dt,r.datetimeRole||"",!0),Lt=Dt=>Dt?dayjs(Dt,r.format).locale(Fe.value):null,vn=Dt=>Dt?Dt.format(r.format):null,hn=()=>dayjs(re).locale(Fe.value);return n("set-picker-option",["isValidValue",qe]),n("set-picker-option",["formatToString",vn]),n("set-picker-option",["parseUserInput",Lt]),n("set-picker-option",["handleKeydownInput",Ne]),n("set-picker-option",["getRangeAvailableTime",Pt]),n("set-picker-option",["getDefaultValue",hn]),(Dt,jt)=>(openBlock(),createBlock(Transition,{name:unref(Ie)},{default:withCtx(()=>[Dt.actualVisible||Dt.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(pe).be("panel","content"),{"has-seconds":unref(_e)}])},[createVNode(TimeSpinner,{ref:"spinner",role:Dt.datetimeRole||"start","arrow-control":unref($),"show-seconds":unref(_e),"am-pm-mode":unref(At),"spinner-date":Dt.parsedValue,"disabled-hours":unref(L),"disabled-minutes":unref(k),"disabled-seconds":unref(oe),onChange:he,onSetOption:unref(kt),onSelectRange:Oe},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),createBaseVNode("div",{class:normalizeClass(unref(pe).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(pe).be("panel","btn"),"cancel"]),onClick:xe},toDisplayString(unref(de)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(pe).be("panel","btn"),"confirm"]),onClick:jt[0]||(jt[0]=bn=>Ve())},toDisplayString(unref(de)("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",!0)]),_:1},8,["name"]))}});var TimePickPanel=_export_sfc$2(_sfc_main$2m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const panelTimeRangeProps=buildProps({...timePanelSharedProps,parsedValue:{type:definePropType(Array)}}),_hoisted_1$1q=["disabled"],_sfc_main$2l=defineComponent({__name:"panel-time-range",props:panelTimeRangeProps,emits:["pick","select-range","set-picker-option"],setup(e,{emit:n}){const r=e,g=(Dn,Mn)=>{const Fn=[];for(let kn=Dn;kn<=Mn;kn++)Fn.push(kn);return Fn},{t:$,lang:L}=useLocale(),k=useNamespace("time"),oe=useNamespace("picker"),re=inject("EP_PICKER_BASE"),{arrowControl:ae,disabledHours:le,disabledMinutes:ue,disabledSeconds:pe,defaultValue:de}=re.props,Fe=computed(()=>r.parsedValue[0]),ze=computed(()=>r.parsedValue[1]),Ce=useOldValue(r),Ie=()=>{n("pick",Ce.value,!1)},_e=computed(()=>r.format.includes("ss")),At=computed(()=>r.format.includes("A")?"A":r.format.includes("a")?"a":""),qe=(Dn=!1)=>{n("pick",[Fe.value,ze.value],Dn)},xe=Dn=>{Oe(Dn.millisecond(0),ze.value)},Ve=Dn=>{Oe(Fe.value,Dn.millisecond(0))},he=Dn=>{const Mn=Dn.map(kn=>dayjs(kn).locale(L.value)),Fn=jt(Mn);return Mn[0].isSame(Fn[0])&&Mn[1].isSame(Fn[1])},Oe=(Dn,Mn)=>{n("pick",[Dn,Mn],!0)},$e=computed(()=>Fe.value>ze.value),Ne=ref([0,2]),Ue=(Dn,Mn)=>{n("select-range",Dn,Mn,"min"),Ne.value=[Dn,Mn]},kt=computed(()=>_e.value?11:8),Et=(Dn,Mn)=>{n("select-range",Dn,Mn,"max");const Fn=unref(kt);Ne.value=[Dn+Fn,Mn+Fn]},Pt=Dn=>{const Mn=_e.value?[0,3,6,11,14,17]:[0,3,8,11],Fn=["hours","minutes"].concat(_e.value?["seconds"]:[]),Nn=(Mn.indexOf(Ne.value[0])+Dn+Mn.length)%Mn.length,Rn=Mn.length/2;Nn{const Mn=Dn.code,{left:Fn,right:kn,up:Nn,down:Rn}=EVENT_CODE;if([Fn,kn].includes(Mn)){Pt(Mn===Fn?-1:1),Dn.preventDefault();return}if([Nn,Rn].includes(Mn)){const wn=Mn===Nn?-1:1,Tn=Ne.value[0]{const Fn=le?le(Dn):[],kn=Dn==="start",Rn=(Mn||(kn?ze.value:Fe.value)).hour(),wn=kn?g(Rn+1,23):g(0,Rn-1);return union$1(Fn,wn)},hn=(Dn,Mn,Fn)=>{const kn=ue?ue(Dn,Mn):[],Nn=Mn==="start",Rn=Fn||(Nn?ze.value:Fe.value),wn=Rn.hour();if(Dn!==wn)return kn;const Tn=Rn.minute(),xn=Nn?g(Tn+1,59):g(0,Tn-1);return union$1(kn,xn)},Dt=(Dn,Mn,Fn,kn)=>{const Nn=pe?pe(Dn,Mn,Fn):[],Rn=Fn==="start",wn=kn||(Rn?ze.value:Fe.value),Tn=wn.hour(),xn=wn.minute();if(Dn!==Tn||Mn!==xn)return Nn;const Bn=wn.second(),Ln=Rn?g(Bn+1,59):g(0,Bn-1);return union$1(Nn,Ln)},jt=([Dn,Mn])=>[En(Dn,"start",!0,Mn),En(Mn,"end",!1,Dn)],{getAvailableHours:bn,getAvailableMinutes:Sn,getAvailableSeconds:Cn}=buildAvailableTimeSlotGetter(vn,hn,Dt),{timePickerOptions:On,getAvailableTime:En,onSetOption:An}=useTimePanel({getAvailableHours:bn,getAvailableMinutes:Sn,getAvailableSeconds:Cn}),In=Dn=>Dn?isArray$4(Dn)?Dn.map(Mn=>dayjs(Mn,r.format).locale(L.value)):dayjs(Dn,r.format).locale(L.value):null,$n=Dn=>Dn?isArray$4(Dn)?Dn.map(Mn=>Mn.format(r.format)):Dn.format(r.format):null,Pn=()=>{if(isArray$4(de))return de.map(Mn=>dayjs(Mn).locale(L.value));const Dn=dayjs(de).locale(L.value);return[Dn,Dn.add(60,"m")]};return n("set-picker-option",["formatToString",$n]),n("set-picker-option",["parseUserInput",In]),n("set-picker-option",["isValidValue",he]),n("set-picker-option",["handleKeydownInput",Lt]),n("set-picker-option",["getDefaultValue",Pn]),n("set-picker-option",["getRangeAvailableTime",jt]),(Dn,Mn)=>Dn.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(k).b("range-picker"),unref(oe).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(k).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(k).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(k).be("range-picker","header"))},toDisplayString(unref($)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass([unref(k).be("range-picker","body"),unref(k).be("panel","content"),unref(k).is("arrow",unref(ae)),{"has-seconds":unref(_e)}])},[createVNode(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":unref(_e),"am-pm-mode":unref(At),"arrow-control":unref(ae),"spinner-date":unref(Fe),"disabled-hours":vn,"disabled-minutes":hn,"disabled-seconds":Dt,onChange:xe,onSetOption:unref(An),onSelectRange:Ue},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(k).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(k).be("range-picker","header"))},toDisplayString(unref($)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass([unref(k).be("range-picker","body"),unref(k).be("panel","content"),unref(k).is("arrow",unref(ae)),{"has-seconds":unref(_e)}])},[createVNode(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":unref(_e),"am-pm-mode":unref(At),"arrow-control":unref(ae),"spinner-date":unref(ze),"disabled-hours":vn,"disabled-minutes":hn,"disabled-seconds":Dt,onChange:Ve,onSetOption:unref(An),onSelectRange:Et},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(k).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(k).be("panel","btn"),"cancel"]),onClick:Mn[0]||(Mn[0]=Fn=>Ie())},toDisplayString(unref($)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(k).be("panel","btn"),"confirm"]),disabled:unref($e),onClick:Mn[1]||(Mn[1]=Fn=>qe())},toDisplayString(unref($)("el.datepicker.confirm")),11,_hoisted_1$1q)],2)],2)):createCommentVNode("v-if",!0)}});var TimeRangePanel=_export_sfc$2(_sfc_main$2l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);dayjs.extend(customParseFormat);var TimePicker=defineComponent({name:"ElTimePicker",install:null,props:{...timePickerDefaultProps,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,n){const r=ref(),[g,$]=e.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],L=k=>n.emit("update:modelValue",k);return provide("ElPopperOptions",e.popperOptions),n.expose({focus:k=>{var oe;(oe=r.value)==null||oe.handleFocusInput(k)},blur:k=>{var oe;(oe=r.value)==null||oe.handleBlurInput(k)}}),()=>{var k;const oe=(k=e.format)!=null?k:DEFAULT_FORMATS_TIME;return createVNode(CommonPicker,mergeProps(e,{ref:r,type:g,format:oe,"onUpdate:modelValue":L}),{default:re=>createVNode($,re,null)})}}});const _TimePicker=TimePicker;_TimePicker.install=e=>{e.component(_TimePicker.name,_TimePicker)};const ElTimePicker=_TimePicker,getPrevMonthLastDays=(e,n)=>{const r=e.subtract(1,"month").endOf("month").date();return rangeArr(n).map((g,$)=>r-(n-$-1))},getMonthDays=e=>{const n=e.daysInMonth();return rangeArr(n).map((r,g)=>g+1)},toNestedArr=e=>rangeArr(e.length/7).map(n=>{const r=n*7;return e.slice(r,r+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:e=>isObject$4(e)},_hoisted_1$1p={key:0},_hoisted_2$$=["onClick"],__default__$17={name:"DateTable"},_sfc_main$2k=defineComponent({...__default__$17,props:dateTableProps,emits:dateTableEmits,setup(e,{expose:n,emit:r}){const g=e;dayjs.extend(localeData);const{t:$,lang:L}=useLocale(),k=useNamespace("calendar-table"),oe=useNamespace("calendar-day"),re=dayjs().locale(L.value),ae=re.$locale().weekStart||0,le=computed(()=>!!g.range&&!!g.range.length),ue=computed(()=>{let Ie=[];if(le.value){const[_e,At]=g.range,qe=rangeArr(At.date()-_e.date()+1).map(he=>({text:_e.date()+he,type:"current"}));let xe=qe.length%7;xe=xe===0?0:7-xe;const Ve=rangeArr(xe).map((he,Oe)=>({text:Oe+1,type:"next"}));Ie=qe.concat(Ve)}else{const _e=g.date.startOf("month").day(),At=getPrevMonthLastDays(g.date,_e-ae).map(he=>({text:he,type:"prev"})),qe=getMonthDays(g.date).map(he=>({text:he,type:"current"}));Ie=[...At,...qe];const xe=7-(Ie.length%7||7),Ve=rangeArr(xe).map((he,Oe)=>({text:Oe+1,type:"next"}));Ie=Ie.concat(Ve)}return toNestedArr(Ie)}),pe=computed(()=>{const Ie=ae;return Ie===0?WEEK_DAYS.map(_e=>$(`el.datepicker.weeks.${_e}`)):WEEK_DAYS.slice(Ie).concat(WEEK_DAYS.slice(0,Ie)).map(_e=>$(`el.datepicker.weeks.${_e}`))}),de=(Ie,_e)=>{switch(_e){case"prev":return g.date.startOf("month").subtract(1,"month").date(Ie);case"next":return g.date.startOf("month").add(1,"month").date(Ie);case"current":return g.date.date(Ie)}},Fe=({text:Ie,type:_e})=>{const At=[_e];if(_e==="current"){const qe=de(Ie,_e);qe.isSame(g.selectedDay,"day")&&At.push(oe.is("selected")),qe.isSame(re,"day")&&At.push(oe.is("today"))}return At},ze=({text:Ie,type:_e})=>{const At=de(Ie,_e);r("pick",At)},Ce=({text:Ie,type:_e})=>{const At=de(Ie,_e);return{isSelected:At.isSame(g.selectedDay),type:`${_e}-month`,day:At.format("YYYY-MM-DD"),date:At.toDate()}};return n({getFormattedDate:de}),(Ie,_e)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(k).b(),unref(k).is("range",unref(le))]),cellspacing:"0",cellpadding:"0"},[Ie.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$1p,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(pe),At=>(openBlock(),createElementBlock("th",{key:At},toDisplayString(At),1))),128))])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),(At,qe)=>(openBlock(),createElementBlock("tr",{key:qe,class:normalizeClass({[unref(k).e("row")]:!0,[unref(k).em("row","hide-border")]:qe===0&&Ie.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(At,(xe,Ve)=>(openBlock(),createElementBlock("td",{key:Ve,class:normalizeClass(Fe(xe)),onClick:he=>ze(xe)},[createBaseVNode("div",{class:normalizeClass(unref(oe).b())},[renderSlot(Ie.$slots,"dateCell",{data:Ce(xe)},()=>[createBaseVNode("span",null,toDisplayString(xe.text),1)])],2)],10,_hoisted_2$$))),128))],2))),128))])],2))}});var DateTable$1=_export_sfc$2(_sfc_main$2k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const isValidRange$1=e=>isArray$4(e)&&e.length===2&&e.every(n=>isDate(n)),calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:isValidRange$1}}),calendarEmits={[UPDATE_MODEL_EVENT]:e=>isDate(e),[INPUT_EVENT]:e=>isDate(e)},__default__$16={name:"ElCalendar"},_sfc_main$2j=defineComponent({...__default__$16,props:calendarProps,emits:calendarEmits,setup(e,{expose:n,emit:r}){const g=e,$=useNamespace("calendar"),{t:L,lang:k}=useLocale(),oe=ref(),re=dayjs().locale(k.value),ae=computed({get(){return g.modelValue?ue.value:oe.value},set(qe){if(!qe)return;oe.value=qe;const xe=qe.toDate();r(INPUT_EVENT,xe),r(UPDATE_MODEL_EVENT,xe)}}),le=computed(()=>{if(!g.range)return[];const qe=g.range.map(he=>dayjs(he).locale(k.value)),[xe,Ve]=qe;return xe.isAfter(Ve)?[]:xe.isSame(Ve,"month")?Ie(xe,Ve):xe.add(1,"month").month()!==Ve.month()?[]:Ie(xe,Ve)}),ue=computed(()=>g.modelValue?dayjs(g.modelValue).locale(k.value):ae.value?ae.value:le.value.length?le.value[0][0]:re),pe=computed(()=>ue.value.subtract(1,"month").date(1)),de=computed(()=>ue.value.add(1,"month").date(1)),Fe=computed(()=>ue.value.subtract(1,"year").date(1)),ze=computed(()=>ue.value.add(1,"year").date(1)),Ce=computed(()=>{const qe=`el.datepicker.month${ue.value.format("M")}`;return`${ue.value.year()} ${L("el.datepicker.year")} ${L(qe)}`}),Ie=(qe,xe)=>{const Ve=qe.startOf("week"),he=xe.endOf("week"),Oe=Ve.get("month"),$e=he.get("month");if(Oe===$e)return[[Ve,he]];if(Oe+1===$e){const Ne=Ve.endOf("month"),Ue=he.startOf("month"),Et=Ne.isSame(Ue,"week")?Ue.add(1,"week"):Ue;return[[Ve,Ne],[Et.startOf("week"),he]]}else if(Oe+2===$e||(Oe+1)%11===$e){const Ne=Ve.endOf("month"),Ue=Ve.add(1,"month").startOf("month"),kt=Ne.isSame(Ue,"week")?Ue.add(1,"week"):Ue,Et=kt.endOf("month"),Pt=he.startOf("month"),Lt=Et.isSame(Pt,"week")?Pt.add(1,"week"):Pt;return[[Ve,Ne],[kt.startOf("week"),Et],[Lt.startOf("week"),he]]}else return[]},_e=qe=>{ae.value=qe},At=qe=>{let xe;qe==="prev-month"?xe=pe.value:qe==="next-month"?xe=de.value:qe==="prev-year"?xe=Fe.value:qe==="next-year"?xe=ze.value:xe=re,!xe.isSame(ue.value,"day")&&_e(xe)};return n({selectedDay:ae,pickDay:_e,selectDate:At,calculateValidatedDateRange:Ie}),(qe,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref($).b())},[createBaseVNode("div",{class:normalizeClass(unref($).e("header"))},[renderSlot(qe.$slots,"header",{date:unref(Ce)},()=>[createBaseVNode("div",{class:normalizeClass(unref($).e("title"))},toDisplayString(unref(Ce)),3),unref(le).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("button-group"))},[createVNode(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode(unref(ElButton),{size:"small",onClick:xe[0]||(xe[0]=Ve=>At("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(L)("el.datepicker.prevMonth")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:xe[1]||(xe[1]=Ve=>At("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(L)("el.datepicker.today")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:xe[2]||(xe[2]=Ve=>At("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(L)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):createCommentVNode("v-if",!0)])],2),unref(le).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("body"))},[createVNode(DateTable$1,{date:unref(ue),"selected-day":unref(ae),onPick:_e},createSlots({_:2},[qe.$slots.dateCell?{name:"dateCell",fn:withCtx(Ve=>[renderSlot(qe.$slots,"dateCell",normalizeProps(guardReactiveProps(Ve)))])}:void 0]),1032,["date","selected-day"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref($).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(le),(Ve,he)=>(openBlock(),createBlock(DateTable$1,{key:he,date:Ve[0],"selected-day":unref(ae),range:Ve,"hide-header":he!==0,onPick:_e},createSlots({_:2},[qe.$slots.dateCell?{name:"dateCell",fn:withCtx(Oe=>[renderSlot(qe.$slots,"dateCell",normalizeProps(guardReactiveProps(Oe)))])}:void 0]),1032,["date","selected-day","range","hide-header"]))),128))],2))],2))}});var Calendar=_export_sfc$2(_sfc_main$2j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const ElCalendar=withInstall(Calendar),cardProps=buildProps({header:{type:String,default:""},bodyStyle:{type:definePropType([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),__default__$15={name:"ElCard"},_sfc_main$2i=defineComponent({...__default__$15,props:cardProps,setup(e){const n=useNamespace("card");return(r,g)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(n).b(),unref(n).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(n).e("header"))},[renderSlot(r.$slots,"header",{},()=>[createTextVNode(toDisplayString(r.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(n).e("body")),style:normalizeStyle(r.bodyStyle)},[renderSlot(r.$slots,"default")],6)],2))}});var Card=_export_sfc$2(_sfc_main$2i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const ElCard=withInstall(Card),carouselProps=buildProps({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},indicator:{type:Boolean,default:!0},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),carouselEmits={change:(e,n)=>[e,n].every(isNumber)},_hoisted_1$1o=["onMouseenter","onMouseleave"],_hoisted_2$_=["onMouseenter","onClick"],_hoisted_3$y={key:0},__default__$14={name:"ElCarousel"},_sfc_main$2h=defineComponent({...__default__$14,props:carouselProps,emits:carouselEmits,setup(e,{expose:n,emit:r}){const g=e,$=useNamespace("carousel"),L=300,k=ref(-1),oe=ref(null),re=ref(!1),ae=ref(),le=ref([]),ue=computed(()=>g.arrow!=="never"&&!unref(Ce)),pe=computed(()=>le.value.some(Sn=>Sn.props.label.toString().length>0)),de=computed(()=>{const Sn=[$.b(),$.m(g.direction)];return unref(ze)&&Sn.push($.m("card")),Sn}),Fe=computed(()=>{const Sn=[$.e("indicators"),$.em("indicators",g.direction)];return pe.value&&Sn.push($.em("indicators","labels")),(g.indicatorPosition==="outside"||unref(ze))&&Sn.push($.em("indicators","outside")),Sn}),ze=computed(()=>g.type==="card"),Ce=computed(()=>g.direction==="vertical"),Ie=throttle$1(Sn=>{Ve(Sn)},L,{trailing:!0}),_e=throttle$1(Sn=>{vn(Sn)},L);function At(){oe.value&&(clearInterval(oe.value),oe.value=null)}function qe(){g.interval<=0||!g.autoplay||oe.value||(oe.value=setInterval(()=>xe(),g.interval))}const xe=()=>{k.valueAn.props.name===Sn);En.length>0&&(Sn=le.value.indexOf(En[0]))}if(Sn=Number(Sn),Number.isNaN(Sn)||Sn!==Math.floor(Sn))return;const Cn=le.value.length,On=k.value;Sn<0?k.value=g.loop?Cn-1:0:Sn>=Cn?k.value=g.loop?0:Cn-1:k.value=Sn,On===k.value&&he(On),jt()}function he(Sn){le.value.forEach((Cn,On)=>{Cn.translateItem(On,k.value,Sn)})}function Oe(Sn){le.value.push(Sn)}function $e(Sn){const Cn=le.value.findIndex(On=>On.uid===Sn);Cn!==-1&&(le.value.splice(Cn,1),k.value===Cn&&Dt())}function Ne(Sn,Cn){var On,En,An,In;const $n=unref(le),Pn=$n.length;if(Pn===0||!Sn.states.inStage)return!1;const Dn=Cn+1,Mn=Cn-1,Fn=Pn-1,kn=$n[Fn].states.active,Nn=$n[0].states.active,Rn=(En=(On=$n[Dn])==null?void 0:On.states)==null?void 0:En.active,wn=(In=(An=$n[Mn])==null?void 0:An.states)==null?void 0:In.active;return Cn===Fn&&Nn||Rn?"left":Cn===0&&kn||wn?"right":!1}function Ue(){re.value=!0,g.pauseOnHover&&At()}function kt(){re.value=!1,qe()}function Et(Sn){unref(Ce)||le.value.forEach((Cn,On)=>{Sn===Ne(Cn,On)&&(Cn.states.hover=!0)})}function Pt(){unref(Ce)||le.value.forEach(Sn=>{Sn.states.hover=!1})}function Lt(Sn){k.value=Sn}function vn(Sn){g.trigger==="hover"&&Sn!==k.value&&(k.value=Sn)}function hn(){Ve(k.value-1)}function Dt(){Ve(k.value+1)}function jt(){At(),qe()}watch(()=>k.value,(Sn,Cn)=>{he(Cn),Cn>-1&&r("change",Sn,Cn)}),watch(()=>g.autoplay,Sn=>{Sn?qe():At()}),watch(()=>g.loop,()=>{Ve(k.value)}),watch(()=>g.interval,()=>{jt()});const bn=shallowRef();return onMounted(async()=>{await nextTick(),bn.value=useResizeObserver(ae.value,()=>{he()}),g.initialIndex=0&&(k.value=g.initialIndex),qe()}),onBeforeUnmount(()=>{At(),ae.value&&bn.value&&bn.value.stop()}),provide(carouselContextKey,{root:ae,isCardType:ze,isVertical:Ce,items:le,loop:g.loop,addItem:Oe,removeItem:$e,setActiveItem:Ve}),n({setActiveItem:Ve,prev:hn,next:Dt}),(Sn,Cn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:ae,class:normalizeClass(unref(de)),onMouseenter:withModifiers(Ue,["stop"]),onMouseleave:withModifiers(kt,["stop"])},[createBaseVNode("div",{class:normalizeClass(unref($).e("container")),style:normalizeStyle({height:Sn.height})},[unref(ue)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref($).e("arrow"),unref($).em("arrow","left")]),onMouseenter:Cn[0]||(Cn[0]=On=>Et("left")),onMouseleave:Pt,onClick:Cn[1]||(Cn[1]=withModifiers(On=>unref(Ie)(k.value-1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],34),[[vShow,(Sn.arrow==="always"||re.value)&&(g.loop||k.value>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(ue)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref($).e("arrow"),unref($).em("arrow","right")]),onMouseenter:Cn[2]||(Cn[2]=On=>Et("right")),onMouseleave:Pt,onClick:Cn[3]||(Cn[3]=withModifiers(On=>unref(Ie)(k.value+1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],34),[[vShow,(Sn.arrow==="always"||re.value)&&(g.loop||k.value(openBlock(),createElementBlock("li",{key:En,class:normalizeClass([unref($).e("indicator"),unref($).em("indicator",Sn.direction),unref($).is("active",En===k.value)]),onMouseenter:An=>unref(_e)(En),onClick:withModifiers(An=>Lt(En),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref($).e("button"))},[unref(pe)?(openBlock(),createElementBlock("span",_hoisted_3$y,toDisplayString(On.props.label),1)):createCommentVNode("v-if",!0)],2)],42,_hoisted_2$_))),128))],2)):createCommentVNode("v-if",!0)],42,_hoisted_1$1o))}});var Carousel=_export_sfc$2(_sfc_main$2h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const carouselItemProps=buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),__default__$13={name:"ElCarouselItem"},_sfc_main$2g=defineComponent({...__default__$13,props:carouselItemProps,setup(e){const n=e,r=useNamespace("carousel"),g=inject(carouselContextKey),$=getCurrentInstance(),L=.83,k=ref(!1),oe=ref(0),re=ref(1),ae=ref(!1),le=ref(!1),ue=ref(!1),pe=ref(!1),{isCardType:de,isVertical:Fe}=g,ze=computed(()=>{const Ve=`${`translate${unref(Fe)?"Y":"X"}`}(${unref(oe)}px)`,he=`scale(${unref(re)})`;return{transform:[Ve,he].join(" ")}});function Ce(xe,Ve,he){const Oe=he-1,$e=Ve-1,Ne=Ve+1,Ue=he/2;return Ve===0&&xe===Oe?-1:Ve===Oe&&xe===0?he:xe<$e&&Ve-xe>=Ue?he+1:xe>Ne&&xe-Ve>=Ue?-2:xe}function Ie(xe,Ve){var he;const Oe=((he=g.root.value)==null?void 0:he.offsetWidth)||0;return ue.value?Oe*((2-L)*(xe-Ve)+1)/4:xe{var Oe;const $e=unref(de),Ne=(Oe=g.items.value.length)!=null?Oe:Number.NaN,Ue=xe===Ve;!$e&&!isUndefined(he)&&(pe.value=Ue||xe===he),!Ue&&Ne>2&&g.loop&&(xe=Ce(xe,Ve,Ne));const kt=unref(Fe);ae.value=Ue,$e?(ue.value=Math.round(Math.abs(xe-Ve))<=1,oe.value=Ie(xe,Ve),re.value=unref(ae)?1:L):oe.value=_e(xe,Ve,kt),le.value=!0};function qe(){if(g&&unref(de)){const xe=g.items.value.findIndex(({uid:Ve})=>Ve===$.uid);g.setActiveItem(xe)}}return onMounted(()=>{g.addItem({props:n,states:reactive({hover:k,translate:oe,scale:re,active:ae,ready:le,inStage:ue,animating:pe}),uid:$.uid,translateItem:At})}),onUnmounted(()=>{g.removeItem($.uid)}),(xe,Ve)=>withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).e("item"),unref(r).is("active",ae.value),unref(r).is("in-stage",ue.value),unref(r).is("hover",k.value),unref(r).is("animating",pe.value),{[unref(r).em("item","card")]:unref(de)}]),style:normalizeStyle(unref(ze)),onClick:qe},[unref(de)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("mask"))},null,2)),[[vShow,!ae.value]]):createCommentVNode("v-if",!0),renderSlot(xe.$slots,"default")],6)),[[vShow,le.value]])}});var CarouselItem=_export_sfc$2(_sfc_main$2g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const ElCarousel=withInstall(Carousel,{CarouselItem}),ElCarouselItem=withNoopInstall(CarouselItem),useCheckboxGroupProps={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:useSizeProp,id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}},checkboxProps={modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},useCheckboxGroup=()=>{const e=inject(formContextKey,{}),n=inject(formItemContextKey,{}),r=inject("CheckboxGroup",{}),g=computed(()=>r&&r?.name==="ElCheckboxGroup"),$=computed(()=>n.size);return{isGroup:g,checkboxGroup:r,elForm:e,elFormItemSize:$,elFormItem:n}},useCheckboxGroupId=(e,{elFormItem:n})=>{const{inputId:r,isLabeledByFormItem:g}=useFormItemInputId(e,{formItemContext:n});return{isLabeledByFormItem:g,groupId:r}},useModel=e=>{const n=ref(!1),{emit:r}=getCurrentInstance(),{isGroup:g,checkboxGroup:$,elFormItem:L}=useCheckboxGroup(),k=ref(!1);return{model:computed({get(){var re,ae;return g.value?(re=$.modelValue)==null?void 0:re.value:(ae=e.modelValue)!=null?ae:n.value},set(re){var ae;g.value&&Array.isArray(re)?(k.value=$.max!==void 0&&re.length>$.max.value,k.value===!1&&((ae=$?.changeEvent)==null||ae.call($,re))):(r(UPDATE_MODEL_EVENT,re),n.value=re)}}),isGroup:g,isLimitExceeded:k,elFormItem:L}},useCheckboxStatus=(e,n,{model:r})=>{const{isGroup:g,checkboxGroup:$}=useCheckboxGroup(),L=ref(!1),k=useSize($?.checkboxGroupSize,{prop:!0}),oe=computed(()=>{const le=r.value;return toTypeString(le)==="[object Boolean]"?le:Array.isArray(le)?le.includes(e.label):le!=null?le===e.trueLabel:!!le}),re=useSize(computed(()=>{var le;return g.value?(le=$?.checkboxGroupSize)==null?void 0:le.value:void 0})),ae=computed(()=>!!(n.default||e.label));return{isChecked:oe,focus:L,size:k,checkboxSize:re,hasOwnLabel:ae}},useDisabled=(e,{model:n,isChecked:r})=>{const{elForm:g,isGroup:$,checkboxGroup:L}=useCheckboxGroup(),k=computed(()=>{var re,ae;const le=(re=L.max)==null?void 0:re.value,ue=(ae=L.min)==null?void 0:ae.value;return!!(le||ue)&&n.value.length>=le&&!r.value||n.value.length<=ue&&r.value});return{isDisabled:computed(()=>{var re,ae;const le=e.disabled||g?.disabled;return(ae=$.value?((re=L.disabled)==null?void 0:re.value)||le||k.value:le)!=null?ae:!1}),isLimitDisabled:k}},setStoreValue=(e,{model:n})=>{function r(){Array.isArray(n.value)&&!n.value.includes(e.label)?n.value.push(e.label):n.value=e.trueLabel||!0}e.checked&&r()},useEvent$1=(e,{model:n,isLimitExceeded:r,hasOwnLabel:g,isDisabled:$,isLabeledByFormItem:L})=>{const{elFormItem:k,checkboxGroup:oe}=useCheckboxGroup(),{emit:re}=getCurrentInstance();function ae(Fe){var ze,Ce;return Fe===e.trueLabel||Fe===!0?(ze=e.trueLabel)!=null?ze:!0:(Ce=e.falseLabel)!=null?Ce:!1}function le(Fe,ze){re("change",ae(Fe),ze)}function ue(Fe){if(r.value)return;const ze=Fe.target;re("change",ae(ze.checked),Fe)}async function pe(Fe){r.value||!g.value&&!$.value&&L.value&&(n.value=ae([!1,e.falseLabel].includes(n.value)),await nextTick(),le(n.value,Fe))}const de=computed(()=>{var Fe;return((Fe=oe.validateEvent)==null?void 0:Fe.value)||e.validateEvent});return watch(()=>e.modelValue,()=>{var Fe;de.value&&((Fe=k?.validate)==null||Fe.call(k,"change").catch(ze=>void 0))}),{handleChange:ue,onClickRoot:pe}},checkboxEmits={[UPDATE_MODEL_EVENT]:e=>isString$2(e)||isNumber(e)||isBoolean(e),change:e=>isString$2(e)||isNumber(e)||isBoolean(e)},checkboxGroupEmits={[UPDATE_MODEL_EVENT]:e=>isArray$4(e),change:e=>isArray$4(e)},useCheckbox=(e,n)=>{const{model:r,isGroup:g,isLimitExceeded:$,elFormItem:L}=useModel(e),{focus:k,size:oe,isChecked:re,checkboxSize:ae,hasOwnLabel:le}=useCheckboxStatus(e,n,{model:r}),{isDisabled:ue}=useDisabled(e,{model:r,isChecked:re}),{inputId:pe,isLabeledByFormItem:de}=useFormItemInputId(e,{formItemContext:L,disableIdGeneration:le,disableIdManagement:g}),{handleChange:Fe,onClickRoot:ze}=useEvent$1(e,{model:r,isLimitExceeded:$,hasOwnLabel:le,isDisabled:ue,isLabeledByFormItem:de});return setStoreValue(e,{model:r}),{elFormItem:L,inputId:pe,isLabeledByFormItem:de,isChecked:re,isDisabled:ue,isGroup:g,checkboxSize:ae,hasOwnLabel:le,model:r,handleChange:Fe,onClickRoot:ze,focus:k,size:oe}},_hoisted_1$1n=["tabindex","role","aria-checked"],_hoisted_2$Z=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],_hoisted_3$x=["id","aria-hidden","disabled","value","name","tabindex"],__default__$12={name:"ElCheckbox"},_sfc_main$2f=defineComponent({...__default__$12,props:checkboxProps,emits:checkboxEmits,setup(e){const n=e,r=useSlots(),{inputId:g,isLabeledByFormItem:$,isChecked:L,isDisabled:k,checkboxSize:oe,hasOwnLabel:re,model:ae,handleChange:le,onClickRoot:ue,focus:pe}=useCheckbox(n,r),de=useNamespace("checkbox");return(Fe,ze)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(re)&&unref($)?"span":"label"),{class:normalizeClass([unref(de).b(),unref(de).m(unref(oe)),unref(de).is("disabled",unref(k)),unref(de).is("bordered",Fe.border),unref(de).is("checked",unref(L))]),"aria-controls":Fe.indeterminate?Fe.controls:null,onClick:unref(ue)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([unref(de).e("input"),unref(de).is("disabled",unref(k)),unref(de).is("checked",unref(L)),unref(de).is("indeterminate",Fe.indeterminate),unref(de).is("focus",unref(pe))]),tabindex:Fe.indeterminate?0:void 0,role:Fe.indeterminate?"checkbox":void 0,"aria-checked":Fe.indeterminate?"mixed":void 0},[Fe.trueLabel||Fe.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(g),"onUpdate:modelValue":ze[0]||(ze[0]=Ce=>isRef(ae)?ae.value=Ce:null),class:normalizeClass(unref(de).e("original")),type:"checkbox","aria-hidden":Fe.indeterminate?"true":"false",name:Fe.name,tabindex:Fe.tabindex,disabled:unref(k),"true-value":Fe.trueLabel,"false-value":Fe.falseLabel,onChange:ze[1]||(ze[1]=(...Ce)=>unref(le)&&unref(le)(...Ce)),onFocus:ze[2]||(ze[2]=Ce=>pe.value=!0),onBlur:ze[3]||(ze[3]=Ce=>pe.value=!1)},null,42,_hoisted_2$Z)),[[vModelCheckbox,unref(ae)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(g),"onUpdate:modelValue":ze[4]||(ze[4]=Ce=>isRef(ae)?ae.value=Ce:null),class:normalizeClass(unref(de).e("original")),type:"checkbox","aria-hidden":Fe.indeterminate?"true":"false",disabled:unref(k),value:Fe.label,name:Fe.name,tabindex:Fe.tabindex,onChange:ze[5]||(ze[5]=(...Ce)=>unref(le)&&unref(le)(...Ce)),onFocus:ze[6]||(ze[6]=Ce=>pe.value=!0),onBlur:ze[7]||(ze[7]=Ce=>pe.value=!1)},null,42,_hoisted_3$x)),[[vModelCheckbox,unref(ae)]]),createBaseVNode("span",{class:normalizeClass(unref(de).e("inner"))},null,2)],10,_hoisted_1$1n),unref(re)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(de).e("label"))},[renderSlot(Fe.$slots,"default"),Fe.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(Fe.label),1)],64))],2)):createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Checkbox=_export_sfc$2(_sfc_main$2f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const _hoisted_1$1m=["name","tabindex","disabled","true-value","false-value"],_hoisted_2$Y=["name","tabindex","disabled","value"],__default__$11={name:"ElCheckboxButton"},_sfc_main$2e=defineComponent({...__default__$11,props:checkboxProps,emits:checkboxEmits,setup(e){const n=e,r=useSlots(),{focus:g,isChecked:$,isDisabled:L,size:k,model:oe,handleChange:re}=useCheckbox(n,r),{checkboxGroup:ae}=useCheckboxGroup(),le=useNamespace("checkbox"),ue=computed(()=>{var pe,de,Fe,ze;const Ce=(de=(pe=ae?.fill)==null?void 0:pe.value)!=null?de:"";return{backgroundColor:Ce,borderColor:Ce,color:(ze=(Fe=ae?.textColor)==null?void 0:Fe.value)!=null?ze:"",boxShadow:Ce?`-1px 0 0 0 ${Ce}`:void 0}});return(pe,de)=>(openBlock(),createElementBlock("label",{class:normalizeClass([unref(le).b("button"),unref(le).bm("button",unref(k)),unref(le).is("disabled",unref(L)),unref(le).is("checked",unref($)),unref(le).is("focus",unref(g))])},[pe.trueLabel||pe.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":de[0]||(de[0]=Fe=>isRef(oe)?oe.value=Fe:null),class:normalizeClass(unref(le).be("button","original")),type:"checkbox",name:pe.name,tabindex:pe.tabindex,disabled:unref(L),"true-value":pe.trueLabel,"false-value":pe.falseLabel,onChange:de[1]||(de[1]=(...Fe)=>unref(re)&&unref(re)(...Fe)),onFocus:de[2]||(de[2]=Fe=>g.value=!0),onBlur:de[3]||(de[3]=Fe=>g.value=!1)},null,42,_hoisted_1$1m)),[[vModelCheckbox,unref(oe)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":de[4]||(de[4]=Fe=>isRef(oe)?oe.value=Fe:null),class:normalizeClass(unref(le).be("button","original")),type:"checkbox",name:pe.name,tabindex:pe.tabindex,disabled:unref(L),value:pe.label,onChange:de[5]||(de[5]=(...Fe)=>unref(re)&&unref(re)(...Fe)),onFocus:de[6]||(de[6]=Fe=>g.value=!0),onBlur:de[7]||(de[7]=Fe=>g.value=!1)},null,42,_hoisted_2$Y)),[[vModelCheckbox,unref(oe)]]),pe.$slots.default||pe.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(le).be("button","inner")),style:normalizeStyle(unref($)?unref(ue):void 0)},[renderSlot(pe.$slots,"default",{},()=>[createTextVNode(toDisplayString(pe.label),1)])],6)):createCommentVNode("v-if",!0)],2))}});var CheckboxButton=_export_sfc$2(_sfc_main$2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const __default__$10={name:"ElCheckboxGroup"},_sfc_main$2d=defineComponent({...__default__$10,props:useCheckboxGroupProps,emits:checkboxGroupEmits,setup(e,{emit:n}){const r=e,{elFormItem:g}=useCheckboxGroup(),{groupId:$,isLabeledByFormItem:L}=useCheckboxGroupId(r,{elFormItem:g}),k=useSize(),oe=useNamespace("checkbox"),re=le=>{n(UPDATE_MODEL_EVENT,le),nextTick(()=>{n("change",le)})},ae=computed({get(){return r.modelValue},set(le){re(le)}});return provide("CheckboxGroup",{name:"ElCheckboxGroup",...toRefs(r),modelValue:ae,checkboxGroupSize:k,changeEvent:re}),watch(()=>r.modelValue,()=>{var le;r.validateEvent&&((le=g.validate)==null||le.call(g,"change").catch(ue=>void 0))}),(le,ue)=>(openBlock(),createBlock(resolveDynamicComponent(le.tag),{id:unref($),class:normalizeClass(unref(oe).b("group")),role:"group","aria-label":unref(L)?void 0:le.label||"checkbox-group","aria-labelledby":unref(L)?unref(g).labelId:void 0},{default:withCtx(()=>[renderSlot(le.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"]))}});var CheckboxGroup=_export_sfc$2(_sfc_main$2d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ElCheckbox=withInstall(Checkbox,{CheckboxButton,CheckboxGroup}),ElCheckboxButton=withNoopInstall(CheckboxButton),ElCheckboxGroup$1=withNoopInstall(CheckboxGroup),radioPropsBase=buildProps({size:useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),radioProps=buildProps({...radioPropsBase,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),radioEmits={[UPDATE_MODEL_EVENT]:e=>isString$2(e)||isNumber(e)||isBoolean(e),[CHANGE_EVENT]:e=>isString$2(e)||isNumber(e)||isBoolean(e)},useRadio=(e,n)=>{const r=ref(),g=inject(radioGroupKey,void 0),$=computed(()=>!!g),L=computed({get(){return $.value?g.modelValue:e.modelValue},set(le){$.value?g.changeEvent(le):n&&n(UPDATE_MODEL_EVENT,le),r.value.checked=e.modelValue===e.label}}),k=useSize(computed(()=>g?.size)),oe=useDisabled$1(computed(()=>g?.disabled)),re=ref(!1),ae=computed(()=>oe.value||$.value&&L.value!==e.label?-1:0);return{radioRef:r,isGroup:$,radioGroup:g,focus:re,size:k,disabled:oe,tabIndex:ae,modelValue:L}},_hoisted_1$1l=["value","name","disabled"],__default__$$={name:"ElRadio"},_sfc_main$2c=defineComponent({...__default__$$,props:radioProps,emits:radioEmits,setup(e,{emit:n}){const r=e,g=useNamespace("radio"),{radioRef:$,radioGroup:L,focus:k,size:oe,disabled:re,modelValue:ae}=useRadio(r,n);function le(){nextTick(()=>n("change",ae.value))}return(ue,pe)=>{var de;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(g).b(),unref(g).is("disabled",unref(re)),unref(g).is("focus",unref(k)),unref(g).is("bordered",ue.border),unref(g).is("checked",unref(ae)===ue.label),unref(g).m(unref(oe))])},[createBaseVNode("span",{class:normalizeClass([unref(g).e("input"),unref(g).is("disabled",unref(re)),unref(g).is("checked",unref(ae)===ue.label)])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:$,"onUpdate:modelValue":pe[0]||(pe[0]=Fe=>isRef(ae)?ae.value=Fe:null),class:normalizeClass(unref(g).e("original")),value:ue.label,name:ue.name||((de=unref(L))==null?void 0:de.name),disabled:unref(re),type:"radio",onFocus:pe[1]||(pe[1]=Fe=>k.value=!0),onBlur:pe[2]||(pe[2]=Fe=>k.value=!1),onChange:le},null,42,_hoisted_1$1l),[[vModelRadio,unref(ae)]]),createBaseVNode("span",{class:normalizeClass(unref(g).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(g).e("label")),onKeydown:pe[3]||(pe[3]=withModifiers(()=>{},["stop"]))},[renderSlot(ue.$slots,"default",{},()=>[createTextVNode(toDisplayString(ue.label),1)])],34)],2)}}});var Radio$1=_export_sfc$2(_sfc_main$2c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const radioButtonProps=buildProps({...radioPropsBase,name:{type:String,default:""}}),_hoisted_1$1k=["value","name","disabled"],__default__$_={name:"ElRadioButton"},_sfc_main$2b=defineComponent({...__default__$_,props:radioButtonProps,setup(e){const n=e,r=useNamespace("radio"),{radioRef:g,focus:$,size:L,disabled:k,modelValue:oe,radioGroup:re}=useRadio(n),ae=computed(()=>({backgroundColor:re?.fill||"",borderColor:re?.fill||"",boxShadow:re?.fill?`-1px 0 0 0 ${re.fill}`:"",color:re?.textColor||""}));return(le,ue)=>{var pe;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(r).b("button"),unref(r).is("active",unref(oe)===le.label),unref(r).is("disabled",unref(k)),unref(r).is("focus",unref($)),unref(r).bm("button",unref(L))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:g,"onUpdate:modelValue":ue[0]||(ue[0]=de=>isRef(oe)?oe.value=de:null),class:normalizeClass(unref(r).be("button","original-radio")),value:le.label,type:"radio",name:le.name||((pe=unref(re))==null?void 0:pe.name),disabled:unref(k),onFocus:ue[1]||(ue[1]=de=>$.value=!0),onBlur:ue[2]||(ue[2]=de=>$.value=!1)},null,42,_hoisted_1$1k),[[vModelRadio,unref(oe)]]),createBaseVNode("span",{class:normalizeClass(unref(r).be("button","inner")),style:normalizeStyle(unref(oe)===le.label?unref(ae):{}),onKeydown:ue[3]||(ue[3]=withModifiers(()=>{},["stop"]))},[renderSlot(le.$slots,"default",{},()=>[createTextVNode(toDisplayString(le.label),1)])],38)],2)}}});var RadioButton=_export_sfc$2(_sfc_main$2b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const radioGroupProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),radioGroupEmits=radioEmits,_hoisted_1$1j=["id","aria-label","aria-labelledby"],__default__$Z={name:"ElRadioGroup"},_sfc_main$2a=defineComponent({...__default__$Z,props:radioGroupProps,emits:radioGroupEmits,setup(e,{emit:n}){const r=e,g=useNamespace("radio"),$=useId(),L=ref(),{formItem:k}=useFormItem(),{inputId:oe,isLabeledByFormItem:re}=useFormItemInputId(r,{formItemContext:k}),ae=ue=>{n(UPDATE_MODEL_EVENT,ue),nextTick(()=>n("change",ue))};onMounted(()=>{const ue=L.value.querySelectorAll("[type=radio]"),pe=ue[0];!Array.from(ue).some(de=>de.checked)&&pe&&(pe.tabIndex=0)});const le=computed(()=>r.name||$.value);return provide(radioGroupKey,reactive({...toRefs(r),changeEvent:ae,name:le})),watch(()=>r.modelValue,()=>{r.validateEvent&&k?.validate("change").catch(ue=>void 0)}),(ue,pe)=>(openBlock(),createElementBlock("div",{id:unref(oe),ref_key:"radioGroupRef",ref:L,class:normalizeClass(unref(g).b("group")),role:"radiogroup","aria-label":unref(re)?void 0:ue.label||"radio-group","aria-labelledby":unref(re)?unref(k).labelId:void 0},[renderSlot(ue.$slots,"default")],10,_hoisted_1$1j))}});var RadioGroup$1=_export_sfc$2(_sfc_main$2a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const ElRadio=withInstall(Radio$1,{RadioButton,RadioGroup:RadioGroup$1}),ElRadioGroup=withNoopInstall(RadioGroup$1),ElRadioButton=withNoopInstall(RadioButton);var NodeContent$1=defineComponent({name:"NodeContent",setup(){return{ns:useNamespace("cascader-node")}},render(){const{ns:e}=this,{node:n,panel:r}=this.$parent,{data:g,label:$}=n,{renderLabelFn:L}=r;return h$2("span",{class:e.e("label")},L?L({node:n,data:g}):$)}});const CASCADER_PANEL_INJECTION_KEY=Symbol(),_sfc_main$29=defineComponent({name:"ElCascaderNode",components:{ElCheckbox,ElRadio,NodeContent:NodeContent$1,ElIcon,Check:check_default,Loading:loading_default,ArrowRight:arrow_right_default},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:n}){const r=inject(CASCADER_PANEL_INJECTION_KEY),g=useNamespace("cascader-node"),$=computed(()=>r.isHoverMenu),L=computed(()=>r.config.multiple),k=computed(()=>r.config.checkStrictly),oe=computed(()=>{var Ve;return(Ve=r.checkedNodes[0])==null?void 0:Ve.uid}),re=computed(()=>e.node.isDisabled),ae=computed(()=>e.node.isLeaf),le=computed(()=>k.value&&!ae.value||!re.value),ue=computed(()=>de(r.expandingNode)),pe=computed(()=>k.value&&r.checkedNodes.some(de)),de=Ve=>{var he;const{level:Oe,uid:$e}=e.node;return((he=Ve?.pathNodes[Oe-1])==null?void 0:he.uid)===$e},Fe=()=>{ue.value||r.expandNode(e.node)},ze=Ve=>{const{node:he}=e;Ve!==he.checked&&r.handleCheckChange(he,Ve)},Ce=()=>{r.lazyLoad(e.node,()=>{ae.value||Fe()})},Ie=Ve=>{!$.value||(_e(),!ae.value&&n("expand",Ve))},_e=()=>{const{node:Ve}=e;!le.value||Ve.loading||(Ve.loaded?Fe():Ce())},At=()=>{$.value&&!ae.value||(ae.value&&!re.value&&!k.value&&!L.value?xe(!0):_e())},qe=Ve=>{k.value?(ze(Ve),e.node.loaded&&Fe()):xe(Ve)},xe=Ve=>{e.node.loaded?(ze(Ve),!k.value&&Fe()):Ce()};return{panel:r,isHoverMenu:$,multiple:L,checkStrictly:k,checkedNodeId:oe,isDisabled:re,isLeaf:ae,expandable:le,inExpandingPath:ue,inCheckedPath:pe,ns:g,handleHoverExpand:Ie,handleExpand:_e,handleClick:At,handleCheck:xe,handleSelectCheck:qe}}}),_hoisted_1$1i=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_hoisted_2$X=createBaseVNode("span",null,null,-1);function _sfc_render$15(e,n,r,g,$,L){const k=resolveComponent("el-checkbox"),oe=resolveComponent("el-radio"),re=resolveComponent("check"),ae=resolveComponent("el-icon"),le=resolveComponent("node-content"),ue=resolveComponent("loading"),pe=resolveComponent("arrow-right");return openBlock(),createElementBlock("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:normalizeClass([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:n[2]||(n[2]=(...de)=>e.handleHoverExpand&&e.handleHoverExpand(...de)),onFocus:n[3]||(n[3]=(...de)=>e.handleHoverExpand&&e.handleHoverExpand(...de)),onClick:n[4]||(n[4]=(...de)=>e.handleClick&&e.handleClick(...de))},[createCommentVNode(" prefix "),e.multiple?(openBlock(),createBlock(k,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:n[0]||(n[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(openBlock(),createBlock(oe,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:n[1]||(n[1]=withModifiers(()=>{},["stop"]))},{default:withCtx(()=>[createCommentVNode(` + Add an empty element to avoid render label, + do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 + `),_hoisted_2$X]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(openBlock(),createBlock(ae,{key:2,class:normalizeClass(e.ns.e("prefix"))},{default:withCtx(()=>[createVNode(re)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(le),createCommentVNode(" postfix "),e.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[e.node.loading?(openBlock(),createBlock(ae,{key:0,class:normalizeClass([e.ns.is("loading"),e.ns.e("postfix")])},{default:withCtx(()=>[createVNode(ue)]),_:1},8,["class"])):(openBlock(),createBlock(ae,{key:1,class:normalizeClass(["arrow-right",e.ns.e("postfix")])},{default:withCtx(()=>[createVNode(pe)]),_:1},8,["class"]))],64))],42,_hoisted_1$1i)}var ElCascaderNode=_export_sfc$2(_sfc_main$29,[["render",_sfc_render$15],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _sfc_main$28=defineComponent({name:"ElCascaderMenu",components:{Loading:loading_default,ElIcon,ElScrollbar,ElCascaderNode},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const n=getCurrentInstance(),r=useNamespace("cascader-menu"),{t:g}=useLocale(),$=generateId();let L=null,k=null;const oe=inject(CASCADER_PANEL_INJECTION_KEY),re=ref(null),ae=computed(()=>!e.nodes.length),le=computed(()=>!oe.initialLoaded),ue=computed(()=>`cascader-menu-${$}-${e.index}`),pe=Ce=>{L=Ce.target},de=Ce=>{if(!(!oe.isHoverMenu||!L||!re.value))if(L.contains(Ce.target)){Fe();const Ie=n.vnode.el,{left:_e}=Ie.getBoundingClientRect(),{offsetWidth:At,offsetHeight:qe}=Ie,xe=Ce.clientX-_e,Ve=L.offsetTop,he=Ve+L.offsetHeight;re.value.innerHTML=` + + + `}else k||(k=window.setTimeout(ze,oe.config.hoverThreshold))},Fe=()=>{!k||(clearTimeout(k),k=null)},ze=()=>{!re.value||(re.value.innerHTML="",Fe())};return{ns:r,panel:oe,hoverZone:re,isEmpty:ae,isLoading:le,menuId:ue,t:g,handleExpand:pe,handleMouseMove:de,clearHoverZone:ze}}});function _sfc_render$14(e,n,r,g,$,L){const k=resolveComponent("el-cascader-node"),oe=resolveComponent("loading"),re=resolveComponent("el-icon"),ae=resolveComponent("el-scrollbar");return openBlock(),createBlock(ae,{key:e.menuId,tag:"ul",role:"menu",class:normalizeClass(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:withCtx(()=>{var le;return[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.nodes,ue=>(openBlock(),createBlock(k,{key:ue.uid,node:ue,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.ns.e("empty-text"))},[createVNode(re,{size:"14",class:normalizeClass(e.ns.is("loading"))},{default:withCtx(()=>[createVNode(oe)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.ns.e("empty-text"))},toDisplayString(e.t("el.cascader.noData")),3)):(le=e.panel)!=null&&le.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass(e.ns.e("hover-zone"))},null,2)):createCommentVNode("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ElCascaderMenu=_export_sfc$2(_sfc_main$28,[["render",_sfc_render$14],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]),ExpandTrigger=(e=>(e.CLICK="click",e.HOVER="hover",e))(ExpandTrigger||{});let uid=0;const calculatePathNodes=e=>{const n=[e];let{parent:r}=e;for(;r;)n.unshift(r),r=r.parent;return n};class Node$2{constructor(n,r,g,$=!1){this.data=n,this.config=r,this.parent=g,this.root=$,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:L,label:k,children:oe}=r,re=n[oe],ae=calculatePathNodes(this);this.level=$?0:g?g.level+1:1,this.value=n[L],this.label=n[k],this.pathNodes=ae,this.pathValues=ae.map(le=>le.value),this.pathLabels=ae.map(le=>le.label),this.childrenData=re,this.children=(re||[]).map(le=>new Node$2(le,r,this)),this.loaded=!r.lazy||this.isLeaf||!isEmpty(re)}get isDisabled(){const{data:n,parent:r,config:g}=this,{disabled:$,checkStrictly:L}=g;return(isFunction$1($)?$(n,this):!!n[$])||!L&&r?.isDisabled}get isLeaf(){const{data:n,config:r,childrenData:g,loaded:$}=this,{lazy:L,leaf:k}=r,oe=isFunction$1(k)?k(n,this):n[k];return isUndefined(oe)?L&&!$?!1:!(Array.isArray(g)&&g.length):!!oe}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(n){const{childrenData:r,children:g}=this,$=new Node$2(n,this.config,this);return Array.isArray(r)?r.push(n):this.childrenData=[n],g.push($),$}calcText(n,r){const g=n?this.pathLabels.join(r):this.label;return this.text=g,g}broadcast(n,...r){const g=`onParent${capitalize(n)}`;this.children.forEach($=>{$&&($.broadcast(n,...r),$[g]&&$[g](...r))})}emit(n,...r){const{parent:g}=this,$=`onChild${capitalize(n)}`;g&&(g[$]&&g[$](...r),g.emit(n,...r))}onParentCheck(n){this.isDisabled||this.setCheckState(n)}onChildCheck(){const{children:n}=this,r=n.filter($=>!$.isDisabled),g=r.length?r.every($=>$.checked):!1;this.setCheckState(g)}setCheckState(n){const r=this.children.length,g=this.children.reduce(($,L)=>{const k=L.checked?1:L.indeterminate?.5:0;return $+k},0);this.checked=this.loaded&&this.children.filter($=>!$.isDisabled).every($=>$.loaded&&$.checked)&&n,this.indeterminate=this.loaded&&g!==r&&g>0}doCheck(n){if(this.checked===n)return;const{checkStrictly:r,multiple:g}=this.config;r||!g?this.checked=n:(this.broadcast("check",n),this.setCheckState(n),this.emit("check"))}}const flatNodes=(e,n)=>e.reduce((r,g)=>(g.isLeaf?r.push(g):(!n&&r.push(g),r=r.concat(flatNodes(g.children,n))),r),[]);class Store{constructor(n,r){this.config=r;const g=(n||[]).map($=>new Node$2($,this.config));this.nodes=g,this.allNodes=flatNodes(g,!1),this.leafNodes=flatNodes(g,!0)}getNodes(){return this.nodes}getFlattedNodes(n){return n?this.leafNodes:this.allNodes}appendNode(n,r){const g=r?r.appendChild(n):new Node$2(n,this.config);r||this.nodes.push(g),this.allNodes.push(g),g.isLeaf&&this.leafNodes.push(g)}appendNodes(n,r){n.forEach(g=>this.appendNode(g,r))}getNodeByValue(n,r=!1){return!n&&n!==0?null:this.getFlattedNodes(r).find($=>isEqual$1($.value,n)||isEqual$1($.pathValues,n))||null}getSameNode(n){return n&&this.getFlattedNodes(!1).find(({value:g,level:$})=>isEqual$1(n.value,g)&&n.level===$)||null}}const CommonProps={modelValue:[Number,String,Array],options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}},DefaultProps={expandTrigger:ExpandTrigger.CLICK,multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:NOOP,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},useCascaderConfig=e=>computed(()=>({...DefaultProps,...e.props})),getMenuIndex=e=>{if(!e)return 0;const n=e.id.split("-");return Number(n[n.length-2])},checkNode=e=>{if(!e)return;const n=e.querySelector("input");n?n.click():isLeaf(e)&&e.click()},sortByOriginalOrder=(e,n)=>{const r=n.slice(0),g=r.map(L=>L.uid),$=e.reduce((L,k)=>{const oe=g.indexOf(k.uid);return oe>-1&&(L.push(k),r.splice(oe,1),g.splice(oe,1)),L},[]);return $.push(...r),$},_sfc_main$27=defineComponent({name:"ElCascaderPanel",components:{ElCascaderMenu},props:{...CommonProps,border:{type:Boolean,default:!0},renderLabel:Function},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"close","expand-change"],setup(e,{emit:n,slots:r}){let g=!1;const $=useNamespace("cascader"),L=useCascaderConfig(e);let k=null;const oe=ref(!0),re=ref([]),ae=ref(null),le=ref([]),ue=ref(null),pe=ref([]),de=computed(()=>L.value.expandTrigger===ExpandTrigger.HOVER),Fe=computed(()=>e.renderLabel||r.default),ze=()=>{const{options:kt}=e,Et=L.value;g=!1,k=new Store(kt,Et),le.value=[k.getNodes()],Et.lazy&&isEmpty(e.options)?(oe.value=!1,Ce(void 0,Pt=>{Pt&&(k=new Store(Pt,Et),le.value=[k.getNodes()]),oe.value=!0,Oe(!1,!0)})):Oe(!1,!0)},Ce=(kt,Et)=>{const Pt=L.value;kt=kt||new Node$2({},Pt,void 0,!0),kt.loading=!0;const Lt=vn=>{const hn=kt,Dt=hn.root?null:hn;vn&&k?.appendNodes(vn,Dt),hn.loading=!1,hn.loaded=!0,hn.childrenData=hn.childrenData||[],Et&&Et(vn)};Pt.lazyLoad(kt,Lt)},Ie=(kt,Et)=>{var Pt;const{level:Lt}=kt,vn=le.value.slice(0,Lt);let hn;kt.isLeaf?hn=kt.pathNodes[Lt-2]:(hn=kt,vn.push(kt.children)),((Pt=ue.value)==null?void 0:Pt.uid)!==hn?.uid&&(ue.value=kt,le.value=vn,!Et&&n("expand-change",kt?.pathValues||[]))},_e=(kt,Et,Pt=!0)=>{const{checkStrictly:Lt,multiple:vn}=L.value,hn=pe.value[0];g=!0,!vn&&hn?.doCheck(!1),kt.doCheck(Et),he(),Pt&&!vn&&!Lt&&n("close"),!Pt&&!vn&&!Lt&&At(kt)},At=kt=>{!kt||(kt=kt.parent,At(kt),kt&&Ie(kt))},qe=kt=>k?.getFlattedNodes(kt),xe=kt=>{var Et;return(Et=qe(kt))==null?void 0:Et.filter(Pt=>Pt.checked!==!1)},Ve=()=>{pe.value.forEach(kt=>kt.doCheck(!1)),he()},he=()=>{var kt;const{checkStrictly:Et,multiple:Pt}=L.value,Lt=pe.value,vn=xe(!Et),hn=sortByOriginalOrder(Lt,vn),Dt=hn.map(jt=>jt.valueByOption);pe.value=hn,ae.value=Pt?Dt:(kt=Dt[0])!=null?kt:null},Oe=(kt=!1,Et=!1)=>{const{modelValue:Pt}=e,{lazy:Lt,multiple:vn,checkStrictly:hn}=L.value,Dt=!hn;if(!(!oe.value||g||!Et&&isEqual$1(Pt,ae.value)))if(Lt&&!kt){const bn=unique(flattenDeep(castArray(Pt))).map(Sn=>k?.getNodeByValue(Sn)).filter(Sn=>!!Sn&&!Sn.loaded&&!Sn.loading);bn.length?bn.forEach(Sn=>{Ce(Sn,()=>Oe(!1,Et))}):Oe(!0,Et)}else{const jt=vn?castArray(Pt):[Pt],bn=unique(jt.map(Sn=>k?.getNodeByValue(Sn,Dt)));$e(bn,Et),ae.value=Pt}},$e=(kt,Et=!0)=>{const{checkStrictly:Pt}=L.value,Lt=pe.value,vn=kt.filter(jt=>!!jt&&(Pt||jt.isLeaf)),hn=k?.getSameNode(ue.value),Dt=Et&&hn||vn[0];Dt?Dt.pathNodes.forEach(jt=>Ie(jt,!0)):ue.value=null,Lt.forEach(jt=>jt.doCheck(!1)),vn.forEach(jt=>jt.doCheck(!0)),pe.value=vn,nextTick(Ne)},Ne=()=>{!isClient||re.value.forEach(kt=>{const Et=kt?.$el;if(Et){const Pt=Et.querySelector(`.${$.namespace.value}-scrollbar__wrap`),Lt=Et.querySelector(`.${$.b("node")}.${$.is("active")}`)||Et.querySelector(`.${$.b("node")}.in-active-path`);scrollIntoView$2(Pt,Lt)}})},Ue=kt=>{const Et=kt.target,{code:Pt}=kt;switch(Pt){case EVENT_CODE.up:case EVENT_CODE.down:{kt.preventDefault();const Lt=Pt===EVENT_CODE.up?-1:1;focusNode(getSibling(Et,Lt,`.${$.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{kt.preventDefault();const Lt=re.value[getMenuIndex(Et)-1],vn=Lt?.$el.querySelector(`.${$.b("node")}[aria-expanded="true"]`);focusNode(vn);break}case EVENT_CODE.right:{kt.preventDefault();const Lt=re.value[getMenuIndex(Et)+1],vn=Lt?.$el.querySelector(`.${$.b("node")}[tabindex="-1"]`);focusNode(vn);break}case EVENT_CODE.enter:checkNode(Et);break}};return provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:L,expandingNode:ue,checkedNodes:pe,isHoverMenu:de,initialLoaded:oe,renderLabelFn:Fe,lazyLoad:Ce,expandNode:Ie,handleCheckChange:_e})),watch([L,()=>e.options],ze,{deep:!0,immediate:!0}),watch(()=>e.modelValue,()=>{g=!1,Oe()}),watch(ae,kt=>{isEqual$1(kt,e.modelValue)||(n(UPDATE_MODEL_EVENT,kt),n(CHANGE_EVENT,kt))}),onBeforeUpdate(()=>re.value=[]),onMounted(()=>!isEmpty(e.modelValue)&&Oe()),{ns:$,menuList:re,menus:le,checkedNodes:pe,handleKeyDown:Ue,handleCheckChange:_e,getFlattedNodes:qe,getCheckedNodes:xe,clearCheckedNodes:Ve,calculateCheckedValue:he,scrollToExpandingNode:Ne}}});function _sfc_render$13(e,n,r,g,$,L){const k=resolveComponent("el-cascader-menu");return openBlock(),createElementBlock("div",{class:normalizeClass([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:n[0]||(n[0]=(...oe)=>e.handleKeyDown&&e.handleKeyDown(...oe))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.menus,(oe,re)=>(openBlock(),createBlock(k,{key:re,ref_for:!0,ref:ae=>e.menuList[re]=ae,index:re,nodes:[...oe]},null,8,["index","nodes"]))),128))],34)}var CascaderPanel=_export_sfc$2(_sfc_main$27,[["render",_sfc_render$13],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);CascaderPanel.install=e=>{e.component(CascaderPanel.name,CascaderPanel)};const _CascaderPanel=CascaderPanel,ElCascaderPanel=_CascaderPanel,tagProps=buildProps({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:componentSizes,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},__default__$Y={name:"ElTag"},_sfc_main$26=defineComponent({...__default__$Y,props:tagProps,emits:tagEmits,setup(e,{emit:n}){const r=e,g=useSize(),$=useNamespace("tag"),L=computed(()=>{const{type:re,hit:ae,effect:le,closable:ue,round:pe}=r;return[$.b(),$.is("closable",ue),$.m(re),$.m(g.value),$.m(le),$.is("hit",ae),$.is("round",pe)]}),k=re=>{n("close",re)},oe=re=>{n("click",re)};return(re,ae)=>re.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(L)),style:normalizeStyle({backgroundColor:re.color}),onClick:oe},[createBaseVNode("span",{class:normalizeClass(unref($).e("content"))},[renderSlot(re.$slots,"default")],2),re.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($).e("close")),onClick:withModifiers(k,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref($).namespace.value}-zoom-in-center`,appear:""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(L)),style:normalizeStyle({backgroundColor:re.color}),onClick:oe},[createBaseVNode("span",{class:normalizeClass(unref($).e("content"))},[renderSlot(re.$slots,"default")],2),re.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($).e("close")),onClick:withModifiers(k,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Tag$1=_export_sfc$2(_sfc_main$26,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const ElTag=withInstall(Tag$1),DEFAULT_INPUT_HEIGHT=40,INPUT_HEIGHT_MAP={large:36,default:32,small:28},popperOptions={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:n,placement:r}=e;["right","left","bottom","top"].includes(r)||(n.arrow.x=35)},requires:["arrow"]}]},COMPONENT_NAME$a="ElCascader",_sfc_main$25=defineComponent({name:COMPONENT_NAME$a,components:{ElCascaderPanel:_CascaderPanel,ElInput,ElTooltip,ElScrollbar,ElTag,ElIcon,CircleClose:circle_close_default,Check:check_default,ArrowDown:arrow_down_default},directives:{Clickoutside:ClickOutside},props:{...CommonProps,size:{type:String,validator:isValidComponentSize},placeholder:{type:String},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Function,default:(e,n)=>e.text.includes(n)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:()=>!0},popperClass:{type:String,default:""},teleported:useTooltipContentProps.teleported,tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0}},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"focus","blur","visible-change","expand-change","remove-tag"],setup(e,{emit:n}){let r=0,g=0;const $=useNamespace("cascader"),L=useNamespace("input"),{t:k}=useLocale(),oe=inject(formContextKey,{}),re=inject(formItemContextKey,{}),ae=ref(null),le=ref(null),ue=ref(null),pe=ref(null),de=ref(null),Fe=ref(!1),ze=ref(!1),Ce=ref(!1),Ie=ref(""),_e=ref(""),At=ref([]),qe=ref([]),xe=ref([]),Ve=ref(!1),he=computed(()=>e.disabled||oe.disabled),Oe=computed(()=>e.placeholder||k("el.cascader.placeholder")),$e=useSize(),Ne=computed(()=>["small"].includes($e.value)?"small":"default"),Ue=computed(()=>!!e.props.multiple),kt=computed(()=>!e.filterable||Ue.value),Et=computed(()=>Ue.value?_e.value:Ie.value),Pt=computed(()=>{var Bn;return((Bn=pe.value)==null?void 0:Bn.checkedNodes)||[]}),Lt=computed(()=>!e.clearable||he.value||Ce.value||!ze.value?!1:!!Pt.value.length),vn=computed(()=>{const{showAllLevels:Bn,separator:Ln}=e,Hn=Pt.value;return Hn.length?Ue.value?" ":Hn[0].calcText(Bn,Ln):""}),hn=computed({get(){return e.modelValue},set(Bn){var Ln;n(UPDATE_MODEL_EVENT,Bn),n(CHANGE_EVENT,Bn),e.validateEvent&&((Ln=re.validate)==null||Ln.call(re,"change").catch(Hn=>void 0))}}),Dt=computed(()=>{var Bn,Ln;return(Ln=(Bn=ae.value)==null?void 0:Bn.popperRef)==null?void 0:Ln.contentRef}),jt=Bn=>{var Ln,Hn,zn;if(!he.value&&(Bn=Bn??!Fe.value,Bn!==Fe.value)){if(Fe.value=Bn,(Hn=(Ln=le.value)==null?void 0:Ln.input)==null||Hn.setAttribute("aria-expanded",`${Bn}`),Bn)bn(),nextTick((zn=pe.value)==null?void 0:zn.scrollToExpandingNode);else if(e.filterable){const{value:Jn}=vn;Ie.value=Jn,_e.value=Jn}n("visible-change",Bn)}},bn=()=>{nextTick(()=>{var Bn;(Bn=ae.value)==null||Bn.updatePopper()})},Sn=()=>{Ce.value=!1},Cn=Bn=>{const{showAllLevels:Ln,separator:Hn}=e;return{node:Bn,key:Bn.uid,text:Bn.calcText(Ln,Hn),hitState:!1,closable:!he.value&&!Bn.isDisabled,isCollapseTag:!1}},On=Bn=>{var Ln;const Hn=Bn.node;Hn.doCheck(!1),(Ln=pe.value)==null||Ln.calculateCheckedValue(),n("remove-tag",Hn.valueByOption)},En=()=>{if(!Ue.value)return;const Bn=Pt.value,Ln=[],Hn=[];if(Bn.forEach(zn=>Hn.push(Cn(zn))),qe.value=Hn,Bn.length){const[zn,...Jn]=Bn,co=Jn.length;Ln.push(Cn(zn)),co&&(e.collapseTags?Ln.push({key:-1,text:`+ ${co}`,closable:!1,isCollapseTag:!0}):Jn.forEach(Gn=>Ln.push(Cn(Gn))))}At.value=Ln},An=()=>{var Bn,Ln;const{filterMethod:Hn,showAllLevels:zn,separator:Jn}=e,co=(Ln=(Bn=pe.value)==null?void 0:Bn.getFlattedNodes(!e.props.checkStrictly))==null?void 0:Ln.filter(Gn=>Gn.isDisabled?!1:(Gn.calcText(zn,Jn),Hn(Gn,Et.value)));Ue.value&&(At.value.forEach(Gn=>{Gn.hitState=!1}),qe.value.forEach(Gn=>{Gn.hitState=!1})),Ce.value=!0,xe.value=co,bn()},In=()=>{var Bn;let Ln;Ce.value&&de.value?Ln=de.value.$el.querySelector(`.${$.e("suggestion-item")}`):Ln=(Bn=pe.value)==null?void 0:Bn.$el.querySelector(`.${$.b("node")}[tabindex="-1"]`),Ln&&(Ln.focus(),!Ce.value&&Ln.click())},$n=()=>{var Bn,Ln;const Hn=(Bn=le.value)==null?void 0:Bn.input,zn=ue.value,Jn=(Ln=de.value)==null?void 0:Ln.$el;if(!(!isClient||!Hn)){if(Jn){const co=Jn.querySelector(`.${$.e("suggestion-list")}`);co.style.minWidth=`${Hn.offsetWidth}px`}if(zn){const{offsetHeight:co}=zn,Gn=At.value.length>0?`${Math.max(co+6,r)}px`:`${r}px`;Hn.style.height=Gn,bn()}}},Pn=Bn=>{var Ln;return(Ln=pe.value)==null?void 0:Ln.getCheckedNodes(Bn)},Dn=Bn=>{bn(),n("expand-change",Bn)},Mn=Bn=>{var Ln;const Hn=(Ln=Bn.target)==null?void 0:Ln.value;if(Bn.type==="compositionend")Ve.value=!1,nextTick(()=>xn(Hn));else{const zn=Hn[Hn.length-1]||"";Ve.value=!isKorean(zn)}},Fn=Bn=>{if(!Ve.value)switch(Bn.code){case EVENT_CODE.enter:jt();break;case EVENT_CODE.down:jt(!0),nextTick(In),Bn.preventDefault();break;case EVENT_CODE.esc:Fe.value===!0&&(Bn.preventDefault(),Bn.stopPropagation(),jt(!1));break;case EVENT_CODE.tab:jt(!1);break}},kn=()=>{var Bn;(Bn=pe.value)==null||Bn.clearCheckedNodes(),jt(!1)},Nn=Bn=>{var Ln,Hn;const{checked:zn}=Bn;Ue.value?(Ln=pe.value)==null||Ln.handleCheckChange(Bn,!zn,!1):(!zn&&((Hn=pe.value)==null||Hn.handleCheckChange(Bn,!0,!1)),jt(!1))},Rn=Bn=>{const Ln=Bn.target,{code:Hn}=Bn;switch(Hn){case EVENT_CODE.up:case EVENT_CODE.down:{const zn=Hn===EVENT_CODE.up?-1:1;focusNode(getSibling(Ln,zn,`.${$.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:Ln.click();break}},wn=()=>{const Bn=At.value,Ln=Bn[Bn.length-1];g=_e.value?0:g+1,!(!Ln||!g)&&(Ln.hitState?On(Ln):Ln.hitState=!0)},Tn=debounce(()=>{const{value:Bn}=Et;if(!Bn)return;const Ln=e.beforeFilter(Bn);isPromise(Ln)?Ln.then(An).catch(()=>{}):Ln!==!1?An():Sn()},e.debounce),xn=(Bn,Ln)=>{!Fe.value&&jt(!0),!Ln?.isComposing&&(Bn?Tn():Sn())};return watch(Ce,bn),watch([Pt,he],En),watch(At,()=>{nextTick(()=>$n())}),watch(vn,Bn=>Ie.value=Bn,{immediate:!0}),onMounted(()=>{var Bn;const Ln=(Bn=le.value)==null?void 0:Bn.$el;r=Ln?.offsetHeight||INPUT_HEIGHT_MAP[$e.value]||DEFAULT_INPUT_HEIGHT,useResizeObserver(Ln,$n)}),{popperOptions,tooltipRef:ae,popperPaneRef:Dt,input:le,tagWrapper:ue,panel:pe,suggestionPanel:de,popperVisible:Fe,inputHover:ze,inputPlaceholder:Oe,filtering:Ce,presentText:vn,checkedValue:hn,inputValue:Ie,searchInputValue:_e,presentTags:At,allPresentTags:qe,suggestions:xe,isDisabled:he,isOnComposition:Ve,realSize:$e,tagSize:Ne,multiple:Ue,readonly:kt,clearBtnVisible:Lt,nsCascader:$,nsInput:L,t:k,togglePopperVisible:jt,hideSuggestionPanel:Sn,deleteTag:On,focusFirstNode:In,getCheckedNodes:Pn,handleExpandChange:Dn,handleKeyDown:Fn,handleComposition:Mn,handleClear:kn,handleSuggestionClick:Nn,handleSuggestionKeyDown:Rn,handleDelete:wn,handleInput:xn}}}),_hoisted_1$1h={key:0},_hoisted_2$W=["placeholder"],_hoisted_3$w=["onClick"];function _sfc_render$12(e,n,r,g,$,L){const k=resolveComponent("circle-close"),oe=resolveComponent("el-icon"),re=resolveComponent("arrow-down"),ae=resolveComponent("el-input"),le=resolveComponent("el-tag"),ue=resolveComponent("el-tooltip"),pe=resolveComponent("el-cascader-panel"),de=resolveComponent("check"),Fe=resolveComponent("el-scrollbar"),ze=resolveDirective("clickoutside");return openBlock(),createBlock(ue,{ref:"tooltipRef",visible:e.popperVisible,teleported:e.teleported,"popper-class":[e.nsCascader.e("dropdown"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${e.nsCascader.namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:e.hideSuggestionPanel},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass([e.nsCascader.b(),e.nsCascader.m(e.realSize),e.nsCascader.is("disabled",e.isDisabled),e.$attrs.class]),style:normalizeStyle(e.$attrs.style),onClick:n[11]||(n[11]=()=>e.togglePopperVisible(e.readonly?void 0:!0)),onKeydown:n[12]||(n[12]=(...Ce)=>e.handleKeyDown&&e.handleKeyDown(...Ce)),onMouseenter:n[13]||(n[13]=Ce=>e.inputHover=!0),onMouseleave:n[14]||(n[14]=Ce=>e.inputHover=!1)},[createVNode(ae,{ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":n[1]||(n[1]=Ce=>e.inputValue=Ce),placeholder:e.searchInputValue?"":e.inputPlaceholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1,size:e.realSize,class:normalizeClass(e.nsCascader.is("focus",e.popperVisible)),onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onFocus:n[2]||(n[2]=Ce=>e.$emit("focus",Ce)),onBlur:n[3]||(n[3]=Ce=>e.$emit("blur",Ce)),onInput:e.handleInput},{suffix:withCtx(()=>[e.clearBtnVisible?(openBlock(),createBlock(oe,{key:"clear",class:normalizeClass([e.nsInput.e("icon"),"icon-circle-close"]),onClick:withModifiers(e.handleClear,["stop"])},{default:withCtx(()=>[createVNode(k)]),_:1},8,["class","onClick"])):(openBlock(),createBlock(oe,{key:"arrow-down",class:normalizeClass([e.nsInput.e("icon"),"icon-arrow-down",e.nsCascader.is("reverse",e.popperVisible)]),onClick:n[0]||(n[0]=withModifiers(Ce=>e.togglePopperVisible(),["stop"]))},{default:withCtx(()=>[createVNode(re)]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","onCompositionstart","onCompositionupdate","onCompositionend","onInput"]),e.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tagWrapper",class:normalizeClass(e.nsCascader.e("tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.presentTags,Ce=>(openBlock(),createBlock(le,{key:Ce.key,type:e.tagType,size:e.tagSize,hit:Ce.hitState,closable:Ce.closable,"disable-transitions":"",onClose:Ie=>e.deleteTag(Ce)},{default:withCtx(()=>[Ce.isCollapseTag===!1?(openBlock(),createElementBlock("span",_hoisted_1$1h,toDisplayString(Ce.text),1)):(openBlock(),createBlock(ue,{key:1,teleported:!1,disabled:e.popperVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(Ce.text),1)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(e.nsCascader.e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.allPresentTags,(Ie,_e)=>(openBlock(),createElementBlock("div",{key:_e,class:normalizeClass(e.nsCascader.e("collapse-tag"))},[(openBlock(),createBlock(le,{key:Ie.key,class:"in-tooltip",type:e.tagType,size:e.tagSize,hit:Ie.hitState,closable:Ie.closable,"disable-transitions":"",onClose:At=>e.deleteTag(Ie)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString(Ie.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),e.filterable&&!e.isDisabled?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":n[4]||(n[4]=Ce=>e.searchInputValue=Ce),type:"text",class:normalizeClass(e.nsCascader.e("search-input")),placeholder:e.presentText?"":e.inputPlaceholder,onInput:n[5]||(n[5]=Ce=>e.handleInput(e.searchInputValue,Ce)),onClick:n[6]||(n[6]=withModifiers(Ce=>e.togglePopperVisible(!0),["stop"])),onKeydown:n[7]||(n[7]=withKeys((...Ce)=>e.handleDelete&&e.handleDelete(...Ce),["delete"])),onCompositionstart:n[8]||(n[8]=(...Ce)=>e.handleComposition&&e.handleComposition(...Ce)),onCompositionupdate:n[9]||(n[9]=(...Ce)=>e.handleComposition&&e.handleComposition(...Ce)),onCompositionend:n[10]||(n[10]=(...Ce)=>e.handleComposition&&e.handleComposition(...Ce))},null,42,_hoisted_2$W)),[[vModelText,e.searchInputValue]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[ze,()=>e.togglePopperVisible(!1),e.popperPaneRef]])]),content:withCtx(()=>[withDirectives(createVNode(pe,{ref:"panel",modelValue:e.checkedValue,"onUpdate:modelValue":n[15]||(n[15]=Ce=>e.checkedValue=Ce),options:e.options,props:e.props,border:!1,"render-label":e.$slots.default,onExpandChange:e.handleExpandChange,onClose:n[16]||(n[16]=Ce=>e.$nextTick(()=>e.togglePopperVisible(!1)))},null,8,["modelValue","options","props","render-label","onExpandChange"]),[[vShow,!e.filtering]]),e.filterable?withDirectives((openBlock(),createBlock(Fe,{key:0,ref:"suggestionPanel",tag:"ul",class:normalizeClass(e.nsCascader.e("suggestion-panel")),"view-class":e.nsCascader.e("suggestion-list"),onKeydown:e.handleSuggestionKeyDown},{default:withCtx(()=>[e.suggestions.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.suggestions,Ce=>(openBlock(),createElementBlock("li",{key:Ce.uid,class:normalizeClass([e.nsCascader.e("suggestion-item"),e.nsCascader.is("checked",Ce.checked)]),tabindex:-1,onClick:Ie=>e.handleSuggestionClick(Ce)},[createBaseVNode("span",null,toDisplayString(Ce.text),1),Ce.checked?(openBlock(),createBlock(oe,{key:0},{default:withCtx(()=>[createVNode(de)]),_:1})):createCommentVNode("v-if",!0)],10,_hoisted_3$w))),128)):renderSlot(e.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(e.nsCascader.e("empty-text"))},toDisplayString(e.t("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class","onKeydown"])),[[vShow,e.filtering]]):createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-options","transition","onHide"])}var Cascader=_export_sfc$2(_sfc_main$25,[["render",_sfc_render$12],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/index.vue"]]);Cascader.install=e=>{e.component(Cascader.name,Cascader)};const _Cascader=Cascader,ElCascader=_Cascader,checkTagProps=buildProps({checked:{type:Boolean,default:!1}}),checkTagEmits={"update:checked":e=>isBoolean(e),[CHANGE_EVENT]:e=>isBoolean(e)},__default__$X={name:"ElCheckTag"},_sfc_main$24=defineComponent({...__default__$X,props:checkTagProps,emits:checkTagEmits,setup(e,{emit:n}){const r=e,g=useNamespace("check-tag"),$=()=>{const L=!r.checked;n(CHANGE_EVENT,L),n("update:checked",L)};return(L,k)=>(openBlock(),createElementBlock("span",{class:normalizeClass([unref(g).b(),unref(g).is("checked",L.checked)]),onClick:$},[renderSlot(L.$slots,"default")],2))}});var CheckTag=_export_sfc$2(_sfc_main$24,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ElCheckTag=withInstall(CheckTag),colProps=buildProps({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:definePropType([Number,Object]),default:()=>mutable({})},sm:{type:definePropType([Number,Object]),default:()=>mutable({})},md:{type:definePropType([Number,Object]),default:()=>mutable({})},lg:{type:definePropType([Number,Object]),default:()=>mutable({})},xl:{type:definePropType([Number,Object]),default:()=>mutable({})}}),__default__$W={name:"ElCol"},_sfc_main$23=defineComponent({...__default__$W,props:colProps,setup(e){const n=e,{gutter:r}=inject(rowContextKey,{gutter:computed(()=>0)}),g=useNamespace("col"),$=computed(()=>{const k={};return r.value&&(k.paddingLeft=k.paddingRight=`${r.value/2}px`),k}),L=computed(()=>{const k=[];return["span","offset","pull","push"].forEach(ae=>{const le=n[ae];isNumber(le)&&(ae==="span"?k.push(g.b(`${n[ae]}`)):le>0&&k.push(g.b(`${ae}-${n[ae]}`)))}),["xs","sm","md","lg","xl"].forEach(ae=>{isNumber(n[ae])?k.push(g.b(`${ae}-${n[ae]}`)):isObject$4(n[ae])&&Object.entries(n[ae]).forEach(([le,ue])=>{k.push(le!=="span"?g.b(`${ae}-${le}-${ue}`):g.b(`${ae}-${ue}`))})}),r.value&&k.push(g.is("guttered")),k});return(k,oe)=>(openBlock(),createBlock(resolveDynamicComponent(k.tag),{class:normalizeClass([unref(g).b(),unref(L)]),style:normalizeStyle(unref($))},{default:withCtx(()=>[renderSlot(k.$slots,"default")]),_:3},8,["class","style"]))}});var Col=_export_sfc$2(_sfc_main$23,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ElCol=withInstall(Col),emitChangeFn=e=>typeof isNumber(e),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},__default__$V={name:"ElCollapse"},_sfc_main$22=defineComponent({...__default__$V,props:collapseProps,emits:collapseEmits,setup(e,{expose:n,emit:r}){const g=e,$=useNamespace("collapse"),L=ref(castArray$1(g.modelValue)),k=re=>{L.value=re;const ae=g.accordion?L.value[0]:L.value;r(UPDATE_MODEL_EVENT,ae),r(CHANGE_EVENT,ae)},oe=re=>{if(g.accordion)k([(L.value[0]||L.value[0]===0)&&L.value[0]===re?"":re]);else{const ae=[...L.value],le=ae.indexOf(re);le>-1?ae.splice(le,1):ae.push(re),k(ae)}};return watch(()=>g.modelValue,()=>L.value=castArray$1(g.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:L,handleItemClick:oe}),n({activeNames:L,setActiveNames:k}),(re,ae)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref($).b()),role:"tablist","aria-multiselectable":"true"},[renderSlot(re.$slots,"default")],2))}});var Collapse$1=_export_sfc$2(_sfc_main$22,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const __default__$U={name:"ElCollapseTransition"},_sfc_main$21=defineComponent({...__default__$U,setup(e){const n=useNamespace("collapse-transition"),r={beforeEnter(g){g.dataset||(g.dataset={}),g.dataset.oldPaddingTop=g.style.paddingTop,g.dataset.oldPaddingBottom=g.style.paddingBottom,g.style.maxHeight=0,g.style.paddingTop=0,g.style.paddingBottom=0},enter(g){g.dataset.oldOverflow=g.style.overflow,g.scrollHeight!==0?(g.style.maxHeight=`${g.scrollHeight}px`,g.style.paddingTop=g.dataset.oldPaddingTop,g.style.paddingBottom=g.dataset.oldPaddingBottom):(g.style.maxHeight=0,g.style.paddingTop=g.dataset.oldPaddingTop,g.style.paddingBottom=g.dataset.oldPaddingBottom),g.style.overflow="hidden"},afterEnter(g){g.style.maxHeight="",g.style.overflow=g.dataset.oldOverflow},beforeLeave(g){g.dataset||(g.dataset={}),g.dataset.oldPaddingTop=g.style.paddingTop,g.dataset.oldPaddingBottom=g.style.paddingBottom,g.dataset.oldOverflow=g.style.overflow,g.style.maxHeight=`${g.scrollHeight}px`,g.style.overflow="hidden"},leave(g){g.scrollHeight!==0&&(g.style.maxHeight=0,g.style.paddingTop=0,g.style.paddingBottom=0)},afterLeave(g){g.style.maxHeight="",g.style.overflow=g.dataset.oldOverflow,g.style.paddingTop=g.dataset.oldPaddingTop,g.style.paddingBottom=g.dataset.oldPaddingBottom}};return(g,$)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(n).b()},toHandlers(r)),{default:withCtx(()=>[renderSlot(g.$slots,"default")]),_:3},16,["name"]))}});var CollapseTransition=_export_sfc$2(_sfc_main$21,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);CollapseTransition.install=e=>{e.component(CollapseTransition.name,CollapseTransition)};const _CollapseTransition=CollapseTransition,ElCollapseTransition=_CollapseTransition,collapseItemProps=buildProps({title:{type:String,default:""},name:{type:definePropType([String,Number]),default:()=>generateId()},disabled:Boolean}),_hoisted_1$1g=["aria-expanded","aria-controls","aria-describedby"],_hoisted_2$V=["id","tabindex","onKeypress"],_hoisted_3$v=["id","aria-hidden","aria-labelledby"],__default__$T={name:"ElCollapseItem"},_sfc_main$20=defineComponent({...__default__$T,props:collapseItemProps,setup(e,{expose:n}){const r=e,g=inject(collapseContextKey),$=useNamespace("collapse"),L=ref(!1),k=ref(!1),oe=ref(generateId()),re=computed(()=>g?.activeNames.value.includes(r.name)),ae=()=>{setTimeout(()=>{k.value?k.value=!1:L.value=!0},50)},le=()=>{r.disabled||(g?.handleItemClick(r.name),L.value=!1,k.value=!0)},ue=()=>{g?.handleItemClick(r.name)};return n({isActive:re}),(pe,de)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref($).b("item"),unref($).is("active",unref(re)),unref($).is("disabled",pe.disabled)])},[createBaseVNode("div",{role:"tab","aria-expanded":unref(re),"aria-controls":unref($).b(`content-${oe.value}`),"aria-describedby":unref($).b(`content-${oe.value}`)},[createBaseVNode("div",{id:unref($).b(`head-${oe.value}`),class:normalizeClass([unref($).be("item","header"),unref($).is("active",unref(re)),{focusing:L.value&&!pe.disabled}]),role:"button",tabindex:pe.disabled?-1:0,onClick:le,onKeypress:withKeys(withModifiers(ue,["stop","prevent"]),["space","enter"]),onFocus:ae,onBlur:de[0]||(de[0]=Fe=>L.value=!1)},[renderSlot(pe.$slots,"title",{},()=>[createTextVNode(toDisplayString(pe.title),1)]),createVNode(unref(ElIcon),{class:normalizeClass([unref($).be("item","arrow"),unref($).is("active",unref(re))])},{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1},8,["class"])],42,_hoisted_2$V)],8,_hoisted_1$1g),createVNode(unref(_CollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref($).b(`content-${oe.value}`),class:normalizeClass(unref($).be("item","wrap")),role:"tabpanel","aria-hidden":!unref(re),"aria-labelledby":unref($).b(`head-${oe.value}`)},[createBaseVNode("div",{class:normalizeClass(unref($).be("item","content"))},[renderSlot(pe.$slots,"default")],2)],10,_hoisted_3$v),[[vShow,unref(re)]])]),_:3})],2))}});var CollapseItem=_export_sfc$2(_sfc_main$20,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const ElCollapse=withInstall(Collapse$1,{CollapseItem}),ElCollapseItem=withNoopInstall(CollapseItem);let isDragging=!1;function draggable$1(e,n){if(!isClient)return;const r=function(L){var k;(k=n.drag)==null||k.call(n,L)},g=function(L){var k;document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",g),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(k=n.end)==null||k.call(n,L)},$=function(L){var k;isDragging||(L.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r),document.addEventListener("mouseup",g),document.addEventListener("touchmove",r),document.addEventListener("touchend",g),isDragging=!0,(k=n.start)==null||k.call(n,L))};e.addEventListener("mousedown",$),e.addEventListener("touchstart",$)}const _sfc_main$1$=defineComponent({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const n=useNamespace("color-alpha-slider"),r=getCurrentInstance(),g=shallowRef(null),$=shallowRef(null),L=ref(0),k=ref(0),oe=ref(null);watch(()=>e.color.get("alpha"),()=>{de()}),watch(()=>e.color.value,()=>{de()});function re(){if(e.vertical)return 0;const Fe=r.vnode.el,ze=e.color.get("alpha");return Fe?Math.round(ze*(Fe.offsetWidth-g.value.offsetWidth/2)/100):0}function ae(){const Fe=r.vnode.el;if(!e.vertical)return 0;const ze=e.color.get("alpha");return Fe?Math.round(ze*(Fe.offsetHeight-g.value.offsetHeight/2)/100):0}function le(){if(e.color&&e.color.value){const{r:Fe,g:ze,b:Ce}=e.color.toRgb();return`linear-gradient(to right, rgba(${Fe}, ${ze}, ${Ce}, 0) 0%, rgba(${Fe}, ${ze}, ${Ce}, 1) 100%)`}return null}function ue(Fe){Fe.target!==g.value&&pe(Fe)}function pe(Fe){const Ce=r.vnode.el.getBoundingClientRect(),{clientX:Ie,clientY:_e}=getClientXY(Fe);if(e.vertical){let At=_e-Ce.top;At=Math.max(g.value.offsetHeight/2,At),At=Math.min(At,Ce.height-g.value.offsetHeight/2),e.color.set("alpha",Math.round((At-g.value.offsetHeight/2)/(Ce.height-g.value.offsetHeight)*100))}else{let At=Ie-Ce.left;At=Math.max(g.value.offsetWidth/2,At),At=Math.min(At,Ce.width-g.value.offsetWidth/2),e.color.set("alpha",Math.round((At-g.value.offsetWidth/2)/(Ce.width-g.value.offsetWidth)*100))}}function de(){L.value=re(),k.value=ae(),oe.value=le()}return onMounted(()=>{const Fe={drag:ze=>{pe(ze)},end:ze=>{pe(ze)}};draggable$1($.value,Fe),draggable$1(g.value,Fe),de()}),{thumb:g,bar:$,thumbLeft:L,thumbTop:k,background:oe,handleClick:ue,update:de,ns:n}}});function _sfc_render$11(e,n,r,g,$,L){return openBlock(),createElementBlock("div",{class:normalizeClass([e.ns.b(),e.ns.is("vertical",e.vertical)])},[createBaseVNode("div",{ref:"bar",class:normalizeClass(e.ns.e("bar")),style:normalizeStyle({background:e.background}),onClick:n[0]||(n[0]=(...k)=>e.handleClick&&e.handleClick(...k))},null,6),createBaseVNode("div",{ref:"thumb",class:normalizeClass(e.ns.e("thumb")),style:normalizeStyle({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var AlphaSlider=_export_sfc$2(_sfc_main$1$,[["render",_sfc_render$11],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const _sfc_main$1_=defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const n=useNamespace("color-hue-slider"),r=getCurrentInstance(),g=ref(null),$=ref(null),L=ref(0),k=ref(0),oe=computed(()=>e.color.get("hue"));watch(()=>oe.value,()=>{pe()});function re(de){de.target!==g.value&&ae(de)}function ae(de){const ze=r.vnode.el.getBoundingClientRect(),{clientX:Ce,clientY:Ie}=getClientXY(de);let _e;if(e.vertical){let At=Ie-ze.top;At=Math.min(At,ze.height-g.value.offsetHeight/2),At=Math.max(g.value.offsetHeight/2,At),_e=Math.round((At-g.value.offsetHeight/2)/(ze.height-g.value.offsetHeight)*360)}else{let At=Ce-ze.left;At=Math.min(At,ze.width-g.value.offsetWidth/2),At=Math.max(g.value.offsetWidth/2,At),_e=Math.round((At-g.value.offsetWidth/2)/(ze.width-g.value.offsetWidth)*360)}e.color.set("hue",_e)}function le(){const de=r.vnode.el;if(e.vertical)return 0;const Fe=e.color.get("hue");return de?Math.round(Fe*(de.offsetWidth-g.value.offsetWidth/2)/360):0}function ue(){const de=r.vnode.el;if(!e.vertical)return 0;const Fe=e.color.get("hue");return de?Math.round(Fe*(de.offsetHeight-g.value.offsetHeight/2)/360):0}function pe(){L.value=le(),k.value=ue()}return onMounted(()=>{const de={drag:Fe=>{ae(Fe)},end:Fe=>{ae(Fe)}};draggable$1($.value,de),draggable$1(g.value,de),pe()}),{bar:$,thumb:g,thumbLeft:L,thumbTop:k,hueValue:oe,handleClick:re,update:pe,ns:n}}});function _sfc_render$10(e,n,r,g,$,L){return openBlock(),createElementBlock("div",{class:normalizeClass([e.ns.b(),e.ns.is("vertical",e.vertical)])},[createBaseVNode("div",{ref:"bar",class:normalizeClass(e.ns.e("bar")),onClick:n[0]||(n[0]=(...k)=>e.handleClick&&e.handleClick(...k))},null,2),createBaseVNode("div",{ref:"thumb",class:normalizeClass(e.ns.e("thumb")),style:normalizeStyle({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var HueSlider=_export_sfc$2(_sfc_main$1_,[["render",_sfc_render$10],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const OPTIONS_KEY=Symbol(),useOptions=()=>inject(OPTIONS_KEY),hsv2hsl=function(e,n,r){return[e,n*r/((e=(2-n)*r)<1?e:2-e)||0,e/2]},isOnePointZero=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},isPercentage=function(e){return typeof e=="string"&&e.includes("%")},bound01=function(e,n){isOnePointZero(e)&&(e="100%");const r=isPercentage(e);return e=Math.min(n,Math.max(0,Number.parseFloat(`${e}`))),r&&(e=Number.parseInt(`${e*n}`,10)/100),Math.abs(e-n)<1e-6?1:e%n/Number.parseFloat(n)},INT_HEX_MAP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hexOne=function(e){e=Math.min(Math.round(e),255);const n=Math.floor(e/16),r=e%16;return`${INT_HEX_MAP[n]||n}${INT_HEX_MAP[r]||r}`},toHex=function({r:e,g:n,b:r}){return Number.isNaN(+e)||Number.isNaN(+n)||Number.isNaN(+r)?"":`#${hexOne(e)}${hexOne(n)}${hexOne(r)}`},HEX_INT_MAP={A:10,B:11,C:12,D:13,E:14,F:15},parseHexChannel=function(e){return e.length===2?(HEX_INT_MAP[e[0].toUpperCase()]||+e[0])*16+(HEX_INT_MAP[e[1].toUpperCase()]||+e[1]):HEX_INT_MAP[e[1].toUpperCase()]||+e[1]},hsl2hsv=function(e,n,r){n=n/100,r=r/100;let g=n;const $=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,g*=$<=1?$:2-$;const L=(r+n)/2,k=r===0?2*g/($+g):2*n/(r+n);return{h:e,s:k*100,v:L*100}},rgb2hsv=function(e,n,r){e=bound01(e,255),n=bound01(n,255),r=bound01(r,255);const g=Math.max(e,n,r),$=Math.min(e,n,r);let L;const k=g,oe=g-$,re=g===0?0:oe/g;if(g===$)L=0;else{switch(g){case e:{L=(n-r)/oe+(n{this._hue=Math.max(0,Math.min(360,g)),this._saturation=Math.max(0,Math.min(100,$)),this._value=Math.max(0,Math.min(100,L)),this.doOnChange()};if(n.includes("hsl")){const g=n.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter($=>$!=="").map(($,L)=>L>2?Number.parseFloat($):Number.parseInt($,10));if(g.length===4?this._alpha=Number.parseFloat(g[3])*100:g.length===3&&(this._alpha=100),g.length>=3){const{h:$,s:L,v:k}=hsl2hsv(g[0],g[1],g[2]);r($,L,k)}}else if(n.includes("hsv")){const g=n.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter($=>$!=="").map(($,L)=>L>2?Number.parseFloat($):Number.parseInt($,10));g.length===4?this._alpha=Number.parseFloat(g[3])*100:g.length===3&&(this._alpha=100),g.length>=3&&r(g[0],g[1],g[2])}else if(n.includes("rgb")){const g=n.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter($=>$!=="").map(($,L)=>L>2?Number.parseFloat($):Number.parseInt($,10));if(g.length===4?this._alpha=Number.parseFloat(g[3])*100:g.length===3&&(this._alpha=100),g.length>=3){const{h:$,s:L,v:k}=rgb2hsv(g[0],g[1],g[2]);r($,L,k)}}else if(n.includes("#")){const g=n.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(g))return;let $,L,k;g.length===3?($=parseHexChannel(g[0]+g[0]),L=parseHexChannel(g[1]+g[1]),k=parseHexChannel(g[2]+g[2])):(g.length===6||g.length===8)&&($=parseHexChannel(g.slice(0,2)),L=parseHexChannel(g.slice(2,4)),k=parseHexChannel(g.slice(4,6))),g.length===8?this._alpha=parseHexChannel(g.slice(6))/255*100:(g.length===3||g.length===6)&&(this._alpha=100);const{h:oe,s:re,v:ae}=rgb2hsv($,L,k);r(oe,re,ae)}}compare(n){return Math.abs(n._hue-this._hue)<2&&Math.abs(n._saturation-this._saturation)<1&&Math.abs(n._value-this._value)<1&&Math.abs(n._alpha-this._alpha)<1}doOnChange(){const{_hue:n,_saturation:r,_value:g,_alpha:$,format:L}=this;if(this.enableAlpha)switch(L){case"hsl":{const k=hsv2hsl(n,r/100,g/100);this.value=`hsla(${n}, ${Math.round(k[1]*100)}%, ${Math.round(k[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${n}, ${Math.round(r)}%, ${Math.round(g)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${toHex(hsv2rgb(n,r,g))}${hexOne($*255/100)}`;break}default:{const{r:k,g:oe,b:re}=hsv2rgb(n,r,g);this.value=`rgba(${k}, ${oe}, ${re}, ${this.get("alpha")/100})`}}else switch(L){case"hsl":{const k=hsv2hsl(n,r/100,g/100);this.value=`hsl(${n}, ${Math.round(k[1]*100)}%, ${Math.round(k[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${n}, ${Math.round(r)}%, ${Math.round(g)}%)`;break}case"rgb":{const{r:k,g:oe,b:re}=hsv2rgb(n,r,g);this.value=`rgb(${k}, ${oe}, ${re})`;break}default:this.value=toHex(hsv2rgb(n,r,g))}}}const _sfc_main$1Z=defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const n=useNamespace("color-predefine"),{currentColor:r}=useOptions(),g=ref(L(e.colors,e.color));watch(()=>r.value,k=>{const oe=new Color;oe.fromString(k),g.value.forEach(re=>{re.selected=oe.compare(re)})}),watchEffect(()=>{g.value=L(e.colors,e.color)});function $(k){e.color.fromString(e.colors[k])}function L(k,oe){return k.map(re=>{const ae=new Color;return ae.enableAlpha=!0,ae.format="rgba",ae.fromString(re),ae.selected=ae.value===oe.value,ae})}return{rgbaColors:g,handleSelect:$,ns:n}}}),_hoisted_1$1f=["onClick"];function _sfc_render$$(e,n,r,g,$,L){return openBlock(),createElementBlock("div",{class:normalizeClass(e.ns.b())},[createBaseVNode("div",{class:normalizeClass(e.ns.e("colors"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.rgbaColors,(k,oe)=>(openBlock(),createElementBlock("div",{key:e.colors[oe],class:normalizeClass([e.ns.e("color-selector"),e.ns.is("alpha",k._alpha<100),{selected:k.selected}]),onClick:re=>e.handleSelect(oe)},[createBaseVNode("div",{style:normalizeStyle({backgroundColor:k.value})},null,4)],10,_hoisted_1$1f))),128))],2)],2)}var Predefine=_export_sfc$2(_sfc_main$1Z,[["render",_sfc_render$$],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const _sfc_main$1Y=defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const n=useNamespace("color-svpanel"),r=getCurrentInstance(),g=ref(0),$=ref(0),L=ref("hsl(0, 100%, 50%)"),k=computed(()=>{const ae=e.color.get("hue"),le=e.color.get("value");return{hue:ae,value:le}});function oe(){const ae=e.color.get("saturation"),le=e.color.get("value"),ue=r.vnode.el,{clientWidth:pe,clientHeight:de}=ue;$.value=ae*pe/100,g.value=(100-le)*de/100,L.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function re(ae){const ue=r.vnode.el.getBoundingClientRect(),{clientX:pe,clientY:de}=getClientXY(ae);let Fe=pe-ue.left,ze=de-ue.top;Fe=Math.max(0,Fe),Fe=Math.min(Fe,ue.width),ze=Math.max(0,ze),ze=Math.min(ze,ue.height),$.value=Fe,g.value=ze,e.color.set({saturation:Fe/ue.width*100,value:100-ze/ue.height*100})}return watch(()=>k.value,()=>{oe()}),onMounted(()=>{draggable$1(r.vnode.el,{drag:ae=>{re(ae)},end:ae=>{re(ae)}}),oe()}),{cursorTop:g,cursorLeft:$,background:L,colorValue:k,handleDrag:re,update:oe,ns:n}}}),_hoisted_1$1e=createBaseVNode("div",null,null,-1),_hoisted_2$U=[_hoisted_1$1e];function _sfc_render$_(e,n,r,g,$,L){return openBlock(),createElementBlock("div",{class:normalizeClass(e.ns.b()),style:normalizeStyle({backgroundColor:e.background})},[createBaseVNode("div",{class:normalizeClass(e.ns.e("white"))},null,2),createBaseVNode("div",{class:normalizeClass(e.ns.e("black"))},null,2),createBaseVNode("div",{class:normalizeClass(e.ns.e("cursor")),style:normalizeStyle({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},_hoisted_2$U,6)],6)}var SvPanel=_export_sfc$2(_sfc_main$1Y,[["render",_sfc_render$_],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const _sfc_main$1X=defineComponent({name:"ElColorPicker",components:{ElButton,ElTooltip,ElInput,ElIcon,Close:close_default,ArrowDown:arrow_down_default,SvPanel,HueSlider,AlphaSlider,Predefine},directives:{ClickOutside},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:isValidComponentSize},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change",UPDATE_MODEL_EVENT],setup(e,{emit:n}){const{t:r}=useLocale(),g=useNamespace("color"),$=inject(formContextKey,{}),L=inject(formItemContextKey,{}),{inputId:k,isLabeledByFormItem:oe}=useFormItemInputId(e,{formItemContext:L}),re=ref(),ae=ref(),le=ref(),ue=ref(null);let pe=!0;const de=reactive(new Color({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),Fe=ref(!1),ze=ref(!1),Ce=ref(""),Ie=computed(()=>!e.modelValue&&!ze.value?"transparent":he(de,e.showAlpha)),_e=useSize(),At=computed(()=>!!(e.disabled||$.disabled)),qe=computed(()=>!e.modelValue&&!ze.value?"":de.value),xe=computed(()=>oe.value?void 0:e.label||r("el.colorpicker.defaultLabel")),Ve=computed(()=>oe.value?L.labelId:void 0);watch(()=>e.modelValue,vn=>{vn?vn&&vn!==de.value&&(pe=!1,de.fromString(vn)):ze.value=!1}),watch(()=>qe.value,vn=>{Ce.value=vn,pe&&n("active-change",vn),pe=!0}),watch(()=>de.value,()=>{!e.modelValue&&!ze.value&&(ze.value=!0)});function he(vn,hn){if(!(vn instanceof Color))throw new TypeError("color should be instance of _color Class");const{r:Dt,g:jt,b:bn}=vn.toRgb();return hn?`rgba(${Dt}, ${jt}, ${bn}, ${vn.get("alpha")/100})`:`rgb(${Dt}, ${jt}, ${bn})`}function Oe(vn){Fe.value=vn}const $e=debounce(Oe,100);function Ne(){$e(!1),Ue()}function Ue(){nextTick(()=>{e.modelValue?de.fromString(e.modelValue):(de.value="",nextTick(()=>{ze.value=!1}))})}function kt(){At.value||$e(!Fe.value)}function Et(){de.fromString(Ce.value)}function Pt(){var vn;const hn=de.value;n(UPDATE_MODEL_EVENT,hn),n("change",hn),e.validateEvent&&((vn=L.validate)==null||vn.call(L,"change").catch(Dt=>void 0)),$e(!1),nextTick(()=>{const Dt=new Color({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});de.compare(Dt)||Ue()})}function Lt(){var vn;$e(!1),n(UPDATE_MODEL_EVENT,null),n("change",null),e.modelValue!==null&&e.validateEvent&&((vn=L.validate)==null||vn.call(L,"change").catch(hn=>void 0)),Ue()}return onMounted(()=>{e.modelValue&&(Ce.value=qe.value)}),watch(()=>Fe.value,()=>{nextTick(()=>{var vn,hn,Dt;(vn=re.value)==null||vn.update(),(hn=ae.value)==null||hn.update(),(Dt=le.value)==null||Dt.update()})}),provide(OPTIONS_KEY,{currentColor:qe}),{color:de,colorDisabled:At,colorSize:_e,displayedColor:Ie,showPanelColor:ze,showPicker:Fe,customInput:Ce,buttonId:k,buttonAriaLabel:xe,buttonAriaLabelledby:Ve,handleConfirm:Et,hide:Ne,handleTrigger:kt,clear:Lt,confirmValue:Pt,t:r,ns:g,hue:re,svPanel:ae,alpha:le,popper:ue}}}),_hoisted_1$1d=["id","aria-label","aria-labelledby","aria-description","tabindex"];function _sfc_render$Z(e,n,r,g,$,L){const k=resolveComponent("hue-slider"),oe=resolveComponent("sv-panel"),re=resolveComponent("alpha-slider"),ae=resolveComponent("predefine"),le=resolveComponent("el-input"),ue=resolveComponent("el-button"),pe=resolveComponent("arrow-down"),de=resolveComponent("el-icon"),Fe=resolveComponent("close"),ze=resolveComponent("el-tooltip"),Ce=resolveDirective("click-outside");return openBlock(),createBlock(ze,{ref:"popper",visible:e.showPicker,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:"el-zoom-in-top",persistent:""},{content:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",null,[createBaseVNode("div",{class:normalizeClass(e.ns.be("dropdown","main-wrapper"))},[createVNode(k,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),createVNode(oe,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(openBlock(),createBlock(re,{key:0,ref:"alpha",color:e.color},null,8,["color"])):createCommentVNode("v-if",!0),e.predefine?(openBlock(),createBlock(ae,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(e.ns.be("dropdown","btns"))},[createBaseVNode("span",{class:normalizeClass(e.ns.be("dropdown","value"))},[createVNode(le,{modelValue:e.customInput,"onUpdate:modelValue":n[0]||(n[0]=Ie=>e.customInput=Ie),"validate-event":!1,size:"small",onKeyup:withKeys(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),createVNode(ue,{class:normalizeClass(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:withCtx(()=>[createTextVNode(toDisplayString(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),createVNode(ue,{plain:"",size:"small",class:normalizeClass(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:withCtx(()=>[createTextVNode(toDisplayString(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[Ce,e.hide]])]),default:withCtx(()=>[createBaseVNode("div",{id:e.buttonId,class:normalizeClass([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:n[2]||(n[2]=withKeys((...Ie)=>e.handleTrigger&&e.handleTrigger(...Ie),["enter"]))},[e.colorDisabled?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.ns.be("picker","mask"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(e.ns.be("picker","trigger")),onClick:n[1]||(n[1]=(...Ie)=>e.handleTrigger&&e.handleTrigger(...Ie))},[createBaseVNode("span",{class:normalizeClass([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(e.ns.be("picker","color-inner")),style:normalizeStyle({backgroundColor:e.displayedColor})},[withDirectives(createVNode(de,{class:normalizeClass([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:withCtx(()=>[createVNode(pe)]),_:1},8,["class"]),[[vShow,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(openBlock(),createBlock(de,{key:0,class:normalizeClass([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:withCtx(()=>[createVNode(Fe)]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)],2)],2)],42,_hoisted_1$1d)]),_:1},8,["visible","popper-class"])}var ColorPicker=_export_sfc$2(_sfc_main$1X,[["render",_sfc_render$Z],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);ColorPicker.install=e=>{e.component(ColorPicker.name,ColorPicker)};const _ColorPicker=ColorPicker,ElColorPicker=_ColorPicker,messageConfig={},configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),ConfigProvider=defineComponent({name:"ElConfigProvider",props:configProviderProps,setup(e,{slots:n}){watch(()=>e.message,g=>{Object.assign(messageConfig,g??{})},{immediate:!0,deep:!0});const r=provideGlobalConfig(e);return()=>renderSlot(n,"default",{config:r?.value})}}),ElConfigProvider=withInstall(ConfigProvider),__default__$S={name:"ElContainer"},_sfc_main$1W=defineComponent({...__default__$S,props:{direction:{type:String}},setup(e){const n=e,r=useSlots(),g=useNamespace("container"),$=computed(()=>n.direction==="vertical"?!0:n.direction==="horizontal"?!1:r&&r.default?r.default().some(k=>{const oe=k.type.name;return oe==="ElHeader"||oe==="ElFooter"}):!1);return(L,k)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(g).b(),unref(g).is("vertical",unref($))])},[renderSlot(L.$slots,"default")],2))}});var Container=_export_sfc$2(_sfc_main$1W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const __default__$R={name:"ElAside"},_sfc_main$1V=defineComponent({...__default__$R,props:{width:{type:String,default:null}},setup(e){const n=e,r=useNamespace("aside"),g=computed(()=>n.width?r.cssVarBlock({width:n.width}):{});return($,L)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref(r).b()),style:normalizeStyle(unref(g))},[renderSlot($.$slots,"default")],6))}});var Aside=_export_sfc$2(_sfc_main$1V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const __default__$Q={name:"ElFooter"},_sfc_main$1U=defineComponent({...__default__$Q,props:{height:{type:String,default:null}},setup(e){const n=e,r=useNamespace("footer"),g=computed(()=>n.height?r.cssVarBlock({height:n.height}):{});return($,L)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref(r).b()),style:normalizeStyle(unref(g))},[renderSlot($.$slots,"default")],6))}});var Footer$2=_export_sfc$2(_sfc_main$1U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const __default__$P={name:"ElHeader"},_sfc_main$1T=defineComponent({...__default__$P,props:{height:{type:String,default:null}},setup(e){const n=e,r=useNamespace("header"),g=computed(()=>n.height?r.cssVarBlock({height:n.height}):{});return($,L)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref(r).b()),style:normalizeStyle(unref(g))},[renderSlot($.$slots,"default")],6))}});var Header=_export_sfc$2(_sfc_main$1T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const __default__$O={name:"ElMain"},_sfc_main$1S=defineComponent({...__default__$O,setup(e){const n=useNamespace("main");return(r,g)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(n).b())},[renderSlot(r.$slots,"default")],2))}});var Main=_export_sfc$2(_sfc_main$1S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const ElContainer=withInstall(Container,{Aside,Footer:Footer$2,Header,Main}),ElAside=withNoopInstall(Aside),ElFooter=withNoopInstall(Footer$2),ElHeader=withNoopInstall(Header),ElMain=withNoopInstall(Main);var advancedFormat$1={exports:{}};(function(e,n){(function(r,g){e.exports=g()})(commonjsGlobal,function(){return function(r,g,$){var L=g.prototype,k=L.format;$.en.ordinal=function(oe){var re=["th","st","nd","rd"],ae=oe%100;return"["+oe+(re[(ae-20)%10]||re[ae]||re[0])+"]"},L.format=function(oe){var re=this,ae=this.$locale();if(!this.isValid())return k.bind(this)(oe);var le=this.$utils(),ue=(oe||"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(pe){switch(pe){case"Q":return Math.ceil((re.$M+1)/3);case"Do":return ae.ordinal(re.$D);case"gggg":return re.weekYear();case"GGGG":return re.isoWeekYear();case"wo":return ae.ordinal(re.week(),"W");case"w":case"ww":return le.s(re.week(),pe==="w"?1:2,"0");case"W":case"WW":return le.s(re.isoWeek(),pe==="W"?1:2,"0");case"k":case"kk":return le.s(String(re.$H===0?24:re.$H),pe==="k"?1:2,"0");case"X":return Math.floor(re.$d.getTime()/1e3);case"x":return re.$d.getTime();case"z":return"["+re.offsetName()+"]";case"zzz":return"["+re.offsetName("long")+"]";default:return pe}});return k.bind(this)(ue)}}})})(advancedFormat$1);const advancedFormat=advancedFormat$1.exports;var weekOfYear$1={exports:{}};(function(e,n){(function(r,g){e.exports=g()})(commonjsGlobal,function(){var r="week",g="year";return function($,L,k){var oe=L.prototype;oe.week=function(re){if(re===void 0&&(re=null),re!==null)return this.add(7*(re-this.week()),"day");var ae=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var le=k(this).startOf(g).add(1,g).date(ae),ue=k(this).endOf(r);if(le.isBefore(ue))return 1}var pe=k(this).startOf(g).date(ae).startOf(r).subtract(1,"millisecond"),de=this.diff(pe,r,!0);return de<0?k(this).startOf("week").week():Math.ceil(de)},oe.weeks=function(re){return re===void 0&&(re=null),this.week(re)}}})})(weekOfYear$1);const weekOfYear=weekOfYear$1.exports;var weekYear$1={exports:{}};(function(e,n){(function(r,g){e.exports=g()})(commonjsGlobal,function(){return function(r,g){g.prototype.weekYear=function(){var $=this.month(),L=this.week(),k=this.year();return L===1&&$===11?k+1:$===0&&L>=52?k-1:k}}})})(weekYear$1);const weekYear=weekYear$1.exports;var dayOfYear$1={exports:{}};(function(e,n){(function(r,g){e.exports=g()})(commonjsGlobal,function(){return function(r,g,$){g.prototype.dayOfYear=function(L){var k=Math.round(($(this).startOf("day")-$(this).startOf("year"))/864e5)+1;return L==null?k:this.add(L-k,"day")}}})})(dayOfYear$1);const dayOfYear=dayOfYear$1.exports;var isSameOrAfter$1={exports:{}};(function(e,n){(function(r,g){e.exports=g()})(commonjsGlobal,function(){return function(r,g){g.prototype.isSameOrAfter=function($,L){return this.isSame($,L)||this.isAfter($,L)}}})})(isSameOrAfter$1);const isSameOrAfter=isSameOrAfter$1.exports;var isSameOrBefore$1={exports:{}};(function(e,n){(function(r,g){e.exports=g()})(commonjsGlobal,function(){return function(r,g){g.prototype.isSameOrBefore=function($,L){return this.isSame($,L)||this.isBefore($,L)}}})})(isSameOrBefore$1);const isSameOrBefore=isSameOrBefore$1.exports,datePickerProps=buildProps({type:{type:definePropType(String),default:"date"}}),selectionModes=["date","dates","year","month","week","range"],datePickerSharedProps=buildProps({disabledDate:{type:definePropType(Function)},date:{type:definePropType(Object),required:!0},minDate:{type:definePropType(Object)},maxDate:{type:definePropType(Object)},parsedValue:{type:definePropType([Object,Array])},rangeState:{type:definePropType(Object),default:()=>({endDate:null,selecting:!1})}}),panelSharedProps=buildProps({type:{type:definePropType(String),required:!0,values:datePickTypes}}),panelRangeSharedProps=buildProps({unlinkPanels:Boolean,parsedValue:{type:definePropType(Array)}}),selectionModeWithDefault=e=>({type:String,values:selectionModes,default:e}),panelDatePickProps=buildProps({...panelSharedProps,parsedValue:{type:definePropType([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),basicDateTableProps=buildProps({...datePickerSharedProps,cellClassName:{type:definePropType(Function)},showWeekNumber:Boolean,selectionMode:selectionModeWithDefault("date")}),isValidRange=e=>{if(!isArray$4(e))return!1;const[n,r]=e;return dayjs.isDayjs(n)&&dayjs.isDayjs(r)&&n.isSameOrBefore(r)},getDefaultValue=(e,{lang:n,unit:r,unlinkPanels:g})=>{let $;if(isArray$4(e)){let[L,k]=e.map(oe=>dayjs(oe).locale(n));return g||(k=L.add(1,r)),[L,k]}else e?$=dayjs(e):$=dayjs();return $=$.locale(n),[$,$.add(1,r)]},buildPickerTable=(e,n,{columnIndexOffset:r,startDate:g,nextEndDate:$,now:L,unit:k,relativeDateGetter:oe,setCellMetadata:re,setRowMetadata:ae})=>{for(let le=0;le{const{cell:g}=e;if(r.default){const $=r.default(g).filter(L=>L.patchFlag!==-2&&L.type.toString()!=="Symbol(Comment)");if($.length)return $}return createVNode("div",{class:n.b()},[createVNode("span",{class:n.e("text")},[g?.text])])}}});const _hoisted_1$1c=["aria-label"],_hoisted_2$T={key:0,scope:"col"},_hoisted_3$u=["aria-label"],_hoisted_4$o=["aria-current","aria-selected","tabindex"],_sfc_main$1R=defineComponent({__name:"basic-date-table",props:basicDateTableProps,emits:["changerange","pick","select"],setup(e,{expose:n,emit:r}){const g=e,$=useNamespace("date-table"),{t:L,lang:k}=useLocale(),oe=ref(),re=ref(),ae=ref(),le=ref(),ue=ref([[],[],[],[],[],[]]);let pe=!1;const de=g.date.$locale().weekStart||7,Fe=g.date.locale("en").localeData().weekdaysShort().map(Cn=>Cn.toLowerCase()),ze=computed(()=>de>3?7-de:-de),Ce=computed(()=>{const Cn=g.date.startOf("month");return Cn.subtract(Cn.day()||7,"day")}),Ie=computed(()=>Fe.concat(Fe).slice(de,de+7)),_e=computed(()=>Oe.value.flat().some(Cn=>Cn.isCurrent)),At=computed(()=>{const Cn=g.date.startOf("month"),On=Cn.day()||7,En=Cn.daysInMonth(),An=Cn.subtract(1,"month").daysInMonth();return{startOfMonthDay:On,dateCountOfMonth:En,dateCountOfLastMonth:An}}),qe=computed(()=>g.selectionMode==="dates"?castArray(g.parsedValue):[]),xe=(Cn,{count:On,rowIndex:En,columnIndex:An})=>{const{startOfMonthDay:In,dateCountOfMonth:$n,dateCountOfLastMonth:Pn}=unref(At),Dn=unref(ze);if(En>=0&&En<=1){const Mn=In+Dn<0?7+In+Dn:In+Dn;if(An+En*7>=Mn)return Cn.text=On,!0;Cn.text=Pn-(Mn-An%7)+1+En*7,Cn.type="prev-month"}else return On<=$n?Cn.text=On:(Cn.text=On-$n,Cn.type="next-month"),!0;return!1},Ve=(Cn,{columnIndex:On,rowIndex:En},An)=>{const{disabledDate:In,cellClassName:$n}=g,Pn=unref(qe),Dn=xe(Cn,{count:An,rowIndex:En,columnIndex:On}),Mn=Cn.dayjs.toDate();return Cn.selected=Pn.find(Fn=>Fn.valueOf()===Cn.dayjs.valueOf()),Cn.isSelected=!!Cn.selected,Cn.isCurrent=Ue(Cn),Cn.disabled=In?.(Mn),Cn.customClass=$n?.(Mn),Dn},he=Cn=>{if(g.selectionMode==="week"){const[On,En]=g.showWeekNumber?[1,7]:[0,6],An=Sn(Cn[On+1]);Cn[On].inRange=An,Cn[On].start=An,Cn[En].inRange=An,Cn[En].end=An}},Oe=computed(()=>{const{minDate:Cn,maxDate:On,rangeState:En,showWeekNumber:An}=g,In=ze.value,$n=ue.value,Pn="day";let Dn=1;if(An)for(let Mn=0;Mn<6;Mn++)$n[Mn][0]||($n[Mn][0]={type:"week",text:Ce.value.add(Mn*7+1,Pn).week()});return buildPickerTable({row:6,column:7},$n,{startDate:Cn,columnIndexOffset:An?1:0,nextEndDate:En.endDate||On||En.selecting&&Cn||null,now:dayjs().locale(unref(k)).startOf(Pn),unit:Pn,relativeDateGetter:Mn=>Ce.value.add(Mn-In,Pn),setCellMetadata:(...Mn)=>{Ve(...Mn,Dn)&&(Dn+=1)},setRowMetadata:he}),$n});watch(()=>g.date,async()=>{var Cn,On;(Cn=oe.value)!=null&&Cn.contains(document.activeElement)&&(await nextTick(),(On=re.value)==null||On.focus())});const $e=async()=>{var Cn;(Cn=re.value)==null||Cn.focus()},Ne=(Cn="")=>["normal","today"].includes(Cn),Ue=Cn=>g.selectionMode==="date"&&Ne(Cn.type)&&kt(Cn,g.parsedValue),kt=(Cn,On)=>On?dayjs(On).locale(k.value).isSame(g.date.date(Number(Cn.text)),"day"):!1,Et=Cn=>{const On=[];return Ne(Cn.type)&&!Cn.disabled?(On.push("available"),Cn.type==="today"&&On.push("today")):On.push(Cn.type),Ue(Cn)&&On.push("current"),Cn.inRange&&(Ne(Cn.type)||g.selectionMode==="week")&&(On.push("in-range"),Cn.start&&On.push("start-date"),Cn.end&&On.push("end-date")),Cn.disabled&&On.push("disabled"),Cn.selected&&On.push("selected"),Cn.customClass&&On.push(Cn.customClass),On.join(" ")},Pt=(Cn,On)=>{const En=Cn*7+(On-(g.showWeekNumber?1:0))-ze.value;return Ce.value.add(En,"day")},Lt=Cn=>{var On;if(!g.rangeState.selecting)return;let En=Cn.target;if(En.tagName==="SPAN"&&(En=(On=En.parentNode)==null?void 0:On.parentNode),En.tagName==="DIV"&&(En=En.parentNode),En.tagName!=="TD")return;const An=En.parentNode.rowIndex-1,In=En.cellIndex;Oe.value[An][In].disabled||(An!==ae.value||In!==le.value)&&(ae.value=An,le.value=In,r("changerange",{selecting:!0,endDate:Pt(An,In)}))},vn=Cn=>!_e.value&&Cn?.text===1&&Cn.type==="normal"||Cn.isCurrent,hn=Cn=>{pe||_e.value||g.selectionMode!=="date"||bn(Cn,!0)},Dt=Cn=>{!Cn.target.closest("td")||(pe=!0)},jt=Cn=>{!Cn.target.closest("td")||(pe=!1)},bn=(Cn,On=!1)=>{const En=Cn.target.closest("td");if(!En)return;const An=En.parentNode.rowIndex-1,In=En.cellIndex,$n=Oe.value[An][In];if($n.disabled||$n.type==="week")return;const Pn=Pt(An,In);if(g.selectionMode==="range")!g.rangeState.selecting||!g.minDate?(r("pick",{minDate:Pn,maxDate:null}),r("select",!0)):(Pn>=g.minDate?r("pick",{minDate:g.minDate,maxDate:Pn}):r("pick",{minDate:Pn,maxDate:g.minDate}),r("select",!1));else if(g.selectionMode==="date")r("pick",Pn,On);else if(g.selectionMode==="week"){const Dn=Pn.week(),Mn=`${Pn.year()}w${Dn}`;r("pick",{year:Pn.year(),week:Dn,value:Mn,date:Pn.startOf("week")})}else if(g.selectionMode==="dates"){const Dn=$n.selected?castArray(g.parsedValue).filter(Mn=>Mn?.valueOf()!==Pn.valueOf()):castArray(g.parsedValue).concat([Pn]);r("pick",Dn)}},Sn=Cn=>{if(g.selectionMode!=="week")return!1;let On=g.date.startOf("day");if(Cn.type==="prev-month"&&(On=On.subtract(1,"month")),Cn.type==="next-month"&&(On=On.add(1,"month")),On=On.date(Number.parseInt(Cn.text,10)),g.parsedValue&&!Array.isArray(g.parsedValue)){const En=(g.parsedValue.day()-de+7)%7-1;return g.parsedValue.subtract(En,"day").isSame(On,"day")}return!1};return n({focus:$e}),(Cn,On)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(L)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:normalizeClass([unref($).b(),{"is-week-mode":Cn.selectionMode==="week"}]),onClick:bn,onMousemove:Lt,onMousedown:Dt,onMouseup:jt},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:oe},[createBaseVNode("tr",null,[Cn.showWeekNumber?(openBlock(),createElementBlock("th",_hoisted_2$T,toDisplayString(unref(L)("el.datepicker.week")),1)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(En,An)=>(openBlock(),createElementBlock("th",{key:An,scope:"col","aria-label":unref(L)("el.datepicker.weeksFull."+En)},toDisplayString(unref(L)("el.datepicker.weeks."+En)),9,_hoisted_3$u))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Oe),(En,An)=>(openBlock(),createElementBlock("tr",{key:An,class:normalizeClass([unref($).e("row"),{current:Sn(En[1])}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(En,(In,$n)=>(openBlock(),createElementBlock("td",{key:`${An}.${$n}`,ref_for:!0,ref:Pn=>vn(In)&&(re.value=Pn),class:normalizeClass(Et(In)),"aria-current":In.isCurrent?"date":void 0,"aria-selected":In.isCurrent,tabindex:vn(In)?0:-1,onFocus:hn},[createVNode(unref(ElDatePickerCell),{cell:In},null,8,["cell"])],42,_hoisted_4$o))),128))],2))),128))],512)],42,_hoisted_1$1c))}});var DateTable=_export_sfc$2(_sfc_main$1R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const basicMonthTableProps=buildProps({...datePickerSharedProps,selectionMode:selectionModeWithDefault("month")}),_hoisted_1$1b=["aria-label"],_hoisted_2$S=["aria-selected","aria-label","tabindex","onKeydown"],_hoisted_3$t={class:"cell"},_sfc_main$1Q=defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup(e,{expose:n,emit:r}){const g=e,$=(qe,xe,Ve)=>{const he=dayjs().locale(Ve).startOf("month").month(xe).year(qe),Oe=he.daysInMonth();return rangeArr(Oe).map($e=>he.add($e,"day").toDate())},L=useNamespace("month-table"),{t:k,lang:oe}=useLocale(),re=ref(),ae=ref(),le=ref(g.date.locale("en").localeData().monthsShort().map(qe=>qe.toLowerCase())),ue=ref([[],[],[]]),pe=ref(),de=ref(),Fe=computed(()=>{var qe,xe;const Ve=ue.value,he=dayjs().locale(oe.value).startOf("month");for(let Oe=0;Oe<3;Oe++){const $e=Ve[Oe];for(let Ne=0;Ne<4;Ne++){const Ue=$e[Ne]||($e[Ne]={row:Oe,column:Ne,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});Ue.type="normal";const kt=Oe*4+Ne,Et=g.date.startOf("year").month(kt),Pt=g.rangeState.endDate||g.maxDate||g.rangeState.selecting&&g.minDate||null;Ue.inRange=!!(g.minDate&&Et.isSameOrAfter(g.minDate,"month")&&Pt&&Et.isSameOrBefore(Pt,"month"))||!!(g.minDate&&Et.isSameOrBefore(g.minDate,"month")&&Pt&&Et.isSameOrAfter(Pt,"month")),(qe=g.minDate)!=null&&qe.isSameOrAfter(Pt)?(Ue.start=!!(Pt&&Et.isSame(Pt,"month")),Ue.end=g.minDate&&Et.isSame(g.minDate,"month")):(Ue.start=!!(g.minDate&&Et.isSame(g.minDate,"month")),Ue.end=!!(Pt&&Et.isSame(Pt,"month"))),he.isSame(Et)&&(Ue.type="today"),Ue.text=kt,Ue.disabled=((xe=g.disabledDate)==null?void 0:xe.call(g,Et.toDate()))||!1}}return Ve}),ze=()=>{var qe;(qe=ae.value)==null||qe.focus()},Ce=qe=>{const xe={},Ve=g.date.year(),he=new Date,Oe=qe.text;return xe.disabled=g.disabledDate?$(Ve,Oe,oe.value).every(g.disabledDate):!1,xe.current=castArray(g.parsedValue).findIndex($e=>dayjs.isDayjs($e)&&$e.year()===Ve&&$e.month()===Oe)>=0,xe.today=he.getFullYear()===Ve&&he.getMonth()===Oe,qe.inRange&&(xe["in-range"]=!0,qe.start&&(xe["start-date"]=!0),qe.end&&(xe["end-date"]=!0)),xe},Ie=qe=>{const xe=g.date.year(),Ve=qe.text;return castArray(g.date).findIndex(he=>he.year()===xe&&he.month()===Ve)>=0},_e=qe=>{var xe;if(!g.rangeState.selecting)return;let Ve=qe.target;if(Ve.tagName==="A"&&(Ve=(xe=Ve.parentNode)==null?void 0:xe.parentNode),Ve.tagName==="DIV"&&(Ve=Ve.parentNode),Ve.tagName!=="TD")return;const he=Ve.parentNode.rowIndex,Oe=Ve.cellIndex;Fe.value[he][Oe].disabled||(he!==pe.value||Oe!==de.value)&&(pe.value=he,de.value=Oe,r("changerange",{selecting:!0,endDate:g.date.startOf("year").month(he*4+Oe)}))},At=qe=>{var xe;const Ve=(xe=qe.target)==null?void 0:xe.closest("td");if(Ve?.tagName!=="TD"||hasClass(Ve,"disabled"))return;const he=Ve.cellIndex,$e=Ve.parentNode.rowIndex*4+he,Ne=g.date.startOf("year").month($e);g.selectionMode==="range"?g.rangeState.selecting?(g.minDate&&Ne>=g.minDate?r("pick",{minDate:g.minDate,maxDate:Ne}):r("pick",{minDate:Ne,maxDate:g.minDate}),r("select",!1)):(r("pick",{minDate:Ne,maxDate:null}),r("select",!0)):r("pick",$e)};return watch(()=>g.date,async()=>{var qe,xe;(qe=re.value)!=null&&qe.contains(document.activeElement)&&(await nextTick(),(xe=ae.value)==null||xe.focus())}),n({focus:ze}),(qe,xe)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(k)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref(L).b()),onClick:At,onMousemove:_e},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:re},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),(Ve,he)=>(openBlock(),createElementBlock("tr",{key:he},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ve,(Oe,$e)=>(openBlock(),createElementBlock("td",{key:$e,ref_for:!0,ref:Ne=>Ie(Oe)&&(ae.value=Ne),class:normalizeClass(Ce(Oe)),"aria-selected":`${Ie(Oe)}`,"aria-label":unref(k)(`el.datepicker.month${+Oe.text+1}`),tabindex:Ie(Oe)?0:-1,onKeydown:[withKeys(withModifiers(At,["prevent","stop"]),["space"]),withKeys(withModifiers(At,["prevent","stop"]),["enter"])]},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_3$t,toDisplayString(unref(k)("el.datepicker.months."+le.value[Oe.text])),1)])],42,_hoisted_2$S))),128))]))),128))],512)],42,_hoisted_1$1b))}});var MonthTable=_export_sfc$2(_sfc_main$1Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:date$1,disabledDate,parsedValue}=datePickerSharedProps,basicYearTableProps=buildProps({date:date$1,disabledDate,parsedValue}),_hoisted_1$1a=["aria-label"],_hoisted_2$R=["aria-selected","tabindex","onKeydown"],_hoisted_3$s={class:"cell"},_hoisted_4$n={key:1},_sfc_main$1P=defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["pick"],setup(e,{expose:n,emit:r}){const g=e,$=(ze,Ce)=>{const Ie=dayjs(String(ze)).locale(Ce).startOf("year"),At=Ie.endOf("year").dayOfYear();return rangeArr(At).map(qe=>Ie.add(qe,"day").toDate())},L=useNamespace("year-table"),{t:k,lang:oe}=useLocale(),re=ref(),ae=ref(),le=computed(()=>Math.floor(g.date.year()/10)*10),ue=()=>{var ze;(ze=ae.value)==null||ze.focus()},pe=ze=>{const Ce={},Ie=dayjs().locale(oe.value);return Ce.disabled=g.disabledDate?$(ze,oe.value).every(g.disabledDate):!1,Ce.current=castArray(g.parsedValue).findIndex(_e=>_e.year()===ze)>=0,Ce.today=Ie.year()===ze,Ce},de=ze=>ze===le.value&&g.date.year()le.value+9||castArray(g.date).findIndex(Ce=>Ce.year()===ze)>=0,Fe=ze=>{const Ie=ze.target.closest("td");if(Ie){if(hasClass(Ie,"disabled"))return;const _e=Ie.textContent||Ie.innerText;r("pick",Number(_e))}};return watch(()=>g.date,async()=>{var ze,Ce;(ze=re.value)!=null&&ze.contains(document.activeElement)&&(await nextTick(),(Ce=ae.value)==null||Ce.focus())}),n({focus:ue}),(ze,Ce)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(k)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(L).b()),onClick:Fe},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:re},[(openBlock(),createElementBlock(Fragment,null,renderList(3,(Ie,_e)=>createBaseVNode("tr",{key:_e},[(openBlock(),createElementBlock(Fragment,null,renderList(4,(At,qe)=>(openBlock(),createElementBlock(Fragment,{key:_e+"_"+qe},[_e*4+qe<10?(openBlock(),createElementBlock("td",{key:0,ref_for:!0,ref:xe=>de(unref(le)+_e*4+qe)&&(ae.value=xe),class:normalizeClass(["available",pe(unref(le)+_e*4+qe)]),"aria-selected":`${de(unref(le)+_e*4+qe)}`,tabindex:de(unref(le)+_e*4+qe)?0:-1,onKeydown:[withKeys(withModifiers(Fe,["prevent","stop"]),["space"]),withKeys(withModifiers(Fe,["prevent","stop"]),["enter"])]},[createBaseVNode("span",_hoisted_3$s,toDisplayString(unref(le)+_e*4+qe),1)],42,_hoisted_2$R)):(openBlock(),createElementBlock("td",_hoisted_4$n))],64))),64))])),64))],512)],10,_hoisted_1$1a))}});var YearTable=_export_sfc$2(_sfc_main$1P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const _hoisted_1$19=["onClick"],_hoisted_2$Q=["aria-label"],_hoisted_3$r=["aria-label"],_hoisted_4$m=["aria-label"],_hoisted_5$h=["aria-label"],_sfc_main$1O=defineComponent({__name:"panel-date-pick",props:panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:n}){const r=e,g=(Yn,Wn,Vn)=>!0,$=useNamespace("picker-panel"),L=useNamespace("date-picker"),k=useAttrs$1(),oe=useSlots(),{t:re,lang:ae}=useLocale(),le=inject("EP_PICKER_BASE"),ue=inject(TOOLTIP_INJECTION_KEY),{shortcuts:pe,disabledDate:de,cellClassName:Fe,defaultTime:ze,arrowControl:Ce}=le.props,Ie=toRef(le.props,"defaultValue"),_e=ref(),At=ref(dayjs().locale(ae.value)),qe=computed(()=>dayjs(ze).locale(ae.value)),xe=computed(()=>At.value.month()),Ve=computed(()=>At.value.year()),he=ref([]),Oe=ref(null),$e=ref(null),Ne=Yn=>he.value.length>0?g(Yn,he.value,r.format||"HH:mm:ss"):!0,Ue=Yn=>ze&&!Fn.value?qe.value.year(Yn.year()).month(Yn.month()).date(Yn.date()):An.value?Yn.millisecond(0):Yn.startOf("day"),kt=(Yn,...Wn)=>{if(!Yn)n("pick",Yn,...Wn);else if(isArray$4(Yn)){const Vn=Yn.map(Ue);n("pick",Vn,...Wn)}else n("pick",Ue(Yn),...Wn);Oe.value=null,$e.value=null},Et=(Yn,Wn)=>{if(jt.value==="date"){Yn=Yn;let Vn=r.parsedValue?r.parsedValue.year(Yn.year()).month(Yn.month()).date(Yn.date()):Yn;Ne(Vn)||(Vn=he.value[0][0].year(Yn.year()).month(Yn.month()).date(Yn.date())),At.value=Vn,kt(Vn,An.value||Wn)}else jt.value==="week"?kt(Yn.date):jt.value==="dates"&&kt(Yn,!0)},Pt=Yn=>{const Wn=Yn?"add":"subtract";At.value=At.value[Wn](1,"month"),ho("month")},Lt=Yn=>{const Wn=At.value,Vn=Yn?"add":"subtract";At.value=vn.value==="year"?Wn[Vn](10,"year"):Wn[Vn](1,"year"),ho("year")},vn=ref("date"),hn=computed(()=>{const Yn=re("el.datepicker.year");if(vn.value==="year"){const Wn=Math.floor(Ve.value/10)*10;return Yn?`${Wn} ${Yn} - ${Wn+9} ${Yn}`:`${Wn} - ${Wn+9}`}return`${Ve.value} ${Yn}`}),Dt=Yn=>{const Wn=isFunction$1(Yn.value)?Yn.value():Yn.value;if(Wn){kt(dayjs(Wn).locale(ae.value));return}Yn.onClick&&Yn.onClick({attrs:k,slots:oe,emit:n})},jt=computed(()=>{const{type:Yn}=r;return["week","month","year","dates"].includes(Yn)?Yn:"date"}),bn=computed(()=>jt.value==="date"?vn.value:jt.value),Sn=computed(()=>!!pe.length),Cn=async Yn=>{At.value=At.value.startOf("month").month(Yn),jt.value==="month"?kt(At.value,!1):(vn.value="date",["month","year","date","week"].includes(jt.value)&&(kt(At.value,!0),await nextTick(),Gn())),ho("month")},On=async Yn=>{jt.value==="year"?(At.value=At.value.startOf("year").year(Yn),kt(At.value,!1)):(At.value=At.value.year(Yn),vn.value="month",["month","year","date","week"].includes(jt.value)&&(kt(At.value,!0),await nextTick(),Gn())),ho("year")},En=async Yn=>{vn.value=Yn,await nextTick(),Gn()},An=computed(()=>r.type==="datetime"||r.type==="datetimerange"),In=computed(()=>An.value||jt.value==="dates"),$n=()=>{if(jt.value==="dates")kt(r.parsedValue);else{let Yn=r.parsedValue;if(!Yn){const Wn=dayjs(ze).locale(ae.value),Vn=co();Yn=Wn.year(Vn.year()).month(Vn.month()).date(Vn.date())}At.value=Yn,kt(Yn)}},Pn=()=>{const Wn=dayjs().locale(ae.value).toDate();(!de||!de(Wn))&&Ne(Wn)&&(At.value=dayjs().locale(ae.value),kt(At.value))},Dn=computed(()=>extractTimeFormat(r.format)),Mn=computed(()=>extractDateFormat(r.format)),Fn=computed(()=>{if($e.value)return $e.value;if(!(!r.parsedValue&&!Ie.value))return(r.parsedValue||At.value).format(Dn.value)}),kn=computed(()=>{if(Oe.value)return Oe.value;if(!(!r.parsedValue&&!Ie.value))return(r.parsedValue||At.value).format(Mn.value)}),Nn=ref(!1),Rn=()=>{Nn.value=!0},wn=()=>{Nn.value=!1},Tn=Yn=>({hour:Yn.hour(),minute:Yn.minute(),second:Yn.second(),year:Yn.year(),month:Yn.month(),date:Yn.date()}),xn=(Yn,Wn,Vn)=>{const{hour:_n,minute:Qn,second:jn}=Tn(Yn),Un=r.parsedValue?r.parsedValue.hour(_n).minute(Qn).second(jn):Yn;At.value=Un,kt(At.value,!0),Vn||(Nn.value=Wn)},Bn=Yn=>{const Wn=dayjs(Yn,Dn.value).locale(ae.value);if(Wn.isValid()&&Ne(Wn)){const{year:Vn,month:_n,date:Qn}=Tn(At.value);At.value=Wn.year(Vn).month(_n).date(Qn),$e.value=null,Nn.value=!1,kt(At.value,!0)}},Ln=Yn=>{const Wn=dayjs(Yn,Mn.value).locale(ae.value);if(Wn.isValid()){if(de&&de(Wn.toDate()))return;const{hour:Vn,minute:_n,second:Qn}=Tn(At.value);At.value=Wn.hour(Vn).minute(_n).second(Qn),Oe.value=null,kt(At.value,!0)}},Hn=Yn=>dayjs.isDayjs(Yn)&&Yn.isValid()&&(de?!de(Yn.toDate()):!0),zn=Yn=>jt.value==="dates"?Yn.map(Wn=>Wn.format(r.format)):Yn.format(r.format),Jn=Yn=>dayjs(Yn,r.format).locale(ae.value),co=()=>{const Yn=dayjs(Ie.value).locale(ae.value);if(!Ie.value){const Wn=qe.value;return dayjs().hour(Wn.hour()).minute(Wn.minute()).second(Wn.second()).locale(ae.value)}return Yn},Gn=async()=>{var Yn;["week","month","year","date"].includes(jt.value)&&((Yn=_e.value)==null||Yn.focus(),jt.value==="week"&&ao(EVENT_CODE.down))},eo=Yn=>{const{code:Wn}=Yn;[EVENT_CODE.up,EVENT_CODE.down,EVENT_CODE.left,EVENT_CODE.right,EVENT_CODE.home,EVENT_CODE.end,EVENT_CODE.pageUp,EVENT_CODE.pageDown].includes(Wn)&&(ao(Wn),Yn.stopPropagation(),Yn.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space].includes(Wn)&&Oe.value===null&&$e.value===null&&(Yn.preventDefault(),kt(At.value,!1))},ao=Yn=>{var Wn;const{up:Vn,down:_n,left:Qn,right:jn,home:Un,end:Xn,pageUp:Zn,pageDown:to}=EVENT_CODE,ro={year:{[Vn]:-4,[_n]:4,[Qn]:-1,[jn]:1,offset:(uo,yo)=>uo.setFullYear(uo.getFullYear()+yo)},month:{[Vn]:-4,[_n]:4,[Qn]:-1,[jn]:1,offset:(uo,yo)=>uo.setMonth(uo.getMonth()+yo)},week:{[Vn]:-1,[_n]:1,[Qn]:-1,[jn]:1,offset:(uo,yo)=>uo.setDate(uo.getDate()+yo*7)},date:{[Vn]:-7,[_n]:7,[Qn]:-1,[jn]:1,[Un]:uo=>-uo.getDay(),[Xn]:uo=>-uo.getDay()+6,[Zn]:uo=>-new Date(uo.getFullYear(),uo.getMonth(),0).getDate(),[to]:uo=>new Date(uo.getFullYear(),uo.getMonth()+1,0).getDate(),offset:(uo,yo)=>uo.setDate(uo.getDate()+yo)}},lo=At.value.toDate();for(;Math.abs(At.value.diff(lo,"year",!0))<1;){const uo=ro[bn.value];if(!uo)return;if(uo.offset(lo,isFunction$1(uo[Yn])?uo[Yn](lo):(Wn=uo[Yn])!=null?Wn:0),de&&de(lo))break;const yo=dayjs(lo).locale(ae.value);At.value=yo,n("pick",yo,!0);break}},ho=Yn=>{n("panel-change",At.value.toDate(),Yn,vn.value)};return watch(()=>jt.value,Yn=>{if(["month","year"].includes(Yn)){vn.value=Yn;return}vn.value="date"},{immediate:!0}),watch(()=>vn.value,()=>{ue?.updatePopper()}),watch(()=>Ie.value,Yn=>{Yn&&(At.value=co())},{immediate:!0}),watch(()=>r.parsedValue,Yn=>{if(Yn){if(jt.value==="dates"||Array.isArray(Yn))return;At.value=Yn}else At.value=co()},{immediate:!0}),n("set-picker-option",["isValidValue",Hn]),n("set-picker-option",["formatToString",zn]),n("set-picker-option",["parseUserInput",Jn]),n("set-picker-option",["handleFocusPicker",Gn]),(Yn,Wn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref($).b(),unref(L).b(),{"has-sidebar":Yn.$slots.sidebar||unref(Sn),"has-time":unref(An)}])},[createBaseVNode("div",{class:normalizeClass(unref($).e("body-wrapper"))},[renderSlot(Yn.$slots,"sidebar",{class:normalizeClass(unref($).e("sidebar"))}),unref(Sn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(pe),(Vn,_n)=>(openBlock(),createElementBlock("button",{key:_n,type:"button",class:normalizeClass(unref($).e("shortcut")),onClick:Qn=>Dt(Vn)},toDisplayString(Vn.text),11,_hoisted_1$19))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($).e("body"))},[unref(An)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(L).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(L).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(re)("el.datepicker.selectDate"),"model-value":unref(kn),size:"small",onInput:Wn[0]||(Wn[0]=Vn=>Oe.value=Vn),onChange:Ln},null,8,["placeholder","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(L).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(re)("el.datepicker.selectTime"),"model-value":unref(Fn),size:"small",onFocus:Rn,onInput:Wn[1]||(Wn[1]=Vn=>$e.value=Vn),onChange:Bn},null,8,["placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:Nn.value,format:unref(Dn),"time-arrow-control":unref(Ce),"parsed-value":At.value,onPick:xn},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),wn]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(L).e("header"),(vn.value==="year"||vn.value==="month")&&unref(L).e("header--bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(L).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref(re)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref($).e("icon-btn")]),onClick:Wn[2]||(Wn[2]=Vn=>Lt(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_2$Q),withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(re)("el.datepicker.prevMonth"),class:normalizeClass([unref($).e("icon-btn"),"arrow-left"]),onClick:Wn[3]||(Wn[3]=Vn=>Pt(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_3$r),[[vShow,vn.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(L).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Wn[4]||(Wn[4]=withKeys(Vn=>En("year"),["enter"])),onClick:Wn[5]||(Wn[5]=Vn=>En("year"))},toDisplayString(unref(hn)),35),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:normalizeClass([unref(L).e("header-label"),{active:vn.value==="month"}]),onKeydown:Wn[6]||(Wn[6]=withKeys(Vn=>En("month"),["enter"])),onClick:Wn[7]||(Wn[7]=Vn=>En("month"))},toDisplayString(unref(re)(`el.datepicker.month${unref(xe)+1}`)),35),[[vShow,vn.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(L).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(re)("el.datepicker.nextMonth"),class:normalizeClass([unref($).e("icon-btn"),"arrow-right"]),onClick:Wn[8]||(Wn[8]=Vn=>Pt(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_4$m),[[vShow,vn.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref(re)("el.datepicker.nextYear"),class:normalizeClass([unref($).e("icon-btn"),"d-arrow-right"]),onClick:Wn[9]||(Wn[9]=Vn=>Lt(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_5$h)],2)],2),[[vShow,vn.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref($).e("content")),onKeydown:eo},[vn.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:_e,"selection-mode":unref(jt),date:At.value,"parsed-value":Yn.parsedValue,"disabled-date":unref(de),"cell-class-name":unref(Fe),onPick:Et},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):createCommentVNode("v-if",!0),vn.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:_e,date:At.value,"disabled-date":unref(de),"parsed-value":Yn.parsedValue,onPick:On},null,8,["date","disabled-date","parsed-value"])):createCommentVNode("v-if",!0),vn.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:_e,date:At.value,"parsed-value":Yn.parsedValue,"disabled-date":unref(de),onPick:Cn},null,8,["date","parsed-value","disabled-date"])):createCommentVNode("v-if",!0)],34)],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref($).e("footer"))},[withDirectives(createVNode(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref($).e("link-btn")),onClick:Pn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(re)("el.datepicker.now")),1)]),_:1},8,["class"]),[[vShow,unref(jt)!=="dates"]]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref($).e("link-btn")),onClick:$n},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(re)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[vShow,unref(In)&&vn.value==="date"]])],2))}});var DatePickPanel=_export_sfc$2(_sfc_main$1O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const panelDateRangeProps=buildProps({...panelSharedProps,...panelRangeSharedProps}),useShortcut=e=>{const{emit:n}=getCurrentInstance(),r=useAttrs$1(),g=useSlots();return L=>{const k=isFunction$1(L.value)?L.value():L.value;if(k){n("pick",[dayjs(k[0]).locale(e.value),dayjs(k[1]).locale(e.value)]);return}L.onClick&&L.onClick({attrs:r,slots:g,emit:n})}},useRangePicker=(e,{defaultValue:n,leftDate:r,rightDate:g,unit:$,onParsedValueChanged:L})=>{const{emit:k}=getCurrentInstance(),{pickerNs:oe}=inject(ROOT_PICKER_INJECTION_KEY),re=useNamespace("date-range-picker"),{t:ae,lang:le}=useLocale(),ue=useShortcut(le),pe=ref(),de=ref(),Fe=ref({endDate:null,selecting:!1}),ze=At=>{Fe.value=At},Ce=(At=!1)=>{const qe=unref(pe),xe=unref(de);isValidRange([qe,xe])&&k("pick",[qe,xe],At)},Ie=At=>{Fe.value.selecting=At,At||(Fe.value.endDate=null)},_e=()=>{const[At,qe]=getDefaultValue(unref(n),{lang:unref(le),unit:$,unlinkPanels:e.unlinkPanels});pe.value=void 0,de.value=void 0,r.value=At,g.value=qe};return watch(n,At=>{At&&_e()},{immediate:!0}),watch(()=>e.parsedValue,At=>{if(isArray$4(At)&&At.length===2){const[qe,xe]=At;pe.value=qe,r.value=qe,de.value=xe,L(unref(pe),unref(de))}else _e()},{immediate:!0}),{minDate:pe,maxDate:de,rangeState:Fe,lang:le,ppNs:oe,drpNs:re,handleChangeRange:ze,handleRangeConfirm:Ce,handleShortcutClick:ue,onSelect:Ie,t:ae}},_hoisted_1$18=["onClick"],_hoisted_2$P=["disabled"],_hoisted_3$q=["disabled"],_hoisted_4$l=["disabled"],_hoisted_5$g=["disabled"],_sfc_main$1N=defineComponent({__name:"panel-date-range",props:panelDateRangeProps,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:n}){const r=e,g="month",$=inject("EP_PICKER_BASE"),{disabledDate:L,cellClassName:k,format:oe,defaultTime:re,arrowControl:ae,clearable:le}=$.props,ue=toRef($.props,"shortcuts"),pe=toRef($.props,"defaultValue"),{lang:de}=useLocale(),Fe=ref(dayjs().locale(de.value)),ze=ref(dayjs().locale(de.value).add(1,g)),{minDate:Ce,maxDate:Ie,rangeState:_e,ppNs:At,drpNs:qe,handleChangeRange:xe,handleRangeConfirm:Ve,handleShortcutClick:he,onSelect:Oe,t:$e}=useRangePicker(r,{defaultValue:pe,leftDate:Fe,rightDate:ze,unit:g,onParsedValueChanged:jn}),Ne=ref({min:null,max:null}),Ue=ref({min:null,max:null}),kt=computed(()=>`${Fe.value.year()} ${$e("el.datepicker.year")} ${$e(`el.datepicker.month${Fe.value.month()+1}`)}`),Et=computed(()=>`${ze.value.year()} ${$e("el.datepicker.year")} ${$e(`el.datepicker.month${ze.value.month()+1}`)}`),Pt=computed(()=>Fe.value.year()),Lt=computed(()=>Fe.value.month()),vn=computed(()=>ze.value.year()),hn=computed(()=>ze.value.month()),Dt=computed(()=>!!ue.value.length),jt=computed(()=>Ne.value.min!==null?Ne.value.min:Ce.value?Ce.value.format(En.value):""),bn=computed(()=>Ne.value.max!==null?Ne.value.max:Ie.value||Ce.value?(Ie.value||Ce.value).format(En.value):""),Sn=computed(()=>Ue.value.min!==null?Ue.value.min:Ce.value?Ce.value.format(On.value):""),Cn=computed(()=>Ue.value.max!==null?Ue.value.max:Ie.value||Ce.value?(Ie.value||Ce.value).format(On.value):""),On=computed(()=>extractTimeFormat(oe)),En=computed(()=>extractDateFormat(oe)),An=()=>{Fe.value=Fe.value.subtract(1,"year"),r.unlinkPanels||(ze.value=Fe.value.add(1,"month")),Nn("year")},In=()=>{Fe.value=Fe.value.subtract(1,"month"),r.unlinkPanels||(ze.value=Fe.value.add(1,"month")),Nn("month")},$n=()=>{r.unlinkPanels?ze.value=ze.value.add(1,"year"):(Fe.value=Fe.value.add(1,"year"),ze.value=Fe.value.add(1,"month")),Nn("year")},Pn=()=>{r.unlinkPanels?ze.value=ze.value.add(1,"month"):(Fe.value=Fe.value.add(1,"month"),ze.value=Fe.value.add(1,"month")),Nn("month")},Dn=()=>{Fe.value=Fe.value.add(1,"year"),Nn("year")},Mn=()=>{Fe.value=Fe.value.add(1,"month"),Nn("month")},Fn=()=>{ze.value=ze.value.subtract(1,"year"),Nn("year")},kn=()=>{ze.value=ze.value.subtract(1,"month"),Nn("month")},Nn=Un=>{n("panel-change",[Fe.value.toDate(),ze.value.toDate()],Un)},Rn=computed(()=>{const Un=(Lt.value+1)%12,Xn=Lt.value+1>=12?1:0;return r.unlinkPanels&&new Date(Pt.value+Xn,Un)r.unlinkPanels&&vn.value*12+hn.value-(Pt.value*12+Lt.value+1)>=12),Tn=computed(()=>!(Ce.value&&Ie.value&&!_e.value.selecting&&isValidRange([Ce.value,Ie.value]))),xn=computed(()=>r.type==="datetime"||r.type==="datetimerange"),Bn=(Un,Xn)=>{if(!!Un)return re?dayjs(re[Xn]||re).locale(de.value).year(Un.year()).month(Un.month()).date(Un.date()):Un},Ln=(Un,Xn=!0)=>{const Zn=Un.minDate,to=Un.maxDate,ro=Bn(Zn,0),lo=Bn(to,1);Ie.value===lo&&Ce.value===ro||(n("calendar-change",[Zn.toDate(),to&&to.toDate()]),Ie.value=lo,Ce.value=ro,!(!Xn||xn.value)&&Ve())},Hn=ref(!1),zn=ref(!1),Jn=()=>{Hn.value=!1},co=()=>{zn.value=!1},Gn=(Un,Xn)=>{Ne.value[Xn]=Un;const Zn=dayjs(Un,En.value).locale(de.value);if(Zn.isValid()){if(L&&L(Zn.toDate()))return;Xn==="min"?(Fe.value=Zn,Ce.value=(Ce.value||Fe.value).year(Zn.year()).month(Zn.month()).date(Zn.date()),r.unlinkPanels||(ze.value=Zn.add(1,"month"),Ie.value=Ce.value.add(1,"month"))):(ze.value=Zn,Ie.value=(Ie.value||ze.value).year(Zn.year()).month(Zn.month()).date(Zn.date()),r.unlinkPanels||(Fe.value=Zn.subtract(1,"month"),Ce.value=Ie.value.subtract(1,"month")))}},eo=(Un,Xn)=>{Ne.value[Xn]=null},ao=(Un,Xn)=>{Ue.value[Xn]=Un;const Zn=dayjs(Un,On.value).locale(de.value);Zn.isValid()&&(Xn==="min"?(Hn.value=!0,Ce.value=(Ce.value||Fe.value).hour(Zn.hour()).minute(Zn.minute()).second(Zn.second()),(!Ie.value||Ie.value.isBefore(Ce.value))&&(Ie.value=Ce.value)):(zn.value=!0,Ie.value=(Ie.value||ze.value).hour(Zn.hour()).minute(Zn.minute()).second(Zn.second()),ze.value=Ie.value,Ie.value&&Ie.value.isBefore(Ce.value)&&(Ce.value=Ie.value)))},ho=(Un,Xn)=>{Ue.value[Xn]=null,Xn==="min"?(Fe.value=Ce.value,Hn.value=!1):(ze.value=Ie.value,zn.value=!1)},Yn=(Un,Xn,Zn)=>{Ue.value.min||(Un&&(Fe.value=Un,Ce.value=(Ce.value||Fe.value).hour(Un.hour()).minute(Un.minute()).second(Un.second())),Zn||(Hn.value=Xn),(!Ie.value||Ie.value.isBefore(Ce.value))&&(Ie.value=Ce.value,ze.value=Un))},Wn=(Un,Xn,Zn)=>{Ue.value.max||(Un&&(ze.value=Un,Ie.value=(Ie.value||ze.value).hour(Un.hour()).minute(Un.minute()).second(Un.second())),Zn||(zn.value=Xn),Ie.value&&Ie.value.isBefore(Ce.value)&&(Ce.value=Ie.value))},Vn=()=>{Fe.value=getDefaultValue(unref(pe),{lang:unref(de),unit:"month",unlinkPanels:r.unlinkPanels})[0],ze.value=Fe.value.add(1,"month"),n("pick",null)},_n=Un=>isArray$4(Un)?Un.map(Xn=>Xn.format(oe)):Un.format(oe),Qn=Un=>isArray$4(Un)?Un.map(Xn=>dayjs(Xn,oe).locale(de.value)):dayjs(Un,oe).locale(de.value);function jn(Un,Xn){if(r.unlinkPanels&&Xn){const Zn=Un?.year()||0,to=Un?.month()||0,ro=Xn.year(),lo=Xn.month();ze.value=Zn===ro&&to===lo?Xn.add(1,g):Xn}else ze.value=Fe.value.add(1,g),Xn&&(ze.value=ze.value.hour(Xn.hour()).minute(Xn.minute()).second(Xn.second()))}return n("set-picker-option",["isValidValue",isValidRange]),n("set-picker-option",["parseUserInput",Qn]),n("set-picker-option",["formatToString",_n]),n("set-picker-option",["handleClear",Vn]),(Un,Xn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(At).b(),unref(qe).b(),{"has-sidebar":Un.$slots.sidebar||unref(Dt),"has-time":unref(xn)}])},[createBaseVNode("div",{class:normalizeClass(unref(At).e("body-wrapper"))},[renderSlot(Un.$slots,"sidebar",{class:normalizeClass(unref(At).e("sidebar"))}),unref(Dt)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(At).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),(Zn,to)=>(openBlock(),createElementBlock("button",{key:to,type:"button",class:normalizeClass(unref(At).e("shortcut")),onClick:ro=>unref(he)(Zn)},toDisplayString(Zn.text),11,_hoisted_1$18))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(At).e("body"))},[unref(xn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(qe).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(qe).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(qe).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",disabled:unref(_e).selecting,placeholder:unref($e)("el.datepicker.startDate"),class:normalizeClass(unref(qe).e("editor")),"model-value":unref(jt),onInput:Xn[0]||(Xn[0]=Zn=>Gn(Zn,"min")),onChange:Xn[1]||(Xn[1]=Zn=>eo(Zn,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(qe).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(qe).e("editor")),disabled:unref(_e).selecting,placeholder:unref($e)("el.datepicker.startTime"),"model-value":unref(Sn),onFocus:Xn[2]||(Xn[2]=Zn=>Hn.value=!0),onInput:Xn[3]||(Xn[3]=Zn=>ao(Zn,"min")),onChange:Xn[4]||(Xn[4]=Zn=>ho(Zn,"min"))},null,8,["class","disabled","placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:Hn.value,format:unref(On),"datetime-role":"start","time-arrow-control":unref(ae),"parsed-value":Fe.value,onPick:Yn},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),Jn]])],2),createBaseVNode("span",null,[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(qe).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(qe).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(qe).e("editor")),disabled:unref(_e).selecting,placeholder:unref($e)("el.datepicker.endDate"),"model-value":unref(bn),readonly:!unref(Ce),onInput:Xn[5]||(Xn[5]=Zn=>Gn(Zn,"max")),onChange:Xn[6]||(Xn[6]=Zn=>eo(Zn,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(qe).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(qe).e("editor")),disabled:unref(_e).selecting,placeholder:unref($e)("el.datepicker.endTime"),"model-value":unref(Cn),readonly:!unref(Ce),onFocus:Xn[7]||(Xn[7]=Zn=>unref(Ce)&&(zn.value=!0)),onInput:Xn[8]||(Xn[8]=Zn=>ao(Zn,"max")),onChange:Xn[9]||(Xn[9]=Zn=>ho(Zn,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode(unref(TimePickPanel),{"datetime-role":"end",visible:zn.value,format:unref(On),"time-arrow-control":unref(ae),"parsed-value":ze.value,onPick:Wn},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),co]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(At).e("content"),unref(qe).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(qe).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(At).e("icon-btn"),"d-arrow-left"]),onClick:An},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(At).e("icon-btn"),"arrow-left"]),onClick:In},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),Un.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(wn),class:normalizeClass([[unref(At).e("icon-btn"),{"is-disabled":!unref(wn)}],"d-arrow-right"]),onClick:Dn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$P)):createCommentVNode("v-if",!0),Un.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Rn),class:normalizeClass([[unref(At).e("icon-btn"),{"is-disabled":!unref(Rn)}],"arrow-right"]),onClick:Mn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_3$q)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString(unref(kt)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:Fe.value,"min-date":unref(Ce),"max-date":unref(Ie),"range-state":unref(_e),"disabled-date":unref(L),"cell-class-name":unref(k),onChangerange:unref(xe),onPick:Ln,onSelect:unref(Oe)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(At).e("content"),unref(qe).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(qe).e("header"))},[Un.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(wn),class:normalizeClass([[unref(At).e("icon-btn"),{"is-disabled":!unref(wn)}],"d-arrow-left"]),onClick:Fn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_4$l)):createCommentVNode("v-if",!0),Un.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Rn),class:normalizeClass([[unref(At).e("icon-btn"),{"is-disabled":!unref(Rn)}],"arrow-left"]),onClick:kn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_5$g)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(At).e("icon-btn"),"d-arrow-right"]),onClick:$n},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(At).e("icon-btn"),"arrow-right"]),onClick:Pn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString(unref(Et)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:ze.value,"min-date":unref(Ce),"max-date":unref(Ie),"range-state":unref(_e),"disabled-date":unref(L),"cell-class-name":unref(k),onChangerange:unref(xe),onPick:Ln,onSelect:unref(Oe)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),unref(xn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(At).e("footer"))},[unref(le)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(At).e("link-btn")),onClick:Vn},{default:withCtx(()=>[createTextVNode(toDisplayString(unref($e)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(At).e("link-btn")),disabled:unref(Tn),onClick:Xn[10]||(Xn[10]=Zn=>unref(Ve)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString(unref($e)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):createCommentVNode("v-if",!0)],2))}});var DateRangePickPanel=_export_sfc$2(_sfc_main$1N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const panelMonthRangeProps=buildProps({...panelRangeSharedProps}),panelMonthRangeEmits=["pick","set-picker-option"],useMonthRangeHeader=({unlinkPanels:e,leftDate:n,rightDate:r})=>{const{t:g}=useLocale(),$=()=>{n.value=n.value.subtract(1,"year"),e||(r.value=r.value.subtract(1,"year"))},L=()=>{e||(n.value=n.value.add(1,"year")),r.value=r.value.add(1,"year")},k=()=>{n.value=n.value.add(1,"year")},oe=()=>{r.value=r.value.subtract(1,"year")},re=computed(()=>`${n.value.year()} ${g("el.datepicker.year")}`),ae=computed(()=>`${r.value.year()} ${g("el.datepicker.year")}`),le=computed(()=>n.value.year()),ue=computed(()=>r.value.year()===n.value.year()?n.value.year()+1:r.value.year());return{leftPrevYear:$,rightNextYear:L,leftNextYear:k,rightPrevYear:oe,leftLabel:re,rightLabel:ae,leftYear:le,rightYear:ue}},_hoisted_1$17=["onClick"],_hoisted_2$O=["disabled"],_hoisted_3$p=["disabled"],__default__$N={name:"DatePickerMonthRange"},_sfc_main$1M=defineComponent({...__default__$N,props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup(e,{emit:n}){const r=e,g="year",{lang:$}=useLocale(),L=inject("EP_PICKER_BASE"),{shortcuts:k,disabledDate:oe,format:re}=L.props,ae=toRef(L.props,"defaultValue"),le=ref(dayjs().locale($.value)),ue=ref(dayjs().locale($.value).add(1,g)),{minDate:pe,maxDate:de,rangeState:Fe,ppNs:ze,drpNs:Ce,handleChangeRange:Ie,handleRangeConfirm:_e,handleShortcutClick:At,onSelect:qe}=useRangePicker(r,{defaultValue:ae,leftDate:le,rightDate:ue,unit:g,onParsedValueChanged:hn}),xe=computed(()=>!!k.length),{leftPrevYear:Ve,rightNextYear:he,leftNextYear:Oe,rightPrevYear:$e,leftLabel:Ne,rightLabel:Ue,leftYear:kt,rightYear:Et}=useMonthRangeHeader({unlinkPanels:toRef(r,"unlinkPanels"),leftDate:le,rightDate:ue}),Pt=computed(()=>r.unlinkPanels&&Et.value>kt.value+1),Lt=(Dt,jt=!0)=>{const bn=Dt.minDate,Sn=Dt.maxDate;de.value===Sn&&pe.value===bn||(de.value=Sn,pe.value=bn,jt&&_e())},vn=Dt=>Dt.map(jt=>jt.format(re));function hn(Dt,jt){if(r.unlinkPanels&&jt){const bn=Dt?.year()||0,Sn=jt.year();ue.value=bn===Sn?jt.add(1,g):jt}else ue.value=le.value.add(1,g)}return n("set-picker-option",["formatToString",vn]),(Dt,jt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ze).b(),unref(Ce).b(),{"has-sidebar":Boolean(Dt.$slots.sidebar)||unref(xe)}])},[createBaseVNode("div",{class:normalizeClass(unref(ze).e("body-wrapper"))},[renderSlot(Dt.$slots,"sidebar",{class:normalizeClass(unref(ze).e("sidebar"))}),unref(xe)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ze).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(k),(bn,Sn)=>(openBlock(),createElementBlock("button",{key:Sn,type:"button",class:normalizeClass(unref(ze).e("shortcut")),onClick:Cn=>unref(At)(bn)},toDisplayString(bn.text),11,_hoisted_1$17))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ze).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(ze).e("content"),unref(Ce).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(Ce).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(ze).e("icon-btn"),"d-arrow-left"]),onClick:jt[0]||(jt[0]=(...bn)=>unref(Ve)&&unref(Ve)(...bn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),Dt.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Pt),class:normalizeClass([[unref(ze).e("icon-btn"),{[unref(ze).is("disabled")]:!unref(Pt)}],"d-arrow-right"]),onClick:jt[1]||(jt[1]=(...bn)=>unref(Oe)&&unref(Oe)(...bn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$O)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString(unref(Ne)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:le.value,"min-date":unref(pe),"max-date":unref(de),"range-state":unref(Fe),"disabled-date":unref(oe),onChangerange:unref(Ie),onPick:Lt,onSelect:unref(qe)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(ze).e("content"),unref(Ce).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(Ce).e("header"))},[Dt.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Pt),class:normalizeClass([[unref(ze).e("icon-btn"),{"is-disabled":!unref(Pt)}],"d-arrow-left"]),onClick:jt[2]||(jt[2]=(...bn)=>unref($e)&&unref($e)(...bn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_3$p)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(ze).e("icon-btn"),"d-arrow-right"]),onClick:jt[3]||(jt[3]=(...bn)=>unref(he)&&unref(he)(...bn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString(unref(Ue)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:ue.value,"min-date":unref(pe),"max-date":unref(de),"range-state":unref(Fe),"disabled-date":unref(oe),onChangerange:unref(Ie),onPick:Lt,onSelect:unref(qe)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var MonthRangePickPanel=_export_sfc$2(_sfc_main$1M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const getPanel$1=function(e){switch(e){case"daterange":case"datetimerange":return DateRangePickPanel;case"monthrange":return MonthRangePickPanel;default:return DatePickPanel}};dayjs.extend(localeData);dayjs.extend(advancedFormat);dayjs.extend(customParseFormat);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(dayOfYear);dayjs.extend(isSameOrAfter);dayjs.extend(isSameOrBefore);var DatePicker=defineComponent({name:"ElDatePicker",install:null,props:{...timePickerDefaultProps,...datePickerProps},emits:["update:modelValue"],setup(e,{expose:n,emit:r,slots:g}){const $=useNamespace("picker-panel");provide("ElPopperOptions",reactive(toRef(e,"popperOptions"))),provide(ROOT_PICKER_INJECTION_KEY,{slots:g,pickerNs:$});const L=ref();n({focus:(re=!0)=>{var ae;(ae=L.value)==null||ae.focus(re)}});const oe=re=>{r("update:modelValue",re)};return()=>{var re;const ae=(re=e.format)!=null?re:DEFAULT_FORMATS_DATEPICKER[e.type]||DEFAULT_FORMATS_DATE,le=getPanel$1(e.type);return createVNode(CommonPicker,mergeProps(e,{format:ae,type:e.type,ref:L,"onUpdate:modelValue":oe}),{default:ue=>createVNode(le,ue,null),"range-separator":g["range-separator"]})}}});const _DatePicker=DatePicker;_DatePicker.install=e=>{e.component(_DatePicker.name,_DatePicker)};const ElDatePicker=_DatePicker,descriptionsKey="elDescriptions";var ElDescriptionsCell=defineComponent({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:inject(descriptionsKey,{})}},render(){var e,n,r,g,$,L;const k=getNormalizedProps(this.cell),{border:oe,direction:re}=this.descriptions,ae=re==="vertical",le=((r=(n=(e=this.cell)==null?void 0:e.children)==null?void 0:n.label)==null?void 0:r.call(n))||k.label,ue=(L=($=(g=this.cell)==null?void 0:g.children)==null?void 0:$.default)==null?void 0:L.call($),pe=k.span,de=k.align?`is-${k.align}`:"",Fe=k.labelAlign?`is-${k.labelAlign}`:de,ze=k.className,Ce=k.labelClassName,Ie={width:addUnit(k.width),minWidth:addUnit(k.minWidth)},_e=useNamespace("descriptions");switch(this.type){case"label":return h$2(this.tag,{style:Ie,class:[_e.e("cell"),_e.e("label"),_e.is("bordered-label",oe),_e.is("vertical-label",ae),Fe,Ce],colSpan:ae?pe:1},le);case"content":return h$2(this.tag,{style:Ie,class:[_e.e("cell"),_e.e("content"),_e.is("bordered-content",oe),_e.is("vertical-content",ae),de,ze],colSpan:ae?pe:pe*2-1},ue);default:return h$2("td",{style:Ie,class:[_e.e("cell"),de],colSpan:pe},[h$2("span",{class:[_e.e("label"),Ce]},le),h$2("span",{class:[_e.e("content"),ze]},ue)])}}});const descriptionsRowProps=buildProps({row:{type:Array,default:()=>[]}}),_hoisted_1$16={key:1},__default__$M={name:"ElDescriptionsRow"},_sfc_main$1L=defineComponent({...__default__$M,props:descriptionsRowProps,setup(e){const n=inject(descriptionsKey,{});return(r,g)=>unref(n).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.row,($,L)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr1-${L}`,cell:$,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.row,($,L)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr2-${L}`,cell:$,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$16,[(openBlock(!0),createElementBlock(Fragment,null,renderList(r.row,($,L)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${L}`},[unref(n).border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(unref(ElDescriptionsCell),{cell:$,tag:"td",type:"label"},null,8,["cell"]),createVNode(unref(ElDescriptionsCell),{cell:$,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(unref(ElDescriptionsCell),{key:1,cell:$,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var ElDescriptionsRow=_export_sfc$2(_sfc_main$1L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const descriptionProps=buildProps({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:useSizeProp,title:{type:String,default:""},extra:{type:String,default:""}}),__default__$L={name:"ElDescriptions"},_sfc_main$1K=defineComponent({...__default__$L,props:descriptionProps,setup(e){const n=e,r=useNamespace("descriptions"),g=useSize(),$=useSlots();provide(descriptionsKey,n);const L=computed(()=>[r.b(),r.m(g.value)]),k=ae=>{const le=Array.isArray(ae)?ae:[ae],ue=[];return le.forEach(pe=>{Array.isArray(pe.children)?ue.push(...k(pe.children)):ue.push(pe)}),ue},oe=(ae,le,ue,pe=!1)=>(ae.props||(ae.props={}),le>ue&&(ae.props.span=ue),pe&&(ae.props.span=le),ae),re=()=>{var ae;const le=k((ae=$.default)==null?void 0:ae.call($)).filter(ze=>{var Ce;return((Ce=ze?.type)==null?void 0:Ce.name)==="ElDescriptionsItem"}),ue=[];let pe=[],de=n.column,Fe=0;return le.forEach((ze,Ce)=>{var Ie;const _e=((Ie=ze.props)==null?void 0:Ie.span)||1;if(Cede?de:_e),Ce===le.length-1){const At=n.column-Fe%n.column;pe.push(oe(ze,At,de,!0)),ue.push(pe);return}_e(openBlock(),createElementBlock("div",{class:normalizeClass(unref(L))},[ae.title||ae.extra||ae.$slots.title||ae.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(r).e("title"))},[renderSlot(ae.$slots,"title",{},()=>[createTextVNode(toDisplayString(ae.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref(r).e("extra"))},[renderSlot(ae.$slots,"extra",{},()=>[createTextVNode(toDisplayString(ae.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(r).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref(r).e("table"),unref(r).is("bordered",ae.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(re(),(ue,pe)=>(openBlock(),createBlock(ElDescriptionsRow,{key:pe,row:ue},null,8,["row"]))),128))])],2)],2)],2))}});var Descriptions=_export_sfc$2(_sfc_main$1K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),DescriptionsItem=defineComponent({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const ElDescriptions=withInstall(Descriptions,{DescriptionsItem}),ElDescriptionsItem=withNoopInstall(DescriptionsItem),overlayProps=buildProps({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}}),overlayEmits={click:e=>e instanceof MouseEvent};var Overlay$1=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup(e,{slots:n,emit:r}){const g=useNamespace("overlay"),$=re=>{r("click",re)},{onClick:L,onMousedown:k,onMouseup:oe}=useSameTarget(e.customMaskEvent?void 0:$);return()=>e.mask?createVNode("div",{class:[g.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:L,onMousedown:k,onMouseup:oe},[renderSlot(n,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$2("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(n,"default")])}});const ElOverlay=Overlay$1,dialogContentProps=buildProps({center:{type:Boolean,default:!1},closeIcon:{type:iconPropType,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),dialogContentEmits={close:()=>!0},_hoisted_1$15=["aria-label"],_hoisted_2$N=["id"],__default__$K={name:"ElDialogContent"},_sfc_main$1J=defineComponent({...__default__$K,props:dialogContentProps,emits:dialogContentEmits,setup(e){const n=e,{t:r}=useLocale(),{Close:g}=CloseComponents,{dialogRef:$,headerRef:L,bodyId:k,ns:oe,style:re}=inject(dialogInjectionKey),{focusTrapRef:ae}=inject(FOCUS_TRAP_INJECTION_KEY),le=composeRefs(ae,$),ue=computed(()=>n.draggable);return useDraggable($,L,ue),(pe,de)=>(openBlock(),createElementBlock("div",{ref:unref(le),class:normalizeClass([unref(oe).b(),unref(oe).is("fullscreen",pe.fullscreen),unref(oe).is("draggable",unref(ue)),{[unref(oe).m("center")]:pe.center},pe.customClass]),style:normalizeStyle(unref(re)),tabindex:"-1",onClick:de[1]||(de[1]=withModifiers(()=>{},["stop"]))},[createBaseVNode("header",{ref_key:"headerRef",ref:L,class:normalizeClass(unref(oe).e("header"))},[renderSlot(pe.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading",class:normalizeClass(unref(oe).e("title"))},toDisplayString(pe.title),3)]),pe.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(r)("el.dialog.close"),class:normalizeClass(unref(oe).e("headerbtn")),type:"button",onClick:de[0]||(de[0]=Fe=>pe.$emit("close"))},[createVNode(unref(ElIcon),{class:normalizeClass(unref(oe).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(pe.closeIcon||unref(g))))]),_:1},8,["class"])],10,_hoisted_1$15)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(k),class:normalizeClass(unref(oe).e("body"))},[renderSlot(pe.$slots,"default")],10,_hoisted_2$N),pe.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass(unref(oe).e("footer"))},[renderSlot(pe.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6))}});var ElDialogContent=_export_sfc$2(_sfc_main$1J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const dialogProps=buildProps({...dialogContentProps,appendToBody:{type:Boolean,default:!1},beforeClose:{type:definePropType(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:e=>isBoolean(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useDialog=(e,n)=>{const g=getCurrentInstance().emit,{nextZIndex:$}=useZIndex();let L="";const k=useId(),oe=useId(),re=ref(!1),ae=ref(!1),le=ref(!1),ue=ref(e.zIndex||$());let pe,de;const Fe=useGlobalConfig("namespace",defaultNamespace),ze=computed(()=>{const kt={},Et=`--${Fe.value}-dialog`;return e.fullscreen||(e.top&&(kt[`${Et}-margin-top`]=e.top),e.width&&(kt[`${Et}-width`]=addUnit(e.width))),kt});function Ce(){g("opened")}function Ie(){g("closed"),g(UPDATE_MODEL_EVENT,!1),e.destroyOnClose&&(le.value=!1)}function _e(){g("close")}function At(){de?.(),pe?.(),e.openDelay&&e.openDelay>0?{stop:pe}=useTimeoutFn(()=>he(),e.openDelay):he()}function qe(){pe?.(),de?.(),e.closeDelay&&e.closeDelay>0?{stop:de}=useTimeoutFn(()=>Oe(),e.closeDelay):Oe()}function xe(){function kt(Et){Et||(ae.value=!0,re.value=!1)}e.beforeClose?e.beforeClose(kt):qe()}function Ve(){e.closeOnClickModal&&xe()}function he(){!isClient||(re.value=!0)}function Oe(){re.value=!1}function $e(){g("openAutoFocus")}function Ne(){g("closeAutoFocus")}e.lockScroll&&useLockscreen(re);function Ue(){e.closeOnPressEscape&&xe()}return watch(()=>e.modelValue,kt=>{kt?(ae.value=!1,At(),le.value=!0,g("open"),ue.value=e.zIndex?ue.value++:$(),nextTick(()=>{n.value&&(n.value.scrollTop=0)})):re.value&&qe()}),watch(()=>e.fullscreen,kt=>{!n.value||(kt?(L=n.value.style.transform,n.value.style.transform=""):n.value.style.transform=L)}),onMounted(()=>{e.modelValue&&(re.value=!0,le.value=!0,At())}),{afterEnter:Ce,afterLeave:Ie,beforeLeave:_e,handleClose:xe,onModalClick:Ve,close:qe,doClose:Oe,onOpenAutoFocus:$e,onCloseAutoFocus:Ne,onCloseRequested:Ue,titleId:k,bodyId:oe,closed:ae,style:ze,rendered:le,visible:re,zIndex:ue}},_hoisted_1$14=["aria-label","aria-labelledby","aria-describedby"],__default__$J={name:"ElDialog"},_sfc_main$1I=defineComponent({...__default__$J,props:dialogProps,emits:dialogEmits,setup(e,{expose:n}){const r=e,g=useSlots();useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},computed(()=>!!g.title));const $=useNamespace("dialog"),L=ref(),k=ref(),oe=ref(),{visible:re,titleId:ae,bodyId:le,style:ue,rendered:pe,zIndex:de,afterEnter:Fe,afterLeave:ze,beforeLeave:Ce,handleClose:Ie,onModalClick:_e,onOpenAutoFocus:At,onCloseAutoFocus:qe,onCloseRequested:xe}=useDialog(r,L);provide(dialogInjectionKey,{dialogRef:L,headerRef:k,bodyId:le,ns:$,rendered:pe,style:ue});const Ve=useSameTarget(_e),he=computed(()=>r.draggable&&!r.fullscreen);return n({visible:re,dialogContentRef:oe}),(Oe,$e)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!Oe.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(Fe),onAfterLeave:unref(ze),onBeforeLeave:unref(Ce),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:Oe.modal,"overlay-class":Oe.modalClass,"z-index":unref(de)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":Oe.title||void 0,"aria-labelledby":Oe.title?void 0:unref(ae),"aria-describedby":unref(le),class:normalizeClass(`${unref($).namespace.value}-overlay-dialog`),onClick:$e[0]||($e[0]=(...Ne)=>unref(Ve).onClick&&unref(Ve).onClick(...Ne)),onMousedown:$e[1]||($e[1]=(...Ne)=>unref(Ve).onMousedown&&unref(Ve).onMousedown(...Ne)),onMouseup:$e[2]||($e[2]=(...Ne)=>unref(Ve).onMouseup&&unref(Ve).onMouseup(...Ne))},[createVNode(unref(ElFocusTrap),{loop:"",trapped:unref(re),"focus-start-el":"container",onFocusAfterTrapped:unref(At),onFocusAfterReleased:unref(qe),onReleaseRequested:unref(xe)},{default:withCtx(()=>[unref(pe)?(openBlock(),createBlock(ElDialogContent,{key:0,ref_key:"dialogContentRef",ref:oe,"custom-class":Oe.customClass,center:Oe.center,"close-icon":Oe.closeIcon,draggable:unref(he),fullscreen:Oe.fullscreen,"show-close":Oe.showClose,title:Oe.title,onClose:unref(Ie)},createSlots({header:withCtx(()=>[Oe.$slots.title?renderSlot(Oe.$slots,"title",{key:1}):renderSlot(Oe.$slots,"header",{key:0,close:unref(Ie),titleId:unref(ae),titleClass:unref($).e("title")})]),default:withCtx(()=>[renderSlot(Oe.$slots,"default")]),_:2},[Oe.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(Oe.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","title","onClose"])):createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],42,_hoisted_1$14)]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref(re)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Dialog=_export_sfc$2(_sfc_main$1I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const ElDialog=withInstall(Dialog),dividerProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:definePropType(String),default:"solid"}}),__default__$I={name:"ElDivider"},_sfc_main$1H=defineComponent({...__default__$I,props:dividerProps,setup(e){const n=e,r=useNamespace("divider"),g=computed(()=>r.cssVar({"border-style":n.borderStyle}));return($,L)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b(),unref(r).m($.direction)]),style:normalizeStyle(unref(g)),role:"separator"},[$.$slots.default&&$.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(r).e("text"),unref(r).is($.contentPosition)])},[renderSlot($.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}});var Divider$1=_export_sfc$2(_sfc_main$1H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const ElDivider=withInstall(Divider$1),drawerProps=buildProps({...dialogProps,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),drawerEmits=dialogEmits,_sfc_main$1G=defineComponent({name:"ElDrawer",components:{ElOverlay,ElFocusTrap,ElIcon,Close:close_default},props:drawerProps,emits:drawerEmits,setup(e,{slots:n}){useDeprecated({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},computed(()=>!!n.title));const r=ref(),g=ref(),$=useNamespace("drawer"),{t:L}=useLocale(),k=computed(()=>e.direction==="rtl"||e.direction==="ltr"),oe=computed(()=>addUnit(e.size));return{...useDialog(e,r),drawerRef:r,focusStartRef:g,isHorizontal:k,drawerSize:oe,ns:$,t:L}}}),_hoisted_1$13=["aria-label","aria-labelledby","aria-describedby"],_hoisted_2$M=["id"],_hoisted_3$o=["aria-label"],_hoisted_4$k=["id"];function _sfc_render$Y(e,n,r,g,$,L){const k=resolveComponent("close"),oe=resolveComponent("el-icon"),re=resolveComponent("el-focus-trap"),ae=resolveComponent("el-overlay");return openBlock(),createBlock(Teleport,{to:"body",disabled:!e.appendToBody},[createVNode(Transition,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:withCtx(()=>[withDirectives(createVNode(ae,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:withCtx(()=>[createVNode(re,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId,class:normalizeClass([e.ns.b(),e.direction,e.visible&&"open",e.customClass]),style:normalizeStyle(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog",onClick:n[1]||(n[1]=withModifiers(()=>{},["stop"]))},[createBaseVNode("span",{ref:"focusStartRef",class:normalizeClass(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(openBlock(),createElementBlock("header",{key:0,class:normalizeClass(e.ns.e("header"))},[e.$slots.title?renderSlot(e.$slots,"title",{key:1},()=>[createCommentVNode(" DEPRECATED SLOT ")]):renderSlot(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,id:e.titleId,role:"heading",class:normalizeClass(e.ns.e("title"))},toDisplayString(e.title),11,_hoisted_2$M))]),e.showClose?(openBlock(),createElementBlock("button",{key:2,"aria-label":e.t("el.drawer.close"),class:normalizeClass(e.ns.e("close-btn")),type:"button",onClick:n[0]||(n[0]=(...le)=>e.handleClose&&e.handleClose(...le))},[createVNode(oe,{class:normalizeClass(e.ns.e("close"))},{default:withCtx(()=>[createVNode(k)]),_:1},8,["class"])],10,_hoisted_3$o)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),e.rendered?(openBlock(),createElementBlock("div",{key:1,id:e.bodyId,class:normalizeClass(e.ns.e("body"))},[renderSlot(e.$slots,"default")],10,_hoisted_4$k)):createCommentVNode("v-if",!0),e.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(e.ns.e("footer"))},[renderSlot(e.$slots,"footer")],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$13)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Drawer=_export_sfc$2(_sfc_main$1G,[["render",_sfc_render$Y],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ElDrawer=withInstall(Drawer),_sfc_main$1F={inheritAttrs:!1};function _sfc_render$X(e,n,r,g,$,L){return renderSlot(e.$slots,"default")}var Collection=_export_sfc$2(_sfc_main$1F,[["render",_sfc_render$X],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _sfc_main$1E={name:"ElCollectionItem",inheritAttrs:!1};function _sfc_render$W(e,n,r,g,$,L){return renderSlot(e.$slots,"default")}var CollectionItem=_export_sfc$2(_sfc_main$1E,[["render",_sfc_render$W],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const COLLECTION_ITEM_SIGN="data-el-collection-item",createCollectionWithScope=e=>{const n=`El${e}Collection`,r=`${n}Item`,g=Symbol(n),$=Symbol(r),L={...Collection,name:n,setup(){const oe=ref(null),re=new Map;provide(g,{itemMap:re,getItems:()=>{const le=unref(oe);if(!le)return[];const ue=Array.from(le.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...re.values()].sort((de,Fe)=>ue.indexOf(de.ref)-ue.indexOf(Fe.ref))},collectionRef:oe})}},k={...CollectionItem,name:r,setup(oe,{attrs:re}){const ae=ref(null),le=inject(g,void 0);provide($,{collectionItemRef:ae}),onMounted(()=>{const ue=unref(ae);ue&&le.itemMap.set(ue,{ref:ue,...re})}),onBeforeUnmount(()=>{const ue=unref(ae);le.itemMap.delete(ue)})}};return{COLLECTION_INJECTION_KEY:g,COLLECTION_ITEM_INJECTION_KEY:$,ElCollection:L,ElCollectionItem:k}},rovingFocusGroupProps=buildProps({style:{type:definePropType([String,Array,Object])},currentTabId:{type:definePropType(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:definePropType(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:ElCollection$1,ElCollectionItem:ElCollectionItem$1,COLLECTION_INJECTION_KEY:COLLECTION_INJECTION_KEY$1,COLLECTION_ITEM_INJECTION_KEY:COLLECTION_ITEM_INJECTION_KEY$1}=createCollectionWithScope("RovingFocusGroup"),ROVING_FOCUS_GROUP_INJECTION_KEY=Symbol("elRovingFocusGroup"),ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY=Symbol("elRovingFocusGroupItem"),MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},getDirectionAwareKey=(e,n)=>{if(n!=="rtl")return e;switch(e){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return e}},getFocusIntent=(e,n,r)=>{const g=getDirectionAwareKey(e.key,r);if(!(n==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(g))&&!(n==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(g)))return MAP_KEY_TO_FOCUS_INTENT[g]},reorderArray=(e,n)=>e.map((r,g)=>e[(g+n)%e.length]),focusFirst=e=>{const{activeElement:n}=document;for(const r of e)if(r===n||(r.focus(),n!==document.activeElement))return},CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange",ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus",EVT_OPTS={bubbles:!1,cancelable:!0},_sfc_main$1D=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup(e,{emit:n}){var r;const g=ref((r=e.currentTabId||e.defaultCurrentTabId)!=null?r:null),$=ref(!1),L=ref(!1),k=ref(null),{getItems:oe}=inject(COLLECTION_INJECTION_KEY$1,void 0),re=computed(()=>[{outline:"none"},e.style]),ae=ze=>{n(CURRENT_TAB_ID_CHANGE_EVT,ze)},le=()=>{$.value=!0},ue=composeEventHandlers(ze=>{var Ce;(Ce=e.onMousedown)==null||Ce.call(e,ze)},()=>{L.value=!0}),pe=composeEventHandlers(ze=>{var Ce;(Ce=e.onFocus)==null||Ce.call(e,ze)},ze=>{const Ce=!unref(L),{target:Ie,currentTarget:_e}=ze;if(Ie===_e&&Ce&&!unref($)){const At=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(_e?.dispatchEvent(At),!At.defaultPrevented){const qe=oe().filter($e=>$e.focusable),xe=qe.find($e=>$e.active),Ve=qe.find($e=>$e.id===unref(g)),Oe=[xe,Ve,...qe].filter(Boolean).map($e=>$e.ref);focusFirst(Oe)}}L.value=!1}),de=composeEventHandlers(ze=>{var Ce;(Ce=e.onBlur)==null||Ce.call(e,ze)},()=>{$.value=!1}),Fe=(...ze)=>{n("entryFocus",...ze)};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(g),loop:toRef(e,"loop"),tabIndex:computed(()=>unref($)?-1:0),rovingFocusGroupRef:k,rovingFocusGroupRootStyle:re,orientation:toRef(e,"orientation"),dir:toRef(e,"dir"),onItemFocus:ae,onItemShiftTab:le,onBlur:de,onFocus:pe,onMousedown:ue}),watch(()=>e.currentTabId,ze=>{g.value=ze??null}),useEventListener(k,ENTRY_FOCUS_EVT,Fe)}});function _sfc_render$V(e,n,r,g,$,L){return renderSlot(e.$slots,"default")}var ElRovingFocusGroupImpl=_export_sfc$2(_sfc_main$1D,[["render",_sfc_render$V],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const _sfc_main$1C=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection$1,ElRovingFocusGroupImpl}});function _sfc_render$U(e,n,r,g,$,L){const k=resolveComponent("el-roving-focus-group-impl"),oe=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(oe,null,{default:withCtx(()=>[createVNode(k,normalizeProps(guardReactiveProps(e.$attrs)),{default:withCtx(()=>[renderSlot(e.$slots,"default")]),_:3},16)]),_:3})}var ElRovingFocusGroup=_export_sfc$2(_sfc_main$1C,[["render",_sfc_render$U],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const _sfc_main$1B=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem$1},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:n}){const{currentTabbedId:r,loop:g,onItemFocus:$,onItemShiftTab:L}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:k}=inject(COLLECTION_INJECTION_KEY$1,void 0),oe=useId(),re=ref(null),ae=composeEventHandlers(de=>{n("mousedown",de)},de=>{e.focusable?$(unref(oe)):de.preventDefault()}),le=composeEventHandlers(de=>{n("focus",de)},()=>{$(unref(oe))}),ue=composeEventHandlers(de=>{n("keydown",de)},de=>{const{key:Fe,shiftKey:ze,target:Ce,currentTarget:Ie}=de;if(Fe===EVENT_CODE.tab&&ze){L();return}if(Ce!==Ie)return;const _e=getFocusIntent(de);if(_e){de.preventDefault();let qe=k().filter(xe=>xe.focusable).map(xe=>xe.ref);switch(_e){case"last":{qe.reverse();break}case"prev":case"next":{_e==="prev"&&qe.reverse();const xe=qe.indexOf(Ie);qe=g.value?reorderArray(qe,xe+1):qe.slice(xe+1);break}}nextTick(()=>{focusFirst(qe)})}}),pe=computed(()=>r.value===unref(oe));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:re,tabIndex:computed(()=>unref(pe)?0:-1),handleMousedown:ae,handleFocus:le,handleKeydown:ue}),{id:oe,handleKeydown:ue,handleFocus:le,handleMousedown:ae}}});function _sfc_render$T(e,n,r,g,$,L){const k=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(k,{id:e.id,focusable:e.focusable,active:e.active},{default:withCtx(()=>[renderSlot(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var ElRovingFocusItem=_export_sfc$2(_sfc_main$1B,[["render",_sfc_render$T],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const dropdownProps=buildProps({trigger:useTooltipTriggerProps.trigger,effect:{...useTooltipContentProps.effect,default:"light"},type:{type:definePropType(String)},placement:{type:definePropType(String),default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:definePropType([Number,String]),default:0},maxHeight:{type:definePropType([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:definePropType(Object)}}),dropdownItemProps=buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:iconPropType}}),dropdownMenuProps=buildProps({onKeydown:{type:definePropType(Function)}}),FIRST_KEYS=[EVENT_CODE.down,EVENT_CODE.pageDown,EVENT_CODE.home],LAST_KEYS=[EVENT_CODE.up,EVENT_CODE.pageUp,EVENT_CODE.end],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],{ElCollection,ElCollectionItem,COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY}=createCollectionWithScope("Dropdown"),DROPDOWN_INJECTION_KEY=Symbol("elDropdown"),{ButtonGroup:ElButtonGroup}=ElButton,_sfc_main$1A=defineComponent({name:"ElDropdown",components:{ElButton,ElButtonGroup,ElScrollbar,ElDropdownCollection:ElCollection,ElTooltip,ElRovingFocusGroup,ElOnlyChild:OnlyChild,ElIcon,ArrowDown:arrow_down_default},props:dropdownProps,emits:["visible-change","click","command"],setup(e,{emit:n}){const r=getCurrentInstance(),g=useNamespace("dropdown"),{t:$}=useLocale(),L=ref(),k=ref(),oe=ref(null),re=ref(null),ae=ref(null),le=ref(null),ue=ref(!1),pe=[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.down],de=computed(()=>({maxHeight:addUnit(e.maxHeight)})),Fe=computed(()=>[g.m(qe.value)]),ze=useId().value,Ce=computed(()=>e.id||ze);function Ie(){_e()}function _e(){var Lt;(Lt=oe.value)==null||Lt.onClose()}function At(){var Lt;(Lt=oe.value)==null||Lt.onOpen()}const qe=useSize();function xe(...Lt){n("command",...Lt)}function Ve(){}function he(){const Lt=unref(re);Lt?.focus(),le.value=null}function Oe(Lt){le.value=Lt}function $e(Lt){ue.value||(Lt.preventDefault(),Lt.stopImmediatePropagation())}function Ne(){n("visible-change",!0)}function Ue(Lt){Lt?.type==="keydown"&&re.value.focus()}function kt(){n("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:re,role:computed(()=>e.role),triggerId:Ce,isUsingKeyboard:ue,onItemEnter:Ve,onItemLeave:he}),provide("elDropdown",{instance:r,dropdownSize:qe,handleClick:Ie,commandHandler:xe,trigger:toRef(e,"trigger"),hideOnClick:toRef(e,"hideOnClick")}),{t:$,ns:g,scrollbar:ae,wrapStyle:de,dropdownTriggerKls:Fe,dropdownSize:qe,triggerId:Ce,triggerKeys:pe,currentTabId:le,handleCurrentTabIdChange:Oe,handlerMainButtonClick:Lt=>{n("click",Lt)},handleEntryFocus:$e,handleClose:_e,handleOpen:At,handleBeforeShowTooltip:Ne,handleShowTooltip:Ue,handleBeforeHideTooltip:kt,onFocusAfterTrapped:Lt=>{var vn,hn;Lt.preventDefault(),(hn=(vn=re.value)==null?void 0:vn.focus)==null||hn.call(vn,{preventScroll:!0})},popperRef:oe,contentRef:re,triggeringElementRef:L,referenceElementRef:k}}});function _sfc_render$S(e,n,r,g,$,L){var k;const oe=resolveComponent("el-dropdown-collection"),re=resolveComponent("el-roving-focus-group"),ae=resolveComponent("el-scrollbar"),le=resolveComponent("el-only-child"),ue=resolveComponent("el-tooltip"),pe=resolveComponent("el-button"),de=resolveComponent("arrow-down"),Fe=resolveComponent("el-icon"),ze=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([e.ns.b(),e.ns.is("disabled",e.disabled)])},[createVNode(ue,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(k=e.referenceElementRef)==null?void 0:k.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},createSlots({content:withCtx(()=>[createVNode(ae,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:withCtx(()=>[createVNode(re,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:withCtx(()=>[createVNode(oe,null,{default:withCtx(()=>[renderSlot(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:withCtx(()=>[createVNode(le,{id:e.triggerId,role:"button",tabindex:e.tabindex},{default:withCtx(()=>[renderSlot(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(openBlock(),createBlock(ze,{key:0},{default:withCtx(()=>[createVNode(pe,mergeProps({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode(pe,mergeProps({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:withCtx(()=>[createVNode(Fe,{class:normalizeClass(e.ns.e("icon"))},{default:withCtx(()=>[createVNode(de)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):createCommentVNode("v-if",!0)],2)}var Dropdown=_export_sfc$2(_sfc_main$1A,[["render",_sfc_render$S],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const _sfc_main$1z=defineComponent({name:"DropdownItemImpl",components:{ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:n}){const r=useNamespace("dropdown"),{role:g}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionItemRef:$}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{collectionItemRef:L}=inject(COLLECTION_ITEM_INJECTION_KEY$1,void 0),{rovingFocusGroupItemRef:k,tabIndex:oe,handleFocus:re,handleKeydown:ae,handleMousedown:le}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),ue=composeRefs($,L,k),pe=computed(()=>g.value==="menu"?"menuitem":g.value==="navigation"?"link":"button"),de=composeEventHandlers(Fe=>{const{code:ze}=Fe;if(ze===EVENT_CODE.enter||ze===EVENT_CODE.space)return Fe.preventDefault(),Fe.stopImmediatePropagation(),n("clickimpl",Fe),!0},ae);return{ns:r,itemRef:ue,dataset:{[COLLECTION_ITEM_SIGN]:""},role:pe,tabIndex:oe,handleFocus:re,handleKeydown:de,handleMousedown:le}}}),_hoisted_1$12=["aria-disabled","tabindex","role"];function _sfc_render$R(e,n,r,g,$,L){const k=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[e.divided?(openBlock(),createElementBlock("li",mergeProps({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:n[0]||(n[0]=oe=>e.$emit("clickimpl",oe)),onFocus:n[1]||(n[1]=(...oe)=>e.handleFocus&&e.handleFocus(...oe)),onKeydown:n[2]||(n[2]=(...oe)=>e.handleKeydown&&e.handleKeydown(...oe)),onMousedown:n[3]||(n[3]=(...oe)=>e.handleMousedown&&e.handleMousedown(...oe)),onPointermove:n[4]||(n[4]=oe=>e.$emit("pointermove",oe)),onPointerleave:n[5]||(n[5]=oe=>e.$emit("pointerleave",oe))}),[e.icon?(openBlock(),createBlock(k,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.icon)))]),_:1})):createCommentVNode("v-if",!0),renderSlot(e.$slots,"default")],16,_hoisted_1$12)],64)}var ElDropdownItemImpl=_export_sfc$2(_sfc_main$1z,[["render",_sfc_render$R],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const useDropdown=()=>{const e=inject("elDropdown",{}),n=computed(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:n}},_sfc_main$1y=defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ElCollectionItem,ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup(e,{emit:n,attrs:r}){const{elDropdown:g}=useDropdown(),$=getCurrentInstance(),L=ref(null),k=computed(()=>{var de,Fe;return(Fe=(de=unref(L))==null?void 0:de.textContent)!=null?Fe:""}),{onItemEnter:oe,onItemLeave:re}=inject(DROPDOWN_INJECTION_KEY,void 0),ae=composeEventHandlers(de=>(n("pointermove",de),de.defaultPrevented),whenMouse(de=>{var Fe;e.disabled?re(de):(oe(de),de.defaultPrevented||(Fe=de.currentTarget)==null||Fe.focus())})),le=composeEventHandlers(de=>(n("pointerleave",de),de.defaultPrevented),whenMouse(de=>{re(de)})),ue=composeEventHandlers(de=>(n("click",de),de.type!=="keydown"&&de.defaultPrevented),de=>{var Fe,ze,Ce;if(e.disabled){de.stopImmediatePropagation();return}(Fe=g?.hideOnClick)!=null&&Fe.value&&((ze=g.handleClick)==null||ze.call(g)),(Ce=g.commandHandler)==null||Ce.call(g,e.command,$,de)}),pe=computed(()=>({...e,...r}));return{handleClick:ue,handlePointerMove:ae,handlePointerLeave:le,textContent:k,propsAndAttrs:pe}}});function _sfc_render$Q(e,n,r,g,$,L){var k;const oe=resolveComponent("el-dropdown-item-impl"),re=resolveComponent("el-roving-focus-item"),ae=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock(ae,{disabled:e.disabled,"text-value":(k=e.textValue)!=null?k:e.textContent},{default:withCtx(()=>[createVNode(re,{focusable:!e.disabled},{default:withCtx(()=>[createVNode(oe,mergeProps(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:withCtx(()=>[renderSlot(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var DropdownItem=_export_sfc$2(_sfc_main$1y,[["render",_sfc_render$Q],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const _sfc_main$1x=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup(e){const n=useNamespace("dropdown"),{_elDropdownSize:r}=useDropdown(),g=r.value,{focusTrapRef:$,onKeydown:L}=inject(FOCUS_TRAP_INJECTION_KEY,void 0),{contentRef:k,role:oe,triggerId:re}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionRef:ae,getItems:le}=inject(COLLECTION_INJECTION_KEY,void 0),{rovingFocusGroupRef:ue,rovingFocusGroupRootStyle:pe,tabIndex:de,onBlur:Fe,onFocus:ze,onMousedown:Ce}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:Ie}=inject(COLLECTION_INJECTION_KEY$1,void 0),_e=computed(()=>[n.b("menu"),n.bm("menu",g?.value)]),At=composeRefs(k,ae,$,ue,Ie),qe=composeEventHandlers(Ve=>{var he;(he=e.onKeydown)==null||he.call(e,Ve)},Ve=>{const{currentTarget:he,code:Oe,target:$e}=Ve;if(he.contains($e),EVENT_CODE.tab===Oe&&Ve.stopImmediatePropagation(),Ve.preventDefault(),$e!==unref(k)||!FIRST_LAST_KEYS.includes(Oe))return;const Ue=le().filter(kt=>!kt.disabled).map(kt=>kt.ref);LAST_KEYS.includes(Oe)&&Ue.reverse(),focusFirst(Ue)});return{size:g,rovingFocusGroupRootStyle:pe,tabIndex:de,dropdownKls:_e,role:oe,triggerId:re,dropdownListWrapperRef:At,handleKeydown:Ve=>{qe(Ve),L(Ve)},onBlur:Fe,onFocus:ze,onMousedown:Ce}}}),_hoisted_1$11=["role","aria-labelledby"];function _sfc_render$P(e,n,r,g,$,L){return openBlock(),createElementBlock("ul",{ref:e.dropdownListWrapperRef,class:normalizeClass(e.dropdownKls),style:normalizeStyle(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:n[0]||(n[0]=(...k)=>e.onBlur&&e.onBlur(...k)),onFocus:n[1]||(n[1]=(...k)=>e.onFocus&&e.onFocus(...k)),onKeydown:n[2]||(n[2]=(...k)=>e.handleKeydown&&e.handleKeydown(...k)),onMousedown:n[3]||(n[3]=(...k)=>e.onMousedown&&e.onMousedown(...k))},[renderSlot(e.$slots,"default")],46,_hoisted_1$11)}var DropdownMenu=_export_sfc$2(_sfc_main$1x,[["render",_sfc_render$P],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const ElDropdown=withInstall(Dropdown,{DropdownItem,DropdownMenu}),ElDropdownItem=withNoopInstall(DropdownItem),ElDropdownMenu=withNoopInstall(DropdownMenu);let id$1=0;const _sfc_main$1w=defineComponent({name:"ImgEmpty",setup(){return{ns:useNamespace("empty"),id:++id$1}}}),_hoisted_1$10={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},_hoisted_2$L=["id"],_hoisted_3$n=["stop-color"],_hoisted_4$j=["stop-color"],_hoisted_5$f=["id"],_hoisted_6$b=["stop-color"],_hoisted_7$7=["stop-color"],_hoisted_8$6=["id"],_hoisted_9$5={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_hoisted_10$5={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},_hoisted_11$5={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},_hoisted_12$5=["fill"],_hoisted_13$5=["fill"],_hoisted_14$5={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},_hoisted_15$4=["fill"],_hoisted_16$4=["fill"],_hoisted_17$4=["fill"],_hoisted_18$4=["fill"],_hoisted_19$4=["fill"],_hoisted_20$3={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},_hoisted_21$2=["fill","xlink:href"],_hoisted_22=["fill","mask"],_hoisted_23=["fill"];function _sfc_render$O(e,n,r,g,$,L){return openBlock(),createElementBlock("svg",_hoisted_1$10,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$n),createBaseVNode("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$j)],8,_hoisted_2$L),createBaseVNode("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$b),createBaseVNode("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7$7)],8,_hoisted_5$f),createBaseVNode("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,_hoisted_8$6)]),createBaseVNode("g",_hoisted_9$5,[createBaseVNode("g",_hoisted_10$5,[createBaseVNode("g",_hoisted_11$5,[createBaseVNode("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${e.ns.cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12$5),createBaseVNode("polygon",{id:"Rectangle-Copy-14",fill:`var(${e.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,_hoisted_13$5),createBaseVNode("g",_hoisted_14$5,[createBaseVNode("polygon",{id:"Rectangle-Copy-10",fill:`var(${e.ns.cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,_hoisted_15$4),createBaseVNode("polygon",{id:"Rectangle-Copy-11",fill:`var(${e.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,_hoisted_16$4),createBaseVNode("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,_hoisted_17$4),createBaseVNode("polygon",{id:"Rectangle-Copy-13",fill:`var(${e.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,_hoisted_18$4)]),createBaseVNode("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19$4),createBaseVNode("g",_hoisted_20$3,[createBaseVNode("use",{id:"Mask",fill:`var(${e.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.id}`},null,8,_hoisted_21$2),createBaseVNode("polygon",{id:"Rectangle-Copy",fill:`var(${e.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e.id})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,_hoisted_22)]),createBaseVNode("polygon",{id:"Rectangle-Copy-18",fill:`var(${e.ns.cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,_hoisted_23)])])])])}var ImgEmpty=_export_sfc$2(_sfc_main$1w,[["render",_sfc_render$O],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const emptyProps={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},_hoisted_1$$=["src"],_hoisted_2$K={key:1},__default__$H={name:"ElEmpty"},_sfc_main$1v=defineComponent({...__default__$H,props:emptyProps,setup(e){const n=e,{t:r}=useLocale(),g=useNamespace("empty"),$=computed(()=>n.description||r("el.table.emptyText")),L=computed(()=>({width:n.imageSize?`${n.imageSize}px`:""}));return(k,oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(g).b())},[createBaseVNode("div",{class:normalizeClass(unref(g).e("image")),style:normalizeStyle(unref(L))},[k.image?(openBlock(),createElementBlock("img",{key:0,src:k.image,ondragstart:"return false"},null,8,_hoisted_1$$)):renderSlot(k.$slots,"image",{key:1},()=>[createVNode(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(g).e("description"))},[k.$slots.description?renderSlot(k.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$K,toDisplayString(unref($)),1))],2),k.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(g).e("bottom"))},[renderSlot(k.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var Empty=_export_sfc$2(_sfc_main$1v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const ElEmpty=withInstall(Empty),formProps=buildProps({model:Object,rules:{type:definePropType(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:componentSizes},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),formEmits={validate:(e,n,r)=>(isArray$4(e)||isString$2(e))&&isBoolean(n)&&isString$2(r)};function useFormLabelWidth(){const e=ref([]),n=computed(()=>{if(!e.value.length)return"0";const L=Math.max(...e.value);return L?`${L}px`:""});function r(L){return e.value.indexOf(L)}function g(L,k){if(L&&k){const oe=r(k);e.value.splice(oe,1,L)}else L&&e.value.push(L)}function $(L){const k=r(L);k>-1&&e.value.splice(k,1)}return{autoLabelWidth:n,registerLabelWidth:g,deregisterLabelWidth:$}}const filterFields=(e,n)=>{const r=castArray$1(n);return r.length>0?e.filter(g=>g.prop&&r.includes(g.prop)):e},__default__$G={name:"ElForm"},_sfc_main$1u=defineComponent({...__default__$G,props:formProps,emits:formEmits,setup(e,{expose:n,emit:r}){const g=e,$=[],L=useSize(),k=useNamespace("form"),oe=computed(()=>{const{labelPosition:_e,inline:At}=g;return[k.b(),k.m(L.value||"default"),{[k.m(`label-${_e}`)]:_e,[k.m("inline")]:At}]}),re=_e=>{$.push(_e)},ae=_e=>{_e.prop&&$.splice($.indexOf(_e),1)},le=(_e=[])=>{!g.model||filterFields($,_e).forEach(At=>At.resetField())},ue=(_e=[])=>{filterFields($,_e).forEach(At=>At.clearValidate())},pe=computed(()=>!!g.model),de=_e=>{if($.length===0)return[];const At=filterFields($,_e);return At.length?At:[]},Fe=async _e=>Ce(void 0,_e),ze=async(_e=[])=>{if(!pe.value)return!1;const At=de(_e);if(At.length===0)return!0;let qe={};for(const xe of At)try{await xe.validate("")}catch(Ve){qe={...qe,...Ve}}return Object.keys(qe).length===0?!0:Promise.reject(qe)},Ce=async(_e=[],At)=>{const qe=!isFunction$1(At);try{const xe=await ze(_e);return xe===!0&&At?.(xe),xe}catch(xe){const Ve=xe;return g.scrollToError&&Ie(Object.keys(Ve)[0]),At?.(!1,Ve),qe&&Promise.reject(Ve)}},Ie=_e=>{var At;const qe=filterFields($,_e)[0];qe&&((At=qe.$el)==null||At.scrollIntoView())};return watch(()=>g.rules,()=>{g.validateOnRuleChange&&Fe().catch(_e=>void 0)},{deep:!0}),provide(formContextKey,reactive({...toRefs(g),emit:r,resetFields:le,clearValidate:ue,validateField:Ce,addField:re,removeField:ae,...useFormLabelWidth()})),n({validate:Fe,validateField:Ce,resetFields:le,clearValidate:ue,scrollToField:Ie}),(_e,At)=>(openBlock(),createElementBlock("form",{class:normalizeClass(unref(oe))},[renderSlot(_e.$slots,"default")],2))}});var Form$2=_export_sfc$2(_sfc_main$1u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var n=1;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct(e,n,r){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function($,L,k){var oe=[null];oe.push.apply(oe,L);var re=Function.bind.apply($,oe),ae=new re;return k&&_setPrototypeOf(ae,k.prototype),ae},_construct.apply(null,arguments)}function _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _wrapNativeSuper(e){var n=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(g){if(g===null||!_isNativeFunction(g))return g;if(typeof g!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(g))return n.get(g);n.set(g,$)}function $(){return _construct(g,arguments,_getPrototypeOf(this).constructor)}return $.prototype=Object.create(g.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf($,g)},_wrapNativeSuper(e)}var formatRegExp=/%[sdj%]/g,warning=function(){};typeof process<"u"&&process.env;function convertFieldsError(e){if(!e||!e.length)return null;var n={};return e.forEach(function(r){var g=r.field;n[g]=n[g]||[],n[g].push(r)}),n}function format(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),g=1;g=L)return oe;switch(oe){case"%s":return String(r[$++]);case"%d":return Number(r[$++]);case"%j":try{return JSON.stringify(r[$++])}catch{return"[Circular]"}break;default:return oe}});return k}return e}function isNativeStringType(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function isEmptyValue(e,n){return!!(e==null||n==="array"&&Array.isArray(e)&&!e.length||isNativeStringType(n)&&typeof e=="string"&&!e)}function asyncParallelArray(e,n,r){var g=[],$=0,L=e.length;function k(oe){g.push.apply(g,oe||[]),$++,$===L&&r(g)}e.forEach(function(oe){n(oe,k)})}function asyncSerialArray(e,n,r){var g=0,$=e.length;function L(k){if(k&&k.length){r(k);return}var oe=g;g=g+1,oe<$?n(e[oe],L):r([])}L([])}function flattenObjArr(e){var n=[];return Object.keys(e).forEach(function(r){n.push.apply(n,e[r]||[])}),n}var AsyncValidationError=function(e){_inheritsLoose(n,e);function n(r,g){var $;return $=e.call(this,"Async Validation Error")||this,$.errors=r,$.fields=g,$}return n}(_wrapNativeSuper(Error));function asyncMap(e,n,r,g,$){if(n.first){var L=new Promise(function(pe,de){var Fe=function(Ie){return g(Ie),Ie.length?de(new AsyncValidationError(Ie,convertFieldsError(Ie))):pe($)},ze=flattenObjArr(e);asyncSerialArray(ze,r,Fe)});return L.catch(function(pe){return pe}),L}var k=n.firstFields===!0?Object.keys(e):n.firstFields||[],oe=Object.keys(e),re=oe.length,ae=0,le=[],ue=new Promise(function(pe,de){var Fe=function(Ce){if(le.push.apply(le,Ce),ae++,ae===re)return g(le),le.length?de(new AsyncValidationError(le,convertFieldsError(le))):pe($)};oe.length||(g(le),pe($)),oe.forEach(function(ze){var Ce=e[ze];k.indexOf(ze)!==-1?asyncSerialArray(Ce,r,Fe):asyncParallelArray(Ce,r,Fe)})});return ue.catch(function(pe){return pe}),ue}function isErrorObj(e){return!!(e&&e.message!==void 0)}function getValue(e,n){for(var r=e,g=0;g()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$1={integer:function(n){return types$1.number(n)&&parseInt(n,10)===n},float:function(n){return types$1.number(n)&&!types$1.integer(n)},array:function(n){return Array.isArray(n)},regexp:function(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch{return!1}},date:function(n){return typeof n.getTime=="function"&&typeof n.getMonth=="function"&&typeof n.getYear=="function"&&!isNaN(n.getTime())},number:function(n){return isNaN(n)?!1:typeof n=="number"},object:function(n){return typeof n=="object"&&!types$1.array(n)},method:function(n){return typeof n=="function"},email:function(n){return typeof n=="string"&&n.length<=320&&!!n.match(pattern$2.email)},url:function(n){return typeof n=="string"&&n.length<=2048&&!!n.match(getUrlRegex())},hex:function(n){return typeof n=="string"&&!!n.match(pattern$2.hex)}},type$1=function(n,r,g,$,L){if(n.required&&r===void 0){required$1(n,r,g,$,L);return}var k=["integer","float","array","regexp","object","method","email","number","date","url","hex"],oe=n.type;k.indexOf(oe)>-1?types$1[oe](r)||$.push(format(L.messages.types[oe],n.fullField,n.type)):oe&&typeof r!==n.type&&$.push(format(L.messages.types[oe],n.fullField,n.type))},range=function(n,r,g,$,L){var k=typeof n.len=="number",oe=typeof n.min=="number",re=typeof n.max=="number",ae=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,le=r,ue=null,pe=typeof r=="number",de=typeof r=="string",Fe=Array.isArray(r);if(pe?ue="number":de?ue="string":Fe&&(ue="array"),!ue)return!1;Fe&&(le=r.length),de&&(le=r.replace(ae,"_").length),k?le!==n.len&&$.push(format(L.messages[ue].len,n.fullField,n.len)):oe&&!re&&len.max?$.push(format(L.messages[ue].max,n.fullField,n.max)):oe&&re&&(len.max)&&$.push(format(L.messages[ue].range,n.fullField,n.min,n.max))},ENUM$1="enum",enumerable$1=function(n,r,g,$,L){n[ENUM$1]=Array.isArray(n[ENUM$1])?n[ENUM$1]:[],n[ENUM$1].indexOf(r)===-1&&$.push(format(L.messages[ENUM$1],n.fullField,n[ENUM$1].join(", ")))},pattern$1=function(n,r,g,$,L){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(r)||$.push(format(L.messages.pattern.mismatch,n.fullField,r,n.pattern));else if(typeof n.pattern=="string"){var k=new RegExp(n.pattern);k.test(r)||$.push(format(L.messages.pattern.mismatch,n.fullField,r,n.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string$1=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r,"string")&&!n.required)return g();rules.required(n,r,$,k,L,"string"),isEmptyValue(r,"string")||(rules.type(n,r,$,k,L),rules.range(n,r,$,k,L),rules.pattern(n,r,$,k,L),n.whitespace===!0&&rules.whitespace(n,r,$,k,L))}g(k)},method=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r)&&!n.required)return g();rules.required(n,r,$,k,L),r!==void 0&&rules.type(n,r,$,k,L)}g(k)},number$1=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(r===""&&(r=void 0),isEmptyValue(r)&&!n.required)return g();rules.required(n,r,$,k,L),r!==void 0&&(rules.type(n,r,$,k,L),rules.range(n,r,$,k,L))}g(k)},_boolean=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r)&&!n.required)return g();rules.required(n,r,$,k,L),r!==void 0&&rules.type(n,r,$,k,L)}g(k)},regexp=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r)&&!n.required)return g();rules.required(n,r,$,k,L),isEmptyValue(r)||rules.type(n,r,$,k,L)}g(k)},integer=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r)&&!n.required)return g();rules.required(n,r,$,k,L),r!==void 0&&(rules.type(n,r,$,k,L),rules.range(n,r,$,k,L))}g(k)},floatFn=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r)&&!n.required)return g();rules.required(n,r,$,k,L),r!==void 0&&(rules.type(n,r,$,k,L),rules.range(n,r,$,k,L))}g(k)},array=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(r==null&&!n.required)return g();rules.required(n,r,$,k,L,"array"),r!=null&&(rules.type(n,r,$,k,L),rules.range(n,r,$,k,L))}g(k)},object=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r)&&!n.required)return g();rules.required(n,r,$,k,L),r!==void 0&&rules.type(n,r,$,k,L)}g(k)},ENUM="enum",enumerable=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r)&&!n.required)return g();rules.required(n,r,$,k,L),r!==void 0&&rules[ENUM](n,r,$,k,L)}g(k)},pattern=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r,"string")&&!n.required)return g();rules.required(n,r,$,k,L),isEmptyValue(r,"string")||rules.pattern(n,r,$,k,L)}g(k)},date=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r,"date")&&!n.required)return g();if(rules.required(n,r,$,k,L),!isEmptyValue(r,"date")){var re;r instanceof Date?re=r:re=new Date(r),rules.type(n,re,$,k,L),re&&rules.range(n,re.getTime(),$,k,L)}}g(k)},required=function(n,r,g,$,L){var k=[],oe=Array.isArray(r)?"array":typeof r;rules.required(n,r,$,k,L,oe),g(k)},type=function(n,r,g,$,L){var k=n.type,oe=[],re=n.required||!n.required&&$.hasOwnProperty(n.field);if(re){if(isEmptyValue(r,k)&&!n.required)return g();rules.required(n,r,$,oe,L,k),isEmptyValue(r,k)||rules.type(n,r,$,oe,L)}g(oe)},any=function(n,r,g,$,L){var k=[],oe=n.required||!n.required&&$.hasOwnProperty(n.field);if(oe){if(isEmptyValue(r)&&!n.required)return g();rules.required(n,r,$,k,L)}g(k)},validators={string:string$1,method,number:number$1,boolean:_boolean,regexp,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}var messages=newMessages(),Schema=function(){function e(r){this.rules=null,this._messages=messages,this.define(r)}var n=e.prototype;return n.define=function(g){var $=this;if(!g)throw new Error("Cannot configure a schema with no rules");if(typeof g!="object"||Array.isArray(g))throw new Error("Rules must be an object");this.rules={},Object.keys(g).forEach(function(L){var k=g[L];$.rules[L]=Array.isArray(k)?k:[k]})},n.messages=function(g){return g&&(this._messages=deepMerge(newMessages(),g)),this._messages},n.validate=function(g,$,L){var k=this;$===void 0&&($={}),L===void 0&&(L=function(){});var oe=g,re=$,ae=L;if(typeof re=="function"&&(ae=re,re={}),!this.rules||Object.keys(this.rules).length===0)return ae&&ae(null,oe),Promise.resolve(oe);function le(ze){var Ce=[],Ie={};function _e(qe){if(Array.isArray(qe)){var xe;Ce=(xe=Ce).concat.apply(xe,qe)}else Ce.push(qe)}for(var At=0;At");const $=useNamespace("form"),L=ref(),k=ref(0),oe=()=>{var le;if((le=L.value)!=null&&le.firstElementChild){const ue=window.getComputedStyle(L.value.firstElementChild).width;return Math.ceil(Number.parseFloat(ue))}else return 0},re=(le="update")=>{nextTick(()=>{n.default&&e.isAutoWidth&&(le==="update"?k.value=oe():le==="remove"&&r?.deregisterLabelWidth(k.value))})},ae=()=>re("update");return onMounted(()=>{ae()}),onBeforeUnmount(()=>{re("remove")}),onUpdated(()=>ae()),watch(k,(le,ue)=>{e.updateAll&&r?.registerLabelWidth(le,ue)}),useResizeObserver(computed(()=>{var le,ue;return(ue=(le=L.value)==null?void 0:le.firstElementChild)!=null?ue:null}),ae),()=>{var le,ue;if(!n)return null;const{isAutoWidth:pe}=e;if(pe){const de=r?.autoLabelWidth,Fe={};if(de&&de!=="auto"){const ze=Math.max(0,Number.parseInt(de,10)-k.value),Ce=r.labelPosition==="left"?"marginRight":"marginLeft";ze&&(Fe[Ce]=`${ze}px`)}return createVNode("div",{ref:L,class:[$.be("item","label-wrap")],style:Fe},[(le=n.default)==null?void 0:le.call(n)])}else return createVNode(Fragment,{ref:L},[(ue=n.default)==null?void 0:ue.call(n)])}}});const _hoisted_1$_=["role","aria-labelledby"],__default__$F={name:"ElFormItem"},_sfc_main$1t=defineComponent({...__default__$F,props:formItemProps,setup(e,{expose:n}){const r=e,g=useSlots(),$=inject(formContextKey,void 0),L=inject(formItemContextKey,void 0),k=useSize(void 0,{formItem:!1}),oe=useNamespace("form-item"),re=useId().value,ae=ref([]),le=ref(""),ue=refDebounced(le,100),pe=ref(""),de=ref();let Fe,ze=!1;const Ce=computed(()=>{if($?.labelPosition==="top")return{};const $n=addUnit(r.labelWidth||$?.labelWidth||"");return $n?{width:$n}:{}}),Ie=computed(()=>{if($?.labelPosition==="top"||$?.inline)return{};if(!r.label&&!r.labelWidth&&$e)return{};const $n=addUnit(r.labelWidth||$?.labelWidth||"");return!r.label&&!g.label?{marginLeft:$n}:{}}),_e=computed(()=>[oe.b(),oe.m(k.value),oe.is("error",le.value==="error"),oe.is("validating",le.value==="validating"),oe.is("success",le.value==="success"),oe.is("required",Pt.value||r.required),oe.is("no-asterisk",$?.hideRequiredAsterisk),{[oe.m("feedback")]:$?.statusIcon}]),At=computed(()=>isBoolean(r.inlineMessage)?r.inlineMessage:$?.inlineMessage||!1),qe=computed(()=>[oe.e("error"),{[oe.em("error","inline")]:At.value}]),xe=computed(()=>r.prop?isString$2(r.prop)?r.prop:r.prop.join("."):""),Ve=computed(()=>!!(r.label||g.label)),he=computed(()=>r.for||ae.value.length===1?ae.value[0]:void 0),Oe=computed(()=>!he.value&&Ve.value),$e=!!L,Ne=computed(()=>{const $n=$?.model;if(!(!$n||!r.prop))return getProp($n,r.prop).value}),Ue=computed(()=>{const $n=r.rules?castArray$1(r.rules):[],Pn=$?.rules;if(Pn&&r.prop){const Dn=getProp(Pn,r.prop).value;Dn&&$n.push(...castArray$1(Dn))}return r.required!==void 0&&$n.push({required:!!r.required}),$n}),kt=computed(()=>Ue.value.length>0),Et=$n=>Ue.value.filter(Dn=>!Dn.trigger||!$n?!0:Array.isArray(Dn.trigger)?Dn.trigger.includes($n):Dn.trigger===$n).map(({trigger:Dn,...Mn})=>Mn),Pt=computed(()=>Ue.value.some($n=>$n.required===!0)),Lt=computed(()=>{var $n;return ue.value==="error"&&r.showMessage&&(($n=$?.showMessage)!=null?$n:!0)}),vn=computed(()=>`${r.label||""}${$?.labelSuffix||""}`),hn=$n=>{le.value=$n},Dt=$n=>{var Pn,Dn;const{errors:Mn,fields:Fn}=$n;(!Mn||!Fn)&&console.error($n),hn("error"),pe.value=Mn?(Dn=(Pn=Mn?.[0])==null?void 0:Pn.message)!=null?Dn:`${r.prop} is required`:"",$?.emit("validate",r.prop,!1,pe.value)},jt=()=>{hn("success"),$?.emit("validate",r.prop,!0,"")},bn=async $n=>{const Pn=xe.value;return new Schema({[Pn]:$n}).validate({[Pn]:Ne.value},{firstFields:!0}).then(()=>(jt(),!0)).catch(Mn=>(Dt(Mn),Promise.reject(Mn)))},Sn=async($n,Pn)=>{if(ze)return ze=!1,!1;const Dn=isFunction$1(Pn);if(!kt.value)return Pn?.(!1),!1;const Mn=Et($n);return Mn.length===0?(Pn?.(!0),!0):(hn("validating"),bn(Mn).then(()=>(Pn?.(!0),!0)).catch(Fn=>{const{fields:kn}=Fn;return Pn?.(!1,kn),Dn?!1:Promise.reject(kn)}))},Cn=()=>{hn(""),pe.value=""},On=async()=>{const $n=$?.model;if(!$n||!r.prop)return;const Pn=getProp($n,r.prop);isEqual$1(Pn.value,Fe)||(ze=!0,Pn.value=clone$1(Fe)),await nextTick(),Cn()},En=$n=>{ae.value.includes($n)||ae.value.push($n)},An=$n=>{ae.value=ae.value.filter(Pn=>Pn!==$n)};watch(()=>r.error,$n=>{pe.value=$n||"",hn($n?"error":"")},{immediate:!0}),watch(()=>r.validateStatus,$n=>hn($n||""));const In=reactive({...toRefs(r),$el:de,size:k,validateState:le,labelId:re,inputIds:ae,isGroup:Oe,addInputId:En,removeInputId:An,resetField:On,clearValidate:Cn,validate:Sn});return provide(formItemContextKey,In),onMounted(()=>{r.prop&&($?.addField(In),Fe=clone$1(Ne.value))}),onBeforeUnmount(()=>{$?.removeField(In)}),n({size:k,validateMessage:pe,validateState:le,validate:Sn,clearValidate:Cn,resetField:On}),($n,Pn)=>{var Dn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:de,class:normalizeClass(unref(_e)),role:unref(Oe)?"group":void 0,"aria-labelledby":unref(Oe)?unref(re):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(Ce).width==="auto","update-all":((Dn=unref($))==null?void 0:Dn.labelWidth)==="auto"},{default:withCtx(()=>[unref(Ve)?(openBlock(),createBlock(resolveDynamicComponent(unref(he)?"label":"div"),{key:0,id:unref(re),for:unref(he),class:normalizeClass(unref(oe).e("label")),style:normalizeStyle(unref(Ce))},{default:withCtx(()=>[renderSlot($n.$slots,"label",{label:unref(vn)},()=>[createTextVNode(toDisplayString(unref(vn)),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(oe).e("content")),style:normalizeStyle(unref(Ie))},[renderSlot($n.$slots,"default"),createVNode(Transition,{name:`${unref(oe).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(Lt)?renderSlot($n.$slots,"error",{key:0,error:pe.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(qe))},toDisplayString(pe.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,_hoisted_1$_)}}});var FormItem=_export_sfc$2(_sfc_main$1t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ElForm=withInstall(Form$2,{FormItem}),ElFormItem=withNoopInstall(FormItem),imageViewerProps=buildProps({urlList:{type:definePropType(Array),default:()=>mutable([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),imageViewerEmits={close:()=>!0,switch:e=>isNumber(e)},_hoisted_1$Z=["src"],__default__$E={name:"ElImageViewer"},_sfc_main$1s=defineComponent({...__default__$E,props:imageViewerProps,emits:imageViewerEmits,setup(e,{emit:n}){const r=e,g={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},$=isFirefox()?"DOMMouseScroll":"mousewheel",{t:L}=useLocale(),k=useNamespace("image-viewer"),{nextZIndex:oe}=useZIndex(),re=ref(),ae=ref([]),le=effectScope(),ue=ref(!0),pe=ref(r.initialIndex),de=shallowRef(g.CONTAIN),Fe=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),ze=computed(()=>{const{urlList:vn}=r;return vn.length<=1}),Ce=computed(()=>pe.value===0),Ie=computed(()=>pe.value===r.urlList.length-1),_e=computed(()=>r.urlList[pe.value]),At=computed(()=>{const{scale:vn,deg:hn,offsetX:Dt,offsetY:jt,enableTransition:bn}=Fe.value;let Sn=Dt/vn,Cn=jt/vn;switch(hn%360){case 90:case-270:[Sn,Cn]=[Cn,-Sn];break;case 180:case-180:[Sn,Cn]=[-Sn,-Cn];break;case 270:case-90:[Sn,Cn]=[-Cn,Sn];break}const On={transform:`scale(${vn}) rotate(${hn}deg) translate(${Sn}px, ${Cn}px)`,transition:bn?"transform .3s":""};return de.value.name===g.CONTAIN.name&&(On.maxWidth=On.maxHeight="100%"),On}),qe=computed(()=>isNumber(r.zIndex)?r.zIndex:oe());function xe(){he(),n("close")}function Ve(){const vn=throttle$1(Dt=>{switch(Dt.code){case EVENT_CODE.esc:r.closeOnPressEscape&&xe();break;case EVENT_CODE.space:kt();break;case EVENT_CODE.left:Et();break;case EVENT_CODE.up:Lt("zoomIn");break;case EVENT_CODE.right:Pt();break;case EVENT_CODE.down:Lt("zoomOut");break}}),hn=throttle$1(Dt=>{(Dt.wheelDelta?Dt.wheelDelta:-Dt.detail)>0?Lt("zoomIn",{zoomRate:1.2,enableTransition:!1}):Lt("zoomOut",{zoomRate:1.2,enableTransition:!1})});le.run(()=>{useEventListener(document,"keydown",vn),useEventListener(document,$,hn)})}function he(){le.stop()}function Oe(){ue.value=!1}function $e(vn){ue.value=!1,vn.target.alt=L("el.image.error")}function Ne(vn){if(ue.value||vn.button!==0||!re.value)return;Fe.value.enableTransition=!1;const{offsetX:hn,offsetY:Dt}=Fe.value,jt=vn.pageX,bn=vn.pageY,Sn=throttle$1(On=>{Fe.value={...Fe.value,offsetX:hn+On.pageX-jt,offsetY:Dt+On.pageY-bn}}),Cn=useEventListener(document,"mousemove",Sn);useEventListener(document,"mouseup",()=>{Cn()}),vn.preventDefault()}function Ue(){Fe.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function kt(){if(ue.value)return;const vn=keysOf(g),hn=Object.values(g),Dt=de.value.name,bn=(hn.findIndex(Sn=>Sn.name===Dt)+1)%vn.length;de.value=g[vn[bn]],Ue()}function Et(){if(Ce.value&&!r.infinite)return;const vn=r.urlList.length;pe.value=(pe.value-1+vn)%vn}function Pt(){if(Ie.value&&!r.infinite)return;const vn=r.urlList.length;pe.value=(pe.value+1)%vn}function Lt(vn,hn={}){if(ue.value)return;const{zoomRate:Dt,rotateDeg:jt,enableTransition:bn}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...hn};switch(vn){case"zoomOut":Fe.value.scale>.2&&(Fe.value.scale=Number.parseFloat((Fe.value.scale/Dt).toFixed(3)));break;case"zoomIn":Fe.value.scale<7&&(Fe.value.scale=Number.parseFloat((Fe.value.scale*Dt).toFixed(3)));break;case"clockwise":Fe.value.deg+=jt;break;case"anticlockwise":Fe.value.deg-=jt;break}Fe.value.enableTransition=bn}return watch(_e,()=>{nextTick(()=>{const vn=ae.value[0];vn?.complete||(ue.value=!0)})}),watch(pe,vn=>{Ue(),n("switch",vn)}),onMounted(()=>{var vn,hn;Ve(),(hn=(vn=re.value)==null?void 0:vn.focus)==null||hn.call(vn)}),(vn,hn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!vn.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:re,tabindex:-1,class:normalizeClass(unref(k).e("wrapper")),style:normalizeStyle({zIndex:unref(qe)})},[createBaseVNode("div",{class:normalizeClass(unref(k).e("mask")),onClick:hn[0]||(hn[0]=withModifiers(Dt=>vn.hideOnClickModal&&xe(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(k).e("btn"),unref(k).e("close")]),onClick:xe},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),unref(ze)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass([unref(k).e("btn"),unref(k).e("prev"),unref(k).is("disabled",!vn.infinite&&unref(Ce))]),onClick:Et},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass([unref(k).e("btn"),unref(k).e("next"),unref(k).is("disabled",!vn.infinite&&unref(Ie))]),onClick:Pt},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2)],64)),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(k).e("btn"),unref(k).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(k).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:hn[1]||(hn[1]=Dt=>Lt("zoomOut"))},{default:withCtx(()=>[createVNode(unref(zoom_out_default))]),_:1}),createVNode(unref(ElIcon),{onClick:hn[2]||(hn[2]=Dt=>Lt("zoomIn"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(k).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:kt},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(de).icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(k).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:hn[3]||(hn[3]=Dt=>Lt("anticlockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_left_default))]),_:1}),createVNode(unref(ElIcon),{onClick:hn[4]||(hn[4]=Dt=>Lt("clockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_right_default))]),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(k).e("canvas"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(vn.urlList,(Dt,jt)=>withDirectives((openBlock(),createElementBlock("img",{ref_for:!0,ref:bn=>ae.value[jt]=bn,key:Dt,src:Dt,style:normalizeStyle(unref(At)),class:normalizeClass(unref(k).e("img")),onLoad:Oe,onError:$e,onMousedown:Ne},null,46,_hoisted_1$Z)),[[vShow,jt===pe.value]])),128))],2),renderSlot(vn.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var ImageViewer=_export_sfc$2(_sfc_main$1s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const ElImageViewer=withInstall(ImageViewer),imageProps=buildProps({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:()=>mutable([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),imageEmits={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>isNumber(e),close:()=>!0,show:()=>!0},_hoisted_1$Y=["src","loading"],_hoisted_2$J={key:0},__default__$D={name:"ElImage",inheritAttrs:!1},_sfc_main$1r=defineComponent({...__default__$D,props:imageProps,emits:imageEmits,setup(e,{emit:n}){const r=e;let g="";const{t:$}=useLocale(),L=useNamespace("image"),k=useAttrs$1(),oe=useAttrs(),re=ref(),ae=ref(!1),le=ref(!0),ue=ref(!1),pe=ref(),de=ref(),Fe=isClient&&"loading"in HTMLImageElement.prototype;let ze,Ce;const Ie=computed(()=>k.style),_e=computed(()=>{const{fit:hn}=r;return isClient&&hn?{objectFit:hn}:{}}),At=computed(()=>{const{previewSrcList:hn}=r;return Array.isArray(hn)&&hn.length>0}),qe=computed(()=>{const{previewSrcList:hn,initialIndex:Dt}=r;let jt=Dt;return Dt>hn.length-1&&(jt=0),jt}),xe=computed(()=>r.loading==="eager"?!1:!Fe&&r.loading==="lazy"||r.lazy),Ve=()=>{!isClient||(le.value=!0,ae.value=!1,re.value=r.src)};function he(hn){le.value=!1,ae.value=!1,n("load",hn)}function Oe(hn){le.value=!1,ae.value=!0,n("error",hn)}function $e(){isInContainer(pe.value,de.value)&&(Ve(),kt())}const Ne=useThrottleFn($e,200);async function Ue(){var hn;if(!isClient)return;await nextTick();const{scrollContainer:Dt}=r;isElement$1(Dt)?de.value=Dt:isString$2(Dt)&&Dt!==""?de.value=(hn=document.querySelector(Dt))!=null?hn:void 0:pe.value&&(de.value=getScrollContainer(pe.value)),de.value&&(ze=useEventListener(de,"scroll",Ne),setTimeout(()=>$e(),100))}function kt(){!isClient||!de.value||!Ne||(ze?.(),de.value=void 0)}function Et(hn){if(!!hn.ctrlKey){if(hn.deltaY<0)return hn.preventDefault(),!1;if(hn.deltaY>0)return hn.preventDefault(),!1}}function Pt(){!At.value||(Ce=useEventListener("wheel",Et,{passive:!1}),g=document.body.style.overflow,document.body.style.overflow="hidden",ue.value=!0,n("show"))}function Lt(){Ce?.(),document.body.style.overflow=g,ue.value=!1,n("close")}function vn(hn){n("switch",hn)}return watch(()=>r.src,()=>{xe.value?(le.value=!0,ae.value=!1,kt(),Ue()):Ve()}),onMounted(()=>{xe.value?Ue():Ve()}),(hn,Dt)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:pe,class:normalizeClass([unref(L).b(),hn.$attrs.class]),style:normalizeStyle(unref(Ie))},[re.value!==void 0&&!ae.value?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(oe),{src:re.value,loading:hn.loading,style:unref(_e),class:[unref(L).e("inner"),unref(At)&&unref(L).e("preview"),le.value&&unref(L).is("loading")],onClick:Pt,onLoad:he,onError:Oe}),null,16,_hoisted_1$Y)):createCommentVNode("v-if",!0),le.value||ae.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(L).e("wrapper"))},[le.value?renderSlot(hn.$slots,"placeholder",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(L).e("placeholder"))},null,2)]):ae.value?renderSlot(hn.$slots,"error",{key:1},()=>[createBaseVNode("div",{class:normalizeClass(unref(L).e("error"))},toDisplayString(unref($)("el.image.error")),3)]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),unref(At)?(openBlock(),createElementBlock(Fragment,{key:2},[ue.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":hn.zIndex,"initial-index":unref(qe),infinite:hn.infinite,"url-list":hn.previewSrcList,"hide-on-click-modal":hn.hideOnClickModal,teleported:hn.previewTeleported,"close-on-press-escape":hn.closeOnPressEscape,onClose:Lt,onSwitch:vn},{default:withCtx(()=>[hn.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$J,[renderSlot(hn.$slots,"viewer")])):createCommentVNode("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0)],6))}});var Image=_export_sfc$2(_sfc_main$1r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const ElImage=withInstall(Image),inputNumberProps=buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,disabled:Boolean,size:useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||isNumber(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),inputNumberEmits={[CHANGE_EVENT]:(e,n)=>e!==n,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[INPUT_EVENT]:e=>isNumber(e)||isNil(e),[UPDATE_MODEL_EVENT]:e=>isNumber(e)||isNil(e)},_hoisted_1$X=["aria-label","onKeydown"],_hoisted_2$I=["aria-label","onKeydown"],__default__$C={name:"ElInputNumber"},_sfc_main$1q=defineComponent({...__default__$C,props:inputNumberProps,emits:inputNumberEmits,setup(e,{expose:n,emit:r}){const g=e,{t:$}=useLocale(),L=useNamespace("input-number"),k=ref(),oe=reactive({currentValue:g.modelValue,userInput:null}),{formItem:re}=useFormItem(),ae=computed(()=>isNumber(g.modelValue)&&_e(g.modelValue,-1)isNumber(g.modelValue)&&_e(g.modelValue)>g.max),ue=computed(()=>{const Et=Ie(g.step);return isUndefined(g.precision)?Math.max(Ie(g.modelValue),Et):(Et>g.precision,g.precision)}),pe=computed(()=>g.controls&&g.controlsPosition==="right"),de=useSize(),Fe=useDisabled$1(),ze=computed(()=>{if(oe.userInput!==null)return oe.userInput;let Et=oe.currentValue;if(isNil(Et))return"";if(isNumber(Et)){if(Number.isNaN(Et))return"";isUndefined(g.precision)||(Et=Et.toFixed(g.precision))}return Et}),Ce=(Et,Pt)=>{if(isUndefined(Pt)&&(Pt=ue.value),Pt===0)return Math.round(Et);let Lt=String(Et);const vn=Lt.indexOf(".");if(vn===-1||!Lt.replace(".","").split("")[vn+Pt])return Et;const jt=Lt.length;return Lt.charAt(jt-1)==="5"&&(Lt=`${Lt.slice(0,Math.max(0,jt-1))}6`),Number.parseFloat(Number(Lt).toFixed(Pt))},Ie=Et=>{if(isNil(Et))return 0;const Pt=Et.toString(),Lt=Pt.indexOf(".");let vn=0;return Lt!==-1&&(vn=Pt.length-Lt-1),vn},_e=(Et,Pt=1)=>isNumber(Et)?Ce(Et+g.step*Pt):oe.currentValue,At=()=>{if(Fe.value||le.value)return;const Et=g.modelValue||0,Pt=_e(Et);Ve(Pt)},qe=()=>{if(Fe.value||ae.value)return;const Et=g.modelValue||0,Pt=_e(Et,-1);Ve(Pt)},xe=(Et,Pt)=>{const{max:Lt,min:vn,step:hn,precision:Dt,stepStrictly:jt,valueOnClear:bn}=g;let Sn=Number(Et);if(isNil(Et)||Number.isNaN(Sn))return null;if(Et===""){if(bn===null)return null;Sn=isString$2(bn)?{min:vn,max:Lt}[bn]:bn}return jt&&(Sn=Ce(Math.round(Sn/hn)*hn,Dt)),isUndefined(Dt)||(Sn=Ce(Sn,Dt)),(Sn>Lt||SnLt?Lt:vn,Pt&&r("update:modelValue",Sn)),Sn},Ve=Et=>{var Pt;const Lt=oe.currentValue,vn=xe(Et);Lt!==vn&&(oe.userInput=null,r("update:modelValue",vn),r("input",vn),r("change",vn,Lt),g.validateEvent&&((Pt=re?.validate)==null||Pt.call(re,"change").catch(hn=>void 0)),oe.currentValue=vn)},he=Et=>oe.userInput=Et,Oe=Et=>{const Pt=Et!==""?Number(Et):"";(isNumber(Pt)&&!Number.isNaN(Pt)||Et==="")&&Ve(Pt),oe.userInput=null},$e=()=>{var Et,Pt;(Pt=(Et=k.value)==null?void 0:Et.focus)==null||Pt.call(Et)},Ne=()=>{var Et,Pt;(Pt=(Et=k.value)==null?void 0:Et.blur)==null||Pt.call(Et)},Ue=Et=>{r("focus",Et)},kt=Et=>{var Pt;r("blur",Et),g.validateEvent&&((Pt=re?.validate)==null||Pt.call(re,"blur").catch(Lt=>void 0))};return watch(()=>g.modelValue,Et=>{oe.currentValue=xe(Et,!0),oe.userInput=null},{immediate:!0}),onMounted(()=>{var Et;const{min:Pt,max:Lt,modelValue:vn}=g,hn=(Et=k.value)==null?void 0:Et.input;if(hn.setAttribute("role","spinbutton"),Number.isFinite(Lt)?hn.setAttribute("aria-valuemax",String(Lt)):hn.removeAttribute("aria-valuemax"),Number.isFinite(Pt)?hn.setAttribute("aria-valuemin",String(Pt)):hn.removeAttribute("aria-valuemin"),hn.setAttribute("aria-valuenow",String(oe.currentValue)),hn.setAttribute("aria-disabled",String(Fe.value)),!isNumber(vn)&&vn!=null){let Dt=Number(vn);Number.isNaN(Dt)&&(Dt=null),r("update:modelValue",Dt)}}),onUpdated(()=>{var Et;const Pt=(Et=k.value)==null?void 0:Et.input;Pt?.setAttribute("aria-valuenow",`${oe.currentValue}`)}),n({focus:$e,blur:Ne}),(Et,Pt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(L).b(),unref(L).m(unref(de)),unref(L).is("disabled",unref(Fe)),unref(L).is("without-controls",!Et.controls),unref(L).is("controls-right",unref(pe))]),onDragstart:Pt[0]||(Pt[0]=withModifiers(()=>{},["prevent"]))},[Et.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref($)("el.inputNumber.decrease"),class:normalizeClass([unref(L).e("decrease"),unref(L).is("disabled",unref(ae))]),onKeydown:withKeys(qe,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(pe)?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})],42,_hoisted_1$X)),[[unref(RepeatClick),qe]]):createCommentVNode("v-if",!0),Et.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref($)("el.inputNumber.increase"),class:normalizeClass([unref(L).e("increase"),unref(L).is("disabled",unref(le))]),onKeydown:withKeys(At,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(pe)?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})],42,_hoisted_2$I)),[[unref(RepeatClick),At]]):createCommentVNode("v-if",!0),createVNode(unref(ElInput),{id:Et.id,ref_key:"input",ref:k,type:"number",step:Et.step,"model-value":unref(ze),placeholder:Et.placeholder,disabled:unref(Fe),size:unref(de),max:Et.max,min:Et.min,name:Et.name,label:Et.label,"validate-event":!1,onKeydown:[withKeys(withModifiers(At,["prevent"]),["up"]),withKeys(withModifiers(qe,["prevent"]),["down"])],onBlur:kt,onFocus:Ue,onInput:he,onChange:Oe},null,8,["id","step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown"])],34))}});var InputNumber$1=_export_sfc$2(_sfc_main$1q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const ElInputNumber=withInstall(InputNumber$1),linkProps=buildProps({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:iconPropType,default:""}}),linkEmits={click:e=>e instanceof MouseEvent},_hoisted_1$W=["href"],__default__$B={name:"ElLink"},_sfc_main$1p=defineComponent({...__default__$B,props:linkProps,emits:linkEmits,setup(e,{emit:n}){const r=e,g=useNamespace("link");function $(L){r.disabled||n("click",L)}return(L,k)=>(openBlock(),createElementBlock("a",{class:normalizeClass([unref(g).b(),unref(g).m(L.type),unref(g).is("disabled",L.disabled),unref(g).is("underline",L.underline&&!L.disabled)]),href:L.disabled||!L.href?void 0:L.href,onClick:$},[L.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(L.icon)))]),_:1})):createCommentVNode("v-if",!0),L.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(g).e("inner"))},[renderSlot(L.$slots,"default")],2)):createCommentVNode("v-if",!0),L.$slots.icon?renderSlot(L.$slots,"icon",{key:2}):createCommentVNode("v-if",!0)],10,_hoisted_1$W))}});var Link=_export_sfc$2(_sfc_main$1p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const ElLink=withInstall(Link);class SubMenu$1{constructor(n,r){this.parent=n,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(n){n===this.subMenuItems.length?n=0:n<0&&(n=this.subMenuItems.length-1),this.subMenuItems[n].focus(),this.subIndex=n}addListeners(){const n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",g=>{let $=!1;switch(g.code){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),$=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),$=!0;break}case EVENT_CODE.tab:{triggerEvent(n,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{$=!0,g.currentTarget.click();break}}return $&&(g.preventDefault(),g.stopPropagation()),!1})})}}class MenuItem$1{constructor(n,r){this.domNode=n,this.submenu=null,this.submenu=null,this.init(r)}init(n){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${n}-menu`);r&&(this.submenu=new SubMenu$1(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",n=>{let r=!1;switch(n.code){case EVENT_CODE.down:{triggerEvent(n.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case EVENT_CODE.up:{triggerEvent(n.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case EVENT_CODE.tab:{triggerEvent(n.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{r=!0,n.currentTarget.click();break}}r&&n.preventDefault()})}}class Menu$1{constructor(n,r){this.domNode=n,this.init(r)}init(n){const r=this.domNode.childNodes;Array.from(r).forEach(g=>{g.nodeType===1&&new MenuItem$1(g,n)})}}const _sfc_main$1o=defineComponent({name:"ElMenuCollapseTransition",setup(){const e=useNamespace("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,g){addClass(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",g()},onAfterEnter(r){removeClass(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),hasClass(r,e.m("collapse"))?(removeClass(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),addClass(r,e.m("collapse"))):(addClass(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),removeClass(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){addClass(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function _sfc_render$N(e,n,r,g,$,L){return openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},e.listeners),{default:withCtx(()=>[renderSlot(e.$slots,"default")]),_:3},16)}var ElMenuCollapseTransition=_export_sfc$2(_sfc_main$1o,[["render",_sfc_render$N],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function useMenu(e,n){const r=computed(()=>{let $=e.parent;const L=[n.value];for(;$.type.name!=="ElMenu";)$.props.index&&L.unshift($.props.index),$=$.parent;return L});return{parentMenu:computed(()=>{let $=e.parent;for(;$&&!["ElMenu","ElSubMenu"].includes($.type.name);)$=$.parent;return $}),indexPath:r}}function useMenuColor(e){return computed(()=>{const r=e.backgroundColor;return r?new TinyColor(r).shade(20).toString():""})}const useMenuCssVar=(e,n)=>{const r=useNamespace("menu");return computed(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":useMenuColor(e).value||"","active-color":e.activeTextColor||"",level:`${n}`}))},subMenuProps=buildProps({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6}}),COMPONENT_NAME$8="ElSubMenu";var SubMenu=defineComponent({name:COMPONENT_NAME$8,props:subMenuProps,setup(e,{slots:n,expose:r}){const g=getCurrentInstance(),{indexPath:$,parentMenu:L}=useMenu(g,computed(()=>e.index)),k=useNamespace("menu"),oe=useNamespace("sub-menu"),re=inject("rootMenu");re||throwError(COMPONENT_NAME$8,"can not inject root menu");const ae=inject(`subMenu:${L.value.uid}`);ae||throwError(COMPONENT_NAME$8,"can not inject sub menu");const le=ref({}),ue=ref({});let pe;const de=ref(!1),Fe=ref(),ze=ref(null),Ce=computed(()=>Ue.value==="horizontal"&&_e.value?"bottom-start":"right-start"),Ie=computed(()=>Ue.value==="horizontal"&&_e.value||Ue.value==="vertical"&&!re.props.collapse?arrow_down_default:arrow_right_default),_e=computed(()=>ae.level===0),At=computed(()=>e.popperAppendToBody===void 0?_e.value:Boolean(e.popperAppendToBody)),qe=computed(()=>re.props.collapse?`${k.namespace.value}-zoom-in-left`:`${k.namespace.value}-zoom-in-top`),xe=computed(()=>Ue.value==="horizontal"&&_e.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),Ve=computed(()=>re.openedMenus.includes(e.index)),he=computed(()=>{let jt=!1;return Object.values(le.value).forEach(bn=>{bn.active&&(jt=!0)}),Object.values(ue.value).forEach(bn=>{bn.active&&(jt=!0)}),jt}),Oe=computed(()=>re.props.backgroundColor||""),$e=computed(()=>re.props.activeTextColor||""),Ne=computed(()=>re.props.textColor||""),Ue=computed(()=>re.props.mode),kt=reactive({index:e.index,indexPath:$,active:he}),Et=computed(()=>Ue.value!=="horizontal"?{color:Ne.value}:{borderBottomColor:he.value?re.props.activeTextColor?$e.value:"":"transparent",color:he.value?$e.value:Ne.value}),Pt=()=>{var jt,bn,Sn;return(Sn=(bn=(jt=ze.value)==null?void 0:jt.popperRef)==null?void 0:bn.popperInstanceRef)==null?void 0:Sn.destroy()},Lt=jt=>{jt||Pt()},vn=()=>{re.props.menuTrigger==="hover"&&re.props.mode==="horizontal"||re.props.collapse&&re.props.mode==="vertical"||e.disabled||re.handleSubMenuClick({index:e.index,indexPath:$.value,active:he.value})},hn=(jt,bn=e.showTimeout)=>{var Sn;jt.type!=="focus"&&(re.props.menuTrigger==="click"&&re.props.mode==="horizontal"||!re.props.collapse&&re.props.mode==="vertical"||e.disabled||(ae.mouseInChild.value=!0,pe?.(),{stop:pe}=useTimeoutFn(()=>{re.openMenu(e.index,$.value)},bn),At.value&&((Sn=L.value.vnode.el)==null||Sn.dispatchEvent(new MouseEvent("mouseenter")))))},Dt=(jt=!1)=>{var bn,Sn;re.props.menuTrigger==="click"&&re.props.mode==="horizontal"||!re.props.collapse&&re.props.mode==="vertical"||(pe?.(),ae.mouseInChild.value=!1,{stop:pe}=useTimeoutFn(()=>!de.value&&re.closeMenu(e.index,$.value),e.hideTimeout),At.value&&jt&&((bn=g.parent)==null?void 0:bn.type.name)==="ElSubMenu"&&((Sn=ae.handleMouseleave)==null||Sn.call(ae,!0)))};watch(()=>re.props.collapse,jt=>Lt(Boolean(jt)));{const jt=Sn=>{ue.value[Sn.index]=Sn},bn=Sn=>{delete ue.value[Sn.index]};provide(`subMenu:${g.uid}`,{addSubMenu:jt,removeSubMenu:bn,handleMouseleave:Dt,mouseInChild:de,level:ae.level+1})}return r({opened:Ve}),onMounted(()=>{re.addSubMenu(kt),ae.addSubMenu(kt)}),onBeforeUnmount(()=>{ae.removeSubMenu(kt),re.removeSubMenu(kt)}),()=>{var jt;const bn=[(jt=n.title)==null?void 0:jt.call(n),h$2(ElIcon,{class:oe.e("icon-arrow")},{default:()=>h$2(Ie.value)})],Sn=useMenuCssVar(re.props,ae.level+1),Cn=re.isMenuPopup?h$2(ElTooltip,{ref:ze,visible:Ve.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:Ce.value,teleported:At.value,fallbackPlacements:xe.value,transition:qe.value,gpuAcceleration:!1},{content:()=>{var On;return h$2("div",{class:[k.m(Ue.value),k.m("popup-container"),e.popperClass],onMouseenter:En=>hn(En,100),onMouseleave:()=>Dt(!0),onFocus:En=>hn(En,100)},[h$2("ul",{class:[k.b(),k.m("popup"),k.m(`popup-${Ce.value}`)],style:Sn.value},[(On=n.default)==null?void 0:On.call(n)])])},default:()=>h$2("div",{class:oe.e("title"),style:[Et.value,{backgroundColor:Oe.value}],onClick:vn},bn)}):h$2(Fragment,{},[h$2("div",{class:oe.e("title"),style:[Et.value,{backgroundColor:Oe.value}],ref:Fe,onClick:vn},bn),h$2(_CollapseTransition,{},{default:()=>{var On;return withDirectives(h$2("ul",{role:"menu",class:[k.b(),k.m("inline")],style:Sn.value},[(On=n.default)==null?void 0:On.call(n)]),[[vShow,Ve.value]])}})]);return h$2("li",{class:[oe.b(),oe.is("active",he.value),oe.is("opened",Ve.value),oe.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:Ve.value,onMouseenter:hn,onMouseleave:()=>Dt(!0),onFocus:hn},[Cn])}}});const menuProps=buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:definePropType(Array),default:()=>mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),checkIndexPath=e=>Array.isArray(e)&&e.every(n=>isString$2(n)),menuEmits={close:(e,n)=>isString$2(e)&&checkIndexPath(n),open:(e,n)=>isString$2(e)&&checkIndexPath(n),select:(e,n,r,g)=>isString$2(e)&&checkIndexPath(n)&&isObject$4(r)&&(g===void 0||g instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup(e,{emit:n,slots:r,expose:g}){const $=getCurrentInstance(),L=$.appContext.config.globalProperties.$router,k=ref(),oe=useNamespace("menu"),re=useNamespace("sub-menu"),ae=ref(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),le=ref(e.defaultActive),ue=ref({}),pe=ref({}),de=computed(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),Fe=()=>{const he=le.value&&ue.value[le.value];if(!he||e.mode==="horizontal"||e.collapse)return;he.indexPath.forEach($e=>{const Ne=pe.value[$e];Ne&&ze($e,Ne.indexPath)})},ze=(he,Oe)=>{ae.value.includes(he)||(e.uniqueOpened&&(ae.value=ae.value.filter($e=>Oe.includes($e))),ae.value.push(he),n("open",he,Oe))},Ce=(he,Oe)=>{const $e=ae.value.indexOf(he);$e!==-1&&ae.value.splice($e,1),n("close",he,Oe)},Ie=({index:he,indexPath:Oe})=>{ae.value.includes(he)?Ce(he,Oe):ze(he,Oe)},_e=he=>{(e.mode==="horizontal"||e.collapse)&&(ae.value=[]);const{index:Oe,indexPath:$e}=he;if(!(Oe===void 0||$e===void 0))if(e.router&&L){const Ne=he.route||Oe,Ue=L.push(Ne).then(kt=>(kt||(le.value=Oe),kt));n("select",Oe,$e,{index:Oe,indexPath:$e,route:Ne},Ue)}else le.value=Oe,n("select",Oe,$e,{index:Oe,indexPath:$e})},At=he=>{const Oe=ue.value,$e=Oe[he]||le.value&&Oe[le.value]||Oe[e.defaultActive];$e?le.value=$e.index:le.value=he},qe=()=>{nextTick(()=>$.proxy.$forceUpdate())};watch(()=>e.defaultActive,he=>{ue.value[he]||(le.value=""),At(he)}),watch(()=>e.collapse,he=>{he&&(ae.value=[])}),watch(ue.value,Fe);let xe;watchEffect(()=>{e.mode==="horizontal"&&e.ellipsis?xe=useResizeObserver(k,qe).stop:xe?.()});{const he=Ue=>{pe.value[Ue.index]=Ue},Oe=Ue=>{delete pe.value[Ue.index]};provide("rootMenu",reactive({props:e,openedMenus:ae,items:ue,subMenus:pe,activeIndex:le,isMenuPopup:de,addMenuItem:Ue=>{ue.value[Ue.index]=Ue},removeMenuItem:Ue=>{delete ue.value[Ue.index]},addSubMenu:he,removeSubMenu:Oe,openMenu:ze,closeMenu:Ce,handleMenuItemClick:_e,handleSubMenuClick:Ie})),provide(`subMenu:${$.uid}`,{addSubMenu:he,removeSubMenu:Oe,mouseInChild:ref(!1),level:0})}onMounted(()=>{e.mode==="horizontal"&&new Menu$1($.vnode.el,oe.namespace.value)}),g({open:Oe=>{const{indexPath:$e}=pe.value[Oe];$e.forEach(Ne=>ze(Ne,$e))},close:Ce,handleResize:qe});const Ve=he=>{const Oe=Array.isArray(he)?he:[he],$e=[];return Oe.forEach(Ne=>{Array.isArray(Ne.children)?$e.push(...Ve(Ne.children)):$e.push(Ne)}),$e};return()=>{var he,Oe,$e,Ne;let Ue=(Oe=(he=r.default)==null?void 0:he.call(r))!=null?Oe:[];const kt=[];if(e.mode==="horizontal"&&k.value){const Lt=Array.from((Ne=($e=k.value)==null?void 0:$e.childNodes)!=null?Ne:[]).filter(An=>An.nodeName!=="#text"||An.nodeValue),vn=Ve(Ue),hn=64,Dt=Number.parseInt(getComputedStyle(k.value).paddingLeft,10),jt=Number.parseInt(getComputedStyle(k.value).paddingRight,10),bn=k.value.clientWidth-Dt-jt;let Sn=0,Cn=0;Lt.forEach((An,In)=>{Sn+=An.offsetWidth||0,Sn<=bn-hn&&(Cn=In+1)});const On=vn.slice(0,Cn),En=vn.slice(Cn);En?.length&&e.ellipsis&&(Ue=On,kt.push(h$2(SubMenu,{index:"sub-menu-more",class:re.e("hide-arrow")},{title:()=>h$2(ElIcon,{class:re.e("icon-more")},{default:()=>h$2(more_default)}),default:()=>En})))}const Et=useMenuCssVar(e,0),Pt=h$2("ul",{key:String(e.collapse),role:"menubar",ref:k,style:Et.value,class:{[oe.b()]:!0,[oe.m(e.mode)]:!0,[oe.m("collapse")]:e.collapse}},[...Ue,...kt]);return e.collapseTransition&&e.mode==="vertical"?h$2(ElMenuCollapseTransition,()=>Pt):Pt}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:e=>isString$2(e.index)&&Array.isArray(e.indexPath)},COMPONENT_NAME$7="ElMenuItem",_sfc_main$1n=defineComponent({name:COMPONENT_NAME$7,components:{ElTooltip},props:menuItemProps,emits:menuItemEmits,setup(e,{emit:n}){const r=getCurrentInstance(),g=inject("rootMenu"),$=useNamespace("menu"),L=useNamespace("menu-item");g||throwError(COMPONENT_NAME$7,"can not inject root menu");const{parentMenu:k,indexPath:oe}=useMenu(r,toRef(e,"index")),re=inject(`subMenu:${k.value.uid}`);re||throwError(COMPONENT_NAME$7,"can not inject sub menu");const ae=computed(()=>e.index===g.activeIndex),le=reactive({index:e.index,indexPath:oe,active:ae}),ue=()=>{e.disabled||(g.handleMenuItemClick({index:e.index,indexPath:oe.value,route:e.route}),n("click",le))};return onMounted(()=>{re.addSubMenu(le),g.addMenuItem(le)}),onBeforeUnmount(()=>{re.removeSubMenu(le),g.removeMenuItem(le)}),{Effect,parentMenu:k,rootMenu:g,active:ae,nsMenu:$,nsMenuItem:L,handleClick:ue}}});function _sfc_render$M(e,n,r,g,$,L){const k=resolveComponent("el-tooltip");return openBlock(),createElementBlock("li",{class:normalizeClass([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:n[0]||(n[0]=(...oe)=>e.handleClick&&e.handleClick(...oe))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(openBlock(),createBlock(k,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:withCtx(()=>[renderSlot(e.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(e.nsMenu.be("tooltip","trigger"))},[renderSlot(e.$slots,"default")],2)]),_:3},8,["effect"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot(e.$slots,"default"),renderSlot(e.$slots,"title")],64))],2)}var MenuItem=_export_sfc$2(_sfc_main$1n,[["render",_sfc_render$M],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const menuItemGroupProps={title:String},COMPONENT_NAME$6="ElMenuItemGroup",_sfc_main$1m=defineComponent({name:COMPONENT_NAME$6,props:menuItemGroupProps,setup(){return{ns:useNamespace("menu-item-group")}}});function _sfc_render$L(e,n,r,g,$,L){return openBlock(),createElementBlock("li",{class:normalizeClass(e.ns.b())},[createBaseVNode("div",{class:normalizeClass(e.ns.e("title"))},[e.$slots.title?renderSlot(e.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(e.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot(e.$slots,"default")])],2)}var MenuItemGroup=_export_sfc$2(_sfc_main$1m,[["render",_sfc_render$L],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const ElMenu=withInstall(Menu,{MenuItem,MenuItemGroup,SubMenu}),ElMenuItem=withNoopInstall(MenuItem),ElMenuItemGroup=withNoopInstall(MenuItemGroup);withNoopInstall(SubMenu);const pageHeaderProps=buildProps({icon:{type:iconPropType,default:()=>back_default},title:String,content:{type:String,default:""}}),pageHeaderEmits={back:()=>!0},__default__$A={name:"ElPageHeader"},_sfc_main$1l=defineComponent({...__default__$A,props:pageHeaderProps,emits:pageHeaderEmits,setup(e,{emit:n}){const{t:r}=useLocale(),g=useNamespace("page-header");function $(){n("back")}return(L,k)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(g).b())},[createBaseVNode("div",{class:normalizeClass(unref(g).e("left")),onClick:$},[L.icon||L.$slots.icon?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(g).e("icon"))},[renderSlot(L.$slots,"icon",{},()=>[L.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(L.icon)))]),_:1})):createCommentVNode("v-if",!0)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(g).e("title"))},[renderSlot(L.$slots,"title",{},()=>[createTextVNode(toDisplayString(L.title||unref(r)("el.pageHeader.title")),1)])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(g).e("content"))},[renderSlot(L.$slots,"content",{},()=>[createTextVNode(toDisplayString(L.content),1)])],2)],2))}});var PageHeader=_export_sfc$2(_sfc_main$1l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const ElPageHeader=withInstall(PageHeader),paginationPrevProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String}}),paginationPrevEmits={click:e=>e instanceof MouseEvent},_hoisted_1$V=["disabled","aria-disabled"],_hoisted_2$H={key:0},__default__$z={name:"ElPaginationPrev"},_sfc_main$1k=defineComponent({...__default__$z,props:paginationPrevProps,emits:paginationPrevEmits,setup(e){const n=e,r=computed(()=>n.disabled||n.currentPage<=1);return(g,$)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:unref(r),"aria-disabled":unref(r),onClick:$[0]||($[0]=L=>g.$emit("click",L))},[g.prevText?(openBlock(),createElementBlock("span",_hoisted_2$H,toDisplayString(g.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1}))],8,_hoisted_1$V))}});var Prev=_export_sfc$2(_sfc_main$1k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const paginationNextProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String}}),_hoisted_1$U=["disabled","aria-disabled"],_hoisted_2$G={key:0},__default__$y={name:"ElPaginationNext"},_sfc_main$1j=defineComponent({...__default__$y,props:paginationNextProps,emits:["click"],setup(e){const n=e,r=computed(()=>n.disabled||n.currentPage===n.pageCount||n.pageCount===0);return(g,$)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:unref(r),"aria-disabled":unref(r),onClick:$[0]||($[0]=L=>g.$emit("click",L))},[g.nextText?(openBlock(),createElementBlock("span",_hoisted_2$G,toDisplayString(g.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1}))],8,_hoisted_1$U))}});var Next=_export_sfc$2(_sfc_main$1j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const selectGroupKey="ElSelectGroup",selectKey="ElSelect";function useOption$1(e,n){const r=inject(selectKey),g=inject(selectGroupKey,{disabled:!1}),$=computed(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),L=computed(()=>r.props.multiple?ue(r.props.modelValue,e.value):pe(e.value,r.props.modelValue)),k=computed(()=>{if(r.props.multiple){const ze=r.props.modelValue||[];return!L.value&&ze.length>=r.props.multipleLimit&&r.props.multipleLimit>0}else return!1}),oe=computed(()=>e.label||($.value?"":e.value)),re=computed(()=>e.value||e.label||""),ae=computed(()=>e.disabled||n.groupDisabled||k.value),le=getCurrentInstance(),ue=(ze=[],Ce)=>{if($.value){const Ie=r.props.valueKey;return ze&&ze.some(_e=>get(_e,Ie)===get(Ce,Ie))}else return ze&&ze.includes(Ce)},pe=(ze,Ce)=>{if($.value){const{valueKey:Ie}=r.props;return get(ze,Ie)===get(Ce,Ie)}else return ze===Ce},de=()=>{!e.disabled&&!g.disabled&&(r.hoverIndex=r.optionsArray.indexOf(le.proxy))};watch(()=>oe.value,()=>{!e.created&&!r.props.remote&&r.setSelected()}),watch(()=>e.value,(ze,Ce)=>{const{remote:Ie,valueKey:_e}=r.props;if(!e.created&&!Ie){if(_e&&typeof ze=="object"&&typeof Ce=="object"&&ze[_e]===Ce[_e])return;r.setSelected()}}),watch(()=>g.disabled,()=>{n.groupDisabled=g.disabled},{immediate:!0});const{queryChange:Fe}=toRaw(r);return watch(Fe,ze=>{const{query:Ce}=unref(ze),Ie=new RegExp(escapeStringRegexp(Ce),"i");n.visible=Ie.test(oe.value)||e.created,n.visible||r.filteredOptionsCount--}),{select:r,currentLabel:oe,currentValue:re,itemSelected:L,isDisabled:ae,hoverItem:de}}const _sfc_main$1i=defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const n=useNamespace("select"),r=reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:g,itemSelected:$,isDisabled:L,select:k,hoverItem:oe}=useOption$1(e,r),{visible:re,hover:ae}=toRefs(r),le=getCurrentInstance().proxy,ue=le.value;k.onOptionCreate(le),onBeforeUnmount(()=>{const{selected:de}=k,ze=(k.props.multiple?de:[de]).some(Ce=>Ce.value===le.value);nextTick(()=>{k.cachedOptions.get(ue)===le&&!ze&&k.cachedOptions.delete(ue)}),k.onOptionDestroy(ue,le)});function pe(){e.disabled!==!0&&r.groupDisabled!==!0&&k.handleOptionSelect(le,!0)}return{ns:n,currentLabel:g,itemSelected:$,isDisabled:L,select:k,hoverItem:oe,visible:re,hover:ae,selectOptionClick:pe,states:r}}});function _sfc_render$K(e,n,r,g,$,L){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:n[0]||(n[0]=(...k)=>e.hoverItem&&e.hoverItem(...k)),onClick:n[1]||(n[1]=withModifiers((...k)=>e.selectOptionClick&&e.selectOptionClick(...k),["stop"]))},[renderSlot(e.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString(e.currentLabel),1)])],34)),[[vShow,e.visible]])}var Option$2=_export_sfc$2(_sfc_main$1i,[["render",_sfc_render$K],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const _sfc_main$1h=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=inject(selectKey),n=useNamespace("select"),r=computed(()=>e.props.popperClass),g=computed(()=>e.props.multiple),$=computed(()=>e.props.fitInputWidth),L=ref("");function k(){var oe;L.value=`${(oe=e.selectWrapper)==null?void 0:oe.offsetWidth}px`}return onMounted(()=>{k(),useResizeObserver(e.selectWrapper,k)}),{ns:n,minWidth:L,popperClass:r,isMultiple:g,isFitInputWidth:$}}});function _sfc_render$J(e,n,r,g,$,L){return openBlock(),createElementBlock("div",{class:normalizeClass([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:normalizeStyle({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[renderSlot(e.$slots,"default")],6)}var ElSelectMenu$1=_export_sfc$2(_sfc_main$1h,[["render",_sfc_render$J],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function useSelectStates(e){const{t:n}=useLocale();return reactive({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:n("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const useSelect$2=(e,n,r)=>{const{t:g}=useLocale(),$=useNamespace("select"),L=ref(null),k=ref(null),oe=ref(null),re=ref(null),ae=ref(null),le=ref(null),ue=ref(-1),pe=shallowRef({query:""}),de=shallowRef(""),Fe=inject(formContextKey,{}),ze=inject(formItemContextKey,{}),Ce=computed(()=>!e.filterable||e.multiple||!n.visible),Ie=computed(()=>e.disabled||Fe.disabled),_e=computed(()=>{const Vn=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!Ie.value&&n.inputHovering&&Vn}),At=computed(()=>e.remote&&e.filterable?"":e.suffixIcon),qe=computed(()=>$.is("reverse",At.value&&n.visible)),xe=computed(()=>e.remote?300:0),Ve=computed(()=>e.loading?e.loadingText||g("el.select.loading"):e.remote&&n.query===""&&n.options.size===0?!1:e.filterable&&n.query&&n.options.size>0&&n.filteredOptionsCount===0?e.noMatchText||g("el.select.noMatch"):n.options.size===0?e.noDataText||g("el.select.noData"):null),he=computed(()=>Array.from(n.options.values())),Oe=computed(()=>Array.from(n.cachedOptions.values())),$e=computed(()=>{const Vn=he.value.filter(_n=>!_n.created).some(_n=>_n.currentLabel===n.query);return e.filterable&&e.allowCreate&&n.query!==""&&!Vn}),Ne=useSize(),Ue=computed(()=>["small"].includes(Ne.value)?"small":"default"),kt=computed({get(){return n.visible&&Ve.value!==!1},set(Vn){n.visible=Vn}});watch([()=>Ie.value,()=>Ne.value,()=>Fe.size],()=>{nextTick(()=>{Et()})}),watch(()=>e.placeholder,Vn=>{n.cachedPlaceHolder=n.currentPlaceholder=Vn}),watch(()=>e.modelValue,(Vn,_n)=>{var Qn;e.multiple&&(Et(),Vn&&Vn.length>0||k.value&&n.query!==""?n.currentPlaceholder="":n.currentPlaceholder=n.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(n.query="",Pt(n.query))),hn(),e.filterable&&!e.multiple&&(n.inputLength=20),!isEqual$1(Vn,_n)&&e.validateEvent&&((Qn=ze.validate)==null||Qn.call(ze,"change").catch(jn=>void 0))},{flush:"post",deep:!0}),watch(()=>n.visible,Vn=>{var _n,Qn,jn;Vn?((Qn=(_n=oe.value)==null?void 0:_n.updatePopper)==null||Qn.call(_n),e.filterable&&(n.filteredOptionsCount=n.optionsCount,n.query=e.remote?"":n.selectedLabel,e.multiple?(jn=k.value)==null||jn.focus():n.selectedLabel&&(n.currentPlaceholder=`${n.selectedLabel}`,n.selectedLabel=""),Pt(n.query),!e.multiple&&!e.remote&&(pe.value.query="",triggerRef(pe),triggerRef(de)))):(k.value&&k.value.blur(),n.query="",n.previousQuery=null,n.selectedLabel="",n.inputLength=20,n.menuVisibleOnFocus=!1,jt(),nextTick(()=>{k.value&&k.value.value===""&&n.selected.length===0&&(n.currentPlaceholder=n.cachedPlaceHolder)}),e.multiple||(n.selected&&(e.filterable&&e.allowCreate&&n.createdSelected&&n.createdLabel?n.selectedLabel=n.createdLabel:n.selectedLabel=n.selected.currentLabel,e.filterable&&(n.query=n.selectedLabel)),e.filterable&&(n.currentPlaceholder=n.cachedPlaceHolder))),r.emit("visible-change",Vn)}),watch(()=>n.options.entries(),()=>{var Vn,_n,Qn;if(!isClient)return;(_n=(Vn=oe.value)==null?void 0:Vn.updatePopper)==null||_n.call(Vn),e.multiple&&Et();const jn=((Qn=ae.value)==null?void 0:Qn.querySelectorAll("input"))||[];Array.from(jn).includes(document.activeElement)||hn(),e.defaultFirstOption&&(e.filterable||e.remote)&&n.filteredOptionsCount&&vn()},{flush:"post"}),watch(()=>n.hoverIndex,Vn=>{typeof Vn=="number"&&Vn>-1&&(ue.value=he.value[Vn]||{}),he.value.forEach(_n=>{_n.hover=ue.value===_n})});const Et=()=>{e.collapseTags&&!e.filterable||nextTick(()=>{var Vn,_n;if(!L.value)return;const Qn=L.value.$el.querySelector("input"),jn=re.value,Un=getComponentSize(Ne.value||Fe.size);Qn.style.height=`${(n.selected.length===0?Un:Math.max(jn?jn.clientHeight+(jn.clientHeight>Un?6:0):0,Un))-2}px`,n.tagInMultiLine=Number.parseFloat(Qn.style.height)>=Un,n.visible&&Ve.value!==!1&&((_n=(Vn=oe.value)==null?void 0:Vn.updatePopper)==null||_n.call(Vn))})},Pt=Vn=>{if(!(n.previousQuery===Vn||n.isOnComposition)){if(n.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){n.previousQuery=Vn;return}n.previousQuery=Vn,nextTick(()=>{var _n,Qn;n.visible&&((Qn=(_n=oe.value)==null?void 0:_n.updatePopper)==null||Qn.call(_n))}),n.hoverIndex=-1,e.multiple&&e.filterable&&nextTick(()=>{const _n=k.value.value.length*15+20;n.inputLength=e.collapseTags?Math.min(50,_n):_n,Lt(),Et()}),e.remote&&typeof e.remoteMethod=="function"?(n.hoverIndex=-1,e.remoteMethod(Vn)):typeof e.filterMethod=="function"?(e.filterMethod(Vn),triggerRef(de)):(n.filteredOptionsCount=n.optionsCount,pe.value.query=Vn,triggerRef(pe),triggerRef(de)),e.defaultFirstOption&&(e.filterable||e.remote)&&n.filteredOptionsCount&&vn()}},Lt=()=>{n.currentPlaceholder!==""&&(n.currentPlaceholder=k.value.value?"":n.cachedPlaceHolder)},vn=()=>{const Vn=he.value.filter(jn=>jn.visible&&!jn.disabled&&!jn.states.groupDisabled),_n=Vn.find(jn=>jn.created),Qn=Vn[0];n.hoverIndex=Mn(he.value,_n||Qn)},hn=()=>{var Vn;if(e.multiple)n.selectedLabel="";else{const Qn=Dt(e.modelValue);(Vn=Qn.props)!=null&&Vn.created?(n.createdLabel=Qn.props.value,n.createdSelected=!0):n.createdSelected=!1,n.selectedLabel=Qn.currentLabel,n.selected=Qn,e.filterable&&(n.query=n.selectedLabel);return}const _n=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Qn=>{_n.push(Dt(Qn))}),n.selected=_n,nextTick(()=>{Et()})},Dt=Vn=>{let _n;const Qn=toRawType(Vn).toLowerCase()==="object",jn=toRawType(Vn).toLowerCase()==="null",Un=toRawType(Vn).toLowerCase()==="undefined";for(let to=n.cachedOptions.size-1;to>=0;to--){const ro=Oe.value[to];if(Qn?get(ro.value,e.valueKey)===get(Vn,e.valueKey):ro.value===Vn){_n={value:Vn,currentLabel:ro.currentLabel,isDisabled:ro.isDisabled};break}}if(_n)return _n;const Xn=Qn?Vn.label:!jn&&!Un?Vn:"",Zn={value:Vn,currentLabel:Xn};return e.multiple&&(Zn.hitState=!1),Zn},jt=()=>{setTimeout(()=>{const Vn=e.valueKey;e.multiple?n.selected.length>0?n.hoverIndex=Math.min.apply(null,n.selected.map(_n=>he.value.findIndex(Qn=>get(Qn,Vn)===get(_n,Vn)))):n.hoverIndex=-1:n.hoverIndex=he.value.findIndex(_n=>ho(_n)===ho(n.selected))},300)},bn=()=>{var Vn,_n;Sn(),(_n=(Vn=oe.value)==null?void 0:Vn.updatePopper)==null||_n.call(Vn),e.multiple&&!e.filterable&&Et()},Sn=()=>{var Vn;n.inputWidth=(Vn=L.value)==null?void 0:Vn.$el.getBoundingClientRect().width},Cn=()=>{e.filterable&&n.query!==n.selectedLabel&&(n.query=n.selectedLabel,Pt(n.query))},On=debounce(()=>{Cn()},xe.value),En=debounce(Vn=>{Pt(Vn.target.value)},xe.value),An=Vn=>{isEqual$1(e.modelValue,Vn)||r.emit(CHANGE_EVENT,Vn)},In=Vn=>{if(Vn.target.value.length<=0&&!Tn()){const _n=e.modelValue.slice();_n.pop(),r.emit(UPDATE_MODEL_EVENT,_n),An(_n)}Vn.target.value.length===1&&e.modelValue.length===0&&(n.currentPlaceholder=n.cachedPlaceHolder)},$n=(Vn,_n)=>{const Qn=n.selected.indexOf(_n);if(Qn>-1&&!Ie.value){const jn=e.modelValue.slice();jn.splice(Qn,1),r.emit(UPDATE_MODEL_EVENT,jn),An(jn),r.emit("remove-tag",_n.value)}Vn.stopPropagation()},Pn=Vn=>{Vn.stopPropagation();const _n=e.multiple?[]:"";if(typeof _n!="string")for(const Qn of n.selected)Qn.isDisabled&&_n.push(Qn.value);r.emit(UPDATE_MODEL_EVENT,_n),An(_n),n.visible=!1,r.emit("clear")},Dn=(Vn,_n)=>{var Qn;if(e.multiple){const jn=(e.modelValue||[]).slice(),Un=Mn(jn,Vn.value);Un>-1?jn.splice(Un,1):(e.multipleLimit<=0||jn.length{kn(Vn)})},Mn=(Vn=[],_n)=>{if(!isObject$4(_n))return Vn.indexOf(_n);const Qn=e.valueKey;let jn=-1;return Vn.some((Un,Xn)=>get(Un,Qn)===get(_n,Qn)?(jn=Xn,!0):!1),jn},Fn=()=>{n.softFocus=!0;const Vn=k.value||L.value;Vn&&Vn?.focus()},kn=Vn=>{var _n,Qn,jn,Un,Xn;const Zn=Array.isArray(Vn)?Vn[0]:Vn;let to=null;if(Zn?.value){const ro=he.value.filter(lo=>lo.value===Zn.value);ro.length>0&&(to=ro[0].$el)}if(oe.value&&to){const ro=(Un=(jn=(Qn=(_n=oe.value)==null?void 0:_n.popperRef)==null?void 0:Qn.contentRef)==null?void 0:jn.querySelector)==null?void 0:Un.call(jn,`.${$.be("dropdown","wrap")}`);ro&&scrollIntoView$2(ro,to)}(Xn=le.value)==null||Xn.handleScroll()},Nn=Vn=>{n.optionsCount++,n.filteredOptionsCount++,n.options.set(Vn.value,Vn),n.cachedOptions.set(Vn.value,Vn)},Rn=(Vn,_n)=>{n.options.get(Vn)===_n&&(n.optionsCount--,n.filteredOptionsCount--,n.options.delete(Vn))},wn=Vn=>{Vn.code!==EVENT_CODE.backspace&&Tn(!1),n.inputLength=k.value.value.length*15+20,Et()},Tn=Vn=>{if(!Array.isArray(n.selected))return;const _n=n.selected[n.selected.length-1];if(!!_n)return Vn===!0||Vn===!1?(_n.hitState=Vn,Vn):(_n.hitState=!_n.hitState,_n.hitState)},xn=Vn=>{const _n=Vn.target.value;if(Vn.type==="compositionend")n.isOnComposition=!1,nextTick(()=>Pt(_n));else{const Qn=_n[_n.length-1]||"";n.isOnComposition=!isKorean(Qn)}},Bn=()=>{nextTick(()=>kn(n.selected))},Ln=Vn=>{n.softFocus?n.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!n.visible&&(n.menuVisibleOnFocus=!0),n.visible=!0),r.emit("focus",Vn))},Hn=()=>{var Vn;n.visible=!1,(Vn=L.value)==null||Vn.blur()},zn=Vn=>{nextTick(()=>{n.isSilentBlur?n.isSilentBlur=!1:r.emit("blur",Vn)}),n.softFocus=!1},Jn=Vn=>{Pn(Vn)},co=()=>{n.visible=!1},Gn=Vn=>{n.visible&&(Vn.preventDefault(),Vn.stopPropagation(),n.visible=!1)},eo=()=>{var Vn;Ie.value||(n.menuVisibleOnFocus?n.menuVisibleOnFocus=!1:n.visible=!n.visible,n.visible&&((Vn=k.value||L.value)==null||Vn.focus()))},ao=()=>{n.visible?he.value[n.hoverIndex]&&Dn(he.value[n.hoverIndex],void 0):eo()},ho=Vn=>isObject$4(Vn.value)?get(Vn.value,e.valueKey):Vn.value,Yn=computed(()=>he.value.filter(Vn=>Vn.visible).every(Vn=>Vn.disabled)),Wn=Vn=>{if(!n.visible){n.visible=!0;return}if(!(n.options.size===0||n.filteredOptionsCount===0)&&!n.isOnComposition&&!Yn.value){Vn==="next"?(n.hoverIndex++,n.hoverIndex===n.options.size&&(n.hoverIndex=0)):Vn==="prev"&&(n.hoverIndex--,n.hoverIndex<0&&(n.hoverIndex=n.options.size-1));const _n=he.value[n.hoverIndex];(_n.disabled===!0||_n.states.groupDisabled===!0||!_n.visible)&&Wn(Vn),nextTick(()=>kn(ue.value))}};return{optionsArray:he,selectSize:Ne,handleResize:bn,debouncedOnInputChange:On,debouncedQueryChange:En,deletePrevTag:In,deleteTag:$n,deleteSelected:Pn,handleOptionSelect:Dn,scrollToOption:kn,readonly:Ce,resetInputHeight:Et,showClose:_e,iconComponent:At,iconReverse:qe,showNewOption:$e,collapseTagSize:Ue,setSelected:hn,managePlaceholder:Lt,selectDisabled:Ie,emptyText:Ve,toggleLastOptionHitState:Tn,resetInputState:wn,handleComposition:xn,onOptionCreate:Nn,onOptionDestroy:Rn,handleMenuEnter:Bn,handleFocus:Ln,blur:Hn,handleBlur:zn,handleClearClick:Jn,handleClose:co,handleKeydownEscape:Gn,toggleMenu:eo,selectOption:ao,getValueKey:ho,navigateOptions:Wn,dropMenuVisible:kt,queryChange:pe,groupQueryChange:de,reference:L,input:k,tooltipRef:oe,tags:re,selectWrapper:ae,scrollbar:le}},COMPONENT_NAME$5="ElSelect",_sfc_main$1g=defineComponent({name:COMPONENT_NAME$5,componentName:COMPONENT_NAME$5,components:{ElInput,ElSelectMenu:ElSelectMenu$1,ElOption:Option$2,ElTag,ElScrollbar,ElTooltip,ElIcon},directives:{ClickOutside},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:isValidComponentSize},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:circle_close_default},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:arrow_up_default},tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0}},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup(e,n){const r=useNamespace("select"),g=useNamespace("input"),{t:$}=useLocale(),L=useSelectStates(e),{optionsArray:k,selectSize:oe,readonly:re,handleResize:ae,collapseTagSize:le,debouncedOnInputChange:ue,debouncedQueryChange:pe,deletePrevTag:de,deleteTag:Fe,deleteSelected:ze,handleOptionSelect:Ce,scrollToOption:Ie,setSelected:_e,resetInputHeight:At,managePlaceholder:qe,showClose:xe,selectDisabled:Ve,iconComponent:he,iconReverse:Oe,showNewOption:$e,emptyText:Ne,toggleLastOptionHitState:Ue,resetInputState:kt,handleComposition:Et,onOptionCreate:Pt,onOptionDestroy:Lt,handleMenuEnter:vn,handleFocus:hn,blur:Dt,handleBlur:jt,handleClearClick:bn,handleClose:Sn,handleKeydownEscape:Cn,toggleMenu:On,selectOption:En,getValueKey:An,navigateOptions:In,dropMenuVisible:$n,reference:Pn,input:Dn,tooltipRef:Mn,tags:Fn,selectWrapper:kn,scrollbar:Nn,queryChange:Rn,groupQueryChange:wn}=useSelect$2(e,L,n),{focus:Tn}=useFocus(Pn),{inputWidth:xn,selected:Bn,inputLength:Ln,filteredOptionsCount:Hn,visible:zn,softFocus:Jn,selectedLabel:co,hoverIndex:Gn,query:eo,inputHovering:ao,currentPlaceholder:ho,menuVisibleOnFocus:Yn,isOnComposition:Wn,isSilentBlur:Vn,options:_n,cachedOptions:Qn,optionsCount:jn,prefixWidth:Un,tagInMultiLine:Xn}=toRefs(L),Zn=computed(()=>{const lo=[r.b()],uo=unref(oe);return uo&&lo.push(r.m(uo)),e.disabled&&lo.push(r.m("disabled")),lo}),to=computed(()=>({maxWidth:`${unref(xn)-32}px`,width:"100%"}));provide(selectKey,reactive({props:e,options:_n,optionsArray:k,cachedOptions:Qn,optionsCount:jn,filteredOptionsCount:Hn,hoverIndex:Gn,handleOptionSelect:Ce,onOptionCreate:Pt,onOptionDestroy:Lt,selectWrapper:kn,selected:Bn,setSelected:_e,queryChange:Rn,groupQueryChange:wn})),onMounted(()=>{L.cachedPlaceHolder=ho.value=e.placeholder||$("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(ho.value=""),useResizeObserver(kn,ae),e.remote&&e.multiple&&At(),nextTick(()=>{const lo=Pn.value&&Pn.value.$el;if(!!lo&&(xn.value=lo.getBoundingClientRect().width,n.slots.prefix)){const uo=lo.querySelector(`.${g.e("prefix")}`);Un.value=Math.max(uo.getBoundingClientRect().width+5,30)}}),_e()}),e.multiple&&!Array.isArray(e.modelValue)&&n.emit(UPDATE_MODEL_EVENT,[]),!e.multiple&&Array.isArray(e.modelValue)&&n.emit(UPDATE_MODEL_EVENT,"");const ro=computed(()=>{var lo,uo;return(uo=(lo=Mn.value)==null?void 0:lo.popperRef)==null?void 0:uo.contentRef});return{tagInMultiLine:Xn,prefixWidth:Un,selectSize:oe,readonly:re,handleResize:ae,collapseTagSize:le,debouncedOnInputChange:ue,debouncedQueryChange:pe,deletePrevTag:de,deleteTag:Fe,deleteSelected:ze,handleOptionSelect:Ce,scrollToOption:Ie,inputWidth:xn,selected:Bn,inputLength:Ln,filteredOptionsCount:Hn,visible:zn,softFocus:Jn,selectedLabel:co,hoverIndex:Gn,query:eo,inputHovering:ao,currentPlaceholder:ho,menuVisibleOnFocus:Yn,isOnComposition:Wn,isSilentBlur:Vn,options:_n,resetInputHeight:At,managePlaceholder:qe,showClose:xe,selectDisabled:Ve,iconComponent:he,iconReverse:Oe,showNewOption:$e,emptyText:Ne,toggleLastOptionHitState:Ue,resetInputState:kt,handleComposition:Et,handleMenuEnter:vn,handleFocus:hn,blur:Dt,handleBlur:jt,handleClearClick:bn,handleClose:Sn,handleKeydownEscape:Cn,toggleMenu:On,selectOption:En,getValueKey:An,navigateOptions:In,dropMenuVisible:$n,focus:Tn,reference:Pn,input:Dn,tooltipRef:Mn,popperPaneRef:ro,tags:Fn,selectWrapper:kn,scrollbar:Nn,wrapperKls:Zn,selectTagsStyle:to,nsSelect:r}}}),_hoisted_1$T={class:"select-trigger"},_hoisted_2$F=["disabled","autocomplete"],_hoisted_3$m={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function _sfc_render$I(e,n,r,g,$,L){const k=resolveComponent("el-tag"),oe=resolveComponent("el-tooltip"),re=resolveComponent("el-icon"),ae=resolveComponent("el-input"),le=resolveComponent("el-option"),ue=resolveComponent("el-scrollbar"),pe=resolveComponent("el-select-menu"),de=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass(e.wrapperKls),onClick:n[22]||(n[22]=withModifiers((...Fe)=>e.toggleMenu&&e.toggleMenu(...Fe),["stop"]))},[createVNode(oe,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:"bottom-start",teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$T,[e.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tags",class:normalizeClass(e.nsSelect.e("tags")),style:normalizeStyle(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[createVNode(k,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:n[0]||(n[0]=Fe=>e.deleteTag(Fe,e.selected[0]))},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(e.nsSelect.e("tags-text")),style:normalizeStyle({maxWidth:e.inputWidth-123+"px"})},toDisplayString(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(openBlock(),createBlock(k,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:withCtx(()=>[e.collapseTagsTooltip?(openBlock(),createBlock(oe,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(e.nsSelect.e("tags-text"))},"+ "+toDisplayString(e.selected.length-1),3)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(e.nsSelect.e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.selected.slice(1),(Fe,ze)=>(openBlock(),createElementBlock("div",{key:ze,class:normalizeClass(e.nsSelect.e("collapse-tag"))},[(openBlock(),createBlock(k,{key:e.getValueKey(Fe),class:"in-tooltip",closable:!e.selectDisabled&&!Fe.isDisabled,size:e.collapseTagSize,hit:Fe.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:Ce=>e.deleteTag(Ce,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(e.nsSelect.e("tags-text")),style:normalizeStyle({maxWidth:e.inputWidth-75+"px"})},toDisplayString(Fe.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(e.nsSelect.e("tags-text"))},"+ "+toDisplayString(e.selected.length-1),3))]),_:1},8,["size","type"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createCommentVNode("
"),e.collapseTags?createCommentVNode("v-if",!0):(openBlock(),createBlock(Transition,{key:1,onAfterLeave:e.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.selected,Fe=>(openBlock(),createBlock(k,{key:e.getValueKey(Fe),closable:!e.selectDisabled&&!Fe.isDisabled,size:e.collapseTagSize,hit:Fe.hitState,type:e.tagType,"disable-transitions":"",onClose:ze=>e.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(e.nsSelect.e("tags-text")),style:normalizeStyle({maxWidth:e.inputWidth-75+"px"})},toDisplayString(Fe.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),createCommentVNode("
"),e.filterable?withDirectives((openBlock(),createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":n[1]||(n[1]=Fe=>e.query=Fe),type:"text",class:normalizeClass([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:normalizeStyle({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:n[2]||(n[2]=(...Fe)=>e.handleFocus&&e.handleFocus(...Fe)),onBlur:n[3]||(n[3]=(...Fe)=>e.handleBlur&&e.handleBlur(...Fe)),onKeyup:n[4]||(n[4]=(...Fe)=>e.managePlaceholder&&e.managePlaceholder(...Fe)),onKeydown:[n[5]||(n[5]=(...Fe)=>e.resetInputState&&e.resetInputState(...Fe)),n[6]||(n[6]=withKeys(withModifiers(Fe=>e.navigateOptions("next"),["prevent"]),["down"])),n[7]||(n[7]=withKeys(withModifiers(Fe=>e.navigateOptions("prev"),["prevent"]),["up"])),n[8]||(n[8]=withKeys((...Fe)=>e.handleKeydownEscape&&e.handleKeydownEscape(...Fe),["esc"])),n[9]||(n[9]=withKeys(withModifiers((...Fe)=>e.selectOption&&e.selectOption(...Fe),["stop","prevent"]),["enter"])),n[10]||(n[10]=withKeys((...Fe)=>e.deletePrevTag&&e.deletePrevTag(...Fe),["delete"])),n[11]||(n[11]=withKeys(Fe=>e.visible=!1,["tab"]))],onCompositionstart:n[12]||(n[12]=(...Fe)=>e.handleComposition&&e.handleComposition(...Fe)),onCompositionupdate:n[13]||(n[13]=(...Fe)=>e.handleComposition&&e.handleComposition(...Fe)),onCompositionend:n[14]||(n[14]=(...Fe)=>e.handleComposition&&e.handleComposition(...Fe)),onInput:n[15]||(n[15]=(...Fe)=>e.debouncedQueryChange&&e.debouncedQueryChange(...Fe))},null,46,_hoisted_2$F)),[[vModelText,e.query]]):createCommentVNode("v-if",!0)],6)):createCommentVNode("v-if",!0),createVNode(ae,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":n[16]||(n[16]=Fe=>e.selectedLabel=Fe),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:normalizeClass([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[n[17]||(n[17]=withKeys(withModifiers(Fe=>e.navigateOptions("next"),["stop","prevent"]),["down"])),n[18]||(n[18]=withKeys(withModifiers(Fe=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),withKeys(withModifiers(e.selectOption,["stop","prevent"]),["enter"]),withKeys(e.handleKeydownEscape,["esc"]),n[19]||(n[19]=withKeys(Fe=>e.visible=!1,["tab"]))],onMouseenter:n[20]||(n[20]=Fe=>e.inputHovering=!0),onMouseleave:n[21]||(n[21]=Fe=>e.inputHovering=!1)},createSlots({suffix:withCtx(()=>[e.iconComponent&&!e.showClose?(openBlock(),createBlock(re,{key:0,class:normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),e.showClose&&e.clearIcon?(openBlock(),createBlock(re,{key:1,class:normalizeClass([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:withCtx(()=>[createBaseVNode("div",_hoisted_3$m,[renderSlot(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])]),content:withCtx(()=>[createVNode(pe,null,{default:withCtx(()=>[withDirectives(createVNode(ue,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:normalizeClass([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:withCtx(()=>[e.showNewOption?(openBlock(),createBlock(le,{key:0,value:e.query,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),renderSlot(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[vShow,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(openBlock(),createElementBlock(Fragment,{key:0},[e.$slots.empty?renderSlot(e.$slots,"empty",{key:0}):(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(e.nsSelect.be("dropdown","empty"))},toDisplayString(e.emptyText),3))],64)):createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[de,e.handleClose,e.popperPaneRef]])}var Select$1=_export_sfc$2(_sfc_main$1g,[["render",_sfc_render$I],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const _sfc_main$1f=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const n=useNamespace("select"),r=ref(!0),g=getCurrentInstance(),$=ref([]);provide(selectGroupKey,reactive({...toRefs(e)}));const L=inject(selectKey);onMounted(()=>{$.value=k(g.subTree)});const k=re=>{const ae=[];return Array.isArray(re.children)&&re.children.forEach(le=>{var ue;le.type&&le.type.name==="ElOption"&&le.component&&le.component.proxy?ae.push(le.component.proxy):(ue=le.children)!=null&&ue.length&&ae.push(...k(le))}),ae},{groupQueryChange:oe}=toRaw(L);return watch(oe,()=>{r.value=$.value.some(re=>re.visible===!0)}),{visible:r,ns:n}}});function _sfc_render$H(e,n,r,g,$,L){return withDirectives((openBlock(),createElementBlock("ul",{class:normalizeClass(e.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass(e.ns.be("group","title"))},toDisplayString(e.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass(e.ns.b("group"))},[renderSlot(e.$slots,"default")],2)])],2)),[[vShow,e.visible]])}var OptionGroup=_export_sfc$2(_sfc_main$1f,[["render",_sfc_render$H],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const ElSelect=withInstall(Select$1,{Option:Option$2,OptionGroup}),ElOption=withNoopInstall(Option$2),ElOptionGroup=withNoopInstall(OptionGroup),usePagination=()=>inject(elPaginationKey,{}),paginationSizesProps=buildProps({pageSize:{type:Number,required:!0},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}}),__default__$x={name:"ElPaginationSizes"},_sfc_main$1e=defineComponent({...__default__$x,props:paginationSizesProps,emits:["page-size-change"],setup(e,{emit:n}){const r=e,{t:g}=useLocale(),$=useNamespace("pagination"),L=usePagination(),k=ref(r.pageSize);watch(()=>r.pageSizes,(ae,le)=>{if(!isEqual$1(ae,le)&&Array.isArray(ae)){const ue=ae.includes(r.pageSize)?r.pageSize:r.pageSizes[0];n("page-size-change",ue)}}),watch(()=>r.pageSize,ae=>{k.value=ae});const oe=computed(()=>r.pageSizes);function re(ae){var le;ae!==k.value&&(k.value=ae,(le=L.handleSizeChange)==null||le.call(L,Number(ae)))}return(ae,le)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref($).e("sizes"))},[createVNode(unref(ElSelect),{"model-value":k.value,disabled:ae.disabled,"popper-class":ae.popperClass,size:ae.size,onChange:re},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(oe),ue=>(openBlock(),createBlock(unref(ElOption),{key:ue,value:ue,label:ue+unref(g)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Sizes=_export_sfc$2(_sfc_main$1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const _hoisted_1$S=["disabled"],__default__$w={name:"ElPaginationJumper"},_sfc_main$1d=defineComponent({...__default__$w,setup(e){const{t:n}=useLocale(),r=useNamespace("pagination"),{pageCount:g,disabled:$,currentPage:L,changeEvent:k}=usePagination(),oe=ref(),re=computed(()=>{var ue;return(ue=oe.value)!=null?ue:L?.value});function ae(ue){oe.value=+ue}function le(ue){ue=Math.trunc(+ue),k?.(+ue),oe.value=void 0}return(ue,pe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(r).e("jump")),disabled:unref($)},[createTextVNode(toDisplayString(unref(n)("el.pagination.goto"))+" ",1),createVNode(unref(ElInput),{size:"small",class:normalizeClass([unref(r).e("editor"),unref(r).is("in-pagination")]),min:1,max:unref(g),disabled:unref($),"model-value":unref(re),type:"number","onUpdate:modelValue":ae,onChange:le},null,8,["class","max","disabled","model-value"]),createTextVNode(" "+toDisplayString(unref(n)("el.pagination.pageClassifier")),1)],10,_hoisted_1$S))}});var Jumper=_export_sfc$2(_sfc_main$1d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const paginationTotalProps=buildProps({total:{type:Number,default:1e3}}),_hoisted_1$R=["disabled"],__default__$v={name:"ElPaginationTotal"},_sfc_main$1c=defineComponent({...__default__$v,props:paginationTotalProps,setup(e){const{t:n}=useLocale(),r=useNamespace("pagination"),{disabled:g}=usePagination();return($,L)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(r).e("total")),disabled:unref(g)},toDisplayString(unref(n)("el.pagination.total",{total:$.total})),11,_hoisted_1$R))}});var Total=_export_sfc$2(_sfc_main$1c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const paginationPagerProps=buildProps({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),_hoisted_1$Q=["onKeyup"],_hoisted_2$E=["aria-current","tabindex"],_hoisted_3$l=["tabindex"],_hoisted_4$i=["aria-current","tabindex"],_hoisted_5$e=["tabindex"],_hoisted_6$a=["aria-current","tabindex"],__default__$u={name:"ElPaginationPager"},_sfc_main$1b=defineComponent({...__default__$u,props:paginationPagerProps,emits:["change"],setup(e,{emit:n}){const r=e,g=useNamespace("pager"),$=useNamespace("icon"),L=ref(!1),k=ref(!1),oe=ref(!1),re=ref(!1),ae=ref(!1),le=ref(!1),ue=computed(()=>{const Ie=r.pagerCount,_e=(Ie-1)/2,At=Number(r.currentPage),qe=Number(r.pageCount);let xe=!1,Ve=!1;qe>Ie&&(At>Ie-_e&&(xe=!0),Atr.disabled?-1:0);watchEffect(()=>{const Ie=(r.pagerCount-1)/2;L.value=!1,k.value=!1,r.pageCount>r.pagerCount&&(r.currentPage>r.pagerCount-Ie&&(L.value=!0),r.currentPageqe&&(At=qe)),At!==xe&&n("change",At)}return(Ie,_e)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(g).b()),onClick:Ce,onKeyup:withKeys(ze,["enter"])},[Ie.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(g).is("active",Ie.currentPage===1),unref(g).is("disabled",Ie.disabled)],"number"]),"aria-current":Ie.currentPage===1,tabindex:unref(pe)}," 1 ",10,_hoisted_2$E)):createCommentVNode("v-if",!0),L.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(["more","btn-quickprev",unref($).b(),unref(g).is("disabled",Ie.disabled)]),tabindex:unref(pe),onMouseenter:_e[0]||(_e[0]=At=>de(!0)),onMouseleave:_e[1]||(_e[1]=At=>oe.value=!1),onFocus:_e[2]||(_e[2]=At=>Fe(!0)),onBlur:_e[3]||(_e[3]=At=>ae.value=!1)},[oe.value||ae.value?(openBlock(),createBlock(unref(d_arrow_left_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_3$l)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),At=>(openBlock(),createElementBlock("li",{key:At,class:normalizeClass([[unref(g).is("active",Ie.currentPage===At),unref(g).is("disabled",Ie.disabled)],"number"]),"aria-current":Ie.currentPage===At,tabindex:unref(pe)},toDisplayString(At),11,_hoisted_4$i))),128)),k.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(["more","btn-quicknext",unref($).b(),unref(g).is("disabled",Ie.disabled)]),tabindex:unref(pe),onMouseenter:_e[4]||(_e[4]=At=>de()),onMouseleave:_e[5]||(_e[5]=At=>re.value=!1),onFocus:_e[6]||(_e[6]=At=>Fe()),onBlur:_e[7]||(_e[7]=At=>le.value=!1)},[re.value||le.value?(openBlock(),createBlock(unref(d_arrow_right_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_5$e)):createCommentVNode("v-if",!0),Ie.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(g).is("active",Ie.currentPage===Ie.pageCount),unref(g).is("disabled",Ie.disabled)],"number"]),"aria-current":Ie.currentPage===Ie.pageCount,tabindex:unref(pe)},toDisplayString(Ie.pageCount),11,_hoisted_6$a)):createCommentVNode("v-if",!0)],42,_hoisted_1$Q))}});var Pager=_export_sfc$2(_sfc_main$1b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const isAbsent=e=>typeof e!="number",paginationProps=buildProps({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},nextText:{type:String,default:""},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),paginationEmits={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup(e,{emit:n,slots:r}){const{t:g}=useLocale(),$=useNamespace("pagination"),L=getCurrentInstance().vnode.props||{},k="onUpdate:currentPage"in L||"onUpdate:current-page"in L||"onCurrentChange"in L,oe="onUpdate:pageSize"in L||"onUpdate:page-size"in L||"onSizeChange"in L,re=computed(()=>{if(isAbsent(e.total)&&isAbsent(e.pageCount)||!isAbsent(e.currentPage)&&!k)return!1;if(e.layout.includes("sizes")){if(isAbsent(e.pageCount)){if(!isAbsent(e.total)&&!isAbsent(e.pageSize)&&!oe)return!1}else if(!oe)return!1}return!0}),ae=ref(isAbsent(e.defaultPageSize)?10:e.defaultPageSize),le=ref(isAbsent(e.defaultCurrentPage)?1:e.defaultCurrentPage),ue=computed({get(){return isAbsent(e.pageSize)?ae.value:e.pageSize},set(At){isAbsent(e.pageSize)&&(ae.value=At),oe&&(n("update:page-size",At),n("size-change",At))}}),pe=computed(()=>{let At=0;return isAbsent(e.pageCount)?isAbsent(e.total)||(At=Math.max(1,Math.ceil(e.total/ue.value))):At=e.pageCount,At}),de=computed({get(){return isAbsent(e.currentPage)?le.value:e.currentPage},set(At){let qe=At;At<1?qe=1:At>pe.value&&(qe=pe.value),isAbsent(e.currentPage)&&(le.value=qe),k&&(n("update:current-page",qe),n("current-change",qe))}});watch(pe,At=>{de.value>At&&(de.value=At)});function Fe(At){de.value=At}function ze(At){ue.value=At;const qe=pe.value;de.value>qe&&(de.value=qe)}function Ce(){e.disabled||(de.value-=1,n("prev-click",de.value))}function Ie(){e.disabled||(de.value+=1,n("next-click",de.value))}function _e(At,qe){At&&(At.props||(At.props={}),At.props.class=[At.props.class,qe].join(" "))}return provide(elPaginationKey,{pageCount:pe,disabled:computed(()=>e.disabled),currentPage:de,changeEvent:Fe,handleSizeChange:ze}),()=>{var At,qe;if(!re.value)return g("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&pe.value<=1)return null;const xe=[],Ve=[],he=h$2("div",{class:$.e("rightwrapper")},Ve),Oe={prev:h$2(Prev,{disabled:e.disabled,currentPage:de.value,prevText:e.prevText,onClick:Ce}),jumper:h$2(Jumper),pager:h$2(Pager,{currentPage:de.value,pageCount:pe.value,pagerCount:e.pagerCount,onChange:Fe,disabled:e.disabled}),next:h$2(Next,{disabled:e.disabled,currentPage:de.value,pageCount:pe.value,nextText:e.nextText,onClick:Ie}),sizes:h$2(Sizes,{pageSize:ue.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(qe=(At=r?.default)==null?void 0:At.call(r))!=null?qe:null,total:h$2(Total,{total:isAbsent(e.total)?0:e.total})},$e=e.layout.split(",").map(Ue=>Ue.trim());let Ne=!1;return $e.forEach(Ue=>{if(Ue==="->"){Ne=!0;return}Ne?Ve.push(Oe[Ue]):xe.push(Oe[Ue])}),_e(xe[0],$.is("first")),_e(xe[xe.length-1],$.is("last")),Ne&&Ve.length>0&&(_e(Ve[0],$.is("first")),_e(Ve[Ve.length-1],$.is("last")),xe.push(he)),h$2("div",{role:"pagination","aria-label":"pagination",class:[$.b(),$.is("background",e.background),{[$.m("small")]:e.small}]},xe)}}});const ElPagination=withInstall(Pagination),popconfirmProps=buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:buttonTypes,default:"primary"},cancelButtonType:{type:String,values:buttonTypes,default:"text"},icon:{type:iconPropType,default:question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},onConfirm:{type:definePropType(Function)},onCancel:{type:definePropType(Function)},teleported:useTooltipContentProps.teleported,persistent:useTooltipContentProps.persistent}),__default__$t={name:"ElPopconfirm"},_sfc_main$1a=defineComponent({...__default__$t,props:popconfirmProps,setup(e){const n=e,{t:r}=useLocale(),g=useNamespace("popconfirm"),$=ref(),L=()=>{var le,ue;(ue=(le=$.value)==null?void 0:le.onClose)==null||ue.call(le)},k=le=>{var ue;(ue=n.onConfirm)==null||ue.call(n,le),L()},oe=le=>{var ue;(ue=n.onCancel)==null||ue.call(n,le),L()},re=computed(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),ae=computed(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(le,ue)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:$,trigger:"click",effect:"light","popper-class":`${unref(g).namespace.value}-popover`,teleported:le.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":le.hideAfter,persistent:le.persistent},{content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(g).b())},[createBaseVNode("div",{class:normalizeClass(unref(g).e("main"))},[!le.hideIcon&&le.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(g).e("icon")),style:normalizeStyle({color:le.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(le.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString(le.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(g).e("action"))},[createVNode(unref(ElButton),{size:"small",type:le.cancelButtonType==="text"?"":le.cancelButtonType,text:le.cancelButtonType==="text",onClick:oe},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(ae)),1)]),_:1},8,["type","text"]),createVNode(unref(ElButton),{size:"small",type:le.confirmButtonType==="text"?"":le.confirmButtonType,text:le.confirmButtonType==="text",onClick:k},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(re)),1)]),_:1},8,["type","text"])],2)],2)]),default:withCtx(()=>[le.$slots.reference?renderSlot(le.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["popper-class","teleported","hide-after","persistent"]))}});var Popconfirm=_export_sfc$2(_sfc_main$1a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ElPopconfirm=withInstall(Popconfirm),popoverProps=buildProps({trigger:useTooltipTriggerProps.trigger,placement:dropdownProps.placement,disabled:useTooltipTriggerProps.disabled,visible:useTooltipContentProps.visible,transition:useTooltipContentProps.transition,popperOptions:dropdownProps.popperOptions,tabindex:dropdownProps.tabindex,content:useTooltipContentProps.content,popperStyle:useTooltipContentProps.popperStyle,popperClass:useTooltipContentProps.popperClass,enterable:{...useTooltipContentProps.enterable,default:!0},effect:{...useTooltipContentProps.effect,default:"light"},teleported:useTooltipContentProps.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),popoverEmits={"update:visible":e=>isBoolean(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},__default__$s={name:"ElPopover"},_sfc_main$19=defineComponent({...__default__$s,props:popoverProps,emits:popoverEmits,setup(e,{expose:n,emit:r}){const g=e,$="onUpdate:visible",L=computed(()=>g[$]),k=useNamespace("popover"),oe=ref(),re=computed(()=>{var Ie;return(Ie=unref(oe))==null?void 0:Ie.popperRef}),ae=computed(()=>[{width:addUnit(g.width)},g.popperStyle]),le=computed(()=>[k.b(),g.popperClass,{[k.m("plain")]:!!g.content}]),ue=computed(()=>g.transition==="el-fade-in-linear"),pe=()=>{var Ie;(Ie=oe.value)==null||Ie.hide()},de=()=>{r("before-enter")},Fe=()=>{r("before-leave")},ze=()=>{r("after-enter")},Ce=()=>{r("update:visible",!1),r("after-leave")};return n({popperRef:re,hide:pe}),(Ie,_e)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:oe},Ie.$attrs,{trigger:Ie.trigger,placement:Ie.placement,disabled:Ie.disabled,visible:Ie.visible,transition:Ie.transition,"popper-options":Ie.popperOptions,tabindex:Ie.tabindex,content:Ie.content,offset:Ie.offset,"show-after":Ie.showAfter,"hide-after":Ie.hideAfter,"auto-close":Ie.autoClose,"show-arrow":Ie.showArrow,"aria-label":Ie.title,effect:Ie.effect,enterable:Ie.enterable,"popper-class":unref(le),"popper-style":unref(ae),teleported:Ie.teleported,persistent:Ie.persistent,"gpu-acceleration":unref(ue),"onUpdate:visible":unref(L),onBeforeShow:de,onBeforeHide:Fe,onShow:ze,onHide:Ce}),{content:withCtx(()=>[Ie.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(k).e("title")),role:"title"},toDisplayString(Ie.title),3)):createCommentVNode("v-if",!0),renderSlot(Ie.$slots,"default",{},()=>[createTextVNode(toDisplayString(Ie.content),1)])]),default:withCtx(()=>[Ie.$slots.reference?renderSlot(Ie.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Popover=_export_sfc$2(_sfc_main$19,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const attachEvents=(e,n)=>{const r=n.arg||n.value,g=r?.popperRef;g&&(g.triggerRef=e)};var PopoverDirective={mounted(e,n){attachEvents(e,n)},updated(e,n){attachEvents(e,n)}};const VPopover="popover",ElPopoverDirective=withInstallDirective(PopoverDirective,VPopover),ElPopover=withInstall(Popover,{directive:ElPopoverDirective}),progressProps=buildProps({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:definePropType(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:definePropType([String,Array,Function]),default:""},format:{type:definePropType(Function),default:e=>`${e}%`}}),_hoisted_1$P=["aria-valuenow"],_hoisted_2$D={viewBox:"0 0 100 100"},_hoisted_3$k=["d","stroke","stroke-width"],_hoisted_4$h=["d","stroke","opacity","stroke-linecap","stroke-width"],_hoisted_5$d={key:0},__default__$r={name:"ElProgress"},_sfc_main$18=defineComponent({...__default__$r,props:progressProps,setup(e){const n=e,r={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},g=useNamespace("progress"),$=computed(()=>({width:`${n.percentage}%`,animationDuration:`${n.duration}s`,backgroundColor:_e(n.percentage)})),L=computed(()=>(n.strokeWidth/n.width*100).toFixed(1)),k=computed(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(L.value)/2}`,10):0),oe=computed(()=>{const At=k.value,qe=n.type==="dashboard";return` + M 50 50 + m 0 ${qe?"":"-"}${At} + a ${At} ${At} 0 1 1 0 ${qe?"-":""}${At*2} + a ${At} ${At} 0 1 1 0 ${qe?"":"-"}${At*2} + `}),re=computed(()=>2*Math.PI*k.value),ae=computed(()=>n.type==="dashboard"?.75:1),le=computed(()=>`${-1*re.value*(1-ae.value)/2}px`),ue=computed(()=>({strokeDasharray:`${re.value*ae.value}px, ${re.value}px`,strokeDashoffset:le.value})),pe=computed(()=>({strokeDasharray:`${re.value*ae.value*(n.percentage/100)}px, ${re.value}px`,strokeDashoffset:le.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),de=computed(()=>{let At;return n.color?At=_e(n.percentage):At=r[n.status]||r.default,At}),Fe=computed(()=>n.status==="warning"?warning_filled_default:n.type==="line"?n.status==="success"?circle_check_default:circle_close_default:n.status==="success"?check_default:close_default),ze=computed(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),Ce=computed(()=>n.format(n.percentage));function Ie(At){const qe=100/At.length;return At.map((Ve,he)=>isString$2(Ve)?{color:Ve,percentage:(he+1)*qe}:Ve).sort((Ve,he)=>Ve.percentage-he.percentage)}const _e=At=>{var qe;const{color:xe}=n;if(isFunction$1(xe))return xe(At);if(isString$2(xe))return xe;{const Ve=Ie(xe);for(const he of Ve)if(he.percentage>At)return he.color;return(qe=Ve[Ve.length-1])==null?void 0:qe.color}};return(At,qe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(g).b(),unref(g).m(At.type),unref(g).is(At.status),{[unref(g).m("without-text")]:!At.showText,[unref(g).m("text-inside")]:At.textInside}]),role:"progressbar","aria-valuenow":At.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[At.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(g).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(g).be("bar","outer")),style:normalizeStyle({height:`${At.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(g).be("bar","inner"),{[unref(g).bem("bar","inner","indeterminate")]:At.indeterminate}]),style:normalizeStyle(unref($))},[(At.showText||At.$slots.default)&&At.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(g).be("bar","innerText"))},[renderSlot(At.$slots,"default",{percentage:At.percentage},()=>[createBaseVNode("span",null,toDisplayString(unref(Ce)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(g).b("circle")),style:normalizeStyle({height:`${At.width}px`,width:`${At.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$D,[createBaseVNode("path",{class:normalizeClass(unref(g).be("circle","track")),d:unref(oe),stroke:`var(${unref(g).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":unref(L),fill:"none",style:normalizeStyle(unref(ue))},null,14,_hoisted_3$k),createBaseVNode("path",{class:normalizeClass(unref(g).be("circle","path")),d:unref(oe),stroke:unref(de),fill:"none",opacity:At.percentage?1:0,"stroke-linecap":At.strokeLinecap,"stroke-width":unref(L),style:normalizeStyle(unref(pe))},null,14,_hoisted_4$h)]))],6)),(At.showText||At.$slots.default)&&!At.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(g).e("text")),style:normalizeStyle({fontSize:`${unref(ze)}px`})},[renderSlot(At.$slots,"default",{percentage:At.percentage},()=>[At.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Fe))))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$d,toDisplayString(unref(Ce)),1))])],6)):createCommentVNode("v-if",!0)],10,_hoisted_1$P))}});var Progress=_export_sfc$2(_sfc_main$18,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const ElProgress=withInstall(Progress),rateProps=buildProps({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:definePropType([Array,Object]),default:()=>mutable(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:definePropType([Array,Object]),default:()=>[star_filled_default,star_filled_default,star_filled_default]},voidIcon:{type:iconPropType,default:()=>star_default},disabledVoidIcon:{type:iconPropType,default:()=>star_filled_default},disabled:{type:Boolean},allowHalf:{type:Boolean},showText:{type:Boolean},showScore:{type:Boolean},textColor:{type:String,default:""},texts:{type:definePropType(Array),default:()=>mutable(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:isValidComponentSize},label:{type:String,default:void 0}}),rateEmits={[CHANGE_EVENT]:e=>isNumber(e),[UPDATE_MODEL_EVENT]:e=>isNumber(e)},_hoisted_1$O=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_hoisted_2$C=["onMousemove","onClick"],__default__$q={name:"ElRate"},_sfc_main$17=defineComponent({...__default__$q,props:rateProps,emits:rateEmits,setup(e,{expose:n,emit:r}){const g=e;function $(vn,hn){const Dt=Sn=>isObject$4(Sn),jt=Object.keys(hn).map(Sn=>+Sn).filter(Sn=>{const Cn=hn[Sn];return(Dt(Cn)?Cn.excluded:!1)?vnSn-Cn),bn=hn[jt[0]];return Dt(bn)&&bn.value||bn}const L=inject(formContextKey,void 0),k=inject(formItemContextKey,void 0),oe=useSize(),re=useNamespace("rate"),{inputId:ae,isLabeledByFormItem:le}=useFormItemInputId(g,{formItemContext:k}),ue=ref(g.modelValue),pe=ref(-1),de=ref(!0),Fe=computed(()=>[re.b(),re.m(oe.value)]),ze=computed(()=>g.disabled||L?.disabled),Ce=computed(()=>re.cssVarBlock({"void-color":g.voidColor,"disabled-void-color":g.disabledVoidColor,"fill-color":qe.value})),Ie=computed(()=>{let vn="";return g.showScore?vn=g.scoreTemplate.replace(/\{\s*value\s*\}/,ze.value?`${g.modelValue}`:`${ue.value}`):g.showText&&(vn=g.texts[Math.ceil(ue.value)-1]),vn}),_e=computed(()=>g.modelValue*100-Math.floor(g.modelValue)*100),At=computed(()=>isArray$4(g.colors)?{[g.lowThreshold]:g.colors[0],[g.highThreshold]:{value:g.colors[1],excluded:!0},[g.max]:g.colors[2]}:g.colors),qe=computed(()=>{const vn=$(ue.value,At.value);return isObject$4(vn)?"":vn}),xe=computed(()=>{let vn="";return ze.value?vn=`${_e.value}%`:g.allowHalf&&(vn="50%"),{color:qe.value,width:vn}}),Ve=computed(()=>isArray$4(g.icons)?{[g.lowThreshold]:g.icons[0],[g.highThreshold]:{value:g.icons[1],excluded:!0},[g.max]:g.icons[2]}:g.icons),he=computed(()=>$(g.modelValue,Ve.value)),Oe=computed(()=>ze.value?g.disabledVoidIcon:g.voidIcon),$e=computed(()=>$(ue.value,Ve.value)),Ne=computed(()=>{const vn=Array.from({length:g.max}),hn=ue.value;return vn.fill($e.value,0,hn),vn.fill(Oe.value,hn,g.max),vn});function Ue(vn){const hn=ze.value&&_e.value>0&&vn-1g.modelValue,Dt=g.allowHalf&&de.value&&vn-.5<=ue.value&&vn>ue.value;return hn||Dt}function kt(vn){ze.value||(g.allowHalf&&de.value?(r(UPDATE_MODEL_EVENT,ue.value),g.modelValue!==ue.value&&r("change",ue.value)):(r(UPDATE_MODEL_EVENT,vn),g.modelValue!==vn&&r("change",vn)))}function Et(vn){if(ze.value)return;let hn=ue.value;const Dt=vn.code;return Dt===EVENT_CODE.up||Dt===EVENT_CODE.right?(g.allowHalf?hn+=.5:hn+=1,vn.stopPropagation(),vn.preventDefault()):(Dt===EVENT_CODE.left||Dt===EVENT_CODE.down)&&(g.allowHalf?hn-=.5:hn-=1,vn.stopPropagation(),vn.preventDefault()),hn=hn<0?0:hn,hn=hn>g.max?g.max:hn,r(UPDATE_MODEL_EVENT,hn),r("change",hn),hn}function Pt(vn,hn){if(!ze.value){if(g.allowHalf){let Dt=hn.target;hasClass(Dt,re.e("item"))&&(Dt=Dt.querySelector(`.${re.e("icon")}`)),(Dt.clientWidth===0||hasClass(Dt,re.e("decimal")))&&(Dt=Dt.parentNode),de.value=hn.offsetX*2<=Dt.clientWidth,ue.value=de.value?vn-.5:vn}else ue.value=vn;pe.value=vn}}function Lt(){ze.value||(g.allowHalf&&(de.value=g.modelValue!==Math.floor(g.modelValue)),ue.value=g.modelValue,pe.value=-1)}return watch(()=>g.modelValue,vn=>{ue.value=vn,de.value=g.modelValue!==Math.floor(g.modelValue)}),g.modelValue||r(UPDATE_MODEL_EVENT,0),n({setCurrentValue:Pt,resetCurrentValue:Lt}),(vn,hn)=>{var Dt;return openBlock(),createElementBlock("div",{id:unref(ae),class:normalizeClass([unref(Fe),unref(re).is("disabled",unref(ze))]),role:"slider","aria-label":unref(le)?void 0:vn.label||"rating","aria-labelledby":unref(le)?(Dt=unref(k))==null?void 0:Dt.labelId:void 0,"aria-valuenow":ue.value,"aria-valuetext":unref(Ie)||void 0,"aria-valuemin":"0","aria-valuemax":vn.max,tabindex:"0",style:normalizeStyle(unref(Ce)),onKeydown:Et},[(openBlock(!0),createElementBlock(Fragment,null,renderList(vn.max,(jt,bn)=>(openBlock(),createElementBlock("span",{key:bn,class:normalizeClass(unref(re).e("item")),onMousemove:Sn=>Pt(jt,Sn),onMouseleave:Lt,onClick:Sn=>kt(jt)},[createVNode(unref(ElIcon),{class:normalizeClass([unref(re).e("icon"),{hover:pe.value===jt},unref(re).is("active",jt<=ue.value)])},{default:withCtx(()=>[Ue(jt)?createCommentVNode("v-if",!0):(openBlock(),createBlock(resolveDynamicComponent(unref(Ne)[jt-1]),{key:0})),Ue(jt)?(openBlock(),createBlock(unref(ElIcon),{key:1,style:normalizeStyle(unref(xe)),class:normalizeClass([unref(re).e("icon"),unref(re).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(he))))]),_:1},8,["style","class"])):createCommentVNode("v-if",!0)]),_:2},1032,["class"])],42,_hoisted_2$C))),128)),vn.showText||vn.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(re).e("text"))},toDisplayString(unref(Ie)),3)):createCommentVNode("v-if",!0)],46,_hoisted_1$O)}}});var Rate=_export_sfc$2(_sfc_main$17,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const ElRate=withInstall(Rate),IconMap={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},IconComponentMap={[IconMap.success]:circle_check_filled_default,[IconMap.warning]:warning_filled_default,[IconMap.error]:circle_close_filled_default,[IconMap.info]:info_filled_default},resultProps=buildProps({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),__default__$p={name:"ElResult"},_sfc_main$16=defineComponent({...__default__$p,props:resultProps,setup(e){const n=e,r=useNamespace("result"),g=computed(()=>{const $=n.icon,L=$&&IconMap[$]?IconMap[$]:"icon-info",k=IconComponentMap[L]||IconComponentMap["icon-info"];return{class:L,component:k}});return($,L)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(r).b())},[createBaseVNode("div",{class:normalizeClass(unref(r).e("icon"))},[renderSlot($.$slots,"icon",{},()=>[unref(g).component?(openBlock(),createBlock(resolveDynamicComponent(unref(g).component),{key:0,class:normalizeClass(unref(g).class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),$.title||$.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("title"))},[renderSlot($.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString($.title),1)])],2)):createCommentVNode("v-if",!0),$.subTitle||$.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(r).e("subtitle"))},[renderSlot($.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString($.subTitle),1)])],2)):createCommentVNode("v-if",!0),$.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(r).e("extra"))},[renderSlot($.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2))}});var Result=_export_sfc$2(_sfc_main$16,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ElResult=withInstall(Result),RowJustify=["start","center","end","space-around","space-between","space-evenly"],RowAlign=["top","middle","bottom"],rowProps=buildProps({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:RowJustify,default:"start"},align:{type:String,values:RowAlign,default:"top"}}),__default__$o={name:"ElRow"},_sfc_main$15=defineComponent({...__default__$o,props:rowProps,setup(e){const n=e,r=useNamespace("row"),g=computed(()=>n.gutter);provide(rowContextKey,{gutter:g});const $=computed(()=>{const L={};return n.gutter&&(L.marginRight=L.marginLeft=`-${n.gutter/2}px`),L});return(L,k)=>(openBlock(),createBlock(resolveDynamicComponent(L.tag),{class:normalizeClass([unref(r).b(),unref(r).is(`justify-${n.justify}`,L.justify!=="start"),unref(r).is(`align-${n.align}`,L.align!=="top")]),style:normalizeStyle(unref($))},{default:withCtx(()=>[renderSlot(L.$slots,"default")]),_:3},8,["class","style"]))}});var Row=_export_sfc$2(_sfc_main$15,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ElRow=withInstall(Row);var safeIsNaN=Number.isNaN||function(n){return typeof n=="number"&&n!==n};function isEqual(e,n){return!!(e===n||safeIsNaN(e)&&safeIsNaN(n))}function areInputsEqual(e,n){if(e.length!==n.length)return!1;for(var r=0;r{const n=getCurrentInstance().proxy.$props;return computed(()=>{const r=(g,$,L)=>({});return n.perfMode?memoize(r):memoizeOne(r)})},DEFAULT_DYNAMIC_LIST_ITEM_SIZE=50,ITEM_RENDER_EVT="itemRendered",SCROLL_EVT="scroll",FORWARD="forward",BACKWARD="backward",AUTO_ALIGNMENT="auto",SMART_ALIGNMENT="smart",START_ALIGNMENT="start",CENTERED_ALIGNMENT="center",END_ALIGNMENT="end",HORIZONTAL="horizontal",VERTICAL="vertical",LTR$1="ltr",RTL$1="rtl",RTL_OFFSET_NAG="negative",RTL_OFFSET_POS_ASC="positive-ascending",RTL_OFFSET_POS_DESC="positive-descending",ScrollbarDirKey={[HORIZONTAL]:"left",[VERTICAL]:"top"},SCROLLBAR_MIN_SIZE=20,LayoutKeys={[HORIZONTAL]:"deltaX",[VERTICAL]:"deltaY"},useWheel=({atEndEdge:e,atStartEdge:n,layout:r},g)=>{let $,L=0;const k=re=>re<0&&n.value||re>0&&e.value;return{hasReachedEdge:k,onWheel:re=>{cAF($);const ae=re[LayoutKeys[r.value]];k(L)&&k(L+ae)||(L+=ae,isFirefox()||re.preventDefault(),$=rAF(()=>{g(L),L=0}))}}},itemSize=buildProp({type:definePropType([Number,Function]),required:!0}),estimatedItemSize=buildProp({type:Number}),cache$1=buildProp({type:Number,default:2}),direction=buildProp({type:String,values:["ltr","rtl"],default:"ltr"}),initScrollOffset=buildProp({type:Number,default:0}),total=buildProp({type:Number,required:!0}),layout=buildProp({type:String,values:["horizontal","vertical"],default:VERTICAL}),virtualizedProps=buildProps({className:{type:String,default:""},containerElement:{type:definePropType([String,Object]),default:"div"},data:{type:definePropType(Array),default:()=>mutable([])},direction,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:definePropType([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),virtualizedListProps=buildProps({cache:cache$1,estimatedItemSize,layout,initScrollOffset,total,itemSize,...virtualizedProps}),scrollbarSize={type:Number,default:6},startGap={type:Number,default:0},endGap={type:Number,default:2},virtualizedGridProps=buildProps({columnCache:cache$1,columnWidth:itemSize,estimatedColumnWidth:estimatedItemSize,estimatedRowHeight:estimatedItemSize,initScrollLeft:initScrollOffset,initScrollTop:initScrollOffset,itemKey:{type:definePropType(Function),default:({columnIndex:e,rowIndex:n})=>`${n}:${e}`},rowCache:cache$1,rowHeight:itemSize,totalColumn:total,totalRow:total,hScrollbarSize:scrollbarSize,vScrollbarSize:scrollbarSize,scrollbarStartGap:startGap,scrollbarEndGap:endGap,...virtualizedProps}),virtualizedScrollbarProps=buildProps({alwaysOn:Boolean,class:String,layout,total,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize,startGap,endGap,visible:Boolean}),getScrollDir=(e,n)=>ee===LTR$1||e===RTL$1||e===HORIZONTAL,isRTL=e=>e===RTL$1;let cachedRTLResult=null;function getRTLOffsetType(e=!1){if(cachedRTLResult===null||e){const n=document.createElement("div"),r=n.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";const g=document.createElement("div"),$=g.style;return $.width="100px",$.height="100px",n.appendChild(g),document.body.appendChild(n),n.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(n.scrollLeft=1,n.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(n),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:e,size:n,bar:r},g){const $={},L=`translate${r.axis}(${e}px)`;return $[r.size]=n,$.transform=L,$.msTransform=L,$.webkitTransform=L,g==="horizontal"?$.height="100%":$.width="100%",$}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup(e,{emit:n}){const r=computed(()=>e.startGap+e.endGap),g=useNamespace("virtual-scrollbar"),$=useNamespace("scrollbar"),L=ref(),k=ref();let oe=null,re=null;const ae=reactive({isDragging:!1,traveled:0}),le=computed(()=>BAR_MAP[e.layout]),ue=computed(()=>e.clientSize-unref(r)),pe=computed(()=>({position:"absolute",width:`${HORIZONTAL===e.layout?ue.value:e.scrollbarSize}px`,height:`${HORIZONTAL===e.layout?e.scrollbarSize:ue.value}px`,[ScrollbarDirKey[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),de=computed(()=>{const Ve=e.ratio,he=e.clientSize;if(Ve>=100)return Number.POSITIVE_INFINITY;if(Ve>=50)return Ve*he/100;const Oe=he/3;return Math.floor(Math.min(Math.max(Ve*he,SCROLLBAR_MIN_SIZE),Oe))}),Fe=computed(()=>{if(!Number.isFinite(de.value))return{display:"none"};const Ve=`${de.value}px`;return renderThumbStyle({bar:le.value,size:Ve,move:ae.traveled},e.layout)}),ze=computed(()=>Math.floor(e.clientSize-de.value-unref(r))),Ce=()=>{window.addEventListener("mousemove",qe),window.addEventListener("mouseup",At);const Ve=unref(k);!Ve||(re=document.onselectstart,document.onselectstart=()=>!1,Ve.addEventListener("touchmove",qe),Ve.addEventListener("touchend",At))},Ie=()=>{window.removeEventListener("mousemove",qe),window.removeEventListener("mouseup",At),document.onselectstart=re,re=null;const Ve=unref(k);!Ve||(Ve.removeEventListener("touchmove",qe),Ve.removeEventListener("touchend",At))},_e=Ve=>{Ve.stopImmediatePropagation(),!(Ve.ctrlKey||[1,2].includes(Ve.button))&&(ae.isDragging=!0,ae[le.value.axis]=Ve.currentTarget[le.value.offset]-(Ve[le.value.client]-Ve.currentTarget.getBoundingClientRect()[le.value.direction]),n("start-move"),Ce())},At=()=>{ae.isDragging=!1,ae[le.value.axis]=0,n("stop-move"),Ie()},qe=Ve=>{const{isDragging:he}=ae;if(!he||!k.value||!L.value)return;const Oe=ae[le.value.axis];if(!Oe)return;cAF(oe);const $e=(L.value.getBoundingClientRect()[le.value.direction]-Ve[le.value.client])*-1,Ne=k.value[le.value.offset]-Oe,Ue=$e-Ne;oe=rAF(()=>{ae.traveled=Math.max(e.startGap,Math.min(Ue,ze.value)),n("scroll",Ue,ze.value)})},xe=Ve=>{const he=Math.abs(Ve.target.getBoundingClientRect()[le.value.direction]-Ve[le.value.client]),Oe=k.value[le.value.offset]/2,$e=he-Oe;ae.traveled=Math.max(0,Math.min($e,ze.value)),n("scroll",$e,ze.value)};return watch(()=>e.scrollFrom,Ve=>{ae.isDragging||(ae.traveled=Math.ceil(Ve*ze.value))}),onBeforeUnmount(()=>{Ie()}),()=>h$2("div",{role:"presentation",ref:L,class:[g.b(),e.class,(e.alwaysOn||ae.isDragging)&&"always-on"],style:pe.value,onMousedown:withModifiers(xe,["stop","prevent"]),onTouchstartPrevent:_e},h$2("div",{ref:k,class:$.e("thumb"),style:Fe.value,onMousedown:_e},[]))}}),createList=({name:e,getOffset:n,getItemSize:r,getItemOffset:g,getEstimatedTotalSize:$,getStartIndexForOffset:L,getStopIndexForStartIndex:k,initCache:oe,clearCache:re,validateProps:ae})=>defineComponent({name:e??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(le,{emit:ue,expose:pe}){ae(le);const de=getCurrentInstance(),Fe=useNamespace("vl"),ze=ref(oe(le,de)),Ce=useCache(),Ie=ref(),_e=ref(),At=ref(),qe=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber(le.initScrollOffset)?le.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:le.scrollbarAlwaysOn}),xe=computed(()=>{const{total:On,cache:En}=le,{isScrolling:An,scrollDir:In,scrollOffset:$n}=unref(qe);if(On===0)return[0,0,0,0];const Pn=L(le,$n,unref(ze)),Dn=k(le,Pn,$n,unref(ze)),Mn=!An||In===BACKWARD?Math.max(1,En):1,Fn=!An||In===FORWARD?Math.max(1,En):1;return[Math.max(0,Pn-Mn),Math.max(0,Math.min(On-1,Dn+Fn)),Pn,Dn]}),Ve=computed(()=>$(le,unref(ze))),he=computed(()=>isHorizontal(le.layout)),Oe=computed(()=>[{position:"relative",[`overflow-${he.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:le.direction,height:isNumber(le.height)?`${le.height}px`:le.height,width:isNumber(le.width)?`${le.width}px`:le.width},le.style]),$e=computed(()=>{const On=unref(Ve),En=unref(he);return{height:En?"100%":`${On}px`,pointerEvents:unref(qe).isScrolling?"none":void 0,width:En?`${On}px`:"100%"}}),Ne=computed(()=>he.value?le.width:le.height),{onWheel:Ue}=useWheel({atStartEdge:computed(()=>qe.value.scrollOffset<=0),atEndEdge:computed(()=>qe.value.scrollOffset>=Ve.value),layout:computed(()=>le.layout)},On=>{var En,An;(An=(En=At.value).onMouseUp)==null||An.call(En),hn(Math.min(qe.value.scrollOffset+On,Ve.value-Ne.value))}),kt=()=>{const{total:On}=le;if(On>0){const[$n,Pn,Dn,Mn]=unref(xe);ue(ITEM_RENDER_EVT,$n,Pn,Dn,Mn)}const{scrollDir:En,scrollOffset:An,updateRequested:In}=unref(qe);ue(SCROLL_EVT,En,An,In)},Et=On=>{const{clientHeight:En,scrollHeight:An,scrollTop:In}=On.currentTarget,$n=unref(qe);if($n.scrollOffset===In)return;const Pn=Math.max(0,Math.min(In,An-En));qe.value={...$n,isScrolling:!0,scrollDir:getScrollDir($n.scrollOffset,Pn),scrollOffset:Pn,updateRequested:!1},nextTick(bn)},Pt=On=>{const{clientWidth:En,scrollLeft:An,scrollWidth:In}=On.currentTarget,$n=unref(qe);if($n.scrollOffset===An)return;const{direction:Pn}=le;let Dn=An;if(Pn===RTL$1)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Dn=-An;break}case RTL_OFFSET_POS_DESC:{Dn=In-En-An;break}}Dn=Math.max(0,Math.min(Dn,In-En)),qe.value={...$n,isScrolling:!0,scrollDir:getScrollDir($n.scrollOffset,Dn),scrollOffset:Dn,updateRequested:!1},nextTick(bn)},Lt=On=>{unref(he)?Pt(On):Et(On),kt()},vn=(On,En)=>{const An=(Ve.value-Ne.value)/En*On;hn(Math.min(Ve.value-Ne.value,An))},hn=On=>{On=Math.max(On,0),On!==unref(qe).scrollOffset&&(qe.value={...unref(qe),scrollOffset:On,scrollDir:getScrollDir(unref(qe).scrollOffset,On),updateRequested:!0},nextTick(bn))},Dt=(On,En=AUTO_ALIGNMENT)=>{const{scrollOffset:An}=unref(qe);On=Math.max(0,Math.min(On,le.total-1)),hn(n(le,On,En,An,unref(ze)))},jt=On=>{const{direction:En,itemSize:An,layout:In}=le,$n=Ce.value(re&&An,re&&In,re&&En);let Pn;if(hasOwn($n,String(On)))Pn=$n[On];else{const Dn=g(le,On,unref(ze)),Mn=r(le,On,unref(ze)),Fn=unref(he),kn=En===RTL$1,Nn=Fn?Dn:0;$n[On]=Pn={position:"absolute",left:kn?void 0:`${Nn}px`,right:kn?`${Nn}px`:void 0,top:Fn?0:`${Dn}px`,height:Fn?"100%":`${Mn}px`,width:Fn?`${Mn}px`:"100%"}}return Pn},bn=()=>{qe.value.isScrolling=!1,nextTick(()=>{Ce.value(-1,null,null)})},Sn=()=>{const On=Ie.value;On&&(On.scrollTop=0)};onMounted(()=>{if(!isClient)return;const{initScrollOffset:On}=le,En=unref(Ie);isNumber(On)&&En&&(unref(he)?En.scrollLeft=On:En.scrollTop=On),kt()}),onUpdated(()=>{const{direction:On,layout:En}=le,{scrollOffset:An,updateRequested:In}=unref(qe),$n=unref(Ie);if(In&&$n)if(En===HORIZONTAL)if(On===RTL$1)switch(getRTLOffsetType()){case"negative":{$n.scrollLeft=-An;break}case"positive-ascending":{$n.scrollLeft=An;break}default:{const{clientWidth:Pn,scrollWidth:Dn}=$n;$n.scrollLeft=Dn-Pn-An;break}}else $n.scrollLeft=An;else $n.scrollTop=An});const Cn={ns:Fe,clientSize:Ne,estimatedTotalSize:Ve,windowStyle:Oe,windowRef:Ie,innerRef:_e,innerStyle:$e,itemsToRender:xe,scrollbarRef:At,states:qe,getItemStyle:jt,onScroll:Lt,onScrollbarScroll:vn,onWheel:Ue,scrollTo:hn,scrollToItem:Dt,resetScrollTop:Sn};return pe({windowRef:Ie,innerRef:_e,getItemStyleCache:Ce,scrollTo:hn,scrollToItem:Dt,resetScrollTop:Sn,states:qe}),Cn},render(le){var ue;const{$slots:pe,className:de,clientSize:Fe,containerElement:ze,data:Ce,getItemStyle:Ie,innerElement:_e,itemsToRender:At,innerStyle:qe,layout:xe,total:Ve,onScroll:he,onScrollbarScroll:Oe,onWheel:$e,states:Ne,useIsScrolling:Ue,windowStyle:kt,ns:Et}=le,[Pt,Lt]=At,vn=resolveDynamicComponent(ze),hn=resolveDynamicComponent(_e),Dt=[];if(Ve>0)for(let Cn=Pt;Cn<=Lt;Cn++)Dt.push((ue=pe.default)==null?void 0:ue.call(pe,{data:Ce,key:Cn,index:Cn,isScrolling:Ue?Ne.isScrolling:void 0,style:Ie(Cn)}));const jt=[h$2(hn,{style:qe,ref:"innerRef"},isString$2(hn)?Dt:{default:()=>Dt})],bn=h$2(ScrollBar,{ref:"scrollbarRef",clientSize:Fe,layout:xe,onScroll:Oe,ratio:Fe*100/this.estimatedTotalSize,scrollFrom:Ne.scrollOffset/(this.estimatedTotalSize-Fe),total:Ve}),Sn=h$2(vn,{class:[Et.e("window"),de],style:kt,onScroll:he,onWheel:$e,ref:"windowRef",key:0},isString$2(vn)?[jt]:{default:()=>[jt]});return h$2("div",{key:0,class:[Et.e("wrapper"),Ne.scrollbarAlwaysOn?"always-on":""]},[Sn,bn])}}),FixedSizeList=createList({name:"ElFixedSizeList",getItemOffset:({itemSize:e},n)=>n*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:n})=>n*e,getOffset:({height:e,total:n,itemSize:r,layout:g,width:$},L,k,oe)=>{const re=isHorizontal(g)?$:e,ae=Math.max(0,n*r-re),le=Math.min(ae,L*r),ue=Math.max(0,(L+1)*r-re);switch(k===SMART_ALIGNMENT&&(oe>=ue-re&&oe<=le+re?k=AUTO_ALIGNMENT:k=CENTERED_ALIGNMENT),k){case START_ALIGNMENT:return le;case END_ALIGNMENT:return ue;case CENTERED_ALIGNMENT:{const pe=Math.round(ue+(le-ue)/2);return peae+Math.floor(re/2)?ae:pe}case AUTO_ALIGNMENT:default:return oe>=ue&&oe<=le?oe:oeMath.max(0,Math.min(e-1,Math.floor(r/n))),getStopIndexForStartIndex:({height:e,total:n,itemSize:r,layout:g,width:$},L,k)=>{const oe=L*r,re=isHorizontal(g)?$:e,ae=Math.ceil((re+k-oe)/r);return Math.max(0,Math.min(n-1,L+ae-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=(e,n,r)=>{const{itemSize:g}=e,{items:$,lastVisitedIndex:L}=r;if(n>L){let k=0;if(L>=0){const oe=$[L];k=oe.offset+oe.size}for(let oe=L+1;oe<=n;oe++){const re=g(oe);$[oe]={offset:k,size:re},k+=re}r.lastVisitedIndex=n}return $[n]},findItem$1=(e,n,r)=>{const{items:g,lastVisitedIndex:$}=n;return($>0?g[$].offset:0)>=r?bs$1(e,n,0,$,r):es$1(e,n,Math.max(0,$),r)},bs$1=(e,n,r,g,$)=>{for(;r<=g;){const L=r+Math.floor((g-r)/2),k=getItemFromCache$1(e,L,n).offset;if(k===$)return L;k<$?r=L+1:k>$&&(g=L-1)}return Math.max(0,r-1)},es$1=(e,n,r,g)=>{const{total:$}=e;let L=1;for(;r<$&&getItemFromCache$1(e,r,n).offset{let $=0;if(g>=e&&(g=e-1),g>=0){const oe=n[g];$=oe.offset+oe.size}const k=(e-g-1)*r;return $+k},DynamicSizeList=createList({name:"ElDynamicSizeList",getItemOffset:(e,n,r)=>getItemFromCache$1(e,n,r).offset,getItemSize:(e,n,{items:r})=>r[n].size,getEstimatedTotalSize,getOffset:(e,n,r,g,$)=>{const{height:L,layout:k,width:oe}=e,re=isHorizontal(k)?oe:L,ae=getItemFromCache$1(e,n,$),le=getEstimatedTotalSize(e,$),ue=Math.max(0,Math.min(le-re,ae.offset)),pe=Math.max(0,ae.offset-re+ae.size);switch(r===SMART_ALIGNMENT&&(g>=pe-re&&g<=ue+re?r=AUTO_ALIGNMENT:r=CENTERED_ALIGNMENT),r){case START_ALIGNMENT:return ue;case END_ALIGNMENT:return pe;case CENTERED_ALIGNMENT:return Math.round(pe+(ue-pe)/2);case AUTO_ALIGNMENT:default:return g>=pe&&g<=ue?g:gfindItem$1(e,r,n),getStopIndexForStartIndex:(e,n,r,g)=>{const{height:$,total:L,layout:k,width:oe}=e,re=isHorizontal(k)?oe:$,ae=getItemFromCache$1(e,n,g),le=r+re;let ue=ae.offset+ae.size,pe=n;for(;pe{var L,k;r.lastVisitedIndex=Math.min(r.lastVisitedIndex,g-1),(L=n.exposed)==null||L.getItemStyleCache(-1),$&&((k=n.proxy)==null||k.$forceUpdate())},r},clearCache:!1,validateProps:({itemSize:e})=>{}}),useGridWheel=({atXEndEdge:e,atXStartEdge:n,atYEndEdge:r,atYStartEdge:g},$)=>{let L=null,k=0,oe=0;const re=(le,ue)=>{const pe=le<0&&n.value||le>0&&e.value,de=ue<0&&g.value||ue>0&&r.value;return pe&&de};return{hasReachedEdge:re,onWheel:le=>{cAF(L);let ue=le.deltaX,pe=le.deltaY;Math.abs(ue)>Math.abs(pe)?pe=0:ue=0,le.shiftKey&&pe!==0&&(ue=pe,pe=0),!(re(k,oe)&&re(k+ue,oe+pe))&&(k+=ue,oe+=pe,isFirefox()||le.preventDefault(),L=rAF(()=>{$(k,oe),k=0,oe=0}))}}},createGrid=({name:e,clearCache:n,getColumnPosition:r,getColumnStartIndexForOffset:g,getColumnStopIndexForStartIndex:$,getEstimatedTotalHeight:L,getEstimatedTotalWidth:k,getColumnOffset:oe,getRowOffset:re,getRowPosition:ae,getRowStartIndexForOffset:le,getRowStopIndexForStartIndex:ue,initCache:pe,injectToInstance:de,validateProps:Fe})=>defineComponent({name:e??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(ze,{emit:Ce,expose:Ie,slots:_e}){const At=useNamespace("vl");Fe(ze);const qe=getCurrentInstance(),xe=ref(pe(ze,qe));de?.(qe,xe);const Ve=ref(),he=ref(),Oe=ref(),$e=ref(null),Ne=ref({isScrolling:!1,scrollLeft:isNumber(ze.initScrollLeft)?ze.initScrollLeft:0,scrollTop:isNumber(ze.initScrollTop)?ze.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),Ue=useCache(),kt=computed(()=>Number.parseInt(`${ze.height}`,10)),Et=computed(()=>Number.parseInt(`${ze.width}`,10)),Pt=computed(()=>{const{totalColumn:xn,totalRow:Bn,columnCache:Ln}=ze,{isScrolling:Hn,xAxisScrollDir:zn,scrollLeft:Jn}=unref(Ne);if(xn===0||Bn===0)return[0,0,0,0];const co=g(ze,Jn,unref(xe)),Gn=$(ze,co,Jn,unref(xe)),eo=!Hn||zn===BACKWARD?Math.max(1,Ln):1,ao=!Hn||zn===FORWARD?Math.max(1,Ln):1;return[Math.max(0,co-eo),Math.max(0,Math.min(xn-1,Gn+ao)),co,Gn]}),Lt=computed(()=>{const{totalColumn:xn,totalRow:Bn,rowCache:Ln}=ze,{isScrolling:Hn,yAxisScrollDir:zn,scrollTop:Jn}=unref(Ne);if(xn===0||Bn===0)return[0,0,0,0];const co=le(ze,Jn,unref(xe)),Gn=ue(ze,co,Jn,unref(xe)),eo=!Hn||zn===BACKWARD?Math.max(1,Ln):1,ao=!Hn||zn===FORWARD?Math.max(1,Ln):1;return[Math.max(0,co-eo),Math.max(0,Math.min(Bn-1,Gn+ao)),co,Gn]}),vn=computed(()=>L(ze,unref(xe))),hn=computed(()=>k(ze,unref(xe))),Dt=computed(()=>{var xn;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:ze.direction,height:isNumber(ze.height)?`${ze.height}px`:ze.height,width:isNumber(ze.width)?`${ze.width}px`:ze.width},(xn=ze.style)!=null?xn:{}]}),jt=computed(()=>{const xn=`${unref(hn)}px`;return{height:`${unref(vn)}px`,pointerEvents:unref(Ne).isScrolling?"none":void 0,width:xn}}),bn=()=>{const{totalColumn:xn,totalRow:Bn}=ze;if(xn>0&&Bn>0){const[Gn,eo,ao,ho]=unref(Pt),[Yn,Wn,Vn,_n]=unref(Lt);Ce(ITEM_RENDER_EVT,{columnCacheStart:Gn,columnCacheEnd:eo,rowCacheStart:Yn,rowCacheEnd:Wn,columnVisibleStart:ao,columnVisibleEnd:ho,rowVisibleStart:Vn,rowVisibleEnd:_n})}const{scrollLeft:Ln,scrollTop:Hn,updateRequested:zn,xAxisScrollDir:Jn,yAxisScrollDir:co}=unref(Ne);Ce(SCROLL_EVT,{xAxisScrollDir:Jn,scrollLeft:Ln,yAxisScrollDir:co,scrollTop:Hn,updateRequested:zn})},Sn=xn=>{const{clientHeight:Bn,clientWidth:Ln,scrollHeight:Hn,scrollLeft:zn,scrollTop:Jn,scrollWidth:co}=xn.currentTarget,Gn=unref(Ne);if(Gn.scrollTop===Jn&&Gn.scrollLeft===zn)return;let eo=zn;if(isRTL(ze.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:eo=-zn;break;case RTL_OFFSET_POS_DESC:eo=co-Ln-zn;break}Ne.value={...Gn,isScrolling:!0,scrollLeft:eo,scrollTop:Math.max(0,Math.min(Jn,Hn-Bn)),updateRequested:!0,xAxisScrollDir:getScrollDir(Gn.scrollLeft,eo),yAxisScrollDir:getScrollDir(Gn.scrollTop,Jn)},nextTick(()=>Pn()),Dn(),bn()},Cn=(xn,Bn)=>{const Ln=unref(kt),Hn=(vn.value-Ln)/Bn*xn;An({scrollTop:Math.min(vn.value-Ln,Hn)})},On=(xn,Bn)=>{const Ln=unref(Et),Hn=(hn.value-Ln)/Bn*xn;An({scrollLeft:Math.min(hn.value-Ln,Hn)})},{onWheel:En}=useGridWheel({atXStartEdge:computed(()=>Ne.value.scrollLeft<=0),atXEndEdge:computed(()=>Ne.value.scrollLeft>=hn.value),atYStartEdge:computed(()=>Ne.value.scrollTop<=0),atYEndEdge:computed(()=>Ne.value.scrollTop>=vn.value)},(xn,Bn)=>{var Ln,Hn,zn,Jn;(Hn=(Ln=he.value)==null?void 0:Ln.onMouseUp)==null||Hn.call(Ln),(Jn=(zn=he.value)==null?void 0:zn.onMouseUp)==null||Jn.call(zn);const co=unref(Et),Gn=unref(kt);An({scrollLeft:Math.min(Ne.value.scrollLeft+xn,hn.value-co),scrollTop:Math.min(Ne.value.scrollTop+Bn,vn.value-Gn)})}),An=({scrollLeft:xn=Ne.value.scrollLeft,scrollTop:Bn=Ne.value.scrollTop})=>{xn=Math.max(xn,0),Bn=Math.max(Bn,0);const Ln=unref(Ne);Bn===Ln.scrollTop&&xn===Ln.scrollLeft||(Ne.value={...Ln,xAxisScrollDir:getScrollDir(Ln.scrollLeft,xn),yAxisScrollDir:getScrollDir(Ln.scrollTop,Bn),scrollLeft:xn,scrollTop:Bn,updateRequested:!0},nextTick(()=>Pn()),Dn(),bn())},In=(xn=0,Bn=0,Ln=AUTO_ALIGNMENT)=>{const Hn=unref(Ne);Bn=Math.max(0,Math.min(Bn,ze.totalColumn-1)),xn=Math.max(0,Math.min(xn,ze.totalRow-1));const zn=getScrollBarWidth(At.namespace.value),Jn=unref(xe),co=L(ze,Jn),Gn=k(ze,Jn);An({scrollLeft:oe(ze,Bn,Ln,Hn.scrollLeft,Jn,Gn>ze.width?zn:0),scrollTop:re(ze,xn,Ln,Hn.scrollTop,Jn,co>ze.height?zn:0)})},$n=(xn,Bn)=>{const{columnWidth:Ln,direction:Hn,rowHeight:zn}=ze,Jn=Ue.value(n&&Ln,n&&zn,n&&Hn),co=`${xn},${Bn}`;if(hasOwn(Jn,co))return Jn[co];{const[,Gn]=r(ze,Bn,unref(xe)),eo=unref(xe),ao=isRTL(Hn),[ho,Yn]=ae(ze,xn,eo),[Wn]=r(ze,Bn,eo);return Jn[co]={position:"absolute",left:ao?void 0:`${Gn}px`,right:ao?`${Gn}px`:void 0,top:`${Yn}px`,height:`${ho}px`,width:`${Wn}px`},Jn[co]}},Pn=()=>{Ne.value.isScrolling=!1,nextTick(()=>{Ue.value(-1,null,null)})};onMounted(()=>{if(!isClient)return;const{initScrollLeft:xn,initScrollTop:Bn}=ze,Ln=unref(Ve);Ln&&(isNumber(xn)&&(Ln.scrollLeft=xn),isNumber(Bn)&&(Ln.scrollTop=Bn)),bn()});const Dn=()=>{const{direction:xn}=ze,{scrollLeft:Bn,scrollTop:Ln,updateRequested:Hn}=unref(Ne),zn=unref(Ve);if(Hn&&zn){if(xn===RTL$1)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{zn.scrollLeft=-Bn;break}case RTL_OFFSET_POS_ASC:{zn.scrollLeft=Bn;break}default:{const{clientWidth:Jn,scrollWidth:co}=zn;zn.scrollLeft=co-Jn-Bn;break}}else zn.scrollLeft=Math.max(0,Bn);zn.scrollTop=Math.max(0,Ln)}},{resetAfterColumnIndex:Mn,resetAfterRowIndex:Fn,resetAfter:kn}=qe.proxy;Ie({windowRef:Ve,innerRef:$e,getItemStyleCache:Ue,scrollTo:An,scrollToItem:In,states:Ne,resetAfterColumnIndex:Mn,resetAfterRowIndex:Fn,resetAfter:kn});const Nn=()=>{const{scrollbarAlwaysOn:xn,scrollbarStartGap:Bn,scrollbarEndGap:Ln,totalColumn:Hn,totalRow:zn}=ze,Jn=unref(Et),co=unref(kt),Gn=unref(hn),eo=unref(vn),{scrollLeft:ao,scrollTop:ho}=unref(Ne),Yn=h$2(ScrollBar,{ref:he,alwaysOn:xn,startGap:Bn,endGap:Ln,class:At.e("horizontal"),clientSize:Jn,layout:"horizontal",onScroll:On,ratio:Jn*100/Gn,scrollFrom:ao/(Gn-Jn),total:zn,visible:!0}),Wn=h$2(ScrollBar,{ref:Oe,alwaysOn:xn,startGap:Bn,endGap:Ln,class:At.e("vertical"),clientSize:co,layout:"vertical",onScroll:Cn,ratio:co*100/eo,scrollFrom:ho/(eo-co),total:Hn,visible:!0});return{horizontalScrollbar:Yn,verticalScrollbar:Wn}},Rn=()=>{var xn;const[Bn,Ln]=unref(Pt),[Hn,zn]=unref(Lt),{data:Jn,totalColumn:co,totalRow:Gn,useIsScrolling:eo,itemKey:ao}=ze,ho=[];if(Gn>0&&co>0)for(let Yn=Hn;Yn<=zn;Yn++)for(let Wn=Bn;Wn<=Ln;Wn++)ho.push((xn=_e.default)==null?void 0:xn.call(_e,{columnIndex:Wn,data:Jn,key:ao({columnIndex:Wn,data:Jn,rowIndex:Yn}),isScrolling:eo?unref(Ne).isScrolling:void 0,style:$n(Yn,Wn),rowIndex:Yn}));return ho},wn=()=>{const xn=resolveDynamicComponent(ze.innerElement),Bn=Rn();return[h$2(xn,{style:unref(jt),ref:$e},isString$2(xn)?Bn:{default:()=>Bn})]};return()=>{const xn=resolveDynamicComponent(ze.containerElement),{horizontalScrollbar:Bn,verticalScrollbar:Ln}=Nn(),Hn=wn();return h$2("div",{key:0,class:At.e("wrapper")},[h$2(xn,{class:ze.className,style:unref(Dt),onScroll:Sn,onWheel:En,ref:Ve},isString$2(xn)?Hn:{default:()=>Hn}),Bn,Ln])}}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},n)=>[e,n*e],getRowPosition:({rowHeight:e},n)=>[e,n*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:n})=>n*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:n})=>n*e,getColumnOffset:({totalColumn:e,columnWidth:n,width:r},g,$,L,k,oe)=>{r=Number(r);const re=Math.max(0,e*n-r),ae=Math.min(re,g*n),le=Math.max(0,g*n-r+oe+n);switch($==="smart"&&(L>=le-r&&L<=ae+r?$=AUTO_ALIGNMENT:$=CENTERED_ALIGNMENT),$){case START_ALIGNMENT:return ae;case END_ALIGNMENT:return le;case CENTERED_ALIGNMENT:{const ue=Math.round(le+(ae-le)/2);return uere+Math.floor(r/2)?re:ue}case AUTO_ALIGNMENT:default:return L>=le&&L<=ae?L:le>ae||L{n=Number(n);const re=Math.max(0,r*e-n),ae=Math.min(re,g*e),le=Math.max(0,g*e-n+oe+e);switch($===SMART_ALIGNMENT&&(L>=le-n&&L<=ae+n?$=AUTO_ALIGNMENT:$=CENTERED_ALIGNMENT),$){case START_ALIGNMENT:return ae;case END_ALIGNMENT:return le;case CENTERED_ALIGNMENT:{const ue=Math.round(le+(ae-le)/2);return uere+Math.floor(n/2)?re:ue}case AUTO_ALIGNMENT:default:return L>=le&&L<=ae?L:le>ae||LMath.max(0,Math.min(n-1,Math.floor(r/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:n,width:r},g,$)=>{const L=g*e,k=Math.ceil((r+$-L)/e);return Math.max(0,Math.min(n-1,g+k-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:n},r)=>Math.max(0,Math.min(n-1,Math.floor(r/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:n,height:r},g,$)=>{const L=g*e,k=Math.ceil((r+$-L)/e);return Math.max(0,Math.min(n-1,g+k-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:n})=>{}}),{max,min,floor}=Math,ACCESS_SIZER_KEY_MAP={column:"columnWidth",row:"rowHeight"},ACCESS_LAST_VISITED_KEY_MAP={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},getItemFromCache=(e,n,r,g)=>{const[$,L,k]=[r[g],e[ACCESS_SIZER_KEY_MAP[g]],r[ACCESS_LAST_VISITED_KEY_MAP[g]]];if(n>k){let oe=0;if(k>=0){const re=$[k];oe=re.offset+re.size}for(let re=k+1;re<=n;re++){const ae=L(re);$[re]={offset:oe,size:ae},oe+=ae}r[ACCESS_LAST_VISITED_KEY_MAP[g]]=n}return $[n]},bs=(e,n,r,g,$,L)=>{for(;r<=g;){const k=r+floor((g-r)/2),oe=getItemFromCache(e,k,n,L).offset;if(oe===$)return k;oe<$?r=k+1:g=k-1}return max(0,r-1)},es=(e,n,r,g,$)=>{const L=$==="column"?e.totalColumn:e.totalRow;let k=1;for(;r{const[$,L]=[n[g],n[ACCESS_LAST_VISITED_KEY_MAP[g]]];return(L>0?$[L].offset:0)>=r?bs(e,n,0,L,r,g):es(e,n,max(0,L),r,g)},getEstimatedTotalHeight=({totalRow:e},{estimatedRowHeight:n,lastVisitedRowIndex:r,row:g})=>{let $=0;if(r>=e&&(r=e-1),r>=0){const oe=g[r];$=oe.offset+oe.size}const k=(e-r-1)*n;return $+k},getEstimatedTotalWidth=({totalColumn:e},{column:n,estimatedColumnWidth:r,lastVisitedColumnIndex:g})=>{let $=0;if(g>e&&(g=e-1),g>=0){const oe=n[g];$=oe.offset+oe.size}const k=(e-g-1)*r;return $+k},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset$1=(e,n,r,g,$,L,k)=>{const[oe,re]=[L==="row"?e.height:e.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[L]],ae=getItemFromCache(e,n,$,L),le=re(e,$),ue=max(0,min(le-oe,ae.offset)),pe=max(0,ae.offset-oe+k+ae.size);switch(r===SMART_ALIGNMENT&&(g>=pe-oe&&g<=ue+oe?r=AUTO_ALIGNMENT:r=CENTERED_ALIGNMENT),r){case START_ALIGNMENT:return ue;case END_ALIGNMENT:return pe;case CENTERED_ALIGNMENT:return Math.round(pe+(ue-pe)/2);case AUTO_ALIGNMENT:default:return g>=pe&&g<=ue?g:pe>ue||g{const g=getItemFromCache(e,n,r,"column");return[g.size,g.offset]},getRowPosition:(e,n,r)=>{const g=getItemFromCache(e,n,r,"row");return[g.size,g.offset]},getColumnOffset:(e,n,r,g,$,L)=>getOffset$1(e,n,r,g,$,"column",L),getRowOffset:(e,n,r,g,$,L)=>getOffset$1(e,n,r,g,$,"row",L),getColumnStartIndexForOffset:(e,n,r)=>findItem(e,r,n,"column"),getColumnStopIndexForStartIndex:(e,n,r,g)=>{const $=getItemFromCache(e,n,g,"column"),L=r+e.width;let k=$.offset+$.size,oe=n;for(;oefindItem(e,r,n,"row"),getRowStopIndexForStartIndex:(e,n,r,g)=>{const{totalRow:$,height:L}=e,k=getItemFromCache(e,n,g,"row"),oe=r+L;let re=k.size+k.offset,ae=n;for(;ae<$-1&&re{const r=({columnIndex:L,rowIndex:k},oe)=>{var re,ae;oe=isUndefined(oe)?!0:oe,isNumber(L)&&(n.value.lastVisitedColumnIndex=Math.min(n.value.lastVisitedColumnIndex,L-1)),isNumber(k)&&(n.value.lastVisitedRowIndex=Math.min(n.value.lastVisitedRowIndex,k-1)),(re=e.exposed)==null||re.getItemStyleCache.value(-1,null,null),oe&&((ae=e.proxy)==null||ae.$forceUpdate())},g=(L,k)=>{r({columnIndex:L},k)},$=(L,k)=>{r({rowIndex:L},k)};Object.assign(e.proxy,{resetAfterColumnIndex:g,resetAfterRowIndex:$,resetAfter:r})},initCache:({estimatedColumnWidth:e=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:n=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:n,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:n})=>{}}),_sfc_main$14=defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$G(e,n,r,g,$,L){return e.item.isTitle?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.ns.be("group","title")),style:normalizeStyle([e.style,{lineHeight:`${e.height}px`}])},toDisplayString(e.item.label),7)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.ns.be("group","split")),style:normalizeStyle(e.style)},[createBaseVNode("span",{class:normalizeClass(e.ns.be("group","split-dash")),style:normalizeStyle({top:`${e.height/2}px`})},null,6)],6))}var GroupItem=_export_sfc$2(_sfc_main$14,[["render",_sfc_render$G],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function useOption(e,{emit:n}){return{hoverItem:()=>{e.disabled||n("hover",e.index)},selectOptionClick:()=>{e.disabled||n("select",e.item,e.index)}}}const SelectProps={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:circle_close_default},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:isValidComponentSize},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0}},OptionProps={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},_sfc_main$13=defineComponent({props:OptionProps,emits:["select","hover"],setup(e,{emit:n}){const r=useNamespace("select"),{hoverItem:g,selectOptionClick:$}=useOption(e,{emit:n});return{ns:r,hoverItem:g,selectOptionClick:$}}}),_hoisted_1$N=["aria-selected"];function _sfc_render$F(e,n,r,g,$,L){return openBlock(),createElementBlock("li",{"aria-selected":e.selected,style:normalizeStyle(e.style),class:normalizeClass([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:n[0]||(n[0]=(...k)=>e.hoverItem&&e.hoverItem(...k)),onClick:n[1]||(n[1]=withModifiers((...k)=>e.selectOptionClick&&e.selectOptionClick(...k),["stop"]))},[renderSlot(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[createBaseVNode("span",null,toDisplayString(e.item.label),1)])],46,_hoisted_1$N)}var OptionItem=_export_sfc$2(_sfc_main$13,[["render",_sfc_render$F],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const selectV2InjectionKey="ElSelectV2Injection";var ElSelectMenu=defineComponent({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:n,expose:r}){const g=inject(selectV2InjectionKey),$=useNamespace("select"),L=ref([]),k=ref(),oe=computed(()=>isUndefined(g.props.estimatedOptionHeight)),re=computed(()=>oe.value?{itemSize:g.props.itemHeight}:{estimatedSize:g.props.estimatedOptionHeight,itemSize:he=>L.value[he]}),ae=(he=[],Oe)=>{const{props:{valueKey:$e}}=g;return isObject$4(Oe)?he&&he.some(Ne=>get(Ne,$e)===get(Oe,$e)):he.includes(Oe)},le=(he,Oe)=>{if(isObject$4(Oe)){const{valueKey:$e}=g.props;return get(he,$e)===get(Oe,$e)}else return he===Oe},ue=(he,Oe)=>{const{valueKey:$e}=g.props;return g.props.multiple?ae(he,get(Oe,$e)):le(he,get(Oe,$e))},pe=(he,Oe)=>{const{disabled:$e,multiple:Ne,multipleLimit:Ue}=g.props;return $e||!Oe&&(Ne?Ue>0&&he.length>=Ue:!1)},de=he=>e.hoveringIndex===he;r({listRef:k,isSized:oe,isItemDisabled:pe,isItemHovering:de,isItemSelected:ue,scrollToItem:he=>{const Oe=k.value;Oe&&Oe.scrollToItem(he)},resetScrollTop:()=>{const he=k.value;he&&he.resetScrollTop()}});const Ce=he=>{const{index:Oe,data:$e,style:Ne}=he,Ue=unref(oe),{itemSize:kt,estimatedSize:Et}=unref(re),{modelValue:Pt}=g.props,{onSelect:Lt,onHover:vn}=g,hn=$e[Oe];if(hn.type==="Group")return createVNode(GroupItem,{item:hn,style:Ne,height:Ue?kt:Et},null);const Dt=ue(Pt,hn),jt=pe(Pt,Dt),bn=de(Oe);return createVNode(OptionItem,mergeProps(he,{selected:Dt,disabled:hn.disabled||jt,created:!!hn.created,hovering:bn,item:hn,onSelect:Lt,onHover:vn}),{default:Sn=>{var Cn;return((Cn=n.default)==null?void 0:Cn.call(n,Sn))||createVNode("span",null,[hn.label])}})},{onKeyboardNavigate:Ie,onKeyboardSelect:_e}=g,At=()=>{Ie("forward")},qe=()=>{Ie("backward")},xe=()=>{g.expanded=!1},Ve=he=>{const{code:Oe}=he,{tab:$e,esc:Ne,down:Ue,up:kt,enter:Et}=EVENT_CODE;switch(Oe!==$e&&(he.preventDefault(),he.stopPropagation()),Oe){case $e:case Ne:{xe();break}case Ue:{At();break}case kt:{qe();break}case Et:{_e();break}}};return()=>{var he;const{data:Oe,width:$e}=e,{height:Ne,multiple:Ue,scrollbarAlwaysOn:kt}=g.props;if(Oe.length===0)return createVNode("div",{class:$.b("dropdown"),style:{width:`${$e}px`}},[(he=n.empty)==null?void 0:he.call(n)]);const Et=unref(oe)?FixedSizeList:DynamicSizeList;return createVNode("div",{class:[$.b("dropdown"),$.is("multiple",Ue)]},[createVNode(Et,mergeProps({ref:k},unref(re),{className:$.be("dropdown","list"),scrollbarAlwaysOn:kt,data:Oe,height:Ne,width:$e,total:Oe.length,onKeydown:Ve}),{default:Pt=>createVNode(Ce,Pt,null)})])}}});function useAllowCreate(e,n){const r=ref(0),g=ref(null),$=computed(()=>e.allowCreate&&e.filterable);function L(le){const ue=pe=>pe.value===le;return e.options&&e.options.some(ue)||n.createdOptions.some(ue)}function k(le){!$.value||(e.multiple&&le.created?r.value++:g.value=le)}function oe(le){if($.value)if(le&&le.length>0&&!L(le)){const ue={value:le,label:le,created:!0,disabled:!1};n.createdOptions.length>=r.value?n.createdOptions[r.value]=ue:n.createdOptions.push(ue)}else if(e.multiple)n.createdOptions.length=r.value;else{const ue=g.value;n.createdOptions.length=0,ue&&ue.created&&n.createdOptions.push(ue)}}function re(le){if(!$.value||!le||!le.created||le.created&&e.reserveKeyword&&n.inputValue===le.label)return;const ue=n.createdOptions.findIndex(pe=>pe.value===le.value);~ue&&(n.createdOptions.splice(ue,1),r.value--)}function ae(){$.value&&(n.createdOptions.length=0,r.value=0)}return{createNewOption:oe,removeNewOption:re,selectNewOption:k,clearAllNewOption:ae}}const flattenOptions=e=>{const n=[];return e.forEach(r=>{isArray$4(r.options)?(n.push({label:r.label,isTitle:!0,type:"Group"}),r.options.forEach(g=>{n.push(g)}),n.push({type:"Group"})):n.push(r)}),n};function useInput(e){const n=ref(!1);return{handleCompositionStart:()=>{n.value=!0},handleCompositionUpdate:L=>{const k=L.target.value,oe=k[k.length-1]||"";n.value=!isKorean(oe)},handleCompositionEnd:L=>{n.value&&(n.value=!1,isFunction$1(e)&&e(L))}}}const DEFAULT_INPUT_PLACEHOLDER="",MINIMUM_INPUT_WIDTH=11,TAG_BASE_WIDTH={larget:51,default:42,small:33},useSelect$1=(e,n)=>{const{t:r}=useLocale(),g=useNamespace("select-v2"),$=useNamespace("input"),{form:L,formItem:k}=useFormItem(),oe=reactive({inputValue:DEFAULT_INPUT_PLACEHOLDER,displayInputValue:DEFAULT_INPUT_PLACEHOLDER,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:"",query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),re=ref(-1),ae=ref(-1),le=ref(null),ue=ref(null),pe=ref(null),de=ref(null),Fe=ref(null),ze=ref(null),Ce=ref(null),Ie=ref(!1),_e=computed(()=>e.disabled||L?.disabled),At=computed(()=>{const oo=kt.value.length*34;return oo>e.height?e.height:oo}),qe=computed(()=>e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!==""),xe=computed(()=>{const oo=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:qe.value;return e.clearable&&!_e.value&&oe.comboBoxHovering&&oo}),Ve=computed(()=>e.remote&&e.filterable?"":arrow_up_default),he=computed(()=>Ve.value&&g.is("reverse",Ie.value)),Oe=computed(()=>k?.validateState||""),$e=computed(()=>ValidateComponentsMap[Oe.value]),Ne=computed(()=>e.remote?300:0),Ue=computed(()=>{const oo=kt.value;return e.loading?e.loadingText||r("el.select.loading"):e.remote&&oe.inputValue===""&&oo.length===0?!1:e.filterable&&oe.inputValue&&oo.length>0?e.noMatchText||r("el.select.noMatch"):oo.length===0?e.noDataText||r("el.select.noData"):null}),kt=computed(()=>{const oo=go=>{var Co;const Kn=oe.inputValue;return Kn?(Co=go.label)==null?void 0:Co.includes(Kn):!0};return e.loading?[]:flattenOptions(e.options.concat(oe.createdOptions).map(go=>{if(isArray$4(go.options)){const Co=go.options.filter(oo);if(Co.length>0)return{...go,options:Co}}else if(e.remote||oo(go))return go;return null}).filter(go=>go!==null))}),Et=computed(()=>kt.value.every(oo=>oo.disabled)),Pt=useSize(),Lt=computed(()=>Pt.value==="small"?"small":"default"),vn=computed(()=>{const oo=ze.value,go=Lt.value||"default",Co=oo?Number.parseInt(getComputedStyle(oo).paddingLeft):0,Kn=oo?Number.parseInt(getComputedStyle(oo).paddingRight):0;return oe.selectWidth-Kn-Co-TAG_BASE_WIDTH[go]}),hn=()=>{var oo;ae.value=((oo=Fe.value)==null?void 0:oo.offsetWidth)||200},Dt=computed(()=>({width:`${oe.calculatedWidth===0?MINIMUM_INPUT_WIDTH:Math.ceil(oe.calculatedWidth)+MINIMUM_INPUT_WIDTH}px`})),jt=computed(()=>isArray$4(e.modelValue)?e.modelValue.length===0&&!oe.displayInputValue:e.filterable?oe.displayInputValue.length===0:!0),bn=computed(()=>{const oo=e.placeholder||r("el.select.placeholder");return e.multiple?oo:oe.selectedLabel||oo}),Sn=computed(()=>{var oo,go;return(go=(oo=de.value)==null?void 0:oo.popperRef)==null?void 0:go.contentRef}),Cn=computed(()=>{if(e.multiple){const oo=e.modelValue.length;if(e.modelValue.length>0)return kt.value.findIndex(go=>go.value===e.modelValue[oo-1])}else if(e.modelValue)return kt.value.findIndex(oo=>oo.value===e.modelValue);return-1}),On=computed({get(){return Ie.value&&Ue.value!==!1},set(oo){Ie.value=oo}}),{createNewOption:En,removeNewOption:An,selectNewOption:In,clearAllNewOption:$n}=useAllowCreate(e,oe),{handleCompositionStart:Pn,handleCompositionUpdate:Dn,handleCompositionEnd:Mn}=useInput(oo=>to(oo)),Fn=()=>{var oo,go,Co;(go=(oo=ue.value).focus)==null||go.call(oo),(Co=de.value)==null||Co.updatePopper()},kn=()=>{if(!e.automaticDropdown&&!_e.value)return oe.isComposing&&(oe.softFocus=!0),nextTick(()=>{var oo,go;Ie.value=!Ie.value,(go=(oo=ue.value)==null?void 0:oo.focus)==null||go.call(oo)})},Nn=()=>(e.filterable&&oe.inputValue!==oe.selectedLabel&&(oe.query=oe.selectedLabel),wn(oe.inputValue),nextTick(()=>{En(oe.inputValue)})),Rn=debounce(Nn,Ne.value),wn=oo=>{oe.previousQuery!==oo&&(oe.previousQuery=oo,e.filterable&&isFunction$1(e.filterMethod)?e.filterMethod(oo):e.filterable&&e.remote&&isFunction$1(e.remoteMethod)&&e.remoteMethod(oo))},Tn=oo=>{isEqual$1(e.modelValue,oo)||n(CHANGE_EVENT,oo)},xn=oo=>{n(UPDATE_MODEL_EVENT,oo),Tn(oo),oe.previousValue=oo.toString()},Bn=(oo=[],go)=>{if(!isObject$4(go))return oo.indexOf(go);const Co=e.valueKey;let Kn=-1;return oo.some((io,fo)=>get(io,Co)===get(go,Co)?(Kn=fo,!0):!1),Kn},Ln=oo=>isObject$4(oo)?get(oo,e.valueKey):oo,Hn=oo=>isObject$4(oo)?oo.label:oo,zn=()=>{if(!(e.collapseTags&&!e.filterable))return nextTick(()=>{var oo,go;if(!ue.value)return;const Co=ze.value;Fe.value.height=Co.offsetHeight,Ie.value&&Ue.value!==!1&&((go=(oo=de.value)==null?void 0:oo.updatePopper)==null||go.call(oo))})},Jn=()=>{var oo,go;if(co(),hn(),(go=(oo=de.value)==null?void 0:oo.updatePopper)==null||go.call(oo),e.multiple)return zn()},co=()=>{const oo=ze.value;oo&&(oe.selectWidth=oo.getBoundingClientRect().width)},Gn=(oo,go,Co=!0)=>{var Kn,io;if(e.multiple){let fo=e.modelValue.slice();const vo=Bn(fo,Ln(oo));vo>-1?(fo=[...fo.slice(0,vo),...fo.slice(vo+1)],oe.cachedOptions.splice(vo,1),An(oo)):(e.multipleLimit<=0||fo.length{const{valueKey:Co}=e,Kn=e.modelValue.indexOf(get(go,Co));if(Kn>-1&&!_e.value){const io=[...e.modelValue.slice(0,Kn),...e.modelValue.slice(Kn+1)];return oe.cachedOptions.splice(Kn,1),xn(io),n("remove-tag",get(go,Co)),oe.softFocus=!0,An(go),nextTick(Fn)}oo.stopPropagation()},ao=oo=>{const go=oe.isComposing;oe.isComposing=!0,oe.softFocus?oe.softFocus=!1:go||n("focus",oo)},ho=()=>(oe.softFocus=!1,nextTick(()=>{var oo,go;(go=(oo=ue.value)==null?void 0:oo.blur)==null||go.call(oo),Ce.value&&(oe.calculatedWidth=Ce.value.getBoundingClientRect().width),oe.isSilentBlur?oe.isSilentBlur=!1:oe.isComposing&&n("blur"),oe.isComposing=!1})),Yn=()=>{oe.displayInputValue.length>0?_n(""):Ie.value=!1},Wn=oo=>{if(oe.displayInputValue.length===0){oo.preventDefault();const go=e.modelValue.slice();go.pop(),An(oe.cachedOptions.pop()),xn(go)}},Vn=()=>{let oo;return isArray$4(e.modelValue)?oo=[]:oo="",oe.softFocus=!0,e.multiple?oe.cachedOptions=[]:oe.selectedLabel="",Ie.value=!1,xn(oo),n("clear"),$n(),nextTick(Fn)},_n=oo=>{oe.displayInputValue=oo,oe.inputValue=oo},Qn=(oo,go=void 0)=>{const Co=kt.value;if(!["forward","backward"].includes(oo)||_e.value||Co.length<=0||Et.value)return;if(!Ie.value)return kn();go===void 0&&(go=oe.hoveringIndex);let Kn=-1;oo==="forward"?(Kn=go+1,Kn>=Co.length&&(Kn=0)):oo==="backward"&&(Kn=go-1,Kn<0&&(Kn=Co.length-1));const io=Co[Kn];if(io.disabled||io.type==="Group")return Qn(oo,Kn);Un(Kn),uo(Kn)},jn=()=>{if(Ie.value)~oe.hoveringIndex&&kt.value[oe.hoveringIndex]&&Gn(kt.value[oe.hoveringIndex],oe.hoveringIndex,!1);else return kn()},Un=oo=>{oe.hoveringIndex=oo},Xn=()=>{oe.hoveringIndex=-1},Zn=()=>{var oo;const go=ue.value;go&&((oo=go.focus)==null||oo.call(go))},to=oo=>{const go=oo.target.value;if(_n(go),oe.displayInputValue.length>0&&!Ie.value&&(Ie.value=!0),oe.calculatedWidth=Ce.value.getBoundingClientRect().width,e.multiple&&zn(),e.remote)Rn();else return Nn()},ro=()=>(Ie.value=!1,ho()),lo=()=>(oe.inputValue=oe.displayInputValue,nextTick(()=>{~Cn.value&&(Un(Cn.value),uo(oe.hoveringIndex))})),uo=oo=>{pe.value.scrollToItem(oo)},yo=()=>{if(Xn(),e.multiple)if(e.modelValue.length>0){let oo=!1;oe.cachedOptions.length=0,oe.previousValue=e.modelValue.toString(),e.modelValue.forEach(go=>{const Co=kt.value.findIndex(Kn=>Ln(Kn)===go);~Co&&(oe.cachedOptions.push(kt.value[Co]),oo||Un(Co),oo=!0)})}else oe.cachedOptions=[],oe.previousValue="";else if(qe.value){oe.previousValue=e.modelValue;const oo=kt.value,go=oo.findIndex(Co=>Ln(Co)===Ln(e.modelValue));~go?(oe.selectedLabel=oo[go].label,Un(go)):oe.selectedLabel=`${e.modelValue}`}else oe.selectedLabel="",oe.previousValue="";$n(),hn()};return watch(Ie,oo=>{var go,Co;n("visible-change",oo),oo?(Co=(go=de.value).update)==null||Co.call(go):(oe.displayInputValue="",oe.previousQuery=null,En(""))}),watch(()=>e.modelValue,(oo,go)=>{var Co;(!oo||oo.toString()!==oe.previousValue)&&yo(),!isEqual$1(oo,go)&&e.validateEvent&&((Co=k?.validate)==null||Co.call(k,"change").catch(Kn=>void 0))},{deep:!0}),watch(()=>e.options,()=>{const oo=ue.value;(!oo||oo&&document.activeElement!==oo)&&yo()},{deep:!0}),watch(kt,()=>nextTick(pe.value.resetScrollTop)),onMounted(()=>{yo()}),useResizeObserver(Fe,Jn),{collapseTagSize:Lt,currentPlaceholder:bn,expanded:Ie,emptyText:Ue,popupHeight:At,debounce:Ne,filteredOptions:kt,iconComponent:Ve,iconReverse:he,inputWrapperStyle:Dt,popperSize:ae,dropdownMenuVisible:On,hasModelValue:qe,shouldShowPlaceholder:jt,selectDisabled:_e,selectSize:Pt,showClearBtn:xe,states:oe,tagMaxWidth:vn,nsSelectV2:g,nsInput:$,calculatorRef:Ce,controlRef:le,inputRef:ue,menuRef:pe,popper:de,selectRef:Fe,selectionRef:ze,popperRef:Sn,validateState:Oe,validateIcon:$e,debouncedOnInputChange:Rn,deleteTag:eo,getLabel:Hn,getValueKey:Ln,handleBlur:ho,handleClear:Vn,handleClickOutside:ro,handleDel:Wn,handleEsc:Yn,handleFocus:ao,handleMenuEnter:lo,handleResize:Jn,toggleMenu:kn,scrollTo:uo,onInput:to,onKeyboardNavigate:Qn,onKeyboardSelect:jn,onSelect:Gn,onHover:Un,onUpdateInputValue:_n,handleCompositionStart:Pn,handleCompositionEnd:Mn,handleCompositionUpdate:Dn}},_sfc_main$12=defineComponent({name:"ElSelectV2",components:{ElSelectMenu,ElTag,ElTooltip,ElIcon},directives:{ClickOutside,ModelText:vModelText},props:SelectProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:n}){const r=useSelect$1(e,n);return provide(selectV2InjectionKey,{props:reactive({...toRefs(e),height:r.popupHeight}),onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),r}}),_hoisted_1$M={key:0},_hoisted_2$B=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],_hoisted_3$j=["textContent"],_hoisted_4$g=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],_hoisted_5$c=["textContent"];function _sfc_render$E(e,n,r,g,$,L){const k=resolveComponent("el-tag"),oe=resolveComponent("el-tooltip"),re=resolveComponent("el-icon"),ae=resolveComponent("el-select-menu"),le=resolveDirective("model-text"),ue=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:n[23]||(n[23]=withModifiers((...pe)=>e.toggleMenu&&e.toggleMenu(...pe),["stop"])),onMouseenter:n[24]||(n[24]=pe=>e.states.comboBoxHovering=!0),onMouseleave:n[25]||(n[25]=pe=>e.states.comboBoxHovering=!1)},[createVNode(oe,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:"bottom-start",pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:n[22]||(n[22]=pe=>e.states.inputValue=e.states.displayInputValue)},{default:withCtx(()=>{var pe;return[createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(openBlock(),createElementBlock("div",_hoisted_1$M,[renderSlot(e.$slots,"prefix")])):createCommentVNode("v-if",!0),e.multiple?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.nsSelectV2.e("selected-item"))},[createVNode(k,{closable:!e.selectDisabled&&!((pe=e.states.cachedOptions[0])!=null&&pe.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:n[0]||(n[0]=de=>e.deleteTag(de,e.states.cachedOptions[0]))},{default:withCtx(()=>{var de;return[createBaseVNode("span",{class:normalizeClass(e.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},toDisplayString((de=e.states.cachedOptions[0])==null?void 0:de.label),7)]}),_:1},8,["closable","size"]),e.modelValue.length>1?(openBlock(),createBlock(k,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:withCtx(()=>[e.collapseTagsTooltip?(openBlock(),createBlock(oe,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(e.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},"+ "+toDisplayString(e.modelValue.length-1),7)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(e.nsSelectV2.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.states.cachedOptions.slice(1),(de,Fe)=>(openBlock(),createElementBlock("div",{key:Fe,class:normalizeClass(e.nsSelectV2.e("selected-item"))},[(openBlock(),createBlock(k,{key:e.getValueKey(de),closable:!e.selectDisabled&&!de.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:ze=>e.deleteTag(ze,de)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(e.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},toDisplayString(e.getLabel(de)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(e.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},"+ "+toDisplayString(e.modelValue.length-1),7))]),_:1},8,["size"])):createCommentVNode("v-if",!0)],2)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(e.states.cachedOptions,(de,Fe)=>(openBlock(),createElementBlock("div",{key:Fe,class:normalizeClass(e.nsSelectV2.e("selected-item"))},[(openBlock(),createBlock(k,{key:e.getValueKey(de),closable:!e.selectDisabled&&!de.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:ze=>e.deleteTag(ze,de)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(e.nsSelectV2.e("tags-text")),style:normalizeStyle({maxWidth:`${e.tagMaxWidth}px`})},toDisplayString(e.getLabel(de)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128)),createBaseVNode("div",{class:normalizeClass([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:normalizeStyle(e.inputWrapperStyle)},[withDirectives(createBaseVNode("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:normalizeClass([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":n[1]||(n[1]=(...de)=>e.onUpdateInputValue&&e.onUpdateInputValue(...de)),onFocus:n[2]||(n[2]=(...de)=>e.handleFocus&&e.handleFocus(...de)),onInput:n[3]||(n[3]=(...de)=>e.onInput&&e.onInput(...de)),onCompositionstart:n[4]||(n[4]=(...de)=>e.handleCompositionStart&&e.handleCompositionStart(...de)),onCompositionupdate:n[5]||(n[5]=(...de)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...de)),onCompositionend:n[6]||(n[6]=(...de)=>e.handleCompositionEnd&&e.handleCompositionEnd(...de)),onKeydown:[n[7]||(n[7]=withKeys(withModifiers(de=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),n[8]||(n[8]=withKeys(withModifiers(de=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),n[9]||(n[9]=withKeys(withModifiers((...de)=>e.onKeyboardSelect&&e.onKeyboardSelect(...de),["stop","prevent"]),["enter"])),n[10]||(n[10]=withKeys(withModifiers((...de)=>e.handleEsc&&e.handleEsc(...de),["stop","prevent"]),["esc"])),n[11]||(n[11]=withKeys(withModifiers((...de)=>e.handleDel&&e.handleDel(...de),["stop"]),["delete"]))]},null,42,_hoisted_2$B),[[le,e.states.displayInputValue]]),e.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass(e.nsSelectV2.e("input-calculator")),textContent:toDisplayString(e.states.displayInputValue)},null,10,_hoisted_3$j)):createCommentVNode("v-if",!0)],6)],2)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",{class:normalizeClass([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[withDirectives(createBaseVNode("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:normalizeClass(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:n[12]||(n[12]=(...de)=>e.handleCompositionStart&&e.handleCompositionStart(...de)),onCompositionupdate:n[13]||(n[13]=(...de)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...de)),onCompositionend:n[14]||(n[14]=(...de)=>e.handleCompositionEnd&&e.handleCompositionEnd(...de)),onFocus:n[15]||(n[15]=(...de)=>e.handleFocus&&e.handleFocus(...de)),onInput:n[16]||(n[16]=(...de)=>e.onInput&&e.onInput(...de)),onKeydown:[n[17]||(n[17]=withKeys(withModifiers(de=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),n[18]||(n[18]=withKeys(withModifiers(de=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),n[19]||(n[19]=withKeys(withModifiers((...de)=>e.onKeyboardSelect&&e.onKeyboardSelect(...de),["stop","prevent"]),["enter"])),n[20]||(n[20]=withKeys(withModifiers((...de)=>e.handleEsc&&e.handleEsc(...de),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":n[21]||(n[21]=(...de)=>e.onUpdateInputValue&&e.onUpdateInputValue(...de))},null,42,_hoisted_4$g),[[le,e.states.displayInputValue]])],2),e.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:toDisplayString(e.states.displayInputValue)},null,10,_hoisted_5$c)):createCommentVNode("v-if",!0)],64)),e.shouldShowPlaceholder?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.states.isComposing||(e.placeholder&&e.multiple?e.modelValue.length===0:!e.hasModelValue))])},toDisplayString(e.currentPlaceholder),3)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(e.nsSelectV2.e("suffix"))},[e.iconComponent?withDirectives((openBlock(),createBlock(re,{key:0,class:normalizeClass([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])),[[vShow,!e.showClearBtn]]):createCommentVNode("v-if",!0),e.showClearBtn&&e.clearIcon?(openBlock(),createBlock(re,{key:1,class:normalizeClass([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:withModifiers(e.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),e.validateState&&e.validateIcon?(openBlock(),createBlock(re,{key:2,class:normalizeClass([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]}),content:withCtx(()=>[createVNode(ae,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:withCtx(pe=>[renderSlot(e.$slots,"default",normalizeProps(guardReactiveProps(pe)))]),empty:withCtx(()=>[renderSlot(e.$slots,"empty",{},()=>[createBaseVNode("p",{class:normalizeClass(e.nsSelectV2.e("empty"))},toDisplayString(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","transition","persistent","onBeforeShow"])],34)),[[ue,e.handleClickOutside,e.popperRef]])}var Select=_export_sfc$2(_sfc_main$12,[["render",_sfc_render$E],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Select.install=e=>{e.component(Select.name,Select)};const _Select=Select,ElSelectV2=_Select,skeletonProps=buildProps({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),skeletonItemProps=buildProps({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),__default__$n={name:"ElSkeletonItem"},_sfc_main$11=defineComponent({...__default__$n,props:skeletonItemProps,setup(e){const n=useNamespace("skeleton");return(r,g)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(n).e("item"),unref(n).e(r.variant)])},[r.variant==="image"?(openBlock(),createBlock(unref(picture_filled_default),{key:0})):createCommentVNode("v-if",!0)],2))}});var SkeletonItem=_export_sfc$2(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const __default__$m={name:"ElSkeleton"},_sfc_main$10=defineComponent({...__default__$m,props:skeletonProps,setup(e,{expose:n}){const r=e,g=useNamespace("skeleton"),$=useThrottleRender(toRef(r,"loading"),r.throttle);return n({uiLoading:$}),(L,k)=>unref($)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(g).b(),unref(g).is("animated",L.animated)]},L.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(L.count,oe=>(openBlock(),createElementBlock(Fragment,{key:oe},[L.loading?renderSlot(L.$slots,"template",{key:oe},()=>[createVNode(SkeletonItem,{class:normalizeClass(unref(g).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(L.rows,re=>(openBlock(),createBlock(SkeletonItem,{key:re,class:normalizeClass([unref(g).e("paragraph"),unref(g).is("last",re===L.rows&&L.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot(L.$slots,"default",normalizeProps(mergeProps({key:1},L.$attrs)))}});var Skeleton=_export_sfc$2(_sfc_main$10,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const ElSkeleton=withInstall(Skeleton,{SkeletonItem}),ElSkeletonItem=withNoopInstall(SkeletonItem),sliderProps=buildProps({modelValue:{type:definePropType([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:useSizeProp,inputSize:useSizeProp,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:definePropType(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:definePropType(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ee,default:"top"},marks:{type:definePropType(Object)},validateEvent:{type:Boolean,default:!0}}),isValidValue$1=e=>isNumber(e)||isArray$4(e)&&e.every(isNumber),sliderEmits={[UPDATE_MODEL_EVENT]:isValidValue$1,[INPUT_EVENT]:isValidValue$1,[CHANGE_EVENT]:isValidValue$1},useLifecycle=(e,n,r)=>{const g=ref();return onMounted(async()=>{e.range?(Array.isArray(e.modelValue)?(n.firstValue=Math.max(e.min,e.modelValue[0]),n.secondValue=Math.min(e.max,e.modelValue[1])):(n.firstValue=e.min,n.secondValue=e.max),n.oldValue=[n.firstValue,n.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?n.firstValue=e.min:n.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),n.oldValue=n.firstValue),useEventListener(window,"resize",r),await nextTick(),r()}),{sliderWrapper:g}},useMarks=e=>computed(()=>e.marks?Object.keys(e.marks).map(parseFloat).sort((r,g)=>r-g).filter(r=>r<=e.max&&r>=e.min).map(r=>({point:r,position:(r-e.min)*100/(e.max-e.min),mark:e.marks[r]})):[]),useSlide=(e,n,r)=>{const{form:g,formItem:$}=useFormItem(),L=shallowRef(),k=ref(),oe=ref(),re={firstButton:k,secondButton:oe},ae=computed(()=>e.disabled||g?.disabled||!1),le=computed(()=>Math.min(n.firstValue,n.secondValue)),ue=computed(()=>Math.max(n.firstValue,n.secondValue)),pe=computed(()=>e.range?`${100*(ue.value-le.value)/(e.max-e.min)}%`:`${100*(n.firstValue-e.min)/(e.max-e.min)}%`),de=computed(()=>e.range?`${100*(le.value-e.min)/(e.max-e.min)}%`:"0%"),Fe=computed(()=>e.vertical?{height:e.height}:{}),ze=computed(()=>e.vertical?{height:pe.value,bottom:de.value}:{width:pe.value,left:de.value}),Ce=()=>{L.value&&(n.sliderSize=L.value[`client${e.vertical?"Height":"Width"}`])},Ie=Ue=>{const kt=e.min+Ue*(e.max-e.min)/100;if(!e.range)return k;let Et;return Math.abs(le.value-kt)n.secondValue?"firstButton":"secondButton",re[Et]},_e=Ue=>{const kt=Ie(Ue);return kt.value.setPosition(Ue),kt},At=Ue=>{n.firstValue=Ue,xe(e.range?[le.value,ue.value]:Ue)},qe=Ue=>{n.secondValue=Ue,e.range&&xe([le.value,ue.value])},xe=Ue=>{r(UPDATE_MODEL_EVENT,Ue),r(INPUT_EVENT,Ue)},Ve=async()=>{await nextTick(),r(CHANGE_EVENT,e.range?[le.value,ue.value]:e.modelValue)},he=Ue=>{var kt,Et,Pt,Lt,vn,hn;if(ae.value||n.dragging)return;Ce();let Dt=0;if(e.vertical){const jt=(Pt=(Et=(kt=Ue.touches)==null?void 0:kt.item(0))==null?void 0:Et.clientY)!=null?Pt:Ue.clientY;Dt=(L.value.getBoundingClientRect().bottom-jt)/n.sliderSize*100}else{const jt=(hn=(vn=(Lt=Ue.touches)==null?void 0:Lt.item(0))==null?void 0:vn.clientX)!=null?hn:Ue.clientX,bn=L.value.getBoundingClientRect().left;Dt=(jt-bn)/n.sliderSize*100}if(!(Dt<0||Dt>100))return _e(Dt)};return{elFormItem:$,slider:L,firstButton:k,secondButton:oe,sliderDisabled:ae,minValue:le,maxValue:ue,runwayStyle:Fe,barStyle:ze,resetSize:Ce,setPosition:_e,emitChange:Ve,onSliderWrapperPrevent:Ue=>{var kt,Et;(((kt=re.firstButton.value)==null?void 0:kt.dragging)||((Et=re.secondButton.value)==null?void 0:Et.dragging))&&Ue.preventDefault()},onSliderClick:Ue=>{he(Ue)&&Ve()},onSliderDown:async Ue=>{const kt=he(Ue);kt&&(await nextTick(),kt.value.onButtonDown(Ue))},setFirstValue:At,setSecondValue:qe}},{left,down,right,up,home,end,pageUp,pageDown}=EVENT_CODE,useTooltip=(e,n,r)=>{const g=ref(),$=ref(!1),L=computed(()=>n.value instanceof Function),k=computed(()=>L.value&&n.value(e.modelValue)||e.modelValue),oe=debounce(()=>{r.value&&($.value=!0)},50),re=debounce(()=>{r.value&&($.value=!1)},50);return{tooltip:g,tooltipVisible:$,formatValue:k,displayTooltip:oe,hideTooltip:re}},useSliderButton=(e,n,r)=>{const{disabled:g,min:$,max:L,step:k,showTooltip:oe,precision:re,sliderSize:ae,formatTooltip:le,emitChange:ue,resetSize:pe,updateDragging:de}=inject(sliderContextKey),{tooltip:Fe,tooltipVisible:ze,formatValue:Ce,displayTooltip:Ie,hideTooltip:_e}=useTooltip(e,le,oe),At=ref(),qe=computed(()=>`${(e.modelValue-$.value)/(L.value-$.value)*100}%`),xe=computed(()=>e.vertical?{bottom:qe.value}:{left:qe.value}),Ve=()=>{n.hovering=!0,Ie()},he=()=>{n.hovering=!1,n.dragging||_e()},Oe=Cn=>{g.value||(Cn.preventDefault(),Dt(Cn),window.addEventListener("mousemove",jt),window.addEventListener("touchmove",jt),window.addEventListener("mouseup",bn),window.addEventListener("touchend",bn),window.addEventListener("contextmenu",bn),At.value.focus())},$e=Cn=>{g.value||(n.newPosition=Number.parseFloat(qe.value)+Cn/(L.value-$.value)*100,Sn(n.newPosition),ue())},Ne=()=>{$e(-k.value)},Ue=()=>{$e(k.value)},kt=()=>{$e(-k.value*4)},Et=()=>{$e(k.value*4)},Pt=()=>{g.value||(Sn(0),ue())},Lt=()=>{g.value||(Sn(100),ue())},vn=Cn=>{let On=!0;[left,down].includes(Cn.key)?Ne():[right,up].includes(Cn.key)?Ue():Cn.key===home?Pt():Cn.key===end?Lt():Cn.key===pageDown?kt():Cn.key===pageUp?Et():On=!1,On&&Cn.preventDefault()},hn=Cn=>{let On,En;return Cn.type.startsWith("touch")?(En=Cn.touches[0].clientY,On=Cn.touches[0].clientX):(En=Cn.clientY,On=Cn.clientX),{clientX:On,clientY:En}},Dt=Cn=>{n.dragging=!0,n.isClick=!0;const{clientX:On,clientY:En}=hn(Cn);e.vertical?n.startY=En:n.startX=On,n.startPosition=Number.parseFloat(qe.value),n.newPosition=n.startPosition},jt=Cn=>{if(n.dragging){n.isClick=!1,Ie(),pe();let On;const{clientX:En,clientY:An}=hn(Cn);e.vertical?(n.currentY=An,On=(n.startY-n.currentY)/ae.value*100):(n.currentX=En,On=(n.currentX-n.startX)/ae.value*100),n.newPosition=n.startPosition+On,Sn(n.newPosition)}},bn=()=>{n.dragging&&(setTimeout(()=>{n.dragging=!1,n.hovering||_e(),n.isClick||(Sn(n.newPosition),ue())},0),window.removeEventListener("mousemove",jt),window.removeEventListener("touchmove",jt),window.removeEventListener("mouseup",bn),window.removeEventListener("touchend",bn),window.removeEventListener("contextmenu",bn))},Sn=async Cn=>{if(Cn===null||Number.isNaN(+Cn))return;Cn<0?Cn=0:Cn>100&&(Cn=100);const On=100/((L.value-$.value)/k.value);let An=Math.round(Cn/On)*On*(L.value-$.value)*.01+$.value;An=Number.parseFloat(An.toFixed(re.value)),An!==e.modelValue&&r(UPDATE_MODEL_EVENT,An),!n.dragging&&e.modelValue!==n.oldValue&&(n.oldValue=e.modelValue),await nextTick(),n.dragging&&Ie(),Fe.value.updatePopper()};return watch(()=>n.dragging,Cn=>{de(Cn)}),{disabled:g,button:At,tooltip:Fe,tooltipVisible:ze,showTooltip:oe,wrapperStyle:xe,formatValue:Ce,handleMouseEnter:Ve,handleMouseLeave:he,onButtonDown:Oe,onKeyDown:vn,setPosition:Sn}},useStops=(e,n,r,g)=>({stops:computed(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const k=(e.max-e.min)/e.step,oe=100*e.step/(e.max-e.min),re=Array.from({length:k-1}).map((ae,le)=>(le+1)*oe);return e.range?re.filter(ae=>ae<100*(r.value-e.min)/(e.max-e.min)||ae>100*(g.value-e.min)/(e.max-e.min)):re.filter(ae=>ae>100*(n.firstValue-e.min)/(e.max-e.min))}),getStopStyle:k=>e.vertical?{bottom:`${k}%`}:{left:`${k}%`}}),useWatch$1=(e,n,r,g,$,L)=>{const k=ae=>{$(UPDATE_MODEL_EVENT,ae),$(INPUT_EVENT,ae)},oe=()=>e.range?![r.value,g.value].every((ae,le)=>ae===n.oldValue[le]):e.modelValue!==n.oldValue,re=()=>{var ae,le;if(e.min>e.max){throwError("Slider","min should not be greater than max.");return}const ue=e.modelValue;e.range&&Array.isArray(ue)?ue[1]e.max?k([e.max,e.max]):ue[0]e.max?k([ue[0],e.max]):(n.firstValue=ue[0],n.secondValue=ue[1],oe()&&(e.validateEvent&&((ae=L?.validate)==null||ae.call(L,"change").catch(pe=>void 0)),n.oldValue=ue.slice())):!e.range&&typeof ue=="number"&&!Number.isNaN(ue)&&(uee.max?k(e.max):(n.firstValue=ue,oe()&&(e.validateEvent&&((le=L?.validate)==null||le.call(L,"change").catch(pe=>void 0)),n.oldValue=ue)))};re(),watch(()=>n.dragging,ae=>{ae||re()}),watch(()=>e.modelValue,(ae,le)=>{n.dragging||Array.isArray(ae)&&Array.isArray(le)&&ae.every((ue,pe)=>ue===le[pe])&&n.firstValue===ae[0]&&n.secondValue===ae[1]||re()},{deep:!0}),watch(()=>[e.min,e.max],()=>{re()})},sliderButtonProps=buildProps({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ee,default:"top"}}),sliderButtonEmits={[UPDATE_MODEL_EVENT]:e=>isNumber(e)},_hoisted_1$L=["tabindex"],__default__$l={name:"ElSliderButton"},_sfc_main$$=defineComponent({...__default__$l,props:sliderButtonProps,emits:sliderButtonEmits,setup(e,{expose:n,emit:r}){const g=e,$=useNamespace("slider"),L=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:g.modelValue}),{disabled:k,button:oe,tooltip:re,showTooltip:ae,tooltipVisible:le,wrapperStyle:ue,formatValue:pe,handleMouseEnter:de,handleMouseLeave:Fe,onButtonDown:ze,onKeyDown:Ce,setPosition:Ie}=useSliderButton(g,L,r),{hovering:_e,dragging:At}=toRefs(L);return n({onButtonDown:ze,onKeyDown:Ce,setPosition:Ie,hovering:_e,dragging:At}),(qe,xe)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:oe,class:normalizeClass([unref($).e("button-wrapper"),{hover:unref(_e),dragging:unref(At)}]),style:normalizeStyle(unref(ue)),tabindex:unref(k)?-1:0,onMouseenter:xe[0]||(xe[0]=(...Ve)=>unref(de)&&unref(de)(...Ve)),onMouseleave:xe[1]||(xe[1]=(...Ve)=>unref(Fe)&&unref(Fe)(...Ve)),onMousedown:xe[2]||(xe[2]=(...Ve)=>unref(ze)&&unref(ze)(...Ve)),onTouchstart:xe[3]||(xe[3]=(...Ve)=>unref(ze)&&unref(ze)(...Ve)),onFocus:xe[4]||(xe[4]=(...Ve)=>unref(de)&&unref(de)(...Ve)),onBlur:xe[5]||(xe[5]=(...Ve)=>unref(Fe)&&unref(Fe)(...Ve)),onKeydown:xe[6]||(xe[6]=(...Ve)=>unref(Ce)&&unref(Ce)(...Ve))},[createVNode(unref(ElTooltip),{ref_key:"tooltip",ref:re,visible:unref(le),placement:qe.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":qe.tooltipClass,disabled:!unref(ae),persistent:""},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString(unref(pe)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref($).e("button"),{hover:unref(_e),dragging:unref(At)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,_hoisted_1$L))}});var SliderButton=_export_sfc$2(_sfc_main$$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const sliderMarkerProps=buildProps({mark:{type:definePropType([String,Object]),default:void 0}});var SliderMarker=defineComponent({name:"ElSliderMarker",props:sliderMarkerProps,setup(e){const n=useNamespace("slider"),r=computed(()=>isString$2(e.mark)?e.mark:e.mark.label),g=computed(()=>isString$2(e.mark)?void 0:e.mark.style);return()=>h$2("div",{class:n.e("marks-text"),style:g.value},r.value)}});const _hoisted_1$K=["id","role","aria-label","aria-labelledby"],_hoisted_2$A={key:1},__default__$k={name:"ElSlider"},_sfc_main$_=defineComponent({...__default__$k,props:sliderProps,emits:sliderEmits,setup(e,{expose:n,emit:r}){const g=e,$=useNamespace("slider"),{t:L}=useLocale(),k=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:oe,slider:re,firstButton:ae,secondButton:le,sliderDisabled:ue,minValue:pe,maxValue:de,runwayStyle:Fe,barStyle:ze,resetSize:Ce,emitChange:Ie,onSliderWrapperPrevent:_e,onSliderClick:At,onSliderDown:qe,setFirstValue:xe,setSecondValue:Ve}=useSlide(g,k,r),{stops:he,getStopStyle:Oe}=useStops(g,k,pe,de),{inputId:$e,isLabeledByFormItem:Ne}=useFormItemInputId(g,{formItemContext:oe}),Ue=useSize(),kt=computed(()=>g.inputSize||Ue.value),Et=computed(()=>g.label||L("el.slider.defaultLabel",{min:g.min,max:g.max})),Pt=computed(()=>g.range?g.rangeStartLabel||L("el.slider.defaultRangeStartLabel"):Et.value),Lt=computed(()=>g.formatValueText?g.formatValueText(Cn.value):`${Cn.value}`),vn=computed(()=>g.rangeEndLabel||L("el.slider.defaultRangeEndLabel")),hn=computed(()=>g.formatValueText?g.formatValueText(On.value):`${On.value}`),Dt=computed(()=>[$.b(),$.m(Ue.value),$.is("vertical",g.vertical),{[$.m("with-input")]:g.showInput}]),jt=useMarks(g);useWatch$1(g,k,pe,de,r,oe);const bn=computed(()=>{const In=[g.min,g.max,g.step].map($n=>{const Pn=`${$n}`.split(".")[1];return Pn?Pn.length:0});return Math.max.apply(null,In)}),{sliderWrapper:Sn}=useLifecycle(g,k,Ce),{firstValue:Cn,secondValue:On,sliderSize:En}=toRefs(k),An=In=>{k.dragging=In};return provide(sliderContextKey,{...toRefs(g),sliderSize:En,disabled:ue,precision:bn,emitChange:Ie,resetSize:Ce,updateDragging:An}),n({onSliderClick:At}),(In,$n)=>{var Pn,Dn;return openBlock(),createElementBlock("div",{id:In.range?unref($e):void 0,ref_key:"sliderWrapper",ref:Sn,class:normalizeClass(unref(Dt)),role:In.range?"group":void 0,"aria-label":In.range&&!unref(Ne)?unref(Et):void 0,"aria-labelledby":In.range&&unref(Ne)?(Pn=unref(oe))==null?void 0:Pn.labelId:void 0,onTouchstart:$n[2]||($n[2]=(...Mn)=>unref(_e)&&unref(_e)(...Mn)),onTouchmove:$n[3]||($n[3]=(...Mn)=>unref(_e)&&unref(_e)(...Mn))},[createBaseVNode("div",{ref_key:"slider",ref:re,class:normalizeClass([unref($).e("runway"),{"show-input":In.showInput&&!In.range},unref($).is("disabled",unref(ue))]),style:normalizeStyle(unref(Fe)),onMousedown:$n[0]||($n[0]=(...Mn)=>unref(qe)&&unref(qe)(...Mn)),onTouchstart:$n[1]||($n[1]=(...Mn)=>unref(qe)&&unref(qe)(...Mn))},[createBaseVNode("div",{class:normalizeClass(unref($).e("bar")),style:normalizeStyle(unref(ze))},null,6),createVNode(SliderButton,{id:In.range?void 0:unref($e),ref_key:"firstButton",ref:ae,"model-value":unref(Cn),vertical:In.vertical,"tooltip-class":In.tooltipClass,placement:In.placement,role:"slider","aria-label":In.range||!unref(Ne)?unref(Pt):void 0,"aria-labelledby":!In.range&&unref(Ne)?(Dn=unref(oe))==null?void 0:Dn.labelId:void 0,"aria-valuemin":In.min,"aria-valuemax":In.range?unref(On):In.max,"aria-valuenow":unref(Cn),"aria-valuetext":unref(Lt),"aria-orientation":In.vertical?"vertical":"horizontal","aria-disabled":unref(ue),"onUpdate:modelValue":unref(xe)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),In.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:le,"model-value":unref(On),vertical:In.vertical,"tooltip-class":In.tooltipClass,placement:In.placement,role:"slider","aria-label":unref(vn),"aria-valuemin":unref(Cn),"aria-valuemax":In.max,"aria-valuenow":unref(On),"aria-valuetext":unref(hn),"aria-orientation":In.vertical?"vertical":"horizontal","aria-disabled":unref(ue),"onUpdate:modelValue":unref(Ve)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):createCommentVNode("v-if",!0),In.showStops?(openBlock(),createElementBlock("div",_hoisted_2$A,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(he),(Mn,Fn)=>(openBlock(),createElementBlock("div",{key:Fn,class:normalizeClass(unref($).e("stop")),style:normalizeStyle(unref(Oe)(Mn))},null,6))),128))])):createCommentVNode("v-if",!0),unref(jt).length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(jt),(Mn,Fn)=>(openBlock(),createElementBlock("div",{key:Fn,style:normalizeStyle(unref(Oe)(Mn.position)),class:normalizeClass([unref($).e("stop"),unref($).e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass(unref($).e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(jt),(Mn,Fn)=>(openBlock(),createBlock(unref(SliderMarker),{key:Fn,mark:Mn.mark,style:normalizeStyle(unref(Oe)(Mn.position))},null,8,["mark","style"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),In.showInput&&!In.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Cn),class:normalizeClass(unref($).e("input")),step:In.step,disabled:unref(ue),controls:In.showInputControls,min:In.min,max:In.max,debounce:In.debounce,size:unref(kt),"onUpdate:modelValue":unref(xe),onChange:unref(Ie)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):createCommentVNode("v-if",!0)],42,_hoisted_1$K)}}});var Slider$1=_export_sfc$2(_sfc_main$_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const ElSlider=withInstall(Slider$1),spaceItemProps=buildProps({prefixCls:{type:String}}),SpaceItem=defineComponent({name:"ElSpaceItem",props:spaceItemProps,setup(e,{slots:n}){const r=useNamespace("space"),g=computed(()=>`${e.prefixCls||r.b()}__item`);return()=>h$2("div",{class:g.value},renderSlot(n,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace(e){const n=useNamespace("space"),r=computed(()=>[n.b(),n.m(e.direction),e.class]),g=ref(0),$=ref(0),L=computed(()=>{const oe=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${$.value}px`}:{},re={alignItems:e.alignment};return[oe,re,e.style]}),k=computed(()=>{const oe={paddingBottom:`${$.value}px`,marginRight:`${g.value}px`},re=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[oe,re]});return watchEffect(()=>{const{size:oe="small",wrap:re,direction:ae,fill:le}=e;if(isArray$4(oe)){const[ue=0,pe=0]=oe;g.value=ue,$.value=pe}else{let ue;isNumber(oe)?ue=oe:ue=SIZE_MAP[oe||"small"]||SIZE_MAP.small,(re||le)&&ae==="horizontal"?g.value=$.value=ue:ae==="horizontal"?(g.value=ue,$.value=0):($.value=ue,g.value=0)}}),{classes:r,containerStyle:L,itemStyle:k}}const spaceProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:definePropType([String,Object,Array]),default:""},style:{type:definePropType([String,Array,Object]),default:""},alignment:{type:definePropType(String),default:"center"},prefixCls:{type:String},spacer:{type:definePropType([Object,String,Number,Array]),default:null,validator:e=>isVNode(e)||isNumber(e)||isString$2(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:e=>isNumber(e)||isArray$4(e)&&e.length===2&&e.every(isNumber)}});var Space=defineComponent({name:"ElSpace",props:spaceProps,setup(e,{slots:n}){const{classes:r,containerStyle:g,itemStyle:$}=useSpace(e);function L(k,oe="",re=[]){const{prefixCls:ae}=e;return k.forEach((le,ue)=>{isFragment(le)?isArray$4(le.children)&&le.children.forEach((pe,de)=>{isFragment(pe)&&isArray$4(pe.children)?L(pe.children,`${oe+de}-`,re):re.push(createVNode(SpaceItem,{style:$.value,prefixCls:ae,key:`nested-${oe+de}`},{default:()=>[pe]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(le)&&re.push(createVNode(SpaceItem,{style:$.value,prefixCls:ae,key:`LoopKey${oe+ue}`},{default:()=>[le]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),re}return()=>{var k;const{spacer:oe,direction:re}=e,ae=renderSlot(n,"default",{key:0},()=>[]);if(((k=ae.children)!=null?k:[]).length===0)return null;if(isArray$4(ae.children)){let le=L(ae.children);if(oe){const ue=le.length-1;le=le.reduce((pe,de,Fe)=>{const ze=[...pe,de];return Fe!==ue&&ze.push(createVNode("span",{style:[$.value,re==="vertical"?"width: 100%":null],key:Fe},[isVNode(oe)?oe:createTextVNode(oe,PatchFlags.TEXT)],PatchFlags.STYLE)),ze},[])}return createVNode("div",{class:r.value,style:g.value},le,PatchFlags.STYLE|PatchFlags.CLASS)}return ae.children}}});const ElSpace=withInstall(Space),stepsProps=buildProps({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),stepsEmits={[CHANGE_EVENT]:(e,n)=>[e,n].every(isNumber)},__default__$j={name:"ElSteps"},_sfc_main$Z=defineComponent({...__default__$j,props:stepsProps,emits:stepsEmits,setup(e,{emit:n}){const r=e,g=useNamespace("steps"),$=ref([]);return watch($,()=>{$.value.forEach((L,k)=>{L.setIndex(k)})}),provide("ElSteps",{props:r,steps:$}),watch(()=>r.active,(L,k)=>{n(CHANGE_EVENT,L,k)}),(L,k)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(g).b(),unref(g).m(L.simple?"simple":L.direction)])},[renderSlot(L.$slots,"default")],2))}});var Steps=_export_sfc$2(_sfc_main$Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const stepProps=buildProps({title:{type:String,default:""},icon:{type:iconPropType},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),__default__$i={name:"ElStep"},_sfc_main$Y=defineComponent({...__default__$i,props:stepProps,setup(e){const n=e,r=useNamespace("step"),g=ref(-1),$=ref({}),L=ref(""),k=inject("ElSteps"),oe=getCurrentInstance();onMounted(()=>{watch([()=>k.props.active,()=>k.props.processStatus,()=>k.props.finishStatus],([xe])=>{At(xe)},{immediate:!0})}),onBeforeUnmount(()=>{k.steps.value=k.steps.value.filter(xe=>xe.uid!==oe?.uid)});const re=computed(()=>n.status||L.value),ae=computed(()=>{const xe=k.steps.value[g.value-1];return xe?xe.currentStatus:"wait"}),le=computed(()=>k.props.alignCenter),ue=computed(()=>k.props.direction==="vertical"),pe=computed(()=>k.props.simple),de=computed(()=>k.steps.value.length),Fe=computed(()=>{var xe;return((xe=k.steps.value[de.value-1])==null?void 0:xe.uid)===oe?.uid}),ze=computed(()=>pe.value?"":k.props.space),Ce=computed(()=>{const xe={flexBasis:typeof ze.value=="number"?`${ze.value}px`:ze.value?ze.value:`${100/(de.value-(le.value?0:1))}%`};return ue.value||Fe.value&&(xe.maxWidth=`${100/de.value}%`),xe}),Ie=xe=>{g.value=xe},_e=xe=>{let Ve=100;const he={};he.transitionDelay=`${150*g.value}ms`,xe===k.props.processStatus?Ve=0:xe==="wait"&&(Ve=0,he.transitionDelay=`${-150*g.value}ms`),he.borderWidth=Ve&&!pe.value?"1px":0,he[k.props.direction==="vertical"?"height":"width"]=`${Ve}%`,$.value=he},At=xe=>{xe>g.value?L.value=k.props.finishStatus:xe===g.value&&ae.value!=="error"?L.value=k.props.processStatus:L.value="wait";const Ve=k.steps.value[de.value-1];Ve&&Ve.calcProgress(L.value)},qe=reactive({uid:computed(()=>oe?.uid),currentStatus:re,setIndex:Ie,calcProgress:_e});return k.steps.value=[...k.steps.value,qe],(xe,Ve)=>(openBlock(),createElementBlock("div",{style:normalizeStyle(unref(Ce)),class:normalizeClass([unref(r).b(),unref(r).is(unref(pe)?"simple":unref(k).props.direction),unref(r).is("flex",unref(Fe)&&!unref(ze)&&!unref(le)),unref(r).is("center",unref(le)&&!unref(ue)&&!unref(pe))])},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref(r).e("head"),unref(r).is(unref(re))])},[unref(pe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref(r).e("line-inner")),style:normalizeStyle($.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref(r).e("icon"),unref(r).is(xe.icon||xe.$slots.icon?"icon":"text")])},[unref(re)!=="success"&&unref(re)!=="error"?renderSlot(xe.$slots,"icon",{key:0},()=>[xe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(r).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),!xe.icon&&!unref(pe)?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(r).e("icon-inner"))},toDisplayString(g.value+1),3)):createCommentVNode("v-if",!0)]):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(r).e("icon-inner"),unref(r).is("status")])},{default:withCtx(()=>[unref(re)==="success"?(openBlock(),createBlock(unref(check_default),{key:0})):(openBlock(),createBlock(unref(close_default),{key:1}))]),_:1},8,["class"]))],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref(r).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref(r).e("title"),unref(r).is(unref(re))])},[renderSlot(xe.$slots,"title",{},()=>[createTextVNode(toDisplayString(xe.title),1)])],2),unref(pe)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(r).e("description"),unref(r).is(unref(re))])},[renderSlot(xe.$slots,"description",{},()=>[createTextVNode(toDisplayString(xe.description),1)])],2))],2)],6))}});var Step=_export_sfc$2(_sfc_main$Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const ElSteps=withInstall(Steps,{Step}),ElStep=withNoopInstall(Step),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:iconPropType,default:""},inactiveIcon:{type:iconPropType,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:definePropType(Function)},size:{type:String,validator:isValidComponentSize},tabindex:{type:[String,Number]}}),switchEmits={[UPDATE_MODEL_EVENT]:e=>isBoolean(e)||isString$2(e)||isNumber(e),[CHANGE_EVENT]:e=>isBoolean(e)||isString$2(e)||isNumber(e),[INPUT_EVENT]:e=>isBoolean(e)||isString$2(e)||isNumber(e)},_hoisted_1$J=["onClick"],_hoisted_2$z=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],_hoisted_3$i=["aria-hidden"],_hoisted_4$f=["aria-hidden"],_hoisted_5$b=["aria-hidden"],_hoisted_6$9=["aria-hidden"],__default__$h={name:"ElSwitch"},_sfc_main$X=defineComponent({...__default__$h,props:switchProps,emits:switchEmits,setup(e,{expose:n,emit:r}){const g=e,$="ElSwitch",L=getCurrentInstance(),{formItem:k}=useFormItem(),oe=useSize(),re=useNamespace("switch");useDeprecated({from:'"value"',replacement:'"model-value" or "v-model"',scope:$,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},computed(()=>{var Ve;return!!((Ve=L.vnode.props)!=null&&Ve.value)}));const{inputId:ae}=useFormItemInputId(g,{formItemContext:k}),le=useDisabled$1(computed(()=>g.loading)),ue=ref(g.modelValue!==!1),pe=ref(),de=ref(),Fe=computed(()=>[re.b(),re.m(oe.value),re.is("disabled",le.value),re.is("checked",Ie.value)]),ze=computed(()=>({width:addUnit(g.width)}));watch(()=>g.modelValue,()=>{ue.value=!0}),watch(()=>g.value,()=>{ue.value=!1});const Ce=computed(()=>ue.value?g.modelValue:g.value),Ie=computed(()=>Ce.value===g.activeValue);[g.activeValue,g.inactiveValue].includes(Ce.value)||(r(UPDATE_MODEL_EVENT,g.inactiveValue),r(CHANGE_EVENT,g.inactiveValue),r(INPUT_EVENT,g.inactiveValue)),watch(Ie,Ve=>{var he;pe.value.checked=Ve,g.validateEvent&&((he=k?.validate)==null||he.call(k,"change").catch(Oe=>void 0))});const _e=()=>{const Ve=Ie.value?g.inactiveValue:g.activeValue;r(UPDATE_MODEL_EVENT,Ve),r(CHANGE_EVENT,Ve),r(INPUT_EVENT,Ve),nextTick(()=>{pe.value.checked=Ie.value})},At=()=>{if(le.value)return;const{beforeChange:Ve}=g;if(!Ve){_e();return}const he=Ve();[isPromise(he),isBoolean(he)].includes(!0)||throwError($,"beforeChange must return type `Promise` or `boolean`"),isPromise(he)?he.then($e=>{$e&&_e()}).catch($e=>{}):he&&_e()},qe=computed(()=>re.cssVarBlock({...g.activeColor?{"on-color":g.activeColor}:null,...g.inactiveColor?{"off-color":g.inactiveColor}:null,...g.borderColor?{"border-color":g.borderColor}:null})),xe=()=>{var Ve,he;(he=(Ve=pe.value)==null?void 0:Ve.focus)==null||he.call(Ve)};return onMounted(()=>{pe.value.checked=Ie.value}),n({focus:xe}),(Ve,he)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Fe)),style:normalizeStyle(unref(qe)),onClick:withModifiers(At,["prevent"])},[createBaseVNode("input",{id:unref(ae),ref_key:"input",ref:pe,class:normalizeClass(unref(re).e("input")),type:"checkbox",role:"switch","aria-checked":unref(Ie),"aria-disabled":unref(le),name:Ve.name,"true-value":Ve.activeValue,"false-value":Ve.inactiveValue,disabled:unref(le),tabindex:Ve.tabindex,onChange:_e,onKeydown:withKeys(At,["enter"])},null,42,_hoisted_2$z),!Ve.inlinePrompt&&(Ve.inactiveIcon||Ve.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(re).e("label"),unref(re).em("label","left"),unref(re).is("active",!unref(Ie))])},[Ve.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ve.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!Ve.inactiveIcon&&Ve.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":unref(Ie)},toDisplayString(Ve.inactiveText),9,_hoisted_3$i)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{ref_key:"core",ref:de,class:normalizeClass(unref(re).e("core")),style:normalizeStyle(unref(ze))},[Ve.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(re).e("inner"))},[Ve.activeIcon||Ve.inactiveIcon?(openBlock(),createElementBlock(Fragment,{key:0},[Ve.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(re).is("icon"),unref(Ie)?unref(re).is("show"):unref(re).is("hide")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ve.activeIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),Ve.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(re).is("icon"),unref(Ie)?unref(re).is("hide"):unref(re).is("show")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ve.inactiveIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):Ve.activeText||Ve.inactiveIcon?(openBlock(),createElementBlock(Fragment,{key:1},[Ve.activeText?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(re).is("text"),unref(Ie)?unref(re).is("show"):unref(re).is("hide")]),"aria-hidden":!unref(Ie)},toDisplayString(Ve.activeText.substring(0,3)),11,_hoisted_4$f)):createCommentVNode("v-if",!0),Ve.inactiveText?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass([unref(re).is("text"),unref(Ie)?unref(re).is("hide"):unref(re).is("show")]),"aria-hidden":unref(Ie)},toDisplayString(Ve.inactiveText.substring(0,3)),11,_hoisted_5$b)):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(re).e("action"))},[Ve.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(re).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],6),!Ve.inlinePrompt&&(Ve.activeIcon||Ve.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass([unref(re).e("label"),unref(re).em("label","right"),unref(re).is("active",unref(Ie))])},[Ve.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ve.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!Ve.activeIcon&&Ve.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!unref(Ie)},toDisplayString(Ve.activeText),9,_hoisted_6$9)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$J))}});var Switch$1=_export_sfc$2(_sfc_main$X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ElSwitch=withInstall(Switch$1);/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var matchHtmlRegExp=/["'&<>]/,escapeHtml_1=escapeHtml;function escapeHtml(e){var n=""+e,r=matchHtmlRegExp.exec(n);if(!r)return n;var g,$="",L=0,k=0;for(L=r.index;Ltypeof ae=="string"?get(oe,ae):ae(oe,re,e))):(n!=="$key"&&isObject$2(oe)&&"$value"in oe&&(oe=oe.$value),[isObject$2(oe)?get(oe,n):oe])},k=function(oe,re){if(g)return g(oe.value,re.value);for(let ae=0,le=oe.key.length;aere.key[ae])return 1}return 0};return e.map((oe,re)=>({value:oe,index:re,key:L?L(oe,re):null})).sort((oe,re)=>{let ae=k(oe,re);return ae||(ae=oe.index-re.index),ae*+r}).map(oe=>oe.value)},getColumnById=function(e,n){let r=null;return e.columns.forEach(g=>{g.id===n&&(r=g)}),r},getColumnByKey=function(e,n){let r=null;for(let g=0;g{if(!e)throw new Error("Row is required when get row identity");if(typeof n=="string"){if(!n.includes("."))return`${e[n]}`;const r=n.split(".");let g=e;for(const $ of r)g=g[$];return`${g}`}else if(typeof n=="function")return n.call(null,e)},getKeysMap=function(e,n){const r={};return(e||[]).forEach((g,$)=>{r[getRowIdentity(g,n)]={row:g,index:$}}),r};function mergeOptions$1(e,n){const r={};let g;for(g in e)r[g]=e[g];for(g in n)if(hasOwn(n,g)){const $=n[g];typeof $<"u"&&(r[g]=$)}return r}function parseWidth(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function parseMinWidth(e){return e===""||e!==void 0&&(e=parseWidth(e),Number.isNaN(e)&&(e=80)),e}function parseHeight(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function compose(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,r)=>(...g)=>n(r(...g)))}function toggleRowStatus(e,n,r){let g=!1;const $=e.indexOf(n),L=$!==-1,k=()=>{e.push(n),g=!0},oe=()=>{e.splice($,1),g=!0};return typeof r=="boolean"?r&&!L?k():!r&&L&&oe():L?oe():k(),g}function walkTreeNode(e,n,r="children",g="hasChildren"){const $=k=>!(Array.isArray(k)&&k.length);function L(k,oe,re){n(k,oe,re),oe.forEach(ae=>{if(ae[g]){n(ae,null,re+1);return}const le=ae[r];$(le)||L(ae,le,re+1)})}e.forEach(k=>{if(k[g]){n(k,null,0);return}const oe=k[r];$(oe)||L(k,oe,0)})}let removePopper;function createTablePopper(e,n,r,g,$){const{nextZIndex:L}=useZIndex(),k=e?.dataset.prefix,oe=e?.querySelector(`.${k}-scrollbar__wrap`);function re(){const Fe=$==="light",ze=document.createElement("div");return ze.className=`${k}-popper ${Fe?"is-light":"is-dark"}`,r=escapeHtml_1(r),ze.innerHTML=r,ze.style.zIndex=String(L()),e?.appendChild(ze),ze}function ae(){const Fe=document.createElement("div");return Fe.className=`${k}-popper__arrow`,Fe}function le(){ue&&ue.update()}removePopper=()=>{try{ue&&ue.destroy(),pe&&e?.removeChild(pe),n.removeEventListener("mouseenter",le),n.removeEventListener("mouseleave",removePopper),oe?.removeEventListener("scroll",removePopper),removePopper=void 0}catch{}};let ue=null;const pe=re(),de=ae();return pe.appendChild(de),ue=yn(n,pe,{strategy:"absolute",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:de,padding:10}}],...g}),n.addEventListener("mouseenter",le),n.addEventListener("mouseleave",removePopper),oe?.addEventListener("scroll",removePopper),ue}const isFixedColumn=(e,n,r,g)=>{let $=0,L=e;if(g){if(g[e].colSpan>1)return{};for(let re=0;re=oe.value.length-r.states.rightFixedLeafColumnsLength.value&&(k="right");break;default:L=oe.value.length-r.states.rightFixedLeafColumnsLength.value&&(k="right")}return k?{direction:k,start:$,after:L}:{}},getFixedColumnsClass=(e,n,r,g,$)=>{const L=[],{direction:k,start:oe}=isFixedColumn(n,r,g,$);if(k){const re=k==="left";L.push(`${e}-fixed-column--${k}`),re&&oe===g.states.fixedLeafColumnsLength.value-1?L.push("is-last-column"):!re&&oe===g.states.columns.value.length-g.states.rightFixedLeafColumnsLength.value&&L.push("is-first-column")}return L};function getOffset(e,n){return e+(n.realWidth===null||Number.isNaN(n.realWidth)?Number(n.width):n.realWidth)}const getFixedColumnOffset=(e,n,r,g)=>{const{direction:$,start:L=0}=isFixedColumn(e,n,r,g);if(!$)return;const k={},oe=$==="left",re=r.states.columns.value;return oe?k.left=re.slice(0,e).reduce(getOffset,0):k.right=re.slice(L+1).reverse().reduce(getOffset,0),k},ensurePosition=(e,n)=>{!e||Number.isNaN(e[n])||(e[n]=`${e[n]}px`)};function useExpand(e){const n=getCurrentInstance(),r=ref(!1),g=ref([]);return{updateExpandRows:()=>{const re=e.data.value||[],ae=e.rowKey.value;if(r.value)g.value=re.slice();else if(ae){const le=getKeysMap(g.value,ae);g.value=re.reduce((ue,pe)=>{const de=getRowIdentity(pe,ae);return le[de]&&ue.push(pe),ue},[])}else g.value=[]},toggleRowExpansion:(re,ae)=>{toggleRowStatus(g.value,re,ae)&&n.emit("expand-change",re,g.value.slice())},setExpandRowKeys:re=>{n.store.assertRowKey();const ae=e.data.value||[],le=e.rowKey.value,ue=getKeysMap(ae,le);g.value=re.reduce((pe,de)=>{const Fe=ue[de];return Fe&&pe.push(Fe.row),pe},[])},isRowExpanded:re=>{const ae=e.rowKey.value;return ae?!!getKeysMap(g.value,ae)[getRowIdentity(re,ae)]:g.value.includes(re)},states:{expandRows:g,defaultExpandAll:r}}}function useCurrent(e){const n=getCurrentInstance(),r=ref(null),g=ref(null),$=ae=>{n.store.assertRowKey(),r.value=ae,k(ae)},L=()=>{r.value=null},k=ae=>{const{data:le,rowKey:ue}=e;let pe=null;ue.value&&(pe=(unref(le)||[]).find(de=>getRowIdentity(de,ue.value)===ae)),g.value=pe,n.emit("current-change",g.value,null)};return{setCurrentRowKey:$,restoreCurrentRowKey:L,setCurrentRowByKey:k,updateCurrentRow:ae=>{const le=g.value;if(ae&&ae!==le){g.value=ae,n.emit("current-change",g.value,le);return}!ae&&le&&(g.value=null,n.emit("current-change",null,le))},updateCurrentRowData:()=>{const ae=e.rowKey.value,le=e.data.value||[],ue=g.value;if(!le.includes(ue)&&ue){if(ae){const pe=getRowIdentity(ue,ae);k(pe)}else g.value=null;g.value===null&&n.emit("current-change",null,ue)}else r.value&&(k(r.value),L())},states:{_currentRowKey:r,currentRow:g}}}function useTree$2(e){const n=ref([]),r=ref({}),g=ref(16),$=ref(!1),L=ref({}),k=ref("hasChildren"),oe=ref("children"),re=getCurrentInstance(),ae=computed(()=>{if(!e.rowKey.value)return{};const Ie=e.data.value||[];return ue(Ie)}),le=computed(()=>{const Ie=e.rowKey.value,_e=Object.keys(L.value),At={};return _e.length&&_e.forEach(qe=>{if(L.value[qe].length){const xe={children:[]};L.value[qe].forEach(Ve=>{const he=getRowIdentity(Ve,Ie);xe.children.push(he),Ve[k.value]&&!At[he]&&(At[he]={children:[]})}),At[qe]=xe}}),At}),ue=Ie=>{const _e=e.rowKey.value,At={};return walkTreeNode(Ie,(qe,xe,Ve)=>{const he=getRowIdentity(qe,_e);Array.isArray(xe)?At[he]={children:xe.map(Oe=>getRowIdentity(Oe,_e)),level:Ve}:$.value&&(At[he]={children:[],lazy:!0,level:Ve})},oe.value,k.value),At},pe=(Ie=!1,_e=(At=>(At=re.store)==null?void 0:At.states.defaultExpandAll.value)())=>{var At;const qe=ae.value,xe=le.value,Ve=Object.keys(qe),he={};if(Ve.length){const Oe=unref(r),$e=[],Ne=(kt,Et)=>{if(Ie)return n.value?_e||n.value.includes(Et):!!(_e||kt?.expanded);{const Pt=_e||n.value&&n.value.includes(Et);return!!(kt?.expanded||Pt)}};Ve.forEach(kt=>{const Et=Oe[kt],Pt={...qe[kt]};if(Pt.expanded=Ne(Et,kt),Pt.lazy){const{loaded:Lt=!1,loading:vn=!1}=Et||{};Pt.loaded=!!Lt,Pt.loading=!!vn,$e.push(kt)}he[kt]=Pt});const Ue=Object.keys(xe);$.value&&Ue.length&&$e.length&&Ue.forEach(kt=>{const Et=Oe[kt],Pt=xe[kt].children;if($e.includes(kt)){if(he[kt].children.length!==0)throw new Error("[ElTable]children must be an empty array.");he[kt].children=Pt}else{const{loaded:Lt=!1,loading:vn=!1}=Et||{};he[kt]={lazy:!0,loaded:!!Lt,loading:!!vn,expanded:Ne(Et,kt),children:Pt,level:""}}})}r.value=he,(At=re.store)==null||At.updateTableScrollY()};watch(()=>n.value,()=>{pe(!0)}),watch(()=>ae.value,()=>{pe()}),watch(()=>le.value,()=>{pe()});const de=Ie=>{n.value=Ie,pe()},Fe=(Ie,_e)=>{re.store.assertRowKey();const At=e.rowKey.value,qe=getRowIdentity(Ie,At),xe=qe&&r.value[qe];if(qe&&xe&&"expanded"in xe){const Ve=xe.expanded;_e=typeof _e>"u"?!xe.expanded:_e,r.value[qe].expanded=_e,Ve!==_e&&re.emit("expand-change",Ie,_e),re.store.updateTableScrollY()}},ze=Ie=>{re.store.assertRowKey();const _e=e.rowKey.value,At=getRowIdentity(Ie,_e),qe=r.value[At];$.value&&qe&&"loaded"in qe&&!qe.loaded?Ce(Ie,At,qe):Fe(Ie,void 0)},Ce=(Ie,_e,At)=>{const{load:qe}=re.props;qe&&!r.value[_e].loaded&&(r.value[_e].loading=!0,qe(Ie,At,xe=>{if(!Array.isArray(xe))throw new TypeError("[ElTable] data must be an array");r.value[_e].loading=!1,r.value[_e].loaded=!0,r.value[_e].expanded=!0,xe.length&&(L.value[_e]=xe),re.emit("expand-change",Ie,!0)}))};return{loadData:Ce,loadOrToggle:ze,toggleTreeExpansion:Fe,updateTreeExpandKeys:de,updateTreeData:pe,normalize:ue,states:{expandRowKeys:n,treeData:r,indent:g,lazy:$,lazyTreeNodeMap:L,lazyColumnIdentifier:k,childrenColumnName:oe}}}const sortData=(e,n)=>{const r=n.sortingColumn;return!r||typeof r.sortable=="string"?e:orderBy(e,n.sortProp,n.sortOrder,r.sortMethod,r.sortBy)},doFlattenColumns=e=>{const n=[];return e.forEach(r=>{r.children?n.push.apply(n,doFlattenColumns(r.children)):n.push(r)}),n};function useWatcher$1(){var e;const n=getCurrentInstance(),{size:r}=toRefs((e=n.proxy)==null?void 0:e.$props),g=ref(null),$=ref([]),L=ref([]),k=ref(!1),oe=ref([]),re=ref([]),ae=ref([]),le=ref([]),ue=ref([]),pe=ref([]),de=ref([]),Fe=ref([]),ze=ref(0),Ce=ref(0),Ie=ref(0),_e=ref(!1),At=ref([]),qe=ref(!1),xe=ref(!1),Ve=ref(null),he=ref({}),Oe=ref(null),$e=ref(null),Ne=ref(null),Ue=ref(null),kt=ref(null);watch($,()=>n.state&&Lt(!1),{deep:!0});const Et=()=>{if(!g.value)throw new Error("[ElTable] prop row-key is required")},Pt=()=>{le.value=oe.value.filter(Qn=>Qn.fixed===!0||Qn.fixed==="left"),ue.value=oe.value.filter(Qn=>Qn.fixed==="right"),le.value.length>0&&oe.value[0]&&oe.value[0].type==="selection"&&!oe.value[0].fixed&&(oe.value[0].fixed=!0,le.value.unshift(oe.value[0]));const Yn=oe.value.filter(Qn=>!Qn.fixed);re.value=[].concat(le.value).concat(Yn).concat(ue.value);const Wn=doFlattenColumns(Yn),Vn=doFlattenColumns(le.value),_n=doFlattenColumns(ue.value);ze.value=Wn.length,Ce.value=Vn.length,Ie.value=_n.length,ae.value=[].concat(Vn).concat(Wn).concat(_n),k.value=le.value.length>0||ue.value.length>0},Lt=(Yn,Wn=!1)=>{Yn&&Pt(),Wn?n.state.doLayout():n.state.debouncedUpdateLayout()},vn=Yn=>At.value.includes(Yn),hn=()=>{_e.value=!1,At.value.length&&(At.value=[],n.emit("selection-change",[]))},Dt=()=>{let Yn;if(g.value){Yn=[];const Wn=getKeysMap(At.value,g.value),Vn=getKeysMap($.value,g.value);for(const _n in Wn)hasOwn(Wn,_n)&&!Vn[_n]&&Yn.push(Wn[_n].row)}else Yn=At.value.filter(Wn=>!$.value.includes(Wn));if(Yn.length){const Wn=At.value.filter(Vn=>!Yn.includes(Vn));At.value=Wn,n.emit("selection-change",Wn.slice())}},jt=()=>(At.value||[]).slice(),bn=(Yn,Wn=void 0,Vn=!0)=>{if(toggleRowStatus(At.value,Yn,Wn)){const Qn=(At.value||[]).slice();Vn&&n.emit("select",Qn,Yn),n.emit("selection-change",Qn)}},Sn=()=>{var Yn,Wn;const Vn=xe.value?!_e.value:!(_e.value||At.value.length);_e.value=Vn;let _n=!1,Qn=0;const jn=(Wn=(Yn=n?.store)==null?void 0:Yn.states)==null?void 0:Wn.rowKey.value;$.value.forEach((Un,Xn)=>{const Zn=Xn+Qn;Ve.value?Ve.value.call(null,Un,Zn)&&toggleRowStatus(At.value,Un,Vn)&&(_n=!0):toggleRowStatus(At.value,Un,Vn)&&(_n=!0),Qn+=En(getRowIdentity(Un,jn))}),_n&&n.emit("selection-change",At.value?At.value.slice():[]),n.emit("select-all",At.value)},Cn=()=>{const Yn=getKeysMap(At.value,g.value);$.value.forEach(Wn=>{const Vn=getRowIdentity(Wn,g.value),_n=Yn[Vn];_n&&(At.value[_n.index]=Wn)})},On=()=>{var Yn,Wn,Vn;if(((Yn=$.value)==null?void 0:Yn.length)===0){_e.value=!1;return}let _n;g.value&&(_n=getKeysMap(At.value,g.value));const Qn=function(Zn){return _n?!!_n[getRowIdentity(Zn,g.value)]:At.value.includes(Zn)};let jn=!0,Un=0,Xn=0;for(let Zn=0,to=($.value||[]).length;Zn{var Wn;if(!n||!n.store)return 0;const{treeData:Vn}=n.store.states;let _n=0;const Qn=(Wn=Vn.value[Yn])==null?void 0:Wn.children;return Qn&&(_n+=Qn.length,Qn.forEach(jn=>{_n+=En(jn)})),_n},An=(Yn,Wn)=>{Array.isArray(Yn)||(Yn=[Yn]);const Vn={};return Yn.forEach(_n=>{he.value[_n.id]=Wn,Vn[_n.columnKey||_n.id]=Wn}),Vn},In=(Yn,Wn,Vn)=>{$e.value&&$e.value!==Yn&&($e.value.order=null),$e.value=Yn,Ne.value=Wn,Ue.value=Vn},$n=()=>{let Yn=unref(L);Object.keys(he.value).forEach(Wn=>{const Vn=he.value[Wn];if(!Vn||Vn.length===0)return;const _n=getColumnById({columns:ae.value},Wn);_n&&_n.filterMethod&&(Yn=Yn.filter(Qn=>Vn.some(jn=>_n.filterMethod.call(null,jn,Qn,_n))))}),Oe.value=Yn},Pn=()=>{$.value=sortData(Oe.value,{sortingColumn:$e.value,sortProp:Ne.value,sortOrder:Ue.value})},Dn=(Yn=void 0)=>{Yn&&Yn.filter||$n(),Pn()},Mn=Yn=>{const{tableHeaderRef:Wn}=n.refs;if(!Wn)return;const Vn=Object.assign({},Wn.filterPanels),_n=Object.keys(Vn);if(!!_n.length)if(typeof Yn=="string"&&(Yn=[Yn]),Array.isArray(Yn)){const Qn=Yn.map(jn=>getColumnByKey({columns:ae.value},jn));_n.forEach(jn=>{const Un=Qn.find(Xn=>Xn.id===jn);Un&&(Un.filteredValue=[])}),n.store.commit("filterChange",{column:Qn,values:[],silent:!0,multi:!0})}else _n.forEach(Qn=>{const jn=ae.value.find(Un=>Un.id===Qn);jn&&(jn.filteredValue=[])}),he.value={},n.store.commit("filterChange",{column:{},values:[],silent:!0})},Fn=()=>{!$e.value||(In(null,null,null),n.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:kn,toggleRowExpansion:Nn,updateExpandRows:Rn,states:wn,isRowExpanded:Tn}=useExpand({data:$,rowKey:g}),{updateTreeExpandKeys:xn,toggleTreeExpansion:Bn,updateTreeData:Ln,loadOrToggle:Hn,states:zn}=useTree$2({data:$,rowKey:g}),{updateCurrentRowData:Jn,updateCurrentRow:co,setCurrentRowKey:Gn,states:eo}=useCurrent({data:$,rowKey:g});return{assertRowKey:Et,updateColumns:Pt,scheduleLayout:Lt,isSelected:vn,clearSelection:hn,cleanSelection:Dt,getSelectionRows:jt,toggleRowSelection:bn,_toggleAllSelection:Sn,toggleAllSelection:null,updateSelectionByRowKey:Cn,updateAllSelected:On,updateFilters:An,updateCurrentRow:co,updateSort:In,execFilter:$n,execSort:Pn,execQuery:Dn,clearFilter:Mn,clearSort:Fn,toggleRowExpansion:Nn,setExpandRowKeysAdapter:Yn=>{kn(Yn),xn(Yn)},setCurrentRowKey:Gn,toggleRowExpansionAdapter:(Yn,Wn)=>{ae.value.some(({type:_n})=>_n==="expand")?Nn(Yn,Wn):Bn(Yn,Wn)},isRowExpanded:Tn,updateExpandRows:Rn,updateCurrentRowData:Jn,loadOrToggle:Hn,updateTreeData:Ln,states:{tableSize:r,rowKey:g,data:$,_data:L,isComplex:k,_columns:oe,originColumns:re,columns:ae,fixedColumns:le,rightFixedColumns:ue,leafColumns:pe,fixedLeafColumns:de,rightFixedLeafColumns:Fe,leafColumnsLength:ze,fixedLeafColumnsLength:Ce,rightFixedLeafColumnsLength:Ie,isAllSelected:_e,selection:At,reserveSelection:qe,selectOnIndeterminate:xe,selectable:Ve,filters:he,filteredData:Oe,sortingColumn:$e,sortProp:Ne,sortOrder:Ue,hoverRow:kt,...wn,...zn,...eo}}}function replaceColumn(e,n){return e.map(r=>{var g;return r.id===n.id?n:((g=r.children)!=null&&g.length&&(r.children=replaceColumn(r.children,n)),r)})}function sortColumn(e){e.forEach(n=>{var r,g;n.no=(r=n.getColumnIndex)==null?void 0:r.call(n),(g=n.children)!=null&&g.length&&sortColumn(n.children)}),e.sort((n,r)=>n.no-r.no)}function useStore(){const e=getCurrentInstance(),n=useWatcher$1();return{ns:useNamespace("table"),...n,mutations:{setData(k,oe){const re=unref(k._data)!==oe;k.data.value=oe,k._data.value=oe,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),unref(k.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):re?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(k,oe,re){const ae=unref(k._columns);let le=[];re?(re&&!re.children&&(re.children=[]),re.children.push(oe),le=replaceColumn(ae,re)):(ae.push(oe),le=ae),sortColumn(le),k._columns.value=le,oe.type==="selection"&&(k.selectable.value=oe.selectable,k.reserveSelection.value=oe.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(k,oe,re){const ae=unref(k._columns)||[];if(re)re.children.splice(re.children.findIndex(le=>le.id===oe.id),1),re.children.length===0&&delete re.children,k._columns.value=replaceColumn(ae,re);else{const le=ae.indexOf(oe);le>-1&&(ae.splice(le,1),k._columns.value=ae)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(k,oe){const{prop:re,order:ae,init:le}=oe;if(re){const ue=unref(k.columns).find(pe=>pe.property===re);ue&&(ue.order=ae,e.store.updateSort(ue,re,ae),e.store.commit("changeSortCondition",{init:le}))}},changeSortCondition(k,oe){const{sortingColumn:re,sortProp:ae,sortOrder:le}=k;unref(le)===null&&(k.sortingColumn.value=null,k.sortProp.value=null);const ue={filter:!0};e.store.execQuery(ue),(!oe||!(oe.silent||oe.init))&&e.emit("sort-change",{column:unref(re),prop:unref(ae),order:unref(le)}),e.store.updateTableScrollY()},filterChange(k,oe){const{column:re,values:ae,silent:le}=oe,ue=e.store.updateFilters(re,ae);e.store.execQuery(),le||e.emit("filter-change",ue),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(k,oe){e.store.toggleRowSelection(oe),e.store.updateAllSelected()},setHoverRow(k,oe){k.hoverRow.value=oe},setCurrentRow(k,oe){e.store.updateCurrentRow(oe)}},commit:function(k,...oe){const re=e.store.mutations;if(re[k])re[k].apply(e,[e.store.states].concat(oe));else throw new Error(`Action not found: ${k}`)},updateTableScrollY:function(){nextTick(()=>e.layout.updateScrollY.apply(e.layout))}}}const InitialStateMap={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function createStore(e,n){if(!e)throw new Error("Table is required.");const r=useStore();return r.toggleAllSelection=debounce(r._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(g=>{handleValue(getArrKeysValue(n,g),g,r)}),proxyTableProps(r,n),r}function proxyTableProps(e,n){Object.keys(InitialStateMap).forEach(r=>{watch(()=>getArrKeysValue(n,r),g=>{handleValue(g,r,e)})})}function handleValue(e,n,r){let g=e,$=InitialStateMap[n];typeof InitialStateMap[n]=="object"&&($=$.key,g=g||InitialStateMap[n].default),r.states[$].value=g}function getArrKeysValue(e,n){if(n.includes(".")){const r=n.split(".");let g=e;return r.forEach($=>{g=g[$]}),g}else return e[n]}class TableLayout$1{constructor(n){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ref(null),this.scrollX=ref(!1),this.scrollY=ref(!1),this.bodyWidth=ref(null),this.fixedWidth=ref(null),this.rightFixedWidth=ref(null),this.gutterWidth=0;for(const r in n)hasOwn(n,r)&&(isRef(this[r])?this[r].value=n[r]:this[r]=n[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&r){let g=!0;const $=this.scrollY.value;return g=r.wrap$.scrollHeight>r.wrap$.clientHeight,this.scrollY.value=g,$!==g}return!1}setHeight(n,r="height"){if(!isClient)return;const g=this.table.vnode.el;if(n=parseHeight(n),this.height.value=Number(n),!g&&(n||n===0))return nextTick(()=>this.setHeight(n,r));typeof n=="number"?(g.style[r]=`${n}px`,this.updateElsHeight()):typeof n=="string"&&(g.style[r]=n,this.updateElsHeight())}setMaxHeight(n){this.setHeight(n,"max-height")}getFlattenColumns(){const n=[];return this.table.store.states.columns.value.forEach(g=>{g.isColumnGroup?n.push.apply(n,g.columns):n.push(g)}),n}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(n){if(!n)return!0;let r=n;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!isClient)return;const n=this.fit,r=this.table.vnode.el.clientWidth;let g=0;const $=this.getFlattenColumns(),L=$.filter(re=>typeof re.width!="number");if($.forEach(re=>{typeof re.width=="number"&&re.realWidth&&(re.realWidth=null)}),L.length>0&&n){if($.forEach(re=>{g+=Number(re.width||re.minWidth||80)}),g<=r){this.scrollX.value=!1;const re=r-g;if(L.length===1)L[0].realWidth=Number(L[0].minWidth||80)+re;else{const ae=L.reduce((pe,de)=>pe+Number(de.minWidth||80),0),le=re/ae;let ue=0;L.forEach((pe,de)=>{if(de===0)return;const Fe=Math.floor(Number(pe.minWidth||80)*le);ue+=Fe,pe.realWidth=Number(pe.minWidth||80)+Fe}),L[0].realWidth=Number(L[0].minWidth||80)+re-ue}}else this.scrollX.value=!0,L.forEach(re=>{re.realWidth=Number(re.minWidth)});this.bodyWidth.value=Math.max(g,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else $.forEach(re=>{!re.width&&!re.minWidth?re.realWidth=80:re.realWidth=Number(re.width||re.minWidth),g+=re.realWidth}),this.scrollX.value=g>r,this.bodyWidth.value=g;const k=this.store.states.fixedColumns.value;if(k.length>0){let re=0;k.forEach(ae=>{re+=Number(ae.realWidth||ae.width)}),this.fixedWidth.value=re}const oe=this.store.states.rightFixedColumns.value;if(oe.length>0){let re=0;oe.forEach(ae=>{re+=Number(ae.realWidth||ae.width)}),this.rightFixedWidth.value=re}this.notifyObservers("columns")}addObserver(n){this.observers.push(n)}removeObserver(n){const r=this.observers.indexOf(n);r!==-1&&this.observers.splice(r,1)}notifyObservers(n){this.observers.forEach(g=>{var $,L;switch(n){case"columns":($=g.state)==null||$.onColumnsChange(this);break;case"scrollable":(L=g.state)==null||L.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${n}.`)}})}}const{CheckboxGroup:ElCheckboxGroup}=ElCheckbox,_sfc_main$W=defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox,ElCheckboxGroup,ElScrollbar,ElTooltip,ElIcon,ArrowDown:arrow_down_default,ArrowUp:arrow_up_default},directives:{ClickOutside},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const n=getCurrentInstance(),{t:r}=useLocale(),g=useNamespace("table-filter"),$=n?.parent;$.filterPanels.value[e.column.id]||($.filterPanels.value[e.column.id]=n);const L=ref(!1),k=ref(null),oe=computed(()=>e.column&&e.column.filters),re=computed({get:()=>{var qe;return(((qe=e.column)==null?void 0:qe.filteredValue)||[])[0]},set:qe=>{ae.value&&(typeof qe<"u"&&qe!==null?ae.value.splice(0,1,qe):ae.value.splice(0,1))}}),ae=computed({get(){return e.column?e.column.filteredValue||[]:[]},set(qe){e.column&&e.upDataColumn("filteredValue",qe)}}),le=computed(()=>e.column?e.column.filterMultiple:!0),ue=qe=>qe.value===re.value,pe=()=>{L.value=!1},de=qe=>{qe.stopPropagation(),L.value=!L.value},Fe=()=>{L.value=!1},ze=()=>{_e(ae.value),pe()},Ce=()=>{ae.value=[],_e(ae.value),pe()},Ie=qe=>{re.value=qe,_e(typeof qe<"u"&&qe!==null?ae.value:[]),pe()},_e=qe=>{e.store.commit("filterChange",{column:e.column,values:qe}),e.store.updateAllSelected()};watch(L,qe=>{e.column&&e.upDataColumn("filterOpened",qe)},{immediate:!0});const At=computed(()=>{var qe,xe;return(xe=(qe=k.value)==null?void 0:qe.popperRef)==null?void 0:xe.contentRef});return{tooltipVisible:L,multiple:le,filteredValue:ae,filterValue:re,filters:oe,handleConfirm:ze,handleReset:Ce,handleSelect:Ie,isActive:ue,t:r,ns:g,showFilterPanel:de,hideFilterPanel:Fe,popperPaneRef:At,tooltip:k}}}),_hoisted_1$I={key:0},_hoisted_2$y=["disabled"],_hoisted_3$h=["label","onClick"];function _sfc_render$D(e,n,r,g,$,L){const k=resolveComponent("el-checkbox"),oe=resolveComponent("el-checkbox-group"),re=resolveComponent("el-scrollbar"),ae=resolveComponent("arrow-up"),le=resolveComponent("arrow-down"),ue=resolveComponent("el-icon"),pe=resolveComponent("el-tooltip"),de=resolveDirective("click-outside");return openBlock(),createBlock(pe,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:withCtx(()=>[e.multiple?(openBlock(),createElementBlock("div",_hoisted_1$I,[createBaseVNode("div",{class:normalizeClass(e.ns.e("content"))},[createVNode(re,{"wrap-class":e.ns.e("wrap")},{default:withCtx(()=>[createVNode(oe,{modelValue:e.filteredValue,"onUpdate:modelValue":n[0]||(n[0]=Fe=>e.filteredValue=Fe),class:normalizeClass(e.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.filters,Fe=>(openBlock(),createBlock(k,{key:Fe.value,label:Fe.value},{default:withCtx(()=>[createTextVNode(toDisplayString(Fe.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass(e.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:n[1]||(n[1]=(...Fe)=>e.handleConfirm&&e.handleConfirm(...Fe))},toDisplayString(e.t("el.table.confirmFilter")),11,_hoisted_2$y),createBaseVNode("button",{type:"button",onClick:n[2]||(n[2]=(...Fe)=>e.handleReset&&e.handleReset(...Fe))},toDisplayString(e.t("el.table.resetFilter")),1)],2)])):(openBlock(),createElementBlock("ul",{key:1,class:normalizeClass(e.ns.e("list"))},[createBaseVNode("li",{class:normalizeClass([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:n[3]||(n[3]=Fe=>e.handleSelect(null))},toDisplayString(e.t("el.table.clearFilter")),3),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.filters,Fe=>(openBlock(),createElementBlock("li",{key:Fe.value,class:normalizeClass([e.ns.e("list-item"),e.ns.is("active",e.isActive(Fe))]),label:Fe.value,onClick:ze=>e.handleSelect(Fe.value)},toDisplayString(Fe.text),11,_hoisted_3$h))),128))],2))]),default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:n[4]||(n[4]=(...Fe)=>e.showFilterPanel&&e.showFilterPanel(...Fe))},[createVNode(ue,null,{default:withCtx(()=>[e.column.filterOpened?(openBlock(),createBlock(ae,{key:0})):(openBlock(),createBlock(le,{key:1}))]),_:1})],2)),[[de,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var FilterPanel=_export_sfc$2(_sfc_main$W,[["render",_sfc_render$D],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function useLayoutObserver(e){const n=getCurrentInstance();onBeforeMount(()=>{r.value.addObserver(n)}),onMounted(()=>{g(r.value),$(r.value)}),onUpdated(()=>{g(r.value),$(r.value)}),onUnmounted(()=>{r.value.removeObserver(n)});const r=computed(()=>{const L=e.layout;if(!L)throw new Error("Can not find table layout.");return L}),g=L=>{var k;const oe=((k=e.vnode.el)==null?void 0:k.querySelectorAll("colgroup > col"))||[];if(!oe.length)return;const re=L.getFlattenColumns(),ae={};re.forEach(le=>{ae[le.id]=le});for(let le=0,ue=oe.length;le{var k,oe;const re=((k=e.vnode.el)==null?void 0:k.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let le=0,ue=re.length;le{ze.stopPropagation()},L=(ze,Ce)=>{!Ce.filters&&Ce.sortable?Fe(ze,Ce,!1):Ce.filterable&&!Ce.sortable&&$(ze),g?.emit("header-click",Ce,ze)},k=(ze,Ce)=>{g?.emit("header-contextmenu",Ce,ze)},oe=ref(null),re=ref(!1),ae=ref({}),le=(ze,Ce)=>{if(!!isClient&&!(Ce.children&&Ce.children.length>0)&&oe.value&&e.border){re.value=!0;const Ie=g;n("set-drag-visible",!0);const At=(Ie?.vnode.el).getBoundingClientRect().left,qe=r.vnode.el.querySelector(`th.${Ce.id}`),xe=qe.getBoundingClientRect(),Ve=xe.left-At+30;addClass(qe,"noclick"),ae.value={startMouseLeft:ze.clientX,startLeft:xe.right-At,startColumnLeft:xe.left-At,tableLeft:At};const he=Ie?.refs.resizeProxy;he.style.left=`${ae.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const Oe=Ne=>{const Ue=Ne.clientX-ae.value.startMouseLeft,kt=ae.value.startLeft+Ue;he.style.left=`${Math.max(Ve,kt)}px`},$e=()=>{if(re.value){const{startColumnLeft:Ne,startLeft:Ue}=ae.value,Et=Number.parseInt(he.style.left,10)-Ne;Ce.width=Ce.realWidth=Et,Ie?.emit("header-dragend",Ce.width,Ue-Ne,Ce,ze),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",re.value=!1,oe.value=null,ae.value={},n("set-drag-visible",!1)}document.removeEventListener("mousemove",Oe),document.removeEventListener("mouseup",$e),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass(qe,"noclick")},0)};document.addEventListener("mousemove",Oe),document.addEventListener("mouseup",$e)}},ue=(ze,Ce)=>{var Ie;if(Ce.children&&Ce.children.length>0)return;const _e=(Ie=ze.target)==null?void 0:Ie.closest("th");if(!(!Ce||!Ce.resizable)&&!re.value&&e.border){const At=_e.getBoundingClientRect(),qe=document.body.style;At.width>12&&At.right-ze.pageX<8?(qe.cursor="col-resize",hasClass(_e,"is-sortable")&&(_e.style.cursor="col-resize"),oe.value=Ce):re.value||(qe.cursor="",hasClass(_e,"is-sortable")&&(_e.style.cursor="pointer"),oe.value=null)}},pe=()=>{!isClient||(document.body.style.cursor="")},de=({order:ze,sortOrders:Ce})=>{if(ze==="")return Ce[0];const Ie=Ce.indexOf(ze||null);return Ce[Ie>Ce.length-2?0:Ie+1]},Fe=(ze,Ce,Ie)=>{var _e;ze.stopPropagation();const At=Ce.order===Ie?null:Ie||de(Ce),qe=(_e=ze.target)==null?void 0:_e.closest("th");if(qe&&hasClass(qe,"noclick")){removeClass(qe,"noclick");return}if(!Ce.sortable)return;const xe=e.store.states;let Ve=xe.sortProp.value,he;const Oe=xe.sortingColumn.value;(Oe!==Ce||Oe===Ce&&Oe.order===null)&&(Oe&&(Oe.order=null),xe.sortingColumn.value=Ce,Ve=Ce.property),At?he=Ce.order=At:he=Ce.order=null,xe.sortProp.value=Ve,xe.sortOrder.value=he,g?.store.commit("changeSortCondition")};return{handleHeaderClick:L,handleHeaderContextMenu:k,handleMouseDown:le,handleMouseMove:ue,handleMouseOut:pe,handleSortClick:Fe,handleFilterClick:$}}function useStyle$2(e){const n=inject(TABLE_INJECTION_KEY),r=useNamespace("table");return{getHeaderRowStyle:oe=>{const re=n?.props.headerRowStyle;return typeof re=="function"?re.call(null,{rowIndex:oe}):re},getHeaderRowClass:oe=>{const re=[],ae=n?.props.headerRowClassName;return typeof ae=="string"?re.push(ae):typeof ae=="function"&&re.push(ae.call(null,{rowIndex:oe})),re.join(" ")},getHeaderCellStyle:(oe,re,ae,le)=>{var ue;let pe=(ue=n?.props.headerCellStyle)!=null?ue:{};typeof pe=="function"&&(pe=pe.call(null,{rowIndex:oe,columnIndex:re,row:ae,column:le}));const de=le.isSubColumn?null:getFixedColumnOffset(re,le.fixed,e.store,ae);return ensurePosition(de,"left"),ensurePosition(de,"right"),Object.assign({},pe,de)},getHeaderCellClass:(oe,re,ae,le)=>{const ue=le.isSubColumn?[]:getFixedColumnsClass(r.b(),re,le.fixed,e.store,ae),pe=[le.id,le.order,le.headerAlign,le.className,le.labelClassName,...ue];le.children||pe.push("is-leaf"),le.sortable&&pe.push("is-sortable");const de=n?.props.headerCellClassName;return typeof de=="string"?pe.push(de):typeof de=="function"&&pe.push(de.call(null,{rowIndex:oe,columnIndex:re,row:ae,column:le})),pe.push(r.e("cell")),pe.filter(Fe=>Boolean(Fe)).join(" ")}}}const getAllColumns=e=>{const n=[];return e.forEach(r=>{r.children?(n.push(r),n.push.apply(n,getAllColumns(r.children))):n.push(r)}),n},convertToRows=e=>{let n=1;const r=(L,k)=>{if(k&&(L.level=k.level+1,n{r(re,L),oe+=re.colSpan}),L.colSpan=oe}else L.colSpan=1};e.forEach(L=>{L.level=1,r(L,void 0)});const g=[];for(let L=0;L{L.children?(L.rowSpan=1,L.children.forEach(k=>k.isSubColumn=!0)):L.rowSpan=n-L.level+1,g[L.level-1].push(L)}),g};function useUtils$1(e){const n=inject(TABLE_INJECTION_KEY),r=computed(()=>convertToRows(e.store.states.originColumns.value));return{isGroup:computed(()=>{const L=r.value.length>1;return L&&n&&(n.state.isGroup.value=!0),L}),toggleAllSelection:L=>{L.stopPropagation(),n?.store.commit("toggleAllSelection")},columnRows:r}}var TableHeader=defineComponent({name:"ElTableHeader",components:{ElCheckbox},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:n}){const r=getCurrentInstance(),g=inject(TABLE_INJECTION_KEY),$=useNamespace("table"),L=ref({}),{onColumnsChange:k,onScrollableChange:oe}=useLayoutObserver(g);onMounted(async()=>{await nextTick(),await nextTick();const{prop:Ve,order:he}=e.defaultSort;g?.store.commit("sort",{prop:Ve,order:he,init:!0})});const{handleHeaderClick:re,handleHeaderContextMenu:ae,handleMouseDown:le,handleMouseMove:ue,handleMouseOut:pe,handleSortClick:de,handleFilterClick:Fe}=useEvent(e,n),{getHeaderRowStyle:ze,getHeaderRowClass:Ce,getHeaderCellStyle:Ie,getHeaderCellClass:_e}=useStyle$2(e),{isGroup:At,toggleAllSelection:qe,columnRows:xe}=useUtils$1(e);return r.state={onColumnsChange:k,onScrollableChange:oe},r.filterPanels=L,{ns:$,filterPanels:L,onColumnsChange:k,onScrollableChange:oe,columnRows:xe,getHeaderRowClass:Ce,getHeaderRowStyle:ze,getHeaderCellClass:_e,getHeaderCellStyle:Ie,handleHeaderClick:re,handleHeaderContextMenu:ae,handleMouseDown:le,handleMouseMove:ue,handleMouseOut:pe,handleSortClick:de,handleFilterClick:Fe,isGroup:At,toggleAllSelection:qe}},render(){const{ns:e,isGroup:n,columnRows:r,getHeaderCellStyle:g,getHeaderCellClass:$,getHeaderRowClass:L,getHeaderRowStyle:k,handleHeaderClick:oe,handleHeaderContextMenu:re,handleMouseDown:ae,handleMouseMove:le,handleSortClick:ue,handleMouseOut:pe,store:de,$parent:Fe}=this;let ze=1;return h$2("thead",{class:{[e.is("group")]:n}},r.map((Ce,Ie)=>h$2("tr",{class:L(Ie),key:Ie,style:k(Ie)},Ce.map((_e,At)=>(_e.rowSpan>ze&&(ze=_e.rowSpan),h$2("th",{class:$(Ie,At,Ce,_e),colspan:_e.colSpan,key:`${_e.id}-thead`,rowspan:_e.rowSpan,style:g(Ie,At,Ce,_e),onClick:qe=>oe(qe,_e),onContextmenu:qe=>re(qe,_e),onMousedown:qe=>ae(qe,_e),onMousemove:qe=>le(qe,_e),onMouseout:pe},[h$2("div",{class:["cell",_e.filteredValue&&_e.filteredValue.length>0?"highlight":"",_e.labelClassName]},[_e.renderHeader?_e.renderHeader({column:_e,$index:At,store:de,_self:Fe}):_e.label,_e.sortable&&h$2("span",{onClick:qe=>ue(qe,_e),class:"caret-wrapper"},[h$2("i",{onClick:qe=>ue(qe,_e,"ascending"),class:"sort-caret ascending"}),h$2("i",{onClick:qe=>ue(qe,_e,"descending"),class:"sort-caret descending"})]),_e.filterable&&h$2(FilterPanel,{store:de,placement:_e.filterPlacement||"bottom-start",column:_e,upDataColumn:(qe,xe)=>{_e[qe]=xe}})])]))))))}});function useEvents(e){const n=inject(TABLE_INJECTION_KEY),r=ref(""),g=ref(h$2("div")),$=(pe,de,Fe)=>{var ze;const Ce=n,Ie=getCell(pe);let _e;const At=(ze=Ce?.vnode.el)==null?void 0:ze.dataset.prefix;Ie&&(_e=getColumnByCell({columns:e.store.states.columns.value},Ie,At),_e&&Ce?.emit(`cell-${Fe}`,de,_e,Ie,pe)),Ce?.emit(`row-${Fe}`,de,_e,pe)},L=(pe,de)=>{$(pe,de,"dblclick")},k=(pe,de)=>{e.store.commit("setCurrentRow",de),$(pe,de,"click")},oe=(pe,de)=>{$(pe,de,"contextmenu")},re=debounce(pe=>{e.store.commit("setHoverRow",pe)},30),ae=debounce(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:L,handleClick:k,handleContextMenu:oe,handleMouseEnter:re,handleMouseLeave:ae,handleCellMouseEnter:(pe,de)=>{var Fe;const ze=n,Ce=getCell(pe),Ie=(Fe=ze?.vnode.el)==null?void 0:Fe.dataset.prefix;if(Ce){const Ve=getColumnByCell({columns:e.store.states.columns.value},Ce,Ie),he=ze.hoverState={cell:Ce,column:Ve,row:de};ze?.emit("cell-mouse-enter",he.row,he.column,he.cell,pe)}const _e=pe.target.querySelector(".cell");if(!(hasClass(_e,`${Ie}-tooltip`)&&_e.childNodes.length))return;const At=document.createRange();At.setStart(_e,0),At.setEnd(_e,_e.childNodes.length);const qe=At.getBoundingClientRect().width,xe=(Number.parseInt(getStyle(_e,"paddingLeft"),10)||0)+(Number.parseInt(getStyle(_e,"paddingRight"),10)||0);(qe+xe>_e.offsetWidth||_e.scrollWidth>_e.offsetWidth)&&createTablePopper(n?.refs.tableWrapper,Ce,Ce.innerText||Ce.textContent,{placement:"top",strategy:"fixed"},de.tooltipEffect)},handleCellMouseLeave:pe=>{if(!getCell(pe))return;const Fe=n?.hoverState;n?.emit("cell-mouse-leave",Fe?.row,Fe?.column,Fe?.cell,pe)},tooltipContent:r,tooltipTrigger:g}}function useStyles$1(e){const n=inject(TABLE_INJECTION_KEY),r=useNamespace("table");return{getRowStyle:(ae,le)=>{const ue=n?.props.rowStyle;return typeof ue=="function"?ue.call(null,{row:ae,rowIndex:le}):ue||null},getRowClass:(ae,le)=>{const ue=[r.e("row")];n?.props.highlightCurrentRow&&ae===e.store.states.currentRow.value&&ue.push("current-row"),e.stripe&&le%2===1&&ue.push(r.em("row","striped"));const pe=n?.props.rowClassName;return typeof pe=="string"?ue.push(pe):typeof pe=="function"&&ue.push(pe.call(null,{row:ae,rowIndex:le})),ue},getCellStyle:(ae,le,ue,pe)=>{const de=n?.props.cellStyle;let Fe=de??{};typeof de=="function"&&(Fe=de.call(null,{rowIndex:ae,columnIndex:le,row:ue,column:pe}));const ze=pe.isSubColumn?null:getFixedColumnOffset(le,e?.fixed,e.store);return ensurePosition(ze,"left"),ensurePosition(ze,"right"),Object.assign({},Fe,ze)},getCellClass:(ae,le,ue,pe)=>{const de=pe.isSubColumn?[]:getFixedColumnsClass(r.b(),le,e?.fixed,e.store),Fe=[pe.id,pe.align,pe.className,...de],ze=n?.props.cellClassName;return typeof ze=="string"?Fe.push(ze):typeof ze=="function"&&Fe.push(ze.call(null,{rowIndex:ae,columnIndex:le,row:ue,column:pe})),Fe.push(r.e("cell")),Fe.filter(Ce=>Boolean(Ce)).join(" ")},getSpan:(ae,le,ue,pe)=>{let de=1,Fe=1;const ze=n?.props.spanMethod;if(typeof ze=="function"){const Ce=ze({row:ae,column:le,rowIndex:ue,columnIndex:pe});Array.isArray(Ce)?(de=Ce[0],Fe=Ce[1]):typeof Ce=="object"&&(de=Ce.rowspan,Fe=Ce.colspan)}return{rowspan:de,colspan:Fe}},getColspanRealWidth:(ae,le,ue)=>{if(le<1)return ae[ue].realWidth;const pe=ae.map(({realWidth:de,width:Fe})=>de||Fe).slice(ue,ue+le);return Number(pe.reduce((de,Fe)=>Number(de)+Number(Fe),-1))}}}function useRender$1(e){const n=inject(TABLE_INJECTION_KEY),r=useNamespace("table"),{handleDoubleClick:g,handleClick:$,handleContextMenu:L,handleMouseEnter:k,handleMouseLeave:oe,handleCellMouseEnter:re,handleCellMouseLeave:ae,tooltipContent:le,tooltipTrigger:ue}=useEvents(e),{getRowStyle:pe,getRowClass:de,getCellStyle:Fe,getCellClass:ze,getSpan:Ce,getColspanRealWidth:Ie}=useStyles$1(e),_e=computed(()=>e.store.states.columns.value.findIndex(({type:he})=>he==="default")),At=(he,Oe)=>{const $e=n.props.rowKey;return $e?getRowIdentity(he,$e):Oe},qe=(he,Oe,$e,Ne=!1)=>{const{tooltipEffect:Ue,store:kt}=e,{indent:Et,columns:Pt}=kt.states,Lt=de(he,Oe);let vn=!0;return $e&&(Lt.push(r.em("row",`level-${$e.level}`)),vn=$e.display),h$2("tr",{style:[vn?null:{display:"none"},pe(he,Oe)],class:Lt,key:At(he,Oe),onDblclick:Dt=>g(Dt,he),onClick:Dt=>$(Dt,he),onContextmenu:Dt=>L(Dt,he),onMouseenter:()=>k(Oe),onMouseleave:oe},Pt.value.map((Dt,jt)=>{const{rowspan:bn,colspan:Sn}=Ce(he,Dt,Oe,jt);if(!bn||!Sn)return null;const Cn={...Dt};Cn.realWidth=Ie(Pt.value,Sn,jt);const On={store:e.store,_self:e.context||n,column:Cn,row:he,$index:Oe,cellIndex:jt,expanded:Ne};jt===_e.value&&$e&&(On.treeNode={indent:$e.level*Et.value,level:$e.level},typeof $e.expanded=="boolean"&&(On.treeNode.expanded=$e.expanded,"loading"in $e&&(On.treeNode.loading=$e.loading),"noLazyChildren"in $e&&(On.treeNode.noLazyChildren=$e.noLazyChildren)));const En=`${Oe},${jt}`,An=Cn.columnKey||Cn.rawColumnKey||"",In=xe(jt,Dt,On);return h$2("td",{style:Fe(Oe,jt,he,Dt),class:ze(Oe,jt,he,Dt),key:`${An}${En}`,rowspan:bn,colspan:Sn,onMouseenter:$n=>re($n,{...he,tooltipEffect:Ue}),onMouseleave:ae},[In])}))},xe=(he,Oe,$e)=>Oe.renderCell($e);return{wrappedRowRender:(he,Oe)=>{const $e=e.store,{isRowExpanded:Ne,assertRowKey:Ue}=$e,{treeData:kt,lazyTreeNodeMap:Et,childrenColumnName:Pt,rowKey:Lt}=$e.states,vn=$e.states.columns.value;if(vn.some(({type:Dt})=>Dt==="expand")){const Dt=Ne(he),jt=qe(he,Oe,void 0,Dt),bn=n.renderExpanded;return Dt?bn?[[jt,h$2("tr",{key:`expanded-row__${jt.key}`},[h$2("td",{colspan:vn.length,class:"el-table__cell el-table__expanded-cell"},[bn({row:he,$index:Oe,store:$e,expanded:Dt})])])]]:(console.error("[Element Error]renderExpanded is required."),jt):[[jt]]}else if(Object.keys(kt.value).length){Ue();const Dt=getRowIdentity(he,Lt.value);let jt=kt.value[Dt],bn=null;jt&&(bn={expanded:jt.expanded,level:jt.level,display:!0},typeof jt.lazy=="boolean"&&(typeof jt.loaded=="boolean"&&jt.loaded&&(bn.noLazyChildren=!(jt.children&&jt.children.length)),bn.loading=jt.loading));const Sn=[qe(he,Oe,bn)];if(jt){let Cn=0;const On=(An,In)=>{!(An&&An.length&&In)||An.forEach($n=>{const Pn={display:In.display&&In.expanded,level:In.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Dn=getRowIdentity($n,Lt.value);if(Dn==null)throw new Error("For nested data item, row-key is required.");if(jt={...kt.value[Dn]},jt&&(Pn.expanded=jt.expanded,jt.level=jt.level||Pn.level,jt.display=!!(jt.expanded&&Pn.display),typeof jt.lazy=="boolean"&&(typeof jt.loaded=="boolean"&&jt.loaded&&(Pn.noLazyChildren=!(jt.children&&jt.children.length)),Pn.loading=jt.loading)),Cn++,Sn.push(qe($n,Oe+Cn,Pn)),jt){const Mn=Et.value[Dn]||$n[Pt.value];On(Mn,jt)}})};jt.display=!0;const En=Et.value[Dt]||he[Pt.value];On(En,jt)}return Sn}else return qe(he,Oe,void 0)},tooltipContent:le,tooltipTrigger:ue}}const defaultProps$2={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var TableBody=defineComponent({name:"ElTableBody",props:defaultProps$2,setup(e){const n=getCurrentInstance(),r=inject(TABLE_INJECTION_KEY),g=useNamespace("table"),{wrappedRowRender:$,tooltipContent:L,tooltipTrigger:k}=useRender$1(e),{onColumnsChange:oe,onScrollableChange:re}=useLayoutObserver(r);return watch(e.store.states.hoverRow,(ae,le)=>{if(!e.store.states.isComplex.value||!isClient)return;let ue=window.requestAnimationFrame;ue||(ue=pe=>window.setTimeout(pe,16)),ue(()=>{var pe;const de=(pe=n?.vnode.el)==null?void 0:pe.querySelectorAll(`.${g.e("row")}`),Fe=de[le],ze=de[ae];Fe&&removeClass(Fe,"hover-row"),ze&&addClass(ze,"hover-row")})}),onUnmounted(()=>{var ae;(ae=removePopper)==null||ae()}),onUpdated(()=>{var ae;(ae=removePopper)==null||ae()}),{ns:g,onColumnsChange:oe,onScrollableChange:re,wrappedRowRender:$,tooltipContent:L,tooltipTrigger:k}},render(){const{wrappedRowRender:e,store:n}=this,r=n.states.data.value||[];return h$2("tbody",{},[r.reduce((g,$)=>g.concat(e($,g.length)),[])])}});function hColgroup(e){const n=e.tableLayout==="auto";let r=e.columns||[];n&&r.every($=>$.width===void 0)&&(r=[]);const g=$=>{const L={key:`${e.tableLayout}_${$.id}`,style:{},name:void 0};return n?L.style={width:`${$.width}px`}:L.name=$.id,L};return h$2("colgroup",{},r.map($=>h$2("col",g($))))}hColgroup.props=["columns","tableLayout"];function useMapState(){const e=inject(TABLE_INJECTION_KEY),n=e?.store,r=computed(()=>n.states.fixedLeafColumnsLength.value),g=computed(()=>n.states.rightFixedColumns.value.length),$=computed(()=>n.states.columns.value.length),L=computed(()=>n.states.fixedColumns.value.length),k=computed(()=>n.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:g,columnsCount:$,leftFixedCount:L,rightFixedCount:k,columns:n.states.columns}}function useStyle$1(e){const{columns:n}=useMapState(),r=useNamespace("table");return{getCellClasses:(L,k)=>{const oe=L[k],re=[r.e("cell"),oe.id,oe.align,oe.labelClassName,...getFixedColumnsClass(r.b(),k,oe.fixed,e.store)];return oe.className&&re.push(oe.className),oe.children||re.push(r.is("leaf")),re},getCellStyles:(L,k)=>{const oe=getFixedColumnOffset(k,L.fixed,e.store);return ensurePosition(oe,"left"),ensurePosition(oe,"right"),oe},columns:n}}var TableFooter=defineComponent({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:n,getCellStyles:r,columns:g}=useStyle$1(e);return{ns:useNamespace("table"),getCellClasses:n,getCellStyles:r,columns:g}},render(){const{columns:e,getCellStyles:n,getCellClasses:r,summaryMethod:g,sumText:$,ns:L}=this,k=this.store.states.data.value;let oe=[];return g?oe=g({columns:e,data:k}):e.forEach((re,ae)=>{if(ae===0){oe[ae]=$;return}const le=k.map(Fe=>Number(Fe[re.property])),ue=[];let pe=!0;le.forEach(Fe=>{if(!Number.isNaN(+Fe)){pe=!1;const ze=`${Fe}`.split(".")[1];ue.push(ze?ze.length:0)}});const de=Math.max.apply(null,ue);pe?oe[ae]="":oe[ae]=le.reduce((Fe,ze)=>{const Ce=Number(ze);return Number.isNaN(+Ce)?Fe:Number.parseFloat((Fe+ze).toFixed(Math.min(de,20)))},0)}),h$2("table",{class:L.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[hColgroup({columns:e}),h$2("tbody",[h$2("tr",{},[...e.map((re,ae)=>h$2("td",{key:ae,colspan:re.colSpan,rowspan:re.rowSpan,class:r(e,ae),style:n(re,ae)},[h$2("div",{class:["cell",re.labelClassName]},[oe[ae]])]))])])])}});function useUtils(e){return{setCurrentRow:le=>{e.commit("setCurrentRow",le)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(le,ue)=>{e.toggleRowSelection(le,ue,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:le=>{e.clearFilter(le)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(le,ue)=>{e.toggleRowExpansionAdapter(le,ue)},clearSort:()=>{e.clearSort()},sort:(le,ue)=>{e.commit("sort",{prop:le,order:ue})}}}function useStyle(e,n,r,g){const $=ref(!1),L=ref(null),k=ref(!1),oe=Dt=>{k.value=Dt},re=ref({width:null,height:null,headerHeight:null}),ae=ref(!1),le={display:"inline-block",verticalAlign:"middle"},ue=ref(),pe=ref(0),de=ref(0),Fe=ref(0),ze=ref(0);watchEffect(()=>{n.setHeight(e.height)}),watchEffect(()=>{n.setMaxHeight(e.maxHeight)}),watch(()=>[e.currentRowKey,r.states.rowKey],([Dt,jt])=>{!unref(jt)||r.setCurrentRowKey(`${Dt}`)},{immediate:!0}),watch(()=>e.data,Dt=>{g.store.commit("setData",Dt)},{immediate:!0,deep:!0}),watchEffect(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const Ce=()=>{g.store.commit("setHoverRow",null),g.hoverState&&(g.hoverState=null)},Ie=(Dt,jt)=>{const{pixelX:bn,pixelY:Sn}=jt;Math.abs(bn)>=Math.abs(Sn)&&(g.refs.bodyWrapper.scrollLeft+=jt.pixelX/5)},_e=computed(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),At=computed(()=>({width:n.bodyWidth.value?`${n.bodyWidth.value}px`:""})),qe=()=>{_e.value&&n.updateElsHeight(),n.updateColumnsWidth(),requestAnimationFrame(Oe)};onMounted(async()=>{await nextTick(),r.updateColumns(),$e(),requestAnimationFrame(qe);const Dt=g.vnode.el,jt=g.refs.headerWrapper;e.flexible&&Dt&&Dt.parentElement&&(Dt.parentElement.style.minWidth="0"),re.value={width:ue.value=Dt.offsetWidth,height:Dt.offsetHeight,headerHeight:e.showHeader&&jt?jt.offsetHeight:null},r.states.columns.value.forEach(bn=>{bn.filteredValue&&bn.filteredValue.length&&g.store.commit("filterChange",{column:bn,values:bn.filteredValue,silent:!0})}),g.$ready=!0});const xe=(Dt,jt)=>{if(!Dt)return;const bn=Array.from(Dt.classList).filter(Sn=>!Sn.startsWith("is-scrolling-"));bn.push(n.scrollX.value?jt:"is-scrolling-none"),Dt.className=bn.join(" ")},Ve=Dt=>{const{tableWrapper:jt}=g.refs;xe(jt,Dt)},he=Dt=>{const{tableWrapper:jt}=g.refs;return!!(jt&&jt.classList.contains(Dt))},Oe=function(){if(!g.refs.scrollBarRef)return;if(!n.scrollX.value){const An="is-scrolling-none";he(An)||Ve(An);return}const Dt=g.refs.scrollBarRef.wrap$;if(!Dt)return;const{scrollLeft:jt,offsetWidth:bn,scrollWidth:Sn}=Dt,{headerWrapper:Cn,footerWrapper:On}=g.refs;Cn&&(Cn.scrollLeft=jt),On&&(On.scrollLeft=jt);const En=Sn-bn-1;jt>=En?Ve("is-scrolling-right"):Ve(jt===0?"is-scrolling-left":"is-scrolling-middle")},$e=()=>{!g.refs.scrollBarRef||(g.refs.scrollBarRef.wrap$&&useEventListener(g.refs.scrollBarRef.wrap$,"scroll",Oe,{passive:!0}),e.fit?useResizeObserver(g.vnode.el,Ne):useEventListener(window,"resize",Ne))},Ne=()=>{var Dt,jt,bn;const Sn=g.vnode.el;if(!g.$ready||!Sn)return;let Cn=!1;const{width:On,height:En,headerHeight:An}=re.value,In=ue.value=Sn.offsetWidth;On!==In&&(Cn=!0);const $n=Sn.offsetHeight;(e.height||_e.value)&&En!==$n&&(Cn=!0);const Pn=e.tableLayout==="fixed"?g.refs.headerWrapper:(Dt=g.refs.tableHeaderRef)==null?void 0:Dt.$el;e.showHeader&&Pn?.offsetHeight!==An&&(Cn=!0),pe.value=((jt=g.refs.tableWrapper)==null?void 0:jt.scrollHeight)||0,Fe.value=Pn?.scrollHeight||0,ze.value=((bn=g.refs.footerWrapper)==null?void 0:bn.scrollHeight)||0,de.value=pe.value-Fe.value-ze.value,Cn&&(re.value={width:In,height:$n,headerHeight:e.showHeader&&Pn?.offsetHeight||0},qe())},Ue=useSize(),kt=computed(()=>{const{bodyWidth:Dt,scrollY:jt,gutterWidth:bn}=n;return Dt.value?`${Dt.value-(jt.value?bn:0)}px`:""}),Et=computed(()=>e.maxHeight?"fixed":e.tableLayout),Pt=computed(()=>{if(e.data&&e.data.length)return null;let Dt="100%";de.value&&(Dt=`${de.value}px`);const jt=ue.value;return{width:jt?`${jt}px`:"",height:Dt}}),Lt=computed(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),vn=computed(()=>{var Dt,jt;if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${Fe.value+ze.value}px)`};{const bn=((Dt=g.refs.headerWrapper)==null?void 0:Dt.scrollHeight)||0,Sn=((jt=g.refs.footerWrapper)==null?void 0:jt.scrollHeight)||0,Cn=e.maxHeight;if(pe.value>=Number(Cn))return{maxHeight:`${pe.value-bn-Sn}px`}}}return{}});return{isHidden:$,renderExpanded:L,setDragVisible:oe,isGroup:ae,handleMouseLeave:Ce,handleHeaderFooterMousewheel:Ie,tableSize:Ue,emptyBlockStyle:Pt,handleFixedMousewheel:(Dt,jt)=>{const bn=g.refs.bodyWrapper;if(Math.abs(jt.spinY)>0){const Sn=bn.scrollTop;jt.pixelY<0&&Sn!==0&&Dt.preventDefault(),jt.pixelY>0&&bn.scrollHeight-bn.clientHeight>Sn&&Dt.preventDefault(),bn.scrollTop+=Math.ceil(jt.pixelY/5)}else bn.scrollLeft+=Math.ceil(jt.pixelX/5)},resizeProxyVisible:k,bodyWidth:kt,resizeState:re,doLayout:qe,tableBodyStyles:At,tableLayout:Et,scrollbarViewStyle:le,tableInnerStyle:Lt,scrollbarStyle:vn}}var defaultProps$1={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const useScrollbar$1=()=>{const e=ref(),n=(L,k)=>{const oe=e.value;oe&&oe.scrollTo(L,k)},r=(L,k)=>{const oe=e.value;oe&&isNumber(k)&&["Top","Left"].includes(L)&&oe[`setScroll${L}`](k)};return{scrollBarRef:e,scrollTo:n,setScrollTop:L=>r("Top",L),setScrollLeft:L=>r("Left",L)}};let tableIdSeed=1;const _sfc_main$V=defineComponent({name:"ElTable",directives:{Mousewheel},components:{TableHeader,TableBody,TableFooter,ElScrollbar,hColgroup},props:defaultProps$1,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t:n}=useLocale(),r=useNamespace("table"),g=getCurrentInstance();provide(TABLE_INJECTION_KEY,g);const $=createStore(g,e);g.store=$;const L=new TableLayout$1({store:g.store,table:g,fit:e.fit,showHeader:e.showHeader});g.layout=L;const k=computed(()=>($.states.data.value||[]).length===0),{setCurrentRow:oe,getSelectionRows:re,toggleRowSelection:ae,clearSelection:le,clearFilter:ue,toggleAllSelection:pe,toggleRowExpansion:de,clearSort:Fe,sort:ze}=useUtils($),{isHidden:Ce,renderExpanded:Ie,setDragVisible:_e,isGroup:At,handleMouseLeave:qe,handleHeaderFooterMousewheel:xe,tableSize:Ve,emptyBlockStyle:he,handleFixedMousewheel:Oe,resizeProxyVisible:$e,bodyWidth:Ne,resizeState:Ue,doLayout:kt,tableBodyStyles:Et,tableLayout:Pt,scrollbarViewStyle:Lt,tableInnerStyle:vn,scrollbarStyle:hn}=useStyle(e,L,$,g),{scrollBarRef:Dt,scrollTo:jt,setScrollLeft:bn,setScrollTop:Sn}=useScrollbar$1(),Cn=debounce(kt,50),On=`el-table_${tableIdSeed++}`;g.tableId=On,g.state={isGroup:At,resizeState:Ue,doLayout:kt,debouncedUpdateLayout:Cn};const En=computed(()=>e.sumText||n("el.table.sumText")),An=computed(()=>e.emptyText||n("el.table.emptyText"));return{ns:r,layout:L,store:$,handleHeaderFooterMousewheel:xe,handleMouseLeave:qe,tableId:On,tableSize:Ve,isHidden:Ce,isEmpty:k,renderExpanded:Ie,resizeProxyVisible:$e,resizeState:Ue,isGroup:At,bodyWidth:Ne,tableBodyStyles:Et,emptyBlockStyle:he,debouncedUpdateLayout:Cn,handleFixedMousewheel:Oe,setCurrentRow:oe,getSelectionRows:re,toggleRowSelection:ae,clearSelection:le,clearFilter:ue,toggleAllSelection:pe,toggleRowExpansion:de,clearSort:Fe,doLayout:kt,sort:ze,t:n,setDragVisible:_e,context:g,computedSumText:En,computedEmptyText:An,tableLayout:Pt,scrollbarViewStyle:Lt,tableInnerStyle:vn,scrollbarStyle:hn,scrollBarRef:Dt,scrollTo:jt,setScrollLeft:bn,setScrollTop:Sn}}}),_hoisted_1$H=["data-prefix"],_hoisted_2$x={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$C(e,n,r,g,$,L){const k=resolveComponent("hColgroup"),oe=resolveComponent("table-header"),re=resolveComponent("table-body"),ae=resolveComponent("el-scrollbar"),le=resolveComponent("table-footer"),ue=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:normalizeStyle(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:n[0]||(n[0]=pe=>e.handleMouseLeave())},[createBaseVNode("div",{class:normalizeClass(e.ns.e("inner-wrapper")),style:normalizeStyle(e.tableInnerStyle)},[createBaseVNode("div",_hoisted_2$x,[renderSlot(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass(e.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass(e.ns.e("header")),style:normalizeStyle(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode(k,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),createVNode(oe,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[ue,e.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass(e.ns.e("body-wrapper"))},[createVNode(ae,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle({width:e.bodyWidth,tableLayout:e.tableLayout})},[createVNode(k,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(openBlock(),createBlock(oe,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode(re,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle(e.emptyBlockStyle),class:normalizeClass(e.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(e.ns.e("empty-text"))},[renderSlot(e.$slots,"empty",{},()=>[createTextVNode(toDisplayString(e.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),e.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass(e.ns.e("append-wrapper"))},[renderSlot(e.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass(e.ns.e("footer-wrapper"))},[createVNode(le,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:normalizeStyle(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[vShow,!e.isEmpty],[ue,e.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),e.border||e.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(e.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],6),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass(e.ns.e("column-resize-proxy"))},null,2),[[vShow,e.resizeProxyVisible]])],46,_hoisted_1$H)}var Table=_export_sfc$2(_sfc_main$V,[["render",_sfc_render$C],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const defaultClassNames={selection:"table-column--selection",expand:"table__expand-column"},cellStarts={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},getDefaultClassName=e=>defaultClassNames[e]||"",cellForced={selection:{renderHeader({store:e}){function n(){return e.states.data.value&&e.states.data.value.length===0}return h$2(ElCheckbox,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:n,store:r,$index:g}){return h$2(ElCheckbox,{disabled:n.selectable?!n.selectable.call(null,e,g):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:$=>$.stopPropagation(),modelValue:r.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:n}){let r=n+1;const g=e.index;return typeof g=="number"?r=n+g:typeof g=="function"&&(r=g(n)),h$2("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:n,expanded:r}){const{ns:g}=n,$=[g.e("expand-icon")];return r&&$.push(g.em("expand-icon","expanded")),h$2("div",{class:$,onClick:function(k){k.stopPropagation(),n.toggleRowExpansion(e)}},{default:()=>[h$2(ElIcon,null,{default:()=>[h$2(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:e,column:n,$index:r}){var g;const $=n.property,L=$&&getProp(e,$).value;return n&&n.formatter?n.formatter(e,n,L,r):((g=L?.toString)==null?void 0:g.call(L))||""}function treeCellPrefix({row:e,treeNode:n,store:r},g=!1){const{ns:$}=r;if(!n)return g?[h$2("span",{class:$.e("placeholder")})]:null;const L=[],k=function(oe){oe.stopPropagation(),r.loadOrToggle(e)};if(n.indent&&L.push(h$2("span",{class:$.e("indent"),style:{"padding-left":`${n.indent}px`}})),typeof n.expanded=="boolean"&&!n.noLazyChildren){const oe=[$.e("expand-icon"),n.expanded?$.em("expand-icon","expanded"):""];let re=arrow_right_default;n.loading&&(re=loading_default),L.push(h$2("div",{class:oe,onClick:k},{default:()=>[h$2(ElIcon,{class:{[$.is("loading")]:n.loading}},{default:()=>[h$2(re)]})]}))}else L.push(h$2("span",{class:$.e("placeholder")}));return L}function getAllAliases(e,n){return e.reduce((r,g)=>(r[g]=g,r),n)}function useWatcher(e,n){const r=getCurrentInstance();return{registerComplexWatchers:()=>{const L=["fixed"],k={realWidth:"width",realMinWidth:"minWidth"},oe=getAllAliases(L,k);Object.keys(oe).forEach(re=>{const ae=k[re];hasOwn(n,ae)&&watch(()=>n[ae],le=>{let ue=le;ae==="width"&&re==="realWidth"&&(ue=parseWidth(le)),ae==="minWidth"&&re==="realMinWidth"&&(ue=parseMinWidth(le)),r.columnConfig.value[ae]=ue,r.columnConfig.value[re]=ue;const pe=ae==="fixed";e.value.store.scheduleLayout(pe)})})},registerNormalWatchers:()=>{const L=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],k={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},oe=getAllAliases(L,k);Object.keys(oe).forEach(re=>{const ae=k[re];hasOwn(n,ae)&&watch(()=>n[ae],le=>{r.columnConfig.value[re]=le})})}}}function useRender(e,n,r){const g=getCurrentInstance(),$=ref(""),L=ref(!1),k=ref(),oe=ref(),re=useNamespace("table");watchEffect(()=>{k.value=e.align?`is-${e.align}`:null,k.value}),watchEffect(()=>{oe.value=e.headerAlign?`is-${e.headerAlign}`:k.value,oe.value});const ae=computed(()=>{let At=g.vnode.vParent||g.parent;for(;At&&!At.tableId&&!At.columnId;)At=At.vnode.vParent||At.parent;return At}),le=computed(()=>{const{store:At}=g.parent;if(!At)return!1;const{treeData:qe}=At.states,xe=qe.value;return xe&&Object.keys(xe).length>0}),ue=ref(parseWidth(e.width)),pe=ref(parseMinWidth(e.minWidth)),de=At=>(ue.value&&(At.width=ue.value),pe.value&&(At.minWidth=pe.value),At.minWidth||(At.minWidth=80),At.realWidth=Number(At.width===void 0?At.minWidth:At.width),At),Fe=At=>{const qe=At.type,xe=cellForced[qe]||{};Object.keys(xe).forEach(he=>{const Oe=xe[he];he!=="className"&&Oe!==void 0&&(At[he]=Oe)});const Ve=getDefaultClassName(qe);if(Ve){const he=`${unref(re.namespace)}-${Ve}`;At.className=At.className?`${At.className} ${he}`:he}return At},ze=At=>{Array.isArray(At)?At.forEach(xe=>qe(xe)):qe(At);function qe(xe){var Ve;((Ve=xe?.type)==null?void 0:Ve.name)==="ElTableColumn"&&(xe.vParent=g)}};return{columnId:$,realAlign:k,isSubColumn:L,realHeaderAlign:oe,columnOrTableParent:ae,setColumnWidth:de,setColumnForcedProps:Fe,setColumnRenders:At=>{e.renderHeader||At.type!=="selection"&&(At.renderHeader=Ve=>{g.columnConfig.value.label;const he=n.header;return he?he(Ve):At.label});let qe=At.renderCell;const xe=le.value;return At.type==="expand"?(At.renderCell=Ve=>h$2("div",{class:"cell"},[qe(Ve)]),r.value.renderExpanded=Ve=>n.default?n.default(Ve):n.default):(qe=qe||defaultRenderCell,At.renderCell=Ve=>{let he=null;if(n.default){const Ue=n.default(Ve);he=Ue.some(kt=>kt.type!==Comment)?Ue:qe(Ve)}else he=qe(Ve);const Oe=xe&&Ve.cellIndex===0,$e=treeCellPrefix(Ve,Oe),Ne={class:"cell",style:{}};return At.showOverflowTooltip&&(Ne.class=`${Ne.class} ${unref(re.namespace)}-tooltip`,Ne.style={width:`${(Ve.column.realWidth||Number(Ve.column.width))-1}px`}),ze(he),h$2("div",Ne,[$e,he])}),At},getPropsData:(...At)=>At.reduce((qe,xe)=>(Array.isArray(xe)&&xe.forEach(Ve=>{qe[Ve]=e[Ve]}),qe),{}),getColumnElIndex:(At,qe)=>Array.prototype.indexOf.call(At,qe)}}var defaultProps={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(n=>["ascending","descending",null].includes(n))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps,setup(e,{slots:n}){const r=getCurrentInstance(),g=ref({}),$=computed(()=>{let _e=r.parent;for(;_e&&!_e.tableId;)_e=_e.parent;return _e}),{registerNormalWatchers:L,registerComplexWatchers:k}=useWatcher($,e),{columnId:oe,isSubColumn:re,realHeaderAlign:ae,columnOrTableParent:le,setColumnWidth:ue,setColumnForcedProps:pe,setColumnRenders:de,getPropsData:Fe,getColumnElIndex:ze,realAlign:Ce}=useRender(e,n,$),Ie=le.value;oe.value=`${Ie.tableId||Ie.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{re.value=$.value!==Ie;const _e=e.type||"default",At=e.sortable===""?!0:e.sortable,qe={...cellStarts[_e],id:oe.value,type:_e,property:e.prop||e.property,align:Ce,headerAlign:ae,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:At,index:e.index,rawColumnKey:r.vnode.key};let $e=Fe(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);$e=mergeOptions$1(qe,$e),$e=compose(de,ue,pe)($e),g.value=$e,L(),k()}),onMounted(()=>{var _e;const At=le.value,qe=re.value?At.vnode.el.children:(_e=At.refs.hiddenColumns)==null?void 0:_e.children,xe=()=>ze(qe||[],r.vnode.el);g.value.getColumnIndex=xe,xe()>-1&&$.value.store.commit("insertColumn",g.value,re.value?At.columnConfig.value:null)}),onBeforeUnmount(()=>{$.value.store.commit("removeColumn",g.value,re.value?Ie.columnConfig.value:null)}),r.columnId=oe.value,r.columnConfig=g},render(){var e,n,r;try{const g=(n=(e=this.$slots).default)==null?void 0:n.call(e,{row:{},column:{},$index:-1}),$=[];if(Array.isArray(g))for(const k of g)((r=k.type)==null?void 0:r.name)==="ElTableColumn"||k.shapeFlag&2?$.push(k):k.type===Fragment&&Array.isArray(k.children)&&k.children.forEach(oe=>{oe?.patchFlag!==1024&&!isString$2(oe?.children)&&$.push(oe)});return h$2("div",$)}catch{return h$2("div",[])}}});const ElTable=withInstall(Table,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=(e=>(e.ASC="asc",e.DESC="desc",e))(SortOrder||{}),Alignment=(e=>(e.CENTER="center",e.RIGHT="right",e))(Alignment||{}),FixedDir=(e=>(e.LEFT="left",e.RIGHT="right",e))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=(e,n,r)=>{var g;const $={flexGrow:0,flexShrink:0,...r?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};r||($.flexShrink=1);const L={...(g=e.style)!=null?g:{},...$,flexBasis:"auto",width:e.width};return n||(e.maxWidth&&(L.maxWidth=e.maxWidth),e.minWidth&&(L.minWidth=e.minWidth)),L};function useColumns(e,n,r){const g=computed(()=>unref(n).filter(ze=>!ze.hidden)),$=computed(()=>unref(g).filter(ze=>ze.fixed==="left"||ze.fixed===!0)),L=computed(()=>unref(g).filter(ze=>ze.fixed==="right")),k=computed(()=>unref(g).filter(ze=>!ze.fixed)),oe=computed(()=>{const ze=[];return unref($).forEach(Ce=>{ze.push({...Ce,placeholderSign})}),unref(k).forEach(Ce=>{ze.push(Ce)}),unref(L).forEach(Ce=>{ze.push({...Ce,placeholderSign})}),ze}),re=computed(()=>unref($).length||unref(L).length),ae=computed(()=>unref(n).reduce((Ce,Ie)=>(Ce[Ie.key]=calcColumnStyle(Ie,unref(r),e.fixed),Ce),{})),le=computed(()=>unref(g).reduce((ze,Ce)=>ze+Ce.width,0)),ue=ze=>unref(n).find(Ce=>Ce.key===ze),pe=ze=>unref(ae)[ze],de=(ze,Ce)=>{ze.width=Ce};function Fe(ze){var Ce;const{key:Ie}=ze.currentTarget.dataset;if(!Ie)return;const{sortState:_e,sortBy:At}=e;let qe=SortOrder.ASC;isObject$4(_e)?qe=oppositeOrderMap[_e[Ie]]:qe=oppositeOrderMap[At.order],(Ce=e.onColumnSort)==null||Ce.call(e,{column:ue(Ie),key:Ie,order:qe})}return{columns:n,columnsStyles:ae,columnsTotalWidth:le,fixedColumnsOnLeft:$,fixedColumnsOnRight:L,hasFixedColumns:re,mainColumns:oe,normalColumns:k,visibleColumns:g,getColumn:ue,getColumnStyle:pe,updateColumnWidth:de,onColumnSorted:Fe}}const useScrollbar=(e,{mainTableRef:n,leftTableRef:r,rightTableRef:g,onMaybeEndReached:$})=>{const L=ref({scrollLeft:0,scrollTop:0});function k(de){var Fe,ze,Ce;const{scrollTop:Ie}=de;(Fe=n.value)==null||Fe.scrollTo(de),(ze=r.value)==null||ze.scrollToTop(Ie),(Ce=g.value)==null||Ce.scrollToTop(Ie)}function oe(de){L.value=de,k(de)}function re(de){L.value.scrollTop=de,k(unref(L))}function ae(de){var Fe,ze;L.value.scrollLeft=de,(ze=(Fe=n.value)==null?void 0:Fe.scrollTo)==null||ze.call(Fe,unref(L))}function le(de){var Fe;oe(de),(Fe=e.onScroll)==null||Fe.call(e,de)}function ue({scrollTop:de}){const{scrollTop:Fe}=unref(L);de!==Fe&&re(de)}function pe(de,Fe="auto"){var ze;(ze=n.value)==null||ze.scrollToRow(de,Fe)}return watch(()=>unref(L).scrollTop,(de,Fe)=>{de>Fe&&$()}),{scrollPos:L,scrollTo:oe,scrollToLeft:ae,scrollToTop:re,scrollToRow:pe,onScroll:le,onVerticalScroll:ue}},useRow=(e,{mainTableRef:n,leftTableRef:r,rightTableRef:g,onMaybeEndReached:$})=>{const L=getCurrentInstance(),{emit:k}=L,oe=shallowRef(!1),re=shallowRef(null),ae=ref(e.defaultExpandedRowKeys||[]),le=ref(-1),ue=shallowRef(null),pe=ref({}),de=ref({}),Fe=shallowRef({}),ze=shallowRef({}),Ce=shallowRef({}),Ie=computed(()=>isNumber(e.estimatedRowHeight));function _e($e){var Ne;(Ne=e.onRowsRendered)==null||Ne.call(e,$e),$e.rowCacheEnd>unref(le)&&(le.value=$e.rowCacheEnd)}function At({hovered:$e,rowKey:Ne}){re.value=$e?Ne:null}function qe({expanded:$e,rowData:Ne,rowIndex:Ue,rowKey:kt}){var Et,Pt;const Lt=[...unref(ae)],vn=Lt.indexOf(kt);$e?vn===-1&&Lt.push(kt):vn>-1&&Lt.splice(vn,1),ae.value=Lt,k("update:expandedRowKeys",Lt),(Et=e.onRowExpand)==null||Et.call(e,{expanded:$e,rowData:Ne,rowIndex:Ue,rowKey:kt}),(Pt=e.onExpandedRowsChange)==null||Pt.call(e,Lt)}const xe=debounce(()=>{var $e,Ne,Ue,kt;oe.value=!0,pe.value={...unref(pe),...unref(de)},Ve(unref(ue),!1),de.value={},ue.value=null,($e=n.value)==null||$e.forceUpdate(),(Ne=r.value)==null||Ne.forceUpdate(),(Ue=g.value)==null||Ue.forceUpdate(),(kt=L.proxy)==null||kt.$forceUpdate(),oe.value=!1},0);function Ve($e,Ne=!1){!unref(Ie)||[n,r,g].forEach(Ue=>{const kt=unref(Ue);kt&&kt.resetAfterRowIndex($e,Ne)})}function he($e,Ne,Ue){const kt=unref(ue);(kt===null||kt>Ue)&&(ue.value=Ue),de.value[$e]=Ne}function Oe({rowKey:$e,height:Ne,rowIndex:Ue},kt){kt?kt===FixedDir.RIGHT?Ce.value[$e]=Ne:Fe.value[$e]=Ne:ze.value[$e]=Ne;const Et=Math.max(...[Fe,Ce,ze].map(Pt=>Pt.value[$e]||0));unref(pe)[$e]!==Et&&(he($e,Et,Ue),xe())}return watch(le,()=>$()),{hoveringRowKey:re,expandedRowKeys:ae,lastRenderedRowIndex:le,isDynamic:Ie,isResetting:oe,rowHeights:pe,resetAfterIndex:Ve,onRowExpanded:qe,onRowHovered:At,onRowsRendered:_e,onRowHeightChange:Oe}},useData=(e,{expandedRowKeys:n,lastRenderedRowIndex:r,resetAfterIndex:g})=>{const $=ref({}),L=computed(()=>{const oe={},{data:re,rowKey:ae}=e,le=unref(n);if(!le||!le.length)return re;const ue=[],pe=new Set;le.forEach(Fe=>pe.add(Fe));let de=re.slice();for(de.forEach(Fe=>oe[Fe[ae]]=0);de.length>0;){const Fe=de.shift();ue.push(Fe),pe.has(Fe[ae])&&Array.isArray(Fe.children)&&Fe.children.length>0&&(de=[...Fe.children,...de],Fe.children.forEach(ze=>oe[ze[ae]]=oe[Fe[ae]]+1))}return $.value=oe,ue}),k=computed(()=>{const{data:oe,expandColumnKey:re}=e;return re?unref(L):oe});return watch(k,(oe,re)=>{oe!==re&&(r.value=-1,g(0,!0))}),{data:k,depthMap:$}},sumReducer=(e,n)=>e+n,sum=e=>isArray$4(e)?e.reduce(sumReducer,0):e,tryCall=(e,n,r={})=>isFunction$1(e)?e(n):e??r,enforceUnit=e=>(["width","maxWidth","minWidth","height"].forEach(n=>{e[n]=addUnit(e[n])}),e),componentToSlot=e=>isVNode(e)?n=>h$2(e,n):e,useStyles=(e,{columnsTotalWidth:n,data:r,fixedColumnsOnLeft:g,fixedColumnsOnRight:$})=>{const L=computed(()=>{const{fixed:At,width:qe,vScrollbarSize:xe}=e,Ve=qe-xe;return At?Math.max(Math.round(unref(n)),Ve):Ve}),k=computed(()=>unref(L)+(e.fixed?e.vScrollbarSize:0)),oe=computed(()=>{const{height:At=0,maxHeight:qe=0,footerHeight:xe,hScrollbarSize:Ve}=e;if(qe>0){const he=unref(Fe),Oe=unref(re),Ne=unref(de)+he+Oe+Ve;return Math.min(Ne,qe-xe)}return At-xe}),re=computed(()=>{const{rowHeight:At,estimatedRowHeight:qe}=e,xe=unref(r);return isNumber(qe)?xe.length*qe:xe.length*At}),ae=computed(()=>{const{maxHeight:At}=e,qe=unref(oe);if(isNumber(At)&&At>0)return qe;const xe=unref(re)+unref(de)+unref(Fe);return Math.min(qe,xe)}),le=At=>At.width,ue=computed(()=>sum(unref(g).map(le))),pe=computed(()=>sum(unref($).map(le))),de=computed(()=>sum(e.headerHeight)),Fe=computed(()=>{var At;return(((At=e.fixedData)==null?void 0:At.length)||0)*e.rowHeight}),ze=computed(()=>unref(oe)-unref(de)-unref(Fe)),Ce=computed(()=>{const{style:At={},height:qe,width:xe}=e;return enforceUnit({...At,height:qe,width:xe})}),Ie=computed(()=>enforceUnit({height:e.footerHeight})),_e=computed(()=>({top:addUnit(unref(de)),bottom:addUnit(e.footerHeight),width:addUnit(e.width)}));return{bodyWidth:L,fixedTableHeight:ae,mainTableHeight:oe,leftTableWidth:ue,rightTableWidth:pe,headerWidth:k,rowsHeight:re,windowHeight:ze,footerHeight:Ie,emptyStyle:_e,rootStyle:Ce}},useAutoResize=e=>{const n=ref(),r=ref(0),g=ref(0);let $;return onMounted(()=>{$=useResizeObserver(n,([L])=>{const{width:k,height:oe}=L.contentRect,{paddingLeft:re,paddingRight:ae,paddingTop:le,paddingBottom:ue}=getComputedStyle(L.target),pe=Number.parseInt(re)||0,de=Number.parseInt(ae)||0,Fe=Number.parseInt(le)||0,ze=Number.parseInt(ue)||0;r.value=k-pe-de,g.value=oe-Fe-ze}).stop}),onBeforeUnmount(()=>{$?.()}),watch([r,g],([L,k])=>{var oe;(oe=e.onResize)==null||oe.call(e,{width:L,height:k})}),{sizer:n,width:r,height:g}};function useTable(e){const n=ref(),r=ref(),g=ref(),{columns:$,columnsStyles:L,columnsTotalWidth:k,fixedColumnsOnLeft:oe,fixedColumnsOnRight:re,hasFixedColumns:ae,mainColumns:le,onColumnSorted:ue}=useColumns(e,toRef(e,"columns"),toRef(e,"fixed")),{scrollTo:pe,scrollToLeft:de,scrollToTop:Fe,scrollToRow:ze,onScroll:Ce,onVerticalScroll:Ie,scrollPos:_e}=useScrollbar(e,{mainTableRef:n,leftTableRef:r,rightTableRef:g,onMaybeEndReached:Fn}),{expandedRowKeys:At,hoveringRowKey:qe,lastRenderedRowIndex:xe,isDynamic:Ve,isResetting:he,rowHeights:Oe,resetAfterIndex:$e,onRowExpanded:Ne,onRowHeightChange:Ue,onRowHovered:kt,onRowsRendered:Et}=useRow(e,{mainTableRef:n,leftTableRef:r,rightTableRef:g,onMaybeEndReached:Fn}),{data:Pt,depthMap:Lt}=useData(e,{expandedRowKeys:At,lastRenderedRowIndex:xe,resetAfterIndex:$e}),{bodyWidth:vn,fixedTableHeight:hn,mainTableHeight:Dt,leftTableWidth:jt,rightTableWidth:bn,headerWidth:Sn,rowsHeight:Cn,windowHeight:On,footerHeight:En,emptyStyle:An,rootStyle:In}=useStyles(e,{columnsTotalWidth:k,data:Pt,fixedColumnsOnLeft:oe,fixedColumnsOnRight:re}),$n=shallowRef(!1),Pn=ref(),Dn=computed(()=>{const kn=unref(Pt).length===0;return isArray$4(e.fixedData)?e.fixedData.length===0&&kn:kn});function Mn(kn){const{estimatedRowHeight:Nn,rowHeight:Rn,rowKey:wn}=e;return Nn?unref(Oe)[unref(Pt)[kn][wn]]||Nn:Rn}function Fn(){const{onEndReached:kn}=e;if(!kn)return;const{scrollTop:Nn}=unref(_e),Rn=unref(Cn),wn=unref(On),Tn=Rn-(Nn+wn)+e.hScrollbarSize;unref(xe)>=0&&Rn!==unref(Cn)&&kn(Tn)}return watch(()=>e.expandedRowKeys,kn=>At.value=kn,{deep:!0}),{columns:$,containerRef:Pn,mainTableRef:n,leftTableRef:r,rightTableRef:g,isDynamic:Ve,isResetting:he,isScrolling:$n,hoveringRowKey:qe,hasFixedColumns:ae,columnsStyles:L,columnsTotalWidth:k,data:Pt,expandedRowKeys:At,depthMap:Lt,fixedColumnsOnLeft:oe,fixedColumnsOnRight:re,mainColumns:le,bodyWidth:vn,emptyStyle:An,rootStyle:In,headerWidth:Sn,footerHeight:En,mainTableHeight:Dt,fixedTableHeight:hn,leftTableWidth:jt,rightTableWidth:bn,showEmpty:Dn,getRowHeight:Mn,onColumnSorted:ue,onRowHovered:kt,onRowExpanded:Ne,onRowsRendered:Et,onRowHeightChange:Ue,scrollTo:pe,scrollToLeft:de,scrollToTop:Fe,scrollToRow:ze,onScroll:Ce,onVerticalScroll:Ie}}const TableV2InjectionKey=Symbol("tableV2"),classType=String,columns={type:definePropType(Array),required:!0},fixedDataType={type:definePropType(Array)},dataType={...fixedDataType,required:!0},expandColumnKey=String,expandKeys={type:definePropType(Array),default:()=>mutable([])},requiredNumber={type:Number,required:!0},rowKey={type:definePropType([String,Number,Symbol]),default:"id"},styleType={type:definePropType(Object)},tableV2RowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},depth:Number,expandColumnKey,estimatedRowHeight:{...virtualizedGridProps.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:definePropType(Function)},onRowHover:{type:definePropType(Function)},onRowHeightChange:{type:definePropType(Function)},rowData:{type:definePropType(Object),required:!0},rowEventHandlers:{type:definePropType(Object)},rowIndex:{type:Number,required:!0},rowKey,style:{type:definePropType(Object)}}),requiredNumberType={type:Number,required:!0},tableV2HeaderProps=buildProps({class:String,columns,fixedHeaderData:{type:definePropType(Array)},headerData:{type:definePropType(Array),required:!0},headerHeight:{type:definePropType([Number,Array]),default:50},rowWidth:requiredNumberType,rowHeight:{type:Number,default:50},height:requiredNumberType,width:requiredNumberType}),tableV2GridProps=buildProps({columns,data:dataType,fixedData:fixedDataType,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,width:requiredNumber,height:requiredNumber,headerWidth:requiredNumber,headerHeight:tableV2HeaderProps.headerHeight,bodyWidth:requiredNumber,rowHeight:requiredNumber,cache:virtualizedListProps.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:virtualizedGridProps.scrollbarAlwaysOn,scrollbarStartGap:virtualizedGridProps.scrollbarStartGap,scrollbarEndGap:virtualizedGridProps.scrollbarEndGap,class:classType,style:styleType,containerStyle:styleType,getRowHeight:{type:definePropType(Function),required:!0},rowKey:tableV2RowProps.rowKey,onRowsRendered:{type:definePropType(Function)},onScroll:{type:definePropType(Function)}}),tableV2Props=buildProps({cache:tableV2GridProps.cache,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,rowKey,headerClass:{type:definePropType([String,Function])},headerProps:{type:definePropType([Object,Function])},headerCellProps:{type:definePropType([Object,Function])},headerHeight:tableV2HeaderProps.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:definePropType([String,Function])},rowProps:{type:definePropType([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:definePropType([Object,Function])},columns,data:dataType,dataGetter:{type:definePropType(Function)},fixedData:fixedDataType,expandColumnKey:tableV2RowProps.expandColumnKey,expandedRowKeys:expandKeys,defaultExpandedRowKeys:expandKeys,class:classType,fixed:Boolean,style:{type:definePropType(Object)},width:requiredNumber,height:requiredNumber,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:virtualizedGridProps.hScrollbarSize,vScrollbarSize:virtualizedGridProps.vScrollbarSize,scrollbarAlwaysOn:virtualizedScrollbarProps.alwaysOn,sortBy:{type:definePropType(Object),default:()=>({})},sortState:{type:definePropType(Object),default:void 0},onColumnSort:{type:definePropType(Function)},onExpandedRowsChange:{type:definePropType(Function)},onEndReached:{type:definePropType(Function)},onRowExpand:tableV2RowProps.onRowExpand,onScroll:tableV2GridProps.onScroll,onRowsRendered:tableV2GridProps.onRowsRendered,rowEventHandlers:tableV2RowProps.rowEventHandlers}),TableV2Cell=(e,{slots:n})=>{var r;const{cellData:g,style:$}=e,L=((r=g?.toString)==null?void 0:r.call(g))||"";return createVNode("div",{class:e.class,title:L,style:$},[n.default?n.default(e):L])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;const HeaderCell=(e,{slots:n})=>{var r,g;return n.default?n.default(e):createVNode("div",{class:e.class,title:(r=e.column)==null?void 0:r.title},[(g=e.column)==null?void 0:g.title])};HeaderCell.displayName="ElTableV2HeaderCell";HeaderCell.inheritAttrs=!1;const tableV2HeaderRowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},headerIndex:Number,style:{type:definePropType(Object)}}),TableV2HeaderRow=defineComponent({name:"ElTableV2HeaderRow",props:tableV2HeaderRowProps,setup(e,{slots:n}){return()=>{const{columns:r,columnsStyles:g,headerIndex:$,style:L}=e;let k=r.map((oe,re)=>n.cell({columns:r,column:oe,columnIndex:re,headerIndex:$,style:g[oe.key]}));return n.header&&(k=n.header({cells:k.map(oe=>isArray$4(oe)&&oe.length===1?oe[0]:oe),columns:r,headerIndex:$})),createVNode("div",{class:e.class,style:L},[k])}}}),COMPONENT_NAME$4="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$4,props:tableV2HeaderProps,setup(e,{slots:n,expose:r}){const g=useNamespace("table-v2"),$=ref(),L=computed(()=>enforceUnit({width:e.width,height:e.height})),k=computed(()=>enforceUnit({width:e.rowWidth,height:e.height})),oe=computed(()=>castArray$1(unref(e.headerHeight))),re=ue=>{const pe=unref($);nextTick(()=>{pe?.scroll({left:ue})})},ae=()=>{const ue=g.e("fixed-header-row"),{columns:pe,fixedHeaderData:de,rowHeight:Fe}=e;return de?.map((ze,Ce)=>{var Ie;const _e=enforceUnit({height:Fe,width:"100%"});return(Ie=n.fixed)==null?void 0:Ie.call(n,{class:ue,columns:pe,rowData:ze,rowIndex:-(Ce+1),style:_e})})},le=()=>{const ue=g.e("dynamic-header-row"),{columns:pe}=e;return unref(oe).map((de,Fe)=>{var ze;const Ce=enforceUnit({width:"100%",height:de});return(ze=n.dynamic)==null?void 0:ze.call(n,{class:ue,columns:pe,headerIndex:Fe,style:Ce})})};return r({scrollToLeft:re}),()=>{if(!(e.height<=0))return createVNode("div",{ref:$,class:e.class,style:unref(L)},[createVNode("div",{style:unref(k),class:g.e("header")},[le(),ae()])])}}}),useTableRow=e=>{const{isScrolling:n}=inject(TableV2InjectionKey),r=ref(!1),g=ref(),$=computed(()=>isNumber(e.estimatedRowHeight)&&e.rowIndex>=0),L=(re=!1)=>{const ae=unref(g);if(!ae)return;const{columns:le,onRowHeightChange:ue,rowKey:pe,rowIndex:de,style:Fe}=e,{height:ze}=ae.getBoundingClientRect();r.value=!0,nextTick(()=>{if(re||ze!==Number.parseInt(Fe.height)){const Ce=le[0],Ie=Ce?.placeholderSign===placeholderSign;ue?.({rowKey:pe,height:ze,rowIndex:de},Ce&&!Ie&&Ce.fixed)}})},k=computed(()=>{const{rowData:re,rowIndex:ae,rowKey:le,onRowHover:ue}=e,pe=e.rowEventHandlers||{},de={};return Object.entries(pe).forEach(([Fe,ze])=>{isFunction$1(ze)&&(de[Fe]=Ce=>{ze({event:Ce,rowData:re,rowIndex:ae,rowKey:le})})}),ue&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:Fe,hovered:ze})=>{const Ce=de[Fe];de[Fe]=Ie=>{ue({event:Ie,hovered:ze,rowData:re,rowIndex:ae,rowKey:le}),Ce?.(Ie)}}),de}),oe=re=>{const{onRowExpand:ae,rowData:le,rowIndex:ue,rowKey:pe}=e;ae?.({expanded:re,rowData:le,rowIndex:ue,rowKey:pe})};return onMounted(()=>{unref($)&&L(!0)}),{isScrolling:n,measurable:$,measured:r,rowRef:g,eventHandlers:k,onExpand:oe}},COMPONENT_NAME$3="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$3,props:tableV2RowProps,setup(e,{expose:n,slots:r,attrs:g}){const{eventHandlers:$,isScrolling:L,measurable:k,measured:oe,rowRef:re,onExpand:ae}=useTableRow(e);return n({onExpand:ae}),()=>{const{columns:le,columnsStyles:ue,expandColumnKey:pe,depth:de,rowData:Fe,rowIndex:ze,style:Ce}=e;let Ie=le.map((_e,At)=>{const qe=isArray$4(Fe.children)&&Fe.children.length>0&&_e.key===pe;return r.cell({column:_e,columns:le,columnIndex:At,depth:de,style:ue[_e.key],rowData:Fe,rowIndex:ze,isScrolling:unref(L),expandIconProps:qe?{rowData:Fe,rowIndex:ze,onExpand:ae}:void 0})});if(r.row&&(Ie=r.row({cells:Ie.map(_e=>isArray$4(_e)&&_e.length===1?_e[0]:_e),style:Ce,columns:le,depth:de,rowData:Fe,rowIndex:ze,isScrolling:unref(L)})),unref(k)){const{height:_e,...At}=Ce||{},qe=unref(oe);return createVNode("div",mergeProps({ref:re,class:e.class,style:qe?Ce:At},g,unref($)),[Ie])}return createVNode("div",mergeProps(g,{ref:re,class:e.class,style:Ce},unref($)),[Ie])}}}),SortIcon=e=>{const{sortOrder:n}=e;return createVNode(ElIcon,{size:14,class:e.class},{default:()=>[n===SortOrder.ASC?createVNode(sort_up_default,null,null):createVNode(sort_down_default,null,null)]})},ExpandIcon=e=>{const{expanded:n,expandable:r,onExpand:g,style:$,size:L}=e,k={onClick:r?()=>g(!n):void 0,class:e.class};return createVNode(ElIcon,mergeProps(k,{size:L,style:$}),{default:()=>[createVNode(arrow_right_default,null,null)]})},COMPONENT_NAME$2="ElTableV2Grid",useTableGrid=e=>{const n=ref(),r=ref(),g=computed(()=>{const{data:ze,rowHeight:Ce,estimatedRowHeight:Ie}=e;if(!Ie)return ze.length*Ce}),$=computed(()=>{const{fixedData:ze,rowHeight:Ce}=e;return(ze?.length||0)*Ce}),L=computed(()=>sum(e.headerHeight)),k=computed(()=>{const{height:ze}=e;return Math.max(0,ze-unref(L)-unref($))}),oe=computed(()=>unref(L)+unref($)>0),re=({data:ze,rowIndex:Ce})=>ze[Ce][e.rowKey];function ae({rowCacheStart:ze,rowCacheEnd:Ce,rowVisibleStart:Ie,rowVisibleEnd:_e}){var At;(At=e.onRowsRendered)==null||At.call(e,{rowCacheStart:ze,rowCacheEnd:Ce,rowVisibleStart:Ie,rowVisibleEnd:_e})}function le(ze,Ce){var Ie;(Ie=r.value)==null||Ie.resetAfterRowIndex(ze,Ce)}function ue(ze,Ce){const Ie=unref(n),_e=unref(r);!Ie||!_e||(isObject$4(ze)?(Ie.scrollToLeft(ze.scrollLeft),_e.scrollTo(ze)):(Ie.scrollToLeft(ze),_e.scrollTo({scrollLeft:ze,scrollTop:Ce})))}function pe(ze){var Ce;(Ce=unref(r))==null||Ce.scrollTo({scrollTop:ze})}function de(ze,Ce){var Ie;(Ie=unref(r))==null||Ie.scrollToItem(ze,1,Ce)}function Fe(){var ze,Ce;(ze=unref(r))==null||ze.$forceUpdate(),(Ce=unref(n))==null||Ce.$forceUpdate()}return{bodyRef:r,forceUpdate:Fe,fixedRowHeight:$,gridHeight:k,hasHeader:oe,headerHeight:L,headerRef:n,totalHeight:g,itemKey:re,onItemRendered:ae,resetAfterRowIndex:le,scrollTo:ue,scrollToTop:pe,scrollToRow:de}},TableGrid=defineComponent({name:COMPONENT_NAME$2,props:tableV2GridProps,setup(e,{slots:n,expose:r}){const{ns:g}=inject(TableV2InjectionKey),{bodyRef:$,fixedRowHeight:L,gridHeight:k,hasHeader:oe,headerRef:re,headerHeight:ae,totalHeight:le,forceUpdate:ue,itemKey:pe,onItemRendered:de,resetAfterRowIndex:Fe,scrollTo:ze,scrollToTop:Ce,scrollToRow:Ie}=useTableGrid(e);r({forceUpdate:ue,totalHeight:le,scrollTo:ze,scrollToTop:Ce,scrollToRow:Ie,resetAfterRowIndex:Fe});const _e=()=>e.bodyWidth;return()=>{const{cache:At,columns:qe,data:xe,fixedData:Ve,useIsScrolling:he,scrollbarAlwaysOn:Oe,scrollbarEndGap:$e,scrollbarStartGap:Ne,style:Ue,rowHeight:kt,bodyWidth:Et,estimatedRowHeight:Pt,headerWidth:Lt,height:vn,width:hn,getRowHeight:Dt,onScroll:jt}=e,bn=isNumber(Pt),Sn=bn?DynamicSizeGrid:FixedSizeGrid,Cn=unref(ae);return createVNode("div",{role:"table",class:[g.e("table"),e.class],style:Ue},[createVNode(Sn,{ref:$,data:xe,useIsScrolling:he,itemKey:pe,columnCache:0,columnWidth:bn?_e:Et,totalColumn:1,totalRow:xe.length,rowCache:At,rowHeight:bn?Dt:kt,width:hn,height:unref(k),class:g.e("body"),scrollbarStartGap:Ne,scrollbarEndGap:$e,scrollbarAlwaysOn:Oe,onScroll:jt,onItemRendered:de,perfMode:!1},{default:On=>{var En;const An=xe[On.rowIndex];return(En=n.row)==null?void 0:En.call(n,{...On,columns:qe,rowData:An})}}),unref(oe)&&createVNode(TableV2Header,{ref:re,class:g.e("header-wrapper"),columns:qe,headerData:xe,headerHeight:e.headerHeight,fixedHeaderData:Ve,rowWidth:Lt,rowHeight:kt,width:hn,height:Math.min(Cn+unref(L),vn)},{dynamic:n.header,fixed:n.row})])}}});function _isSlot$5(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const MainTable=(e,{slots:n})=>{const{mainTableRef:r,...g}=e;return createVNode(TableGrid,mergeProps({ref:r},g),_isSlot$5(n)?n:{default:()=>[n]})};function _isSlot$4(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const LeftTable$1=(e,{slots:n})=>{if(!e.columns.length)return;const{leftTableRef:r,...g}=e;return createVNode(TableGrid,mergeProps({ref:r},g),_isSlot$4(n)?n:{default:()=>[n]})};function _isSlot$3(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const LeftTable=(e,{slots:n})=>{if(!e.columns.length)return;const{rightTableRef:r,...g}=e;return createVNode(TableGrid,mergeProps({ref:r},g),_isSlot$3(n)?n:{default:()=>[n]})};function _isSlot$2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const RowRenderer=(e,{slots:n})=>{const{columns:r,columnsStyles:g,depthMap:$,expandColumnKey:L,expandedRowKeys:k,estimatedRowHeight:oe,hasFixedColumns:re,hoveringRowKey:ae,rowData:le,rowIndex:ue,style:pe,isScrolling:de,rowProps:Fe,rowClass:ze,rowKey:Ce,rowEventHandlers:Ie,ns:_e,onRowHovered:At,onRowExpanded:qe}=e,xe=tryCall(ze,{columns:r,rowData:le,rowIndex:ue},""),Ve=tryCall(Fe,{columns:r,rowData:le,rowIndex:ue}),he=le[Ce],Oe=$[he]||0,$e=Boolean(L),Ne=ue<0,Ue=[_e.e("row"),xe,{[_e.e(`row-depth-${Oe}`)]:$e&&ue>=0,[_e.is("expanded")]:$e&&k.includes(he),[_e.is("hovered")]:!de&&he===ae,[_e.is("fixed")]:!Oe&&Ne,[_e.is("customized")]:Boolean(n.row)}],kt=re?At:void 0,Et={...Ve,columns:r,columnsStyles:g,class:Ue,depth:Oe,expandColumnKey:L,estimatedRowHeight:Ne?void 0:oe,isScrolling:de,rowIndex:ue,rowData:le,rowKey:he,rowEventHandlers:Ie,style:pe};return createVNode(TableV2Row,mergeProps(Et,{onRowHover:kt,onRowExpand:qe}),_isSlot$2(n)?n:{default:()=>[n]})},CellRenderer=({columns:e,column:n,columnIndex:r,depth:g,expandIconProps:$,isScrolling:L,rowData:k,rowIndex:oe,style:re,expandedRowKeys:ae,ns:le,cellProps:ue,expandColumnKey:pe,indentSize:de,iconSize:Fe,rowKey:ze},{slots:Ce})=>{const Ie=enforceUnit(re);if(n.placeholderSign===placeholderSign)return createVNode("div",{class:le.em("row-cell","placeholder"),style:Ie},null);const{cellRenderer:_e,dataKey:At,dataGetter:qe}=n,Ve=componentToSlot(_e)||Ce.default||(vn=>createVNode(TableV2Cell,vn,null)),he=isFunction$1(qe)?qe({columns:e,column:n,columnIndex:r,rowData:k,rowIndex:oe}):get(k,At??""),Oe=tryCall(ue,{cellData:he,columns:e,column:n,columnIndex:r,rowIndex:oe,rowData:k}),$e={class:le.e("cell-text"),columns:e,column:n,columnIndex:r,cellData:he,isScrolling:L,rowData:k,rowIndex:oe},Ne=Ve($e),Ue=[le.e("row-cell"),n.align===Alignment.CENTER&&le.is("align-center"),n.align===Alignment.RIGHT&&le.is("align-right")],kt=oe>=0&&n.key===pe,Et=oe>=0&&ae.includes(k[ze]);let Pt;const Lt=`margin-inline-start: ${g*de}px;`;return kt&&(isObject$4($)?Pt=createVNode(ExpandIcon,mergeProps($,{class:[le.e("expand-icon"),le.is("expanded",Et)],size:Fe,expanded:Et,style:Lt,expandable:!0}),null):Pt=createVNode("div",{style:[Lt,`width: ${Fe}px; height: ${Fe}px;`].join(" ")},null)),createVNode("div",mergeProps({class:Ue,style:Ie},Oe),[Pt,Ne])};CellRenderer.inheritAttrs=!1;function _isSlot$1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const HeaderRenderer=({columns:e,columnsStyles:n,headerIndex:r,style:g,headerClass:$,headerProps:L,ns:k},{slots:oe})=>{const re={columns:e,headerIndex:r},ae=[k.e("header-row"),tryCall($,re,""),{[k.is("customized")]:Boolean(oe.header)}],le={...tryCall(L,re),columnsStyles:n,class:ae,columns:e,headerIndex:r,style:g};return createVNode(TableV2HeaderRow,le,_isSlot$1(oe)?oe:{default:()=>[oe]})},HeaderCellRenderer=(e,{slots:n})=>{const{column:r,ns:g,style:$,onColumnSorted:L}=e,k=enforceUnit($);if(r.placeholderSign===placeholderSign)return createVNode("div",{class:g.em("header-row-cell","placeholder"),style:k},null);const{headerCellRenderer:oe,headerClass:re,sortable:ae}=r,le={...e,class:g.e("header-cell-text")},pe=(componentToSlot(oe)||n.default||(qe=>createVNode(HeaderCell,qe,null)))(le),{sortBy:de,sortState:Fe,headerCellProps:ze}=e;let Ce,Ie;if(Fe){const qe=Fe[r.key];Ce=Boolean(oppositeOrderMap[qe]),Ie=Ce?qe:SortOrder.ASC}else Ce=r.key===de.key,Ie=Ce?de.order:SortOrder.ASC;const _e=[g.e("header-cell"),tryCall(re,e,""),r.align===Alignment.CENTER&&g.is("align-center"),r.align===Alignment.RIGHT&&g.is("align-right"),ae&&g.is("sortable")],At={...tryCall(ze,e),onClick:r.sortable?L:void 0,class:_e,style:k,["data-key"]:r.key};return createVNode("div",At,[pe,ae&&createVNode(SortIcon,{class:[g.e("sort-icon"),Ce&&g.is("sorting")],sortOrder:Ie},null)])},Footer$1=(e,{slots:n})=>{var r;return createVNode("div",{class:e.class,style:e.style},[(r=n.default)==null?void 0:r.call(n)])};Footer$1.displayName="ElTableV2Footer";const Footer=(e,{slots:n})=>createVNode("div",{class:e.class,style:e.style},[n.default?n.default():createVNode(ElEmpty,null,null)]);Footer.displayName="ElTableV2Empty";const Overlay=(e,{slots:n})=>{var r;return createVNode("div",{class:e.class,style:e.style},[(r=n.default)==null?void 0:r.call(n)])};Overlay.displayName="ElTableV2Overlay";function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode(e)}const COMPONENT_NAME$1="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$1,props:tableV2Props,setup(e,{slots:n,expose:r}){const g=useNamespace("table-v2"),{columnsStyles:$,fixedColumnsOnLeft:L,fixedColumnsOnRight:k,mainColumns:oe,mainTableHeight:re,fixedTableHeight:ae,leftTableWidth:le,rightTableWidth:ue,data:pe,depthMap:de,expandedRowKeys:Fe,hasFixedColumns:ze,hoveringRowKey:Ce,mainTableRef:Ie,leftTableRef:_e,rightTableRef:At,isDynamic:qe,isResetting:xe,isScrolling:Ve,bodyWidth:he,emptyStyle:Oe,rootStyle:$e,headerWidth:Ne,footerHeight:Ue,showEmpty:kt,scrollTo:Et,scrollToLeft:Pt,scrollToTop:Lt,scrollToRow:vn,getRowHeight:hn,onColumnSorted:Dt,onRowHeightChange:jt,onRowHovered:bn,onRowExpanded:Sn,onRowsRendered:Cn,onScroll:On,onVerticalScroll:En}=useTable(e);return r({scrollTo:Et,scrollToLeft:Pt,scrollToTop:Lt,scrollToRow:vn}),provide(TableV2InjectionKey,{ns:g,isResetting:xe,hoveringRowKey:Ce,isScrolling:Ve}),()=>{const{cache:An,cellProps:In,estimatedRowHeight:$n,expandColumnKey:Pn,fixedData:Dn,headerHeight:Mn,headerClass:Fn,headerProps:kn,headerCellProps:Nn,sortBy:Rn,sortState:wn,rowHeight:Tn,rowClass:xn,rowEventHandlers:Bn,rowKey:Ln,rowProps:Hn,scrollbarAlwaysOn:zn,indentSize:Jn,iconSize:co,useIsScrolling:Gn,vScrollbarSize:eo,width:ao}=e,ho=unref(pe),Yn={cache:An,class:g.e("main"),columns:unref(oe),data:ho,fixedData:Dn,estimatedRowHeight:$n,bodyWidth:unref(he),headerHeight:Mn,headerWidth:unref(Ne),height:unref(re),mainTableRef:Ie,rowKey:Ln,rowHeight:Tn,scrollbarAlwaysOn:zn,scrollbarStartGap:2,scrollbarEndGap:eo,useIsScrolling:Gn,width:ao,getRowHeight:hn,onRowsRendered:Cn,onScroll:On},Wn=unref(le),Vn=unref(ae),_n={cache:An,class:g.e("left"),columns:unref(L),data:ho,estimatedRowHeight:$n,leftTableRef:_e,rowHeight:Tn,bodyWidth:Wn,headerWidth:Wn,headerHeight:Mn,height:Vn,rowKey:Ln,scrollbarAlwaysOn:zn,scrollbarStartGap:2,scrollbarEndGap:eo,useIsScrolling:Gn,width:Wn,getRowHeight:hn,onScroll:En},jn=unref(ue)+eo,Un={cache:An,class:g.e("right"),columns:unref(k),data:ho,estimatedRowHeight:$n,rightTableRef:At,rowHeight:Tn,bodyWidth:jn,headerWidth:jn,headerHeight:Mn,height:Vn,rowKey:Ln,scrollbarAlwaysOn:zn,scrollbarStartGap:2,scrollbarEndGap:eo,width:jn,style:`--${unref(g.namespace)}-table-scrollbar-size: ${eo}px`,useIsScrolling:Gn,getRowHeight:hn,onScroll:En},Xn=unref($),Zn={ns:g,depthMap:unref(de),columnsStyles:Xn,expandColumnKey:Pn,expandedRowKeys:unref(Fe),estimatedRowHeight:$n,hasFixedColumns:unref(ze),hoveringRowKey:unref(Ce),rowProps:Hn,rowClass:xn,rowKey:Ln,rowEventHandlers:Bn,onRowHovered:bn,onRowExpanded:Sn,onRowHeightChange:jt},to={cellProps:In,expandColumnKey:Pn,indentSize:Jn,iconSize:co,rowKey:Ln,expandedRowKeys:unref(Fe),ns:g},ro={ns:g,headerClass:Fn,headerProps:kn,columnsStyles:Xn},lo={ns:g,sortBy:Rn,sortState:wn,headerCellProps:Nn,onColumnSorted:Dt},uo={row:go=>createVNode(RowRenderer,mergeProps(go,Zn),{row:n.row,cell:Co=>n.cell?createVNode(CellRenderer,mergeProps(Co,to,{style:Xn[Co.column.key]}),{default:()=>[n.cell]}):createVNode(CellRenderer,mergeProps(Co,to,{style:Xn[Co.column.key]}),null)}),header:go=>createVNode(HeaderRenderer,mergeProps(go,ro),{header:n.header,cell:Co=>n["header-cell"]?createVNode(HeaderCellRenderer,mergeProps(Co,lo,{style:Xn[Co.column.key]}),{default:()=>[n["header-cell"]]}):createVNode(HeaderCellRenderer,mergeProps(Co,lo,{style:Xn[Co.column.key]}),null)})},yo=[e.class,g.b(),g.e("root"),{[g.is("dynamic")]:unref(qe)}],oo={class:g.e("footer"),style:unref(Ue)};return createVNode("div",{class:yo,style:unref($e)},[createVNode(MainTable,Yn,_isSlot(uo)?uo:{default:()=>[uo]}),createVNode(LeftTable$1,_n,_isSlot(uo)?uo:{default:()=>[uo]}),createVNode(LeftTable,Un,_isSlot(uo)?uo:{default:()=>[uo]}),n.footer&&createVNode(Footer$1,oo,{default:n.footer}),unref(kt)&&createVNode(Footer,{class:g.e("empty"),style:unref(Oe)},{default:n.empty}),n.overlay&&createVNode(Overlay,{class:g.e("overlay")},{default:n.overlay})])}}}),autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup(e,{slots:n}){const r=useNamespace("auto-resizer"),{height:g,width:$,sizer:L}=useAutoResize(e),k={width:"100%",height:"100%"};return()=>{var oe;return createVNode("div",{ref:L,class:r.b(),style:k},[(oe=n.default)==null?void 0:oe.call(n,{height:g.value,width:$.value})])}}}),ElTableV2=withInstall(TableV2),ElAutoResizer=withInstall(AutoResizer),tabBarProps=buildProps({tabs:{type:definePropType(Array),default:()=>mutable([])}}),__default__$g={name:"ElTabBar"},_sfc_main$U=defineComponent({...__default__$g,props:tabBarProps,setup(e,{expose:n}){const r=e,g="ElTabBar",$=getCurrentInstance(),L=inject(tabsRootContextKey);L||throwError(g,"");const k=useNamespace("tabs"),oe=ref(),re=ref(),ae=()=>{let ue=0,pe=0;const de=["top","bottom"].includes(L.props.tabPosition)?"width":"height",Fe=de==="width"?"x":"y";return r.tabs.every(ze=>{var Ce,Ie,_e,At;const qe=(Ie=(Ce=$.parent)==null?void 0:Ce.refs)==null?void 0:Ie[`tab-${ze.paneName}`];if(!qe)return!1;if(!ze.active)return!0;pe=qe[`client${capitalize(de)}`];const xe=Fe==="x"?"left":"top";ue=qe.getBoundingClientRect()[xe]-((At=(_e=qe.parentElement)==null?void 0:_e.getBoundingClientRect()[xe])!=null?At:0);const Ve=window.getComputedStyle(qe);return de==="width"&&(r.tabs.length>1&&(pe-=Number.parseFloat(Ve.paddingLeft)+Number.parseFloat(Ve.paddingRight)),ue+=Number.parseFloat(Ve.paddingLeft)),!1}),{[de]:`${pe}px`,transform:`translate${capitalize(Fe)}(${ue}px)`}},le=()=>re.value=ae();return watch(()=>r.tabs,async()=>{await nextTick(),le()},{immediate:!0}),useResizeObserver(oe,()=>le()),n({ref:oe,update:le}),(ue,pe)=>(openBlock(),createElementBlock("div",{ref_key:"barRef",ref:oe,class:normalizeClass([unref(k).e("active-bar"),unref(k).is(unref(L).props.tabPosition)]),style:normalizeStyle(re.value)},null,6))}});var TabBar=_export_sfc$2(_sfc_main$U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const tabNavProps=buildProps({panes:{type:definePropType(Array),default:()=>mutable([])},currentName:{type:[String,Number],default:""},editable:Boolean,onTabClick:{type:definePropType(Function),default:NOOP},onTabRemove:{type:definePropType(Function),default:NOOP},type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),COMPONENT_NAME="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME,props:tabNavProps,setup(e,{expose:n}){const r=getCurrentInstance(),g=inject(tabsRootContextKey);g||throwError(COMPONENT_NAME,"");const $=useNamespace("tabs"),L=useDocumentVisibility(),k=useWindowFocus(),oe=ref(),re=ref(),ae=ref(),le=ref(!1),ue=ref(0),pe=ref(!1),de=ref(!0),Fe=computed(()=>["top","bottom"].includes(g.props.tabPosition)?"width":"height"),ze=computed(()=>({transform:`translate${Fe.value==="width"?"X":"Y"}(-${ue.value}px)`})),Ce=()=>{if(!oe.value)return;const he=oe.value[`offset${capitalize(Fe.value)}`],Oe=ue.value;if(!Oe)return;const $e=Oe>he?Oe-he:0;ue.value=$e},Ie=()=>{if(!oe.value||!re.value)return;const he=re.value[`offset${capitalize(Fe.value)}`],Oe=oe.value[`offset${capitalize(Fe.value)}`],$e=ue.value;if(he-$e<=Oe)return;const Ne=he-$e>Oe*2?$e+Oe:he-Oe;ue.value=Ne},_e=async()=>{const he=re.value;if(!le.value||!ae.value||!oe.value||!he)return;await nextTick();const Oe=ae.value.querySelector(".is-active");if(!Oe)return;const $e=oe.value,Ne=["top","bottom"].includes(g.props.tabPosition),Ue=Oe.getBoundingClientRect(),kt=$e.getBoundingClientRect(),Et=Ne?he.offsetWidth-kt.width:he.offsetHeight-kt.height,Pt=ue.value;let Lt=Pt;Ne?(Ue.leftkt.right&&(Lt=Pt+Ue.right-kt.right)):(Ue.topkt.bottom&&(Lt=Pt+(Ue.bottom-kt.bottom))),Lt=Math.max(Lt,0),ue.value=Math.min(Lt,Et)},At=()=>{if(!re.value||!oe.value)return;const he=re.value[`offset${capitalize(Fe.value)}`],Oe=oe.value[`offset${capitalize(Fe.value)}`],$e=ue.value;if(Oe0&&(ue.value=0)},qe=he=>{const Oe=he.code,{up:$e,down:Ne,left:Ue,right:kt}=EVENT_CODE;if(![$e,Ne,Ue,kt].includes(Oe))return;const Et=Array.from(he.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Pt=Et.indexOf(he.target);let Lt;Oe===Ue||Oe===$e?Pt===0?Lt=Et.length-1:Lt=Pt-1:Pt{de.value&&(pe.value=!0)},Ve=()=>pe.value=!1;return watch(L,he=>{he==="hidden"?de.value=!1:he==="visible"&&setTimeout(()=>de.value=!0,50)}),watch(k,he=>{he?setTimeout(()=>de.value=!0,50):de.value=!1}),useResizeObserver(ae,At),onMounted(()=>setTimeout(()=>_e(),0)),onUpdated(()=>At()),n({scrollToActiveTab:_e,removeFocus:Ve}),watch(()=>e.panes,()=>r.update(),{flush:"post"}),()=>{const he=le.value?[createVNode("span",{class:[$.e("nav-prev"),$.is("disabled",!le.value.prev)],onClick:Ce},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_left_default,null,null)]})]),createVNode("span",{class:[$.e("nav-next"),$.is("disabled",!le.value.next)],onClick:Ie},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_right_default,null,null)]})])]:null,Oe=e.panes.map(($e,Ne)=>{var Ue,kt,Et,Pt;const Lt=$e.props.disabled,vn=(kt=(Ue=$e.props.name)!=null?Ue:$e.index)!=null?kt:`${Ne}`,hn=!Lt&&($e.isClosable||e.editable);$e.index=`${Ne}`;const Dt=hn?createVNode(ElIcon,{class:"is-icon-close",onClick:Sn=>e.onTabRemove($e,Sn)},{default:()=>[createVNode(close_default,null,null)]}):null,jt=((Pt=(Et=$e.slots).label)==null?void 0:Pt.call(Et))||$e.props.label,bn=!Lt&&$e.active?0:-1;return createVNode("div",{ref:`tab-${vn}`,class:[$.e("item"),$.is(g.props.tabPosition),$.is("active",$e.active),$.is("disabled",Lt),$.is("closable",hn),$.is("focus",pe.value)],id:`tab-${vn}`,key:`tab-${vn}`,"aria-controls":`pane-${vn}`,role:"tab","aria-selected":$e.active,tabindex:bn,onFocus:()=>xe(),onBlur:()=>Ve(),onClick:Sn=>{Ve(),e.onTabClick($e,vn,Sn)},onKeydown:Sn=>{hn&&(Sn.code===EVENT_CODE.delete||Sn.code===EVENT_CODE.backspace)&&e.onTabRemove($e,Sn)}},[jt,Dt])});return createVNode("div",{ref:ae,class:[$.e("nav-wrap"),$.is("scrollable",!!le.value),$.is(g.props.tabPosition)]},[he,createVNode("div",{class:$.e("nav-scroll"),ref:oe},[createVNode("div",{class:[$.e("nav"),$.is(g.props.tabPosition),$.is("stretch",e.stretch&&["top","bottom"].includes(g.props.tabPosition))],ref:re,style:ze.value,role:"tablist",onKeydown:qe},[e.type?null:createVNode(TabBar,{tabs:[...e.panes]},null),Oe])])])}}}),tabsProps=buildProps({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:definePropType(Function),default:()=>!0},stretch:Boolean}),isPanelName=e=>isString$2(e)||isNumber(e),tabsEmits={[UPDATE_MODEL_EVENT]:e=>isPanelName(e),"tab-click":(e,n)=>n instanceof Event,"tab-change":e=>isPanelName(e),edit:(e,n)=>["remove","add"].includes(n),"tab-remove":e=>isPanelName(e),"tab-add":()=>!0};var Tabs$1=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup(e,{emit:n,slots:r,expose:g}){var $,L;const k=useNamespace("tabs"),oe=ref(),re=reactive({}),ae=ref((L=($=e.modelValue)!=null?$:e.activeName)!=null?L:"0"),le=ze=>{ae.value=ze,n(UPDATE_MODEL_EVENT,ze),n("tab-change",ze)},ue=async ze=>{var Ce,Ie,_e;if(!(ae.value===ze||isUndefined(ze)))try{await((Ce=e.beforeLeave)==null?void 0:Ce.call(e,ze,ae.value))!==!1&&(le(ze),(_e=(Ie=oe.value)==null?void 0:Ie.removeFocus)==null||_e.call(Ie))}catch{}},pe=(ze,Ce,Ie)=>{ze.props.disabled||(ue(Ce),n("tab-click",ze,Ie))},de=(ze,Ce)=>{ze.props.disabled||isUndefined(ze.props.name)||(Ce.stopPropagation(),n("edit",ze.props.name,"remove"),n("tab-remove",ze.props.name))},Fe=()=>{n("edit",void 0,"add"),n("tab-add")};return useDeprecated({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},computed(()=>!!e.activeName)),watch(()=>e.activeName,ze=>ue(ze)),watch(()=>e.modelValue,ze=>ue(ze)),watch(ae,async()=>{var ze;await nextTick(),(ze=oe.value)==null||ze.scrollToActiveTab()}),provide(tabsRootContextKey,{props:e,currentName:ae,registerPane:Ie=>re[Ie.uid]=Ie,unregisterPane:Ie=>delete re[Ie]}),g({currentName:ae}),()=>{const ze=e.editable||e.addable?createVNode("span",{class:k.e("new-tab"),tabindex:"0",onClick:Fe,onKeydown:_e=>{_e.code===EVENT_CODE.enter&&Fe()}},[createVNode(ElIcon,{class:k.is("icon-plus")},{default:()=>[createVNode(plus_default,null,null)]})]):null,Ce=createVNode("div",{class:[k.e("header"),k.is(e.tabPosition)]},[ze,createVNode(TabNav,{ref:oe,currentName:ae.value,editable:e.editable,type:e.type,panes:Object.values(re),stretch:e.stretch,onTabClick:pe,onTabRemove:de},null)]),Ie=createVNode("div",{class:k.e("content")},[renderSlot(r,"default")]);return createVNode("div",{class:[k.b(),k.m(e.tabPosition),{[k.m("card")]:e.type==="card",[k.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[Ce,Ie]:[Ie,Ce]])}}});const tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),_hoisted_1$G=["id","aria-hidden","aria-labelledby"],__default__$f={name:"ElTabPane"},_sfc_main$T=defineComponent({...__default__$f,props:tabPaneProps,setup(e){const n=e,r="ElTabPane",g=getCurrentInstance(),$=useSlots(),L=inject(tabsRootContextKey);L||throwError(r,"usage: ");const k=useNamespace("tab-pane"),oe=ref(),re=computed(()=>n.closable||L.props.closable),ae=computedEager(()=>{var Fe;return L.currentName.value===((Fe=n.name)!=null?Fe:oe.value)}),le=ref(ae.value),ue=computed(()=>{var Fe;return(Fe=n.name)!=null?Fe:oe.value}),pe=computedEager(()=>!n.lazy||le.value||ae.value);watch(ae,Fe=>{Fe&&(le.value=!0)});const de=reactive({uid:g.uid,slots:$,props:n,paneName:ue,active:ae,index:oe,isClosable:re});return onMounted(()=>{L.registerPane(de)}),onUnmounted(()=>{L.unregisterPane(de.uid)}),(Fe,ze)=>unref(pe)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${unref(ue)}`,class:normalizeClass(unref(k).b()),role:"tabpanel","aria-hidden":!unref(ae),"aria-labelledby":`tab-${unref(ue)}`},[renderSlot(Fe.$slots,"default")],10,_hoisted_1$G)),[[vShow,unref(ae)]]):createCommentVNode("v-if",!0)}});var TabPane=_export_sfc$2(_sfc_main$T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const ElTabs=withInstall(Tabs$1,{TabPane}),ElTabPane=withNoopInstall(TabPane),timeSelectProps=buildProps({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:useSizeProp,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:definePropType([String,Object]),default:()=>clock_default},clearIcon:{type:definePropType([String,Object]),default:()=>circle_close_default}}),parseTime=e=>{const n=(e||"").split(":");if(n.length>=2){let r=Number.parseInt(n[0],10);const g=Number.parseInt(n[1],10),$=e.toUpperCase();return $.includes("AM")&&r===12?r=0:$.includes("PM")&&r!==12&&(r+=12),{hours:r,minutes:g}}return null},compareTime=(e,n)=>{const r=parseTime(e);if(!r)return-1;const g=parseTime(n);if(!g)return-1;const $=r.minutes+r.hours*60,L=g.minutes+g.hours*60;return $===L?0:$>L?1:-1},padTime=e=>`${e}`.padStart(2,"0"),formatTime=e=>`${padTime(e.hours)}:${padTime(e.minutes)}`,nextTime=(e,n)=>{const r=parseTime(e);if(!r)return"";const g=parseTime(n);if(!g)return"";const $={hours:r.hours,minutes:r.minutes};return $.minutes+=g.minutes,$.hours+=g.hours,$.hours+=Math.floor($.minutes/60),$.minutes=$.minutes%60,formatTime($)},__default__$e={name:"ElTimeSelect"},_sfc_main$S=defineComponent({...__default__$e,props:timeSelectProps,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:n}){const r=e;dayjs.extend(customParseFormat);const{Option:g}=ElSelect,$=useNamespace("input"),L=ref(),k=computed(()=>r.modelValue),oe=computed(()=>{const ze=parseTime(r.start);return ze?formatTime(ze):null}),re=computed(()=>{const ze=parseTime(r.end);return ze?formatTime(ze):null}),ae=computed(()=>{const ze=parseTime(r.step);return ze?formatTime(ze):null}),le=computed(()=>{const ze=parseTime(r.minTime||"");return ze?formatTime(ze):null}),ue=computed(()=>{const ze=parseTime(r.maxTime||"");return ze?formatTime(ze):null}),pe=computed(()=>{const ze=[];if(r.start&&r.end&&r.step){let Ce=oe.value,Ie;for(;Ce&&re.value&&compareTime(Ce,re.value)<=0;)Ie=dayjs(Ce,"HH:mm").format(r.format),ze.push({value:Ie,disabled:compareTime(Ce,le.value||"-1:-1")<=0||compareTime(Ce,ue.value||"100:100")>=0}),Ce=nextTime(Ce,ae.value)}return ze});return n({blur:()=>{var ze,Ce;(Ce=(ze=L.value)==null?void 0:ze.blur)==null||Ce.call(ze)},focus:()=>{var ze,Ce;(Ce=(ze=L.value)==null?void 0:ze.focus)==null||Ce.call(ze)}}),(ze,Ce)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:L,"model-value":unref(k),disabled:ze.disabled,clearable:ze.clearable,"clear-icon":ze.clearIcon,size:ze.size,effect:ze.effect,placeholder:ze.placeholder,"default-first-option":"",filterable:ze.editable,"onUpdate:modelValue":Ce[0]||(Ce[0]=Ie=>ze.$emit("update:modelValue",Ie)),onChange:Ce[1]||(Ce[1]=Ie=>ze.$emit("change",Ie)),onBlur:Ce[2]||(Ce[2]=Ie=>ze.$emit("blur",Ie)),onFocus:Ce[3]||(Ce[3]=Ie=>ze.$emit("focus",Ie))},{prefix:withCtx(()=>[ze.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ze.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(pe),Ie=>(openBlock(),createBlock(unref(g),{key:Ie.value,label:Ie.value,value:Ie.value,disabled:Ie.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var TimeSelect=_export_sfc$2(_sfc_main$S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);TimeSelect.install=e=>{e.component(TimeSelect.name,TimeSelect)};const _TimeSelect=TimeSelect,ElTimeSelect=_TimeSelect,Timeline=defineComponent({name:"ElTimeline",setup(e,{slots:n}){const r=useNamespace("timeline");return provide("timeline",n),()=>h$2("ul",{class:[r.b()]},[renderSlot(n,"default")])}}),timelineItemProps=buildProps({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:iconPropType,default:""},hollow:{type:Boolean,default:!1}}),__default__$d={name:"ElTimelineItem"},_sfc_main$R=defineComponent({...__default__$d,props:timelineItemProps,setup(e){const n=useNamespace("timeline-item");return(r,g)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(n).b(),{[unref(n).e("center")]:r.center}])},[createBaseVNode("div",{class:normalizeClass(unref(n).e("tail"))},null,2),r.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(n).e("node"),unref(n).em("node",r.size||""),unref(n).em("node",r.type||""),unref(n).is("hollow",r.hollow)]),style:normalizeStyle({backgroundColor:r.color})},[r.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(n).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(r.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),r.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(n).e("dot"))},[renderSlot(r.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(n).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(n).e("timestamp"),unref(n).is("top")])},toDisplayString(r.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(n).e("content"))},[renderSlot(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(n).e("timestamp"),unref(n).is("bottom")])},toDisplayString(r.timestamp),3)):createCommentVNode("v-if",!0)],2)],2))}});var TimelineItem=_export_sfc$2(_sfc_main$R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const ElTimeline=withInstall(Timeline,{TimelineItem}),ElTimelineItem=withNoopInstall(TimelineItem),tooltipV2CommonProps=buildProps({nowrap:Boolean});var TooltipV2Sides=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(TooltipV2Sides||{});const tooltipV2Sides=Object.values(TooltipV2Sides),tooltipV2ArrowProps=buildProps({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:definePropType(Object),default:null}}),tooltipV2ArrowSpecialProps=buildProps({side:{type:definePropType(String),values:tooltipV2Sides,required:!0}}),tooltipV2Strategies=["absolute","fixed"],tooltipV2Placements=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],tooltipV2ContentProps=buildProps({ariaLabel:String,arrowPadding:{type:definePropType(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:definePropType(String),values:tooltipV2Placements,default:"bottom"},reference:{type:definePropType(Object),default:null},offset:{type:Number,default:8},strategy:{type:definePropType(String),values:tooltipV2Strategies,default:"absolute"},showArrow:{type:Boolean,default:!1}}),tooltipV2RootProps=buildProps({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:definePropType(Function)},"onUpdate:open":{type:definePropType(Function)}}),EventHandler={type:definePropType(Function)},tooltipV2TriggerProps=buildProps({onBlur:EventHandler,onClick:EventHandler,onFocus:EventHandler,onMouseDown:EventHandler,onMouseEnter:EventHandler,onMouseLeave:EventHandler}),tooltipV2Props=buildProps({...tooltipV2RootProps,...tooltipV2ArrowProps,...tooltipV2TriggerProps,...tooltipV2ContentProps,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:definePropType(Object),default:null},teleported:Boolean,to:{type:definePropType(String),default:"body"}}),__default__$c={name:"ElTooltipV2Root"},_sfc_main$Q=defineComponent({...__default__$c,props:tooltipV2RootProps,setup(e,{expose:n}){const r=e,g=ref(r.defaultOpen),$=ref(null),L=computed({get:()=>isPropAbsent(r.open)?g.value:r.open,set:Ce=>{var Ie;g.value=Ce,(Ie=r["onUpdate:open"])==null||Ie.call(r,Ce)}}),k=computed(()=>isNumber(r.delayDuration)&&r.delayDuration>0),{start:oe,stop:re}=useTimeoutFn(()=>{L.value=!0},computed(()=>r.delayDuration),{immediate:!1}),ae=useNamespace("tooltip-v2"),le=useId(),ue=()=>{re(),L.value=!0},pe=()=>{unref(k)?oe():ue()},de=ue,Fe=()=>{re(),L.value=!1};return watch(L,Ce=>{var Ie;Ce&&(document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN)),de()),(Ie=r.onOpenChange)==null||Ie.call(r,Ce)}),onMounted(()=>{document.addEventListener(TOOLTIP_V2_OPEN,Fe)}),onBeforeUnmount(()=>{re(),document.removeEventListener(TOOLTIP_V2_OPEN,Fe)}),provide(tooltipV2RootKey,{contentId:le,triggerRef:$,ns:ae,onClose:Fe,onDelayOpen:pe,onOpen:de}),n({onOpen:de,onClose:Fe}),(Ce,Ie)=>renderSlot(Ce.$slots,"default",{open:unref(L)})}});var TooltipV2Root=_export_sfc$2(_sfc_main$Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const __default__$b={name:"ElTooltipV2Arrow"},_sfc_main$P=defineComponent({...__default__$b,props:{...tooltipV2ArrowProps,...tooltipV2ArrowSpecialProps},setup(e){const n=e,{ns:r}=inject(tooltipV2RootKey),{arrowRef:g}=inject(tooltipV2ContentKey),$=computed(()=>{const{style:L,width:k,height:oe}=n,re=r.namespace.value;return{[`--${re}-tooltip-v2-arrow-width`]:`${k}px`,[`--${re}-tooltip-v2-arrow-height`]:`${oe}px`,[`--${re}-tooltip-v2-arrow-border-width`]:`${k/2}px`,[`--${re}-tooltip-v2-arrow-cover-width`]:k/2-1,...L||{}}});return(L,k)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:g,style:normalizeStyle(unref($)),class:normalizeClass(unref(r).e("arrow"))},null,6))}});var TooltipV2Arrow=_export_sfc$2(_sfc_main$P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const visualHiddenProps=buildProps({style:{type:definePropType([String,Object,Array]),default:()=>({})}}),__default__$a={name:"ElVisuallyHidden"},_sfc_main$O=defineComponent({...__default__$a,props:visualHiddenProps,setup(e){const n=e,r=computed(()=>[n.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(g,$)=>(openBlock(),createElementBlock("span",mergeProps(g.$attrs,{style:unref(r)}),[renderSlot(g.$slots,"default")],16))}});var ElVisuallyHidden=_export_sfc$2(_sfc_main$O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const _hoisted_1$F=["data-side"],__default__$9={name:"ElTooltipV2Content"},_sfc_main$N=defineComponent({...__default__$9,props:{...tooltipV2ContentProps,...tooltipV2CommonProps},setup(e){const n=e,{triggerRef:r,contentId:g}=inject(tooltipV2RootKey),$=ref(n.placement),L=ref(n.strategy),k=ref(null),{referenceRef:oe,contentRef:re,middlewareData:ae,x:le,y:ue,update:pe}=useFloating({placement:$,strategy:L,middleware:computed(()=>{const At=[offset(n.offset)];return n.showArrow&&At.push(arrowMiddleware({arrowRef:k})),At})}),de=useZIndex().nextZIndex(),Fe=useNamespace("tooltip-v2"),ze=computed(()=>$.value.split("-")[0]),Ce=computed(()=>({position:unref(L),top:`${unref(ue)||0}px`,left:`${unref(le)||0}px`,zIndex:de})),Ie=computed(()=>{if(!n.showArrow)return{};const{arrow:At}=unref(ae);return{[`--${Fe.namespace.value}-tooltip-v2-arrow-x`]:`${At?.x}px`||"",[`--${Fe.namespace.value}-tooltip-v2-arrow-y`]:`${At?.y}px`||""}}),_e=computed(()=>[Fe.e("content"),Fe.is("dark",n.effect==="dark"),Fe.is(unref(L)),n.contentClass]);return watch(k,()=>pe()),watch(()=>n.placement,At=>$.value=At),onMounted(()=>{watch(()=>n.reference||r.value,At=>{oe.value=At||void 0},{immediate:!0})}),provide(tooltipV2ContentKey,{arrowRef:k}),(At,qe)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:re,style:normalizeStyle(unref(Ce)),"data-tooltip-v2-root":""},[At.nowrap?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,"data-side":unref(ze),class:normalizeClass(unref(_e))},[renderSlot(At.$slots,"default",{contentStyle:unref(Ce),contentClass:unref(_e)}),createVNode(unref(ElVisuallyHidden),{id:unref(g),role:"tooltip"},{default:withCtx(()=>[At.ariaLabel?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(At.ariaLabel),1)],64)):renderSlot(At.$slots,"default",{key:1})]),_:3},8,["id"]),renderSlot(At.$slots,"arrow",{style:normalizeStyle(unref(Ie)),side:unref(ze)})],10,_hoisted_1$F))],4))}});var TooltipV2Content=_export_sfc$2(_sfc_main$N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const forwardRefProps=buildProps({setRef:{type:definePropType(Function),required:!0},onlyChild:Boolean});var ForwardRef=defineComponent({props:forwardRefProps,setup(e,{slots:n}){const r=ref(),g=composeRefs(r,$=>{$?e.setRef($.nextElementSibling):e.setRef(null)});return()=>{var $;const[L]=(($=n.default)==null?void 0:$.call(n))||[],k=e.onlyChild?ensureOnlyChild(L.children):L.children;return createVNode(Fragment,{ref:g},[k])}}});const __default__$8={name:"ElTooltipV2Trigger"},_sfc_main$M=defineComponent({...__default__$8,props:{...tooltipV2CommonProps,...tooltipV2TriggerProps},setup(e){const n=e,{onClose:r,onOpen:g,onDelayOpen:$,triggerRef:L,contentId:k}=inject(tooltipV2RootKey);let oe=!1;const re=_e=>{L.value=_e},ae=()=>{oe=!1},le=composeEventHandlers(n.onMouseEnter,$),ue=composeEventHandlers(n.onMouseLeave,r),pe=composeEventHandlers(n.onMouseDown,()=>{r(),oe=!0,document.addEventListener("mouseup",ae,{once:!0})}),de=composeEventHandlers(n.onFocus,()=>{oe||g()}),Fe=composeEventHandlers(n.onBlur,r),ze=composeEventHandlers(n.onClick,_e=>{_e.detail===0&&r()}),Ce={blur:Fe,click:ze,focus:de,mousedown:pe,mouseenter:le,mouseleave:ue},Ie=(_e,At,qe)=>{_e&&Object.entries(At).forEach(([xe,Ve])=>{_e[qe](xe,Ve)})};return watch(L,(_e,At)=>{Ie(_e,Ce,"addEventListener"),Ie(At,Ce,"removeEventListener"),_e&&_e.setAttribute("aria-describedby",k.value)}),onBeforeUnmount(()=>{Ie(L.value,Ce,"removeEventListener"),document.removeEventListener("mouseup",ae)}),(_e,At)=>_e.nowrap?(openBlock(),createBlock(unref(ForwardRef),{key:0,"set-ref":re,"only-child":""},{default:withCtx(()=>[renderSlot(_e.$slots,"default")]),_:3})):(openBlock(),createElementBlock("button",mergeProps({key:1,ref_key:"triggerRef",ref:L},_e.$attrs),[renderSlot(_e.$slots,"default")],16))}});var TooltipV2Trigger=_export_sfc$2(_sfc_main$M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const __default__$7={name:"ElTooltipV2"},_sfc_main$L=defineComponent({...__default__$7,props:tooltipV2Props,setup(e){const r=toRefs(e),g=reactive(pick$1(r,Object.keys(tooltipV2ArrowProps))),$=reactive(pick$1(r,Object.keys(tooltipV2ContentProps))),L=reactive(pick$1(r,Object.keys(tooltipV2RootProps))),k=reactive(pick$1(r,Object.keys(tooltipV2TriggerProps)));return(oe,re)=>(openBlock(),createBlock(TooltipV2Root,normalizeProps(guardReactiveProps(L)),{default:withCtx(({open:ae})=>[createVNode(TooltipV2Trigger,mergeProps(k,{nowrap:""}),{default:withCtx(()=>[renderSlot(oe.$slots,"trigger")]),_:3},16),(openBlock(),createBlock(Teleport,{to:oe.to,disabled:!oe.teleported},[oe.fullTransition?(openBlock(),createBlock(Transition,normalizeProps(mergeProps({key:0},oe.transitionProps)),{default:withCtx(()=>[oe.alwaysOn||ae?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},$)),{arrow:withCtx(({style:le,side:ue})=>[oe.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},g,{style:le,side:ue}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(oe.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},1040)):(openBlock(),createElementBlock(Fragment,{key:1},[oe.alwaysOn||ae?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},$)),{arrow:withCtx(({style:le,side:ue})=>[oe.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},g,{style:le,side:ue}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(oe.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var TooltipV2=_export_sfc$2(_sfc_main$L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const ElTooltipV2=withInstall(TooltipV2),LEFT_CHECK_CHANGE_EVENT="left-check-change",RIGHT_CHECK_CHANGE_EVENT="right-check-change",transferProps=buildProps({data:{type:definePropType(Array),default:()=>[]},titles:{type:definePropType(Array),default:()=>[]},buttonTexts:{type:definePropType(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:definePropType(Function)},leftDefaultChecked:{type:definePropType(Array),default:()=>[]},rightDefaultChecked:{type:definePropType(Array),default:()=>[]},renderContent:{type:definePropType(Function)},modelValue:{type:definePropType(Array),default:()=>[]},format:{type:definePropType(Object),default:()=>({})},filterable:Boolean,props:{type:definePropType(Object),default:()=>mutable({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),transferCheckedChangeFn=(e,n)=>[e,n].every(isArray$4)||isArray$4(e)&&isNil(n),transferEmits={[CHANGE_EVENT]:(e,n,r)=>[e,r].every(isArray$4)&&["left","right"].includes(n),[UPDATE_MODEL_EVENT]:e=>isArray$4(e),[LEFT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn,[RIGHT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn},CHECKED_CHANGE_EVENT="checked-change",transferPanelProps=buildProps({data:transferProps.data,optionRender:{type:definePropType(Function)},placeholder:String,title:String,filterable:Boolean,format:transferProps.format,filterMethod:transferProps.filterMethod,defaultChecked:transferProps.leftDefaultChecked,props:transferProps.props}),transferPanelEmits={[CHECKED_CHANGE_EVENT]:transferCheckedChangeFn},usePropsAlias=e=>{const n={label:"label",key:"key",disabled:"disabled"};return computed(()=>({...n,...e.props}))},useCheck$1=(e,n,r)=>{const g=usePropsAlias(e),$=computed(()=>e.data.filter(le=>isFunction$1(e.filterMethod)?e.filterMethod(n.query,le):String(le[g.value.label]||le[g.value.key]).toLowerCase().includes(n.query.toLowerCase()))),L=computed(()=>$.value.filter(le=>!le[g.value.disabled])),k=computed(()=>{const le=n.checked.length,ue=e.data.length,{noChecked:pe,hasChecked:de}=e.format;return pe&&de?le>0?de.replace(/\${checked}/g,le.toString()).replace(/\${total}/g,ue.toString()):pe.replace(/\${total}/g,ue.toString()):`${le}/${ue}`}),oe=computed(()=>{const le=n.checked.length;return le>0&&le{const le=L.value.map(ue=>ue[g.value.key]);n.allChecked=le.length>0&&le.every(ue=>n.checked.includes(ue))},ae=le=>{n.checked=le?L.value.map(ue=>ue[g.value.key]):[]};return watch(()=>n.checked,(le,ue)=>{if(re(),n.checkChangeByUser){const pe=le.concat(ue).filter(de=>!le.includes(de)||!ue.includes(de));r(CHECKED_CHANGE_EVENT,le,pe)}else r(CHECKED_CHANGE_EVENT,le),n.checkChangeByUser=!0}),watch(L,()=>{re()}),watch(()=>e.data,()=>{const le=[],ue=$.value.map(pe=>pe[g.value.key]);n.checked.forEach(pe=>{ue.includes(pe)&&le.push(pe)}),n.checkChangeByUser=!1,n.checked=le}),watch(()=>e.defaultChecked,(le,ue)=>{if(ue&&le.length===ue.length&&le.every(Fe=>ue.includes(Fe)))return;const pe=[],de=L.value.map(Fe=>Fe[g.value.key]);le.forEach(Fe=>{de.includes(Fe)&&pe.push(Fe)}),n.checkChangeByUser=!1,n.checked=pe},{immediate:!0}),{filteredData:$,checkableData:L,checkedSummary:k,isIndeterminate:oe,updateAllChecked:re,handleAllCheckedChange:ae}},useCheckedChange=(e,n)=>({onSourceCheckedChange:($,L)=>{e.leftChecked=$,L&&n(LEFT_CHECK_CHANGE_EVENT,$,L)},onTargetCheckedChange:($,L)=>{e.rightChecked=$,L&&n(RIGHT_CHECK_CHANGE_EVENT,$,L)}}),useComputedData=e=>{const n=usePropsAlias(e),r=computed(()=>e.data.reduce((L,k)=>(L[k[n.value.key]]=k)&&L,{})),g=computed(()=>e.data.filter(L=>!e.modelValue.includes(L[n.value.key]))),$=computed(()=>e.targetOrder==="original"?e.data.filter(L=>e.modelValue.includes(L[n.value.key])):e.modelValue.reduce((L,k)=>{const oe=r.value[k];return oe&&L.push(oe),L},[]));return{sourceData:g,targetData:$}},useMove=(e,n,r)=>{const g=usePropsAlias(e),$=(oe,re,ae)=>{r(UPDATE_MODEL_EVENT,oe),r(CHANGE_EVENT,oe,re,ae)};return{addToLeft:()=>{const oe=e.modelValue.slice();n.rightChecked.forEach(re=>{const ae=oe.indexOf(re);ae>-1&&oe.splice(ae,1)}),$(oe,"left",n.rightChecked)},addToRight:()=>{let oe=e.modelValue.slice();const re=e.data.filter(ae=>{const le=ae[g.value.key];return n.leftChecked.includes(le)&&!e.modelValue.includes(le)}).map(ae=>ae[g.value.key]);oe=e.targetOrder==="unshift"?re.concat(oe):oe.concat(re),e.targetOrder==="original"&&(oe=e.data.filter(ae=>oe.includes(ae[g.value.key])).map(ae=>ae[g.value.key])),$(oe,"right",n.leftChecked)}}},__default__$6={name:"ElTransferPanel"},_sfc_main$K=defineComponent({...__default__$6,props:transferPanelProps,emits:transferPanelEmits,setup(e,{expose:n,emit:r}){const g=e,$=useSlots(),L=({option:qe})=>qe,{t:k}=useLocale(),oe=useNamespace("transfer"),re=reactive({checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}),ae=usePropsAlias(g),{filteredData:le,checkedSummary:ue,isIndeterminate:pe,handleAllCheckedChange:de}=useCheck$1(g,re,r),Fe=computed(()=>!isEmpty(re.query)&&isEmpty(le.value)),ze=computed(()=>!isEmpty($.default()[0].children)),{checked:Ce,allChecked:Ie,query:_e,inputHover:At}=toRefs(re);return n({query:_e}),(qe,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(oe).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(oe).be("panel","header"))},[createVNode(unref(ElCheckbox),{modelValue:unref(Ie),"onUpdate:modelValue":xe[0]||(xe[0]=Ve=>isRef(Ie)?Ie.value=Ve:null),indeterminate:unref(pe),onChange:unref(de)},{default:withCtx(()=>[createTextVNode(toDisplayString(qe.title)+" ",1),createBaseVNode("span",null,toDisplayString(unref(ue)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(oe).be("panel","body"),unref(oe).is("with-footer",unref(ze))])},[qe.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(_e),"onUpdate:modelValue":xe[1]||(xe[1]=Ve=>isRef(_e)?_e.value=Ve:null),class:normalizeClass(unref(oe).be("panel","filter")),size:"default",placeholder:qe.placeholder,"prefix-icon":unref(search_default),clearable:"",onMouseenter:xe[2]||(xe[2]=Ve=>At.value=!0),onMouseleave:xe[3]||(xe[3]=Ve=>At.value=!1)},null,8,["modelValue","class","placeholder","prefix-icon"])):createCommentVNode("v-if",!0),withDirectives(createVNode(unref(ElCheckboxGroup$1),{modelValue:unref(Ce),"onUpdate:modelValue":xe[4]||(xe[4]=Ve=>isRef(Ce)?Ce.value=Ve:null),class:normalizeClass([unref(oe).is("filterable",qe.filterable),unref(oe).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(le),Ve=>(openBlock(),createBlock(unref(ElCheckbox),{key:Ve[unref(ae).key],class:normalizeClass(unref(oe).be("panel","item")),label:Ve[unref(ae).key],disabled:Ve[unref(ae).disabled]},{default:withCtx(()=>{var he;return[createVNode(L,{option:(he=qe.optionRender)==null?void 0:he.call(qe,Ve)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!unref(Fe)&&!unref(isEmpty)(qe.data)]]),withDirectives(createBaseVNode("p",{class:normalizeClass(unref(oe).be("panel","empty"))},toDisplayString(unref(Fe)?unref(k)("el.transfer.noMatch"):unref(k)("el.transfer.noData")),3),[[vShow,unref(Fe)||unref(isEmpty)(qe.data)]])],2),unref(ze)?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(oe).be("panel","footer"))},[renderSlot(qe.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var TransferPanel=_export_sfc$2(_sfc_main$K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const _hoisted_1$E={key:0},_hoisted_2$w={key:0},__default__$5={name:"ElTransfer"},_sfc_main$J=defineComponent({...__default__$5,props:transferProps,emits:transferEmits,setup(e,{expose:n,emit:r}){const g=e,$=useSlots(),{t:L}=useLocale(),k=useNamespace("transfer"),{formItem:oe}=useFormItem(),re=reactive({leftChecked:[],rightChecked:[]}),ae=usePropsAlias(g),{sourceData:le,targetData:ue}=useComputedData(g),{onSourceCheckedChange:pe,onTargetCheckedChange:de}=useCheckedChange(re,r),{addToLeft:Fe,addToRight:ze}=useMove(g,re,r),Ce=ref(),Ie=ref(),_e=Oe=>{switch(Oe){case"left":Ce.value.query="";break;case"right":Ie.value.query="";break}},At=computed(()=>g.buttonTexts.length===2),qe=computed(()=>g.titles[0]||L("el.transfer.titles.0")),xe=computed(()=>g.titles[1]||L("el.transfer.titles.1")),Ve=computed(()=>g.filterPlaceholder||L("el.transfer.filterPlaceholder"));watch(()=>g.modelValue,()=>{var Oe;g.validateEvent&&((Oe=oe?.validate)==null||Oe.call(oe,"change").catch($e=>void 0))});const he=computed(()=>Oe=>g.renderContent?g.renderContent(h$2,Oe):$.default?$.default({option:Oe}):h$2("span",Oe[ae.value.label]||Oe[ae.value.key]));return n({clearQuery:_e,leftPanel:Ce,rightPanel:Ie}),(Oe,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(k).b())},[createVNode(TransferPanel,{ref_key:"leftPanel",ref:Ce,data:unref(le),"option-render":unref(he),placeholder:unref(Ve),title:unref(qe),filterable:Oe.filterable,format:Oe.format,"filter-method":Oe.filterMethod,"default-checked":Oe.leftDefaultChecked,props:g.props,onCheckedChange:unref(pe)},{default:withCtx(()=>[renderSlot(Oe.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(k).e("buttons"))},[createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(k).e("button"),unref(k).is("with-texts",unref(At))]),disabled:unref(isEmpty)(re.rightChecked),onClick:unref(Fe)},{default:withCtx(()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1}),unref(isUndefined)(Oe.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$E,toDisplayString(Oe.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(k).e("button"),unref(k).is("with-texts",unref(At))]),disabled:unref(isEmpty)(re.leftChecked),onClick:unref(ze)},{default:withCtx(()=>[unref(isUndefined)(Oe.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$w,toDisplayString(Oe.buttonTexts[1]),1)),createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),createVNode(TransferPanel,{ref_key:"rightPanel",ref:Ie,data:unref(ue),"option-render":unref(he),placeholder:unref(Ve),filterable:Oe.filterable,format:Oe.format,"filter-method":Oe.filterMethod,title:unref(xe),"default-checked":Oe.rightDefaultChecked,props:g.props,onCheckedChange:unref(de)},{default:withCtx(()=>[renderSlot(Oe.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Transfer=_export_sfc$2(_sfc_main$J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ElTransfer=withInstall(Transfer),NODE_KEY="$treeNodeId",markNodeData=function(e,n){!n||n[NODE_KEY]||Object.defineProperty(n,NODE_KEY,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=function(e,n){return e?n[e]:n[NODE_KEY]},getChildState=e=>{let n=!0,r=!0,g=!0;for(let $=0,L=e.length;$"u"){const L=g[n];return L===void 0?"":L}};let nodeIdSeed=0;class Node$1{constructor(n){this.id=nodeIdSeed++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const r in n)hasOwn(n,r)&&(this[r]=n[r]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const n=this.store;if(!n)throw new Error("[Node]store is required!");n.registerNode(this);const r=n.props;if(r&&typeof r.isLeaf<"u"){const L=getPropertyFromData(this,"isLeaf");typeof L=="boolean"&&(this.isLeafByUser=L)}if(n.lazy!==!0&&this.data?(this.setData(this.data),n.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&n.lazy&&n.defaultExpandAll&&this.expand(),Array.isArray(this.data)||markNodeData(this,this.data),!this.data)return;const g=n.defaultExpandedKeys,$=n.key;$&&g&&g.includes(this.key)&&this.expand(null,n.autoExpandParent),$&&n.currentNodeKey!==void 0&&this.key===n.currentNodeKey&&(n.currentNode=this,n.currentNode.isCurrent=!0),n.lazy&&n._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(n){Array.isArray(n)||markNodeData(this,n),this.data=n,this.childNodes=[];let r;this.level===0&&Array.isArray(this.data)?r=this.data:r=getPropertyFromData(this,"children")||[];for(let g=0,$=r.length;g<$;g++)this.insertChild({data:r[g]})}get label(){return getPropertyFromData(this,"label")}get key(){const n=this.store.key;return this.data?this.data[n]:null}get disabled(){return getPropertyFromData(this,"disabled")}get nextSibling(){const n=this.parent;if(n){const r=n.childNodes.indexOf(this);if(r>-1)return n.childNodes[r+1]}return null}get previousSibling(){const n=this.parent;if(n){const r=n.childNodes.indexOf(this);if(r>-1)return r>0?n.childNodes[r-1]:null}return null}contains(n,r=!0){return(this.childNodes||[]).some(g=>g===n||r&&g.contains(n))}remove(){const n=this.parent;n&&n.removeChild(this)}insertChild(n,r,g){if(!n)throw new Error("InsertChild error: child is required.");if(!(n instanceof Node$1)){if(!g){const $=this.getChildren(!0);$.includes(n.data)||(typeof r>"u"||r<0?$.push(n.data):$.splice(r,0,n.data))}Object.assign(n,{parent:this,store:this.store}),n=reactive(new Node$1(n)),n instanceof Node$1&&n.initialize()}n.level=this.level+1,typeof r>"u"||r<0?this.childNodes.push(n):this.childNodes.splice(r,0,n),this.updateLeafState()}insertBefore(n,r){let g;r&&(g=this.childNodes.indexOf(r)),this.insertChild(n,g)}insertAfter(n,r){let g;r&&(g=this.childNodes.indexOf(r),g!==-1&&(g+=1)),this.insertChild(n,g)}removeChild(n){const r=this.getChildren()||[],g=r.indexOf(n.data);g>-1&&r.splice(g,1);const $=this.childNodes.indexOf(n);$>-1&&(this.store&&this.store.deregisterNode(n),n.parent=null,this.childNodes.splice($,1)),this.updateLeafState()}removeChildByData(n){let r=null;for(let g=0;g{if(r){let $=this.parent;for(;$.level>0;)$.expanded=!0,$=$.parent}this.expanded=!0,n&&n(),this.childNodes.forEach($=>{$.canFocus=!0})};this.shouldLoadData()?this.loadData($=>{Array.isArray($)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),g())}):g()}doCreateChildren(n,r={}){n.forEach(g=>{this.insertChild(Object.assign({data:g},r),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(n=>{n.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const n=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!n||n.length===0;return}this.isLeaf=!1}setChecked(n,r,g,$){if(this.indeterminate=n==="half",this.checked=n===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:k,allWithoutDisable:oe}=getChildState(this.childNodes);!this.isLeaf&&!k&&oe&&(this.checked=!1,n=!1);const re=()=>{if(r){const ae=this.childNodes;for(let pe=0,de=ae.length;pe{re(),reInitChecked(this)},{checked:n!==!1});return}else re()}const L=this.parent;!L||L.level===0||g||reInitChecked(L)}getChildren(n=!1){if(this.level===0)return this.data;const r=this.data;if(!r)return null;const g=this.store.props;let $="children";return g&&($=g.children||"children"),r[$]===void 0&&(r[$]=null),n&&!r[$]&&(r[$]=[]),r[$]}updateChildren(){const n=this.getChildren()||[],r=this.childNodes.map(L=>L.data),g={},$=[];n.forEach((L,k)=>{const oe=L[NODE_KEY];!!oe&&r.findIndex(ae=>ae[NODE_KEY]===oe)>=0?g[oe]={index:k,data:L}:$.push({index:k,data:L})}),this.store.lazy||r.forEach(L=>{g[L[NODE_KEY]]||this.removeChildByData(L)}),$.forEach(({index:L,data:k})=>{this.insertChild({data:k},L)}),this.updateLeafState()}loadData(n,r={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(r).length)){this.loading=!0;const g=$=>{this.loaded=!0,this.loading=!1,this.childNodes=[],this.doCreateChildren($,r),this.updateLeafState(),n&&n.call(this,$)};this.store.load(this,g)}else n&&n.call(this)}}class TreeStore{constructor(n){this.currentNode=null,this.currentNodeKey=null;for(const r in n)hasOwn(n,r)&&(this[r]=n[r]);this.nodesMap={}}initialize(){if(this.root=new Node$1({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const n=this.load;n(this.root,r=>{this.root.doCreateChildren(r),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(n){const r=this.filterNodeMethod,g=this.lazy,$=function(L){const k=L.root?L.root.childNodes:L.childNodes;if(k.forEach(oe=>{oe.visible=r.call(oe,n,oe.data,oe),$(oe)}),!L.visible&&k.length){let oe=!0;oe=!k.some(re=>re.visible),L.root?L.root.visible=oe===!1:L.visible=oe===!1}!n||L.visible&&!L.isLeaf&&!g&&L.expand()};$(this)}setData(n){n!==this.root.data?(this.root.setData(n),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(n){if(n instanceof Node$1)return n;const r=typeof n!="object"?n:getNodeKey(this.key,n);return this.nodesMap[r]||null}insertBefore(n,r){const g=this.getNode(r);g.parent.insertBefore({data:n},g)}insertAfter(n,r){const g=this.getNode(r);g.parent.insertAfter({data:n},g)}remove(n){const r=this.getNode(n);r&&r.parent&&(r===this.currentNode&&(this.currentNode=null),r.parent.removeChild(r))}append(n,r){const g=r?this.getNode(r):this.root;g&&g.insertChild({data:n})}_initDefaultCheckedNodes(){const n=this.defaultCheckedKeys||[],r=this.nodesMap;n.forEach(g=>{const $=r[g];$&&$.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(n){(this.defaultCheckedKeys||[]).includes(n.key)&&n.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(n){n!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=n,this._initDefaultCheckedNodes())}registerNode(n){const r=this.key;!n||!n.data||(r?n.key!==void 0&&(this.nodesMap[n.key]=n):this.nodesMap[n.id]=n)}deregisterNode(n){!this.key||!n||!n.data||(n.childNodes.forEach(g=>{this.deregisterNode(g)}),delete this.nodesMap[n.key])}getCheckedNodes(n=!1,r=!1){const g=[],$=function(L){(L.root?L.root.childNodes:L.childNodes).forEach(oe=>{(oe.checked||r&&oe.indeterminate)&&(!n||n&&oe.isLeaf)&&g.push(oe.data),$(oe)})};return $(this),g}getCheckedKeys(n=!1){return this.getCheckedNodes(n).map(r=>(r||{})[this.key])}getHalfCheckedNodes(){const n=[],r=function(g){(g.root?g.root.childNodes:g.childNodes).forEach(L=>{L.indeterminate&&n.push(L.data),r(L)})};return r(this),n}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(n=>(n||{})[this.key])}_getAllNodes(){const n=[],r=this.nodesMap;for(const g in r)hasOwn(r,g)&&n.push(r[g]);return n}updateChildren(n,r){const g=this.nodesMap[n];if(!g)return;const $=g.childNodes;for(let L=$.length-1;L>=0;L--){const k=$[L];this.remove(k.data)}for(let L=0,k=r.length;Lre.level-oe.level),L=Object.create(null),k=Object.keys(g);$.forEach(oe=>oe.setChecked(!1,!1));for(let oe=0,re=$.length;oe0;)L[pe.data[n]]=!0,pe=pe.parent;if(ae.isLeaf||this.checkStrictly){ae.setChecked(!0,!1);continue}if(ae.setChecked(!0,!0),r){ae.setChecked(!1,!1);const de=function(Fe){Fe.childNodes.forEach(Ce=>{Ce.isLeaf||Ce.setChecked(!1,!1),de(Ce)})};de(ae)}}}setCheckedNodes(n,r=!1){const g=this.key,$={};n.forEach(L=>{$[(L||{})[g]]=!0}),this._setCheckedKeys(g,r,$)}setCheckedKeys(n,r=!1){this.defaultCheckedKeys=n;const g=this.key,$={};n.forEach(L=>{$[L]=!0}),this._setCheckedKeys(g,r,$)}setDefaultExpandedKeys(n){n=n||[],this.defaultExpandedKeys=n,n.forEach(r=>{const g=this.getNode(r);g&&g.expand(null,this.autoExpandParent)})}setChecked(n,r,g){const $=this.getNode(n);$&&$.setChecked(!!r,g)}getCurrentNode(){return this.currentNode}setCurrentNode(n){const r=this.currentNode;r&&(r.isCurrent=!1),this.currentNode=n,this.currentNode.isCurrent=!0}setUserCurrentNode(n,r=!0){const g=n[this.key],$=this.nodesMap[g];this.setCurrentNode($),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(n,r=!0){if(n==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const g=this.getNode(n);g&&(this.setCurrentNode(g),r&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const _sfc_main$I=defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const n=useNamespace("tree"),r=inject("NodeInstance"),g=inject("RootTree");return()=>{const $=e.node,{data:L,store:k}=$;return e.renderContent?e.renderContent(h$2,{_self:r,node:$,data:L,store:k}):g.ctx.slots.default?g.ctx.slots.default({node:$,data:L}):h$2("span",{class:n.be("node","label")},[$.label])}}});var NodeContent=_export_sfc$2(_sfc_main$I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function useNodeExpandEventBroadcast(e){const n=inject("TreeNodeMap",null),r={treeNodeExpand:g=>{e.node!==g&&e.node.collapse()},children:[]};return n&&n.children.push(r),provide("TreeNodeMap",r),{broadcastExpanded:g=>{if(!!e.accordion)for(const $ of r.children)$.treeNodeExpand(g)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:e,ctx:n,el$:r,dropIndicator$:g,store:$}){const L=useNamespace("tree"),k=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:le,treeNode:ue})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(ue.node))return le.preventDefault(),!1;le.dataTransfer.effectAllowed="move";try{le.dataTransfer.setData("text/plain","")}catch{}k.value.draggingNode=ue,n.emit("node-drag-start",ue.node,le)},treeNodeDragOver:({event:le,treeNode:ue})=>{const pe=ue,de=k.value.dropNode;de&&de!==pe&&removeClass(de.$el,L.is("drop-inner"));const Fe=k.value.draggingNode;if(!Fe||!pe)return;let ze=!0,Ce=!0,Ie=!0,_e=!0;typeof e.allowDrop=="function"&&(ze=e.allowDrop(Fe.node,pe.node,"prev"),_e=Ce=e.allowDrop(Fe.node,pe.node,"inner"),Ie=e.allowDrop(Fe.node,pe.node,"next")),le.dataTransfer.dropEffect=Ce||ze||Ie?"move":"none",(ze||Ce||Ie)&&de!==pe&&(de&&n.emit("node-drag-leave",Fe.node,de.node,le),n.emit("node-drag-enter",Fe.node,pe.node,le)),(ze||Ce||Ie)&&(k.value.dropNode=pe),pe.node.nextSibling===Fe.node&&(Ie=!1),pe.node.previousSibling===Fe.node&&(ze=!1),pe.node.contains(Fe.node,!1)&&(Ce=!1),(Fe.node===pe.node||Fe.node.contains(pe.node))&&(ze=!1,Ce=!1,Ie=!1);const At=pe.$el.getBoundingClientRect(),qe=r.value.getBoundingClientRect();let xe;const Ve=ze?Ce?.25:Ie?.45:1:-1,he=Ie?Ce?.75:ze?.55:0:1;let Oe=-9999;const $e=le.clientY-At.top;$eAt.height*he?xe="after":Ce?xe="inner":xe="none";const Ne=pe.$el.querySelector(`.${L.be("node","expand-icon")}`).getBoundingClientRect(),Ue=g.value;xe==="before"?Oe=Ne.top-qe.top:xe==="after"&&(Oe=Ne.bottom-qe.top),Ue.style.top=`${Oe}px`,Ue.style.left=`${Ne.right-qe.left}px`,xe==="inner"?addClass(pe.$el,L.is("drop-inner")):removeClass(pe.$el,L.is("drop-inner")),k.value.showDropIndicator=xe==="before"||xe==="after",k.value.allowDrop=k.value.showDropIndicator||_e,k.value.dropType=xe,n.emit("node-drag-over",Fe.node,pe.node,le)},treeNodeDragEnd:le=>{const{draggingNode:ue,dropType:pe,dropNode:de}=k.value;if(le.preventDefault(),le.dataTransfer.dropEffect="move",ue&&de){const Fe={data:ue.node.data};pe!=="none"&&ue.node.remove(),pe==="before"?de.node.parent.insertBefore(Fe,de.node):pe==="after"?de.node.parent.insertAfter(Fe,de.node):pe==="inner"&&de.node.insertChild(Fe),pe!=="none"&&$.value.registerNode(Fe),removeClass(de.$el,L.is("drop-inner")),n.emit("node-drag-end",ue.node,de.node,pe,le),pe!=="none"&&n.emit("node-drop",ue.node,de.node,pe,le)}ue&&!de&&n.emit("node-drag-end",ue.node,null,pe,le),k.value.showDropIndicator=!1,k.value.draggingNode=null,k.value.dropNode=null,k.value.allowDrop=!0}}),{dragState:k}}const _sfc_main$H=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_CollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading_default},props:{node:{type:Node$1,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,n){const r=useNamespace("tree"),{broadcastExpanded:g}=useNodeExpandEventBroadcast(e),$=inject("RootTree"),L=ref(!1),k=ref(!1),oe=ref(null),re=ref(null),ae=ref(null),le=inject(dragEventsKey),ue=getCurrentInstance();provide("NodeInstance",ue),e.node.expanded&&(L.value=!0,k.value=!0);const pe=$.props.children||"children";watch(()=>{const $e=e.node.data[pe];return $e&&[...$e]},()=>{e.node.updateChildren()}),watch(()=>e.node.indeterminate,$e=>{ze(e.node.checked,$e)}),watch(()=>e.node.checked,$e=>{ze($e,e.node.indeterminate)}),watch(()=>e.node.expanded,$e=>{nextTick(()=>L.value=$e),$e&&(k.value=!0)});const de=$e=>getNodeKey($.props.nodeKey,$e.data),Fe=$e=>{const Ne=e.props.class;if(!Ne)return{};let Ue;if(isFunction$1(Ne)){const{data:kt}=$e;Ue=Ne(kt,$e)}else Ue=Ne;return isString$2(Ue)?{[Ue]:!0}:Ue},ze=($e,Ne)=>{(oe.value!==$e||re.value!==Ne)&&$.ctx.emit("check-change",e.node.data,$e,Ne),oe.value=$e,re.value=Ne},Ce=$e=>{const Ne=$.store.value;Ne.setCurrentNode(e.node),$.ctx.emit("current-change",Ne.currentNode?Ne.currentNode.data:null,Ne.currentNode),$.currentNode.value=e.node,$.props.expandOnClickNode&&_e(),$.props.checkOnClickNode&&!e.node.disabled&&At(null,{target:{checked:!e.node.checked}}),$.ctx.emit("node-click",e.node.data,e.node,ue,$e)},Ie=$e=>{$.instance.vnode.props.onNodeContextmenu&&($e.stopPropagation(),$e.preventDefault()),$.ctx.emit("node-contextmenu",$e,e.node.data,e.node,ue)},_e=()=>{e.node.isLeaf||(L.value?($.ctx.emit("node-collapse",e.node.data,e.node,ue),e.node.collapse()):(e.node.expand(),n.emit("node-expand",e.node.data,e.node,ue)))},At=($e,Ne)=>{e.node.setChecked(Ne.target.checked,!$.props.checkStrictly),nextTick(()=>{const Ue=$.store.value;$.ctx.emit("check",e.node.data,{checkedNodes:Ue.getCheckedNodes(),checkedKeys:Ue.getCheckedKeys(),halfCheckedNodes:Ue.getHalfCheckedNodes(),halfCheckedKeys:Ue.getHalfCheckedKeys()})})};return{ns:r,node$:ae,tree:$,expanded:L,childNodeRendered:k,oldChecked:oe,oldIndeterminate:re,getNodeKey:de,getNodeClass:Fe,handleSelectChange:ze,handleClick:Ce,handleContextMenu:Ie,handleExpandIconClick:_e,handleCheckChange:At,handleChildNodeExpand:($e,Ne,Ue)=>{g(Ne),$.ctx.emit("node-expand",$e,Ne,Ue)},handleDragStart:$e=>{!$.props.draggable||le.treeNodeDragStart({event:$e,treeNode:e})},handleDragOver:$e=>{$e.preventDefault(),$.props.draggable&&le.treeNodeDragOver({event:$e,treeNode:{$el:ae.value,node:e.node}})},handleDrop:$e=>{$e.preventDefault()},handleDragEnd:$e=>{!$.props.draggable||le.treeNodeDragEnd($e)},CaretRight:caret_right_default}}}),_hoisted_1$D=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_hoisted_2$v=["aria-expanded"];function _sfc_render$B(e,n,r,g,$,L){const k=resolveComponent("el-icon"),oe=resolveComponent("el-checkbox"),re=resolveComponent("loading"),ae=resolveComponent("node-content"),le=resolveComponent("el-tree-node"),ue=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:n[1]||(n[1]=withModifiers((...pe)=>e.handleClick&&e.handleClick(...pe),["stop"])),onContextmenu:n[2]||(n[2]=(...pe)=>e.handleContextMenu&&e.handleContextMenu(...pe)),onDragstart:n[3]||(n[3]=withModifiers((...pe)=>e.handleDragStart&&e.handleDragStart(...pe),["stop"])),onDragover:n[4]||(n[4]=withModifiers((...pe)=>e.handleDragOver&&e.handleDragOver(...pe),["stop"])),onDragend:n[5]||(n[5]=withModifiers((...pe)=>e.handleDragEnd&&e.handleDragEnd(...pe),["stop"])),onDrop:n[6]||(n[6]=withModifiers((...pe)=>e.handleDrop&&e.handleDrop(...pe),["stop"]))},[createBaseVNode("div",{class:normalizeClass(e.ns.be("node","content")),style:normalizeStyle({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(openBlock(),createBlock(k,{key:0,class:normalizeClass([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:withModifiers(e.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),e.showCheckbox?(openBlock(),createBlock(oe,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:n[0]||(n[0]=withModifiers(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),e.node.loading?(openBlock(),createBlock(k,{key:2,class:normalizeClass([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:withCtx(()=>[createVNode(re)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(ae,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),createVNode(ue,null,{default:withCtx(()=>[!e.renderAfterExpand||e.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.node.childNodes,pe=>(openBlock(),createBlock(le,{key:e.getNodeKey(pe),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:pe,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$v)),[[vShow,e.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$D)),[[vShow,e.node.visible]])}var ElTreeNode$1=_export_sfc$2(_sfc_main$H,[["render",_sfc_render$B],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function useKeydown({el$:e},n){const r=useNamespace("tree"),g=shallowRef([]),$=shallowRef([]);onMounted(()=>{k()}),onUpdated(()=>{g.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),$.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),watch($,oe=>{oe.forEach(re=>{re.setAttribute("tabindex","-1")})}),useEventListener(e,"keydown",oe=>{const re=oe.target;if(!re.className.includes(r.b("node")))return;const ae=oe.code;g.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`));const le=g.value.indexOf(re);let ue;if([EVENT_CODE.up,EVENT_CODE.down].includes(ae)){if(oe.preventDefault(),ae===EVENT_CODE.up){ue=le===-1?0:le!==0?le-1:g.value.length-1;const de=ue;for(;!n.value.getNode(g.value[ue].dataset.key).canFocus;){if(ue--,ue===de){ue=-1;break}ue<0&&(ue=g.value.length-1)}}else{ue=le===-1?0:le=g.value.length&&(ue=0)}}ue!==-1&&g.value[ue].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes(ae)&&(oe.preventDefault(),re.click());const pe=re.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.space].includes(ae)&&pe&&(oe.preventDefault(),pe.click())});const k=()=>{var oe;g.value=Array.from(e.value.querySelectorAll(`.${r.is("focusable")}[role=treeitem]`)),$.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const re=e.value.querySelectorAll(`.${r.is("checked")}[role=treeitem]`);if(re.length){re[0].setAttribute("tabindex","0");return}(oe=g.value[0])==null||oe.setAttribute("tabindex","0")}}const _sfc_main$G=defineComponent({name:"ElTree",components:{ElTreeNode:ElTreeNode$1},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:[String,Object]},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,n){const{t:r}=useLocale(),g=useNamespace("tree"),$=ref(new TreeStore({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));$.value.initialize();const L=ref($.value.root),k=ref(null),oe=ref(null),re=ref(null),{broadcastExpanded:ae}=useNodeExpandEventBroadcast(e),{dragState:le}=useDragNodeHandler({props:e,ctx:n,el$:oe,dropIndicator$:re,store:$});useKeydown({el$:oe},$);const ue=computed(()=>{const{childNodes:hn}=L.value;return!hn||hn.length===0||hn.every(({visible:Dt})=>!Dt)});watch(()=>e.defaultCheckedKeys,hn=>{$.value.setDefaultCheckedKey(hn)}),watch(()=>e.defaultExpandedKeys,hn=>{$.value.setDefaultExpandedKeys(hn)}),watch(()=>e.data,hn=>{$.value.setData(hn)},{deep:!0}),watch(()=>e.checkStrictly,hn=>{$.value.checkStrictly=hn});const pe=hn=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");$.value.filter(hn)},de=hn=>getNodeKey(e.nodeKey,hn.data),Fe=hn=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const Dt=$.value.getNode(hn);if(!Dt)return[];const jt=[Dt.data];let bn=Dt.parent;for(;bn&&bn!==L.value;)jt.push(bn.data),bn=bn.parent;return jt.reverse()},ze=(hn,Dt)=>$.value.getCheckedNodes(hn,Dt),Ce=hn=>$.value.getCheckedKeys(hn),Ie=()=>{const hn=$.value.getCurrentNode();return hn?hn.data:null},_e=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const hn=Ie();return hn?hn[e.nodeKey]:null},At=(hn,Dt)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");$.value.setCheckedNodes(hn,Dt)},qe=(hn,Dt)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");$.value.setCheckedKeys(hn,Dt)},xe=(hn,Dt,jt)=>{$.value.setChecked(hn,Dt,jt)},Ve=()=>$.value.getHalfCheckedNodes(),he=()=>$.value.getHalfCheckedKeys(),Oe=(hn,Dt=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");$.value.setUserCurrentNode(hn,Dt)},$e=(hn,Dt=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");$.value.setCurrentNodeKey(hn,Dt)},Ne=hn=>$.value.getNode(hn),Ue=hn=>{$.value.remove(hn)},kt=(hn,Dt)=>{$.value.append(hn,Dt)},Et=(hn,Dt)=>{$.value.insertBefore(hn,Dt)},Pt=(hn,Dt)=>{$.value.insertAfter(hn,Dt)},Lt=(hn,Dt,jt)=>{ae(Dt),n.emit("node-expand",hn,Dt,jt)},vn=(hn,Dt)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");$.value.updateChildren(hn,Dt)};return provide("RootTree",{ctx:n,props:e,store:$,root:L,currentNode:k,instance:getCurrentInstance()}),provide(formItemContextKey,void 0),{ns:g,store:$,root:L,currentNode:k,dragState:le,el$:oe,dropIndicator$:re,isEmpty:ue,filter:pe,getNodeKey:de,getNodePath:Fe,getCheckedNodes:ze,getCheckedKeys:Ce,getCurrentNode:Ie,getCurrentKey:_e,setCheckedNodes:At,setCheckedKeys:qe,setChecked:xe,getHalfCheckedNodes:Ve,getHalfCheckedKeys:he,setCurrentNode:Oe,setCurrentKey:$e,t:r,getNode:Ne,remove:Ue,append:kt,insertBefore:Et,insertAfter:Pt,handleNodeExpand:Lt,updateKeyChildren:vn}}});function _sfc_render$A(e,n,r,g,$,L){var k;const oe=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.root.childNodes,re=>(openBlock(),createBlock(oe,{key:e.getNodeKey(re),node:re,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(e.ns.e("empty-text"))},toDisplayString((k=e.emptyText)!=null?k:e.t("el.tree.emptyText")),3)],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass(e.ns.e("drop-indicator"))},null,2),[[vShow,e.dragState.showDropIndicator]])],2)}var Tree$1=_export_sfc$2(_sfc_main$G,[["render",_sfc_render$A],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Tree$1.install=e=>{e.component(Tree$1.name,Tree$1)};const _Tree=Tree$1,ElTree=_Tree,useSelect=(e,{attrs:n},{tree:r,key:g})=>{const $=useNamespace("tree-select"),L={...pick$1(toRefs(e),Object.keys(ElSelect.props)),...n,valueKey:g,popperClass:computed(()=>{const k=[$.e("popper")];return e.popperClass&&k.push(e.popperClass),k.join(" ")}),filterMethod:(k="")=>{e.filterMethod&&e.filterMethod(k),nextTick(()=>{var oe;(oe=r.value)==null||oe.filter(k)})},onVisibleChange:k=>{var oe;(oe=n.onVisibleChange)==null||oe.call(n,k),e.filterable&&k&&L.filterMethod()}};return L},component=defineComponent({extends:ElOption,setup(e,n){const r=ElOption.setup(e,n);delete r.selectOptionClick;const g=getCurrentInstance().proxy;return nextTick(()=>{r.select.cachedOptions.get(g.value)||r.select.onOptionCreate(g)}),r},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function isValidValue(e){return e||e===0}function isValidArray(e){return Array.isArray(e)&&e.length}function toValidArray(e){return Array.isArray(e)?e:isValidValue(e)?[e]:[]}function treeFind(e,n,r,g,$){for(let L=0;L{watch(()=>e.modelValue,()=>{e.showCheckbox&&nextTick(()=>{const le=L.value;le&&!isEqual$1(le.getCheckedKeys(),toValidArray(e.modelValue))&&le.setCheckedKeys(toValidArray(e.modelValue))})},{immediate:!0,deep:!0});const oe=computed(()=>({value:k.value,...e.props})),re=(le,ue)=>{var pe;const de=oe.value[le];return isFunction$1(de)?de(ue,(pe=L.value)==null?void 0:pe.getNode(re("value",ue))):ue[de]},ae=toValidArray(e.modelValue).map(le=>treeFind(e.data||[],ue=>re("value",ue)===le,ue=>re("children",ue),(ue,pe,de,Fe)=>Fe&&re("value",Fe))).filter(le=>isValidValue(le));return{...pick$1(toRefs(e),Object.keys(_Tree.props)),...n,nodeKey:k,expandOnClickNode:computed(()=>!e.checkStrictly),defaultExpandedKeys:computed(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(ae):ae),renderContent:(le,{node:ue,data:pe,store:de})=>le(component,{value:re("value",pe),label:re("label",pe),disabled:re("disabled",pe)},e.renderContent?()=>e.renderContent(le,{node:ue,data:pe,store:de}):r.default?()=>r.default({node:ue,data:pe,store:de}):void 0),filterNodeMethod:(le,ue,pe)=>{var de;return e.filterNodeMethod?e.filterNodeMethod(le,ue,pe):le?(de=re("label",ue))==null?void 0:de.includes(le):!0},onNodeClick:(le,ue,pe)=>{var de,Fe,ze;if((de=n.onNodeClick)==null||de.call(n,le,ue,pe),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||ue.isLeaf)){if(!re("disabled",le)){const Ce=(Fe=$.value)==null?void 0:Fe.options.get(re("value",le));(ze=$.value)==null||ze.handleOptionSelect(Ce,!0)}}else pe.proxy.handleExpandIconClick()},onCheck:(le,ue)=>{var pe;(pe=n.onCheck)==null||pe.call(n,le,ue);const de=re("value",le);if(e.checkStrictly)g(UPDATE_MODEL_EVENT,e.multiple?ue.checkedKeys:ue.checkedKeys.includes(de)?de:void 0);else if(e.multiple)g(UPDATE_MODEL_EVENT,L.value.getCheckedKeys(!0));else{const Fe=treeFind([le],Ie=>!isValidArray(re("children",Ie))&&!re("disabled",Ie),Ie=>re("children",Ie)),ze=Fe?re("value",Fe):void 0,Ce=isValidValue(e.modelValue)&&!!treeFind([le],Ie=>re("value",Ie)===e.modelValue,Ie=>re("children",Ie));g(UPDATE_MODEL_EVENT,ze===e.modelValue||Ce?void 0:ze)}}}},_sfc_main$F=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...ElSelect.props,..._Tree.props},setup(e,n){const{slots:r,expose:g}=n,$=ref(),L=ref(),k=computed(()=>e.nodeKey||e.valueKey||"value"),oe=useSelect(e,n,{select:$,tree:L,key:k}),re=useTree$1(e,n,{select:$,tree:L,key:k}),ae=reactive({});return g(ae),onMounted(()=>{Object.assign(ae,{...pick$1(L.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pick$1($.value,["focus","blur"])})}),()=>h$2(ElSelect,reactive({...oe,ref:le=>$.value=le}),{...r,default:()=>h$2(_Tree,reactive({...re,ref:le=>L.value=le}))})}});var TreeSelect=_export_sfc$2(_sfc_main$F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);TreeSelect.install=e=>{e.component(TreeSelect.name,TreeSelect)};const _TreeSelect=TreeSelect,ElTreeSelect=_TreeSelect,ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(TreeOptionsEnum||{}),SetOperationEnum=(e=>(e.ADD="add",e.DELETE="delete",e))(SetOperationEnum||{});const treeProps=buildProps({data:{type:definePropType(Array),default:()=>mutable([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:definePropType(Object),default:()=>mutable({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:definePropType(Array),default:()=>mutable([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:definePropType(Array),default:()=>mutable([])},indent:{type:Number,default:16},icon:{type:iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:definePropType([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:definePropType(Function)},perfMode:{type:Boolean,default:!0}}),treeNodeProps=buildProps({node:{type:definePropType(Object),default:()=>mutable(EMPTY_NODE)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1}}),treeNodeContentProps=buildProps({node:{type:definePropType(Object),required:!0}}),NODE_CLICK="node-click",NODE_EXPAND="node-expand",NODE_COLLAPSE="node-collapse",CURRENT_CHANGE="current-change",NODE_CHECK="check",NODE_CHECK_CHANGE="check-change",NODE_CONTEXTMENU="node-contextmenu",treeEmits={[NODE_CLICK]:(e,n,r)=>e&&n&&r,[NODE_EXPAND]:(e,n)=>e&&n,[NODE_COLLAPSE]:(e,n)=>e&&n,[CURRENT_CHANGE]:(e,n)=>e&&n,[NODE_CHECK]:(e,n)=>e&&n,[NODE_CHECK_CHANGE]:(e,n)=>e&&typeof n=="boolean",[NODE_CONTEXTMENU]:(e,n,r)=>e&&n&&r},treeNodeEmits={click:(e,n)=>!!(e&&n),toggle:e=>!!e,check:(e,n)=>e&&typeof n=="boolean"};function useCheck(e,n){const r=ref(new Set),g=ref(new Set),{emit:$}=getCurrentInstance();watch(()=>n.value,()=>nextTick(()=>{_e(e.defaultCheckedKeys)}),{immediate:!0});const L=()=>{if(!n.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:At,maxLevel:qe}=n.value,xe=r.value,Ve=new Set;for(let he=qe-1;he>=1;--he){const Oe=At.get(he);!Oe||Oe.forEach($e=>{const Ne=$e.children;if(Ne){let Ue=!0,kt=!1;for(const Et of Ne){const Pt=Et.key;if(xe.has(Pt))kt=!0;else if(Ve.has(Pt)){Ue=!1,kt=!0;break}else Ue=!1}Ue?xe.add($e.key):kt?(Ve.add($e.key),xe.delete($e.key)):(xe.delete($e.key),Ve.delete($e.key))}})}g.value=Ve},k=At=>r.value.has(At.key),oe=At=>g.value.has(At.key),re=(At,qe,xe=!0)=>{const Ve=r.value,he=(Oe,$e)=>{Ve[$e?SetOperationEnum.ADD:SetOperationEnum.DELETE](Oe.key);const Ne=Oe.children;!e.checkStrictly&&Ne&&Ne.forEach(Ue=>{Ue.disabled||he(Ue,$e)})};he(At,qe),L(),xe&&ae(At,qe)},ae=(At,qe)=>{const{checkedNodes:xe,checkedKeys:Ve}=Fe(),{halfCheckedNodes:he,halfCheckedKeys:Oe}=ze();$(NODE_CHECK,At.data,{checkedKeys:Ve,checkedNodes:xe,halfCheckedKeys:Oe,halfCheckedNodes:he}),$(NODE_CHECK_CHANGE,At.data,qe)};function le(At=!1){return Fe(At).checkedKeys}function ue(At=!1){return Fe(At).checkedNodes}function pe(){return ze().halfCheckedKeys}function de(){return ze().halfCheckedNodes}function Fe(At=!1){const qe=[],xe=[];if(n?.value&&e.showCheckbox){const{treeNodeMap:Ve}=n.value;r.value.forEach(he=>{const Oe=Ve.get(he);Oe&&(!At||At&&Oe.isLeaf)&&(xe.push(he),qe.push(Oe.data))})}return{checkedKeys:xe,checkedNodes:qe}}function ze(){const At=[],qe=[];if(n?.value&&e.showCheckbox){const{treeNodeMap:xe}=n.value;g.value.forEach(Ve=>{const he=xe.get(Ve);he&&(qe.push(Ve),At.push(he.data))})}return{halfCheckedNodes:At,halfCheckedKeys:qe}}function Ce(At){r.value.clear(),g.value.clear(),_e(At)}function Ie(At,qe){if(n?.value&&e.showCheckbox){const xe=n.value.treeNodeMap.get(At);xe&&re(xe,qe,!1)}}function _e(At){if(n?.value){const{treeNodeMap:qe}=n.value;if(e.showCheckbox&&qe&&At)for(const xe of At){const Ve=qe.get(xe);Ve&&!k(Ve)&&re(Ve,!0,!1)}}}return{updateCheckedKeys:L,toggleCheckbox:re,isChecked:k,isIndeterminate:oe,getCheckedKeys:le,getCheckedNodes:ue,getHalfCheckedKeys:pe,getHalfCheckedNodes:de,setChecked:Ie,setCheckedKeys:Ce}}function useFilter(e,n){const r=ref(new Set([])),g=ref(new Set([])),$=computed(()=>isFunction$1(e.filterMethod));function L(oe){var re;if(!$.value)return;const ae=new Set,le=g.value,ue=r.value,pe=[],de=((re=n.value)==null?void 0:re.treeNodes)||[],Fe=e.filterMethod;ue.clear();function ze(Ce){Ce.forEach(Ie=>{pe.push(Ie),Fe?.(oe,Ie.data)?pe.forEach(At=>{ae.add(At.key)}):Ie.isLeaf&&ue.add(Ie.key);const _e=Ie.children;if(_e&&ze(_e),!Ie.isLeaf){if(!ae.has(Ie.key))ue.add(Ie.key);else if(_e){let At=!0;for(const qe of _e)if(!ue.has(qe.key)){At=!1;break}At?le.add(Ie.key):le.delete(Ie.key)}}pe.pop()})}return ze(de),ae}function k(oe){return g.value.has(oe.key)}return{hiddenExpandIconKeySet:g,hiddenNodeKeySet:r,doFilter:L,isForceHiddenExpandIcon:k}}function useTree(e,n){const r=ref(new Set(e.defaultExpandedKeys)),g=ref(),$=shallowRef();watch(()=>e.currentNodeKey,In=>{g.value=In},{immediate:!0}),watch(()=>e.data,In=>{An(In)},{immediate:!0});const{isIndeterminate:L,isChecked:k,toggleCheckbox:oe,getCheckedKeys:re,getCheckedNodes:ae,getHalfCheckedKeys:le,getHalfCheckedNodes:ue,setChecked:pe,setCheckedKeys:de}=useCheck(e,$),{doFilter:Fe,hiddenNodeKeySet:ze,isForceHiddenExpandIcon:Ce}=useFilter(e,$),Ie=computed(()=>{var In;return((In=e.props)==null?void 0:In.value)||TreeOptionsEnum.KEY}),_e=computed(()=>{var In;return((In=e.props)==null?void 0:In.children)||TreeOptionsEnum.CHILDREN}),At=computed(()=>{var In;return((In=e.props)==null?void 0:In.disabled)||TreeOptionsEnum.DISABLED}),qe=computed(()=>{var In;return((In=e.props)==null?void 0:In.label)||TreeOptionsEnum.LABEL}),xe=computed(()=>{const In=r.value,$n=ze.value,Pn=[],Dn=$.value&&$.value.treeNodes||[];function Mn(){const Fn=[];for(let kn=Dn.length-1;kn>=0;--kn)Fn.push(Dn[kn]);for(;Fn.length;){const kn=Fn.pop();if(!!kn&&($n.has(kn.key)||Pn.push(kn),In.has(kn.key))){const Nn=kn.children;if(Nn){const Rn=Nn.length;for(let wn=Rn-1;wn>=0;--wn)Fn.push(Nn[wn])}}}}return Mn(),Pn}),Ve=computed(()=>xe.value.length>0);function he(In){const $n=new Map,Pn=new Map;let Dn=1;function Mn(kn,Nn=1,Rn=void 0){var wn;const Tn=[];for(const xn of kn){const Bn=Ne(xn),Ln={level:Nn,key:Bn,data:xn};Ln.label=kt(xn),Ln.parent=Rn;const Hn=$e(xn);Ln.disabled=Ue(xn),Ln.isLeaf=!Hn||Hn.length===0,Hn&&Hn.length&&(Ln.children=Mn(Hn,Nn+1,Ln)),Tn.push(Ln),$n.set(Bn,Ln),Pn.has(Nn)||Pn.set(Nn,[]),(wn=Pn.get(Nn))==null||wn.push(Ln)}return Nn>Dn&&(Dn=Nn),Tn}const Fn=Mn(In);return{treeNodeMap:$n,levelTreeNodeMap:Pn,maxLevel:Dn,treeNodes:Fn}}function Oe(In){const $n=Fe(In);$n&&(r.value=$n)}function $e(In){return In[_e.value]}function Ne(In){return In?In[Ie.value]:""}function Ue(In){return In[At.value]}function kt(In){return In[qe.value]}function Et(In){r.value.has(In.key)?Dt(In):hn(In)}function Pt(In,$n){n(NODE_CLICK,In.data,In,$n),Lt(In),e.expandOnClickNode&&Et(In),e.showCheckbox&&e.checkOnClickNode&&!In.disabled&&oe(In,!k(In),!0)}function Lt(In){Sn(In)||(g.value=In.key,n(CURRENT_CHANGE,In.data,In))}function vn(In,$n){oe(In,$n)}function hn(In){const $n=r.value;if($?.value&&e.accordion){const{treeNodeMap:Pn}=$.value;$n.forEach(Dn=>{const Mn=Pn.get(Dn);Mn&&Mn.level===Mn.level&&$n.delete(Dn)})}$n.add(In.key),n(NODE_EXPAND,In.data,In)}function Dt(In){r.value.delete(In.key),n(NODE_COLLAPSE,In.data,In)}function jt(In){return r.value.has(In.key)}function bn(In){return!!In.disabled}function Sn(In){const $n=g.value;return!!$n&&$n===In.key}function Cn(){var In,$n;if(!!g.value)return($n=(In=$?.value)==null?void 0:In.treeNodeMap.get(g.value))==null?void 0:$n.data}function On(){return g.value}function En(In){g.value=In}function An(In){nextTick(()=>$.value=he(In))}return{tree:$,flattenTree:xe,isNotEmpty:Ve,getKey:Ne,getChildren:$e,toggleExpand:Et,toggleCheckbox:oe,isExpanded:jt,isChecked:k,isIndeterminate:L,isDisabled:bn,isCurrent:Sn,isForceHiddenExpandIcon:Ce,handleNodeClick:Pt,handleNodeCheck:vn,getCurrentNode:Cn,getCurrentKey:On,setCurrentKey:En,getCheckedKeys:re,getCheckedNodes:ae,getHalfCheckedKeys:le,getHalfCheckedNodes:ue,setChecked:pe,setCheckedKeys:de,filter:Oe,setData:An}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup(e){const n=inject(ROOT_TREE_INJECTION_KEY),r=useNamespace("tree");return()=>{const g=e.node,{data:$}=g;return n?.ctx.slots.default?n.ctx.slots.default({node:g,data:$}):h$2("span",{class:r.be("node","label")},[g?.label])}}});const DEFAULT_ICON="caret-right",_sfc_main$E=defineComponent({name:"ElTreeNode",components:{ElIcon,CaretRight:caret_right_default,ElCheckbox,ElNodeContent},props:treeNodeProps,emits:treeNodeEmits,setup(e,{emit:n}){const r=inject(ROOT_TREE_INJECTION_KEY),g=useNamespace("tree"),$=computed(()=>{var le;return(le=r?.props.indent)!=null?le:16}),L=computed(()=>{var le;return(le=r?.props.icon)!=null?le:DEFAULT_ICON});return{ns:g,indent:$,icon:L,handleClick:le=>{n("click",e.node,le)},handleExpandIconClick:()=>{n("toggle",e.node)},handleCheckChange:le=>{n("check",e.node,le)},handleContextMenu:le=>{var ue,pe,de,Fe;(de=(pe=(ue=r?.instance)==null?void 0:ue.vnode)==null?void 0:pe.props)!=null&&de.onNodeContextmenu&&(le.stopPropagation(),le.preventDefault()),r?.ctx.emit(NODE_CONTEXTMENU,le,(Fe=e.node)==null?void 0:Fe.data,e.node)}}}}),_hoisted_1$C=["aria-expanded","aria-disabled","aria-checked","data-key"];function _sfc_render$z(e,n,r,g,$,L){var k,oe,re;const ae=resolveComponent("el-icon"),le=resolveComponent("el-checkbox"),ue=resolveComponent("el-node-content");return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.current),e.ns.is("focusable",!e.disabled),e.ns.is("checked",!e.disabled&&e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(k=e.node)==null?void 0:k.key,onClick:n[1]||(n[1]=withModifiers((...pe)=>e.handleClick&&e.handleClick(...pe),["stop"])),onContextmenu:n[2]||(n[2]=(...pe)=>e.handleContextMenu&&e.handleContextMenu(...pe))},[createBaseVNode("div",{class:normalizeClass(e.ns.be("node","content")),style:normalizeStyle({paddingLeft:`${(e.node.level-1)*e.indent}px`})},[e.icon?(openBlock(),createBlock(ae,{key:0,class:normalizeClass([e.ns.is("leaf",!!((oe=e.node)!=null&&oe.isLeaf)),e.ns.is("hidden",e.hiddenExpandIcon),{expanded:!((re=e.node)!=null&&re.isLeaf)&&e.expanded},e.ns.be("node","expand-icon")]),onClick:withModifiers(e.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.icon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),e.showCheckbox?(openBlock(),createBlock(le,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:e.handleCheckChange,onClick:n[0]||(n[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),createVNode(ue,{node:e.node},null,8,["node"])],6)],42,_hoisted_1$C)}var ElTreeNode=_export_sfc$2(_sfc_main$E,[["render",_sfc_render$z],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const _sfc_main$D=defineComponent({name:"ElTreeV2",components:{ElTreeNode,FixedSizeList},props:treeProps,emits:treeEmits,setup(e,n){provide(ROOT_TREE_INJECTION_KEY,{ctx:n,props:e,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:r}=useLocale(),g=useNamespace("tree"),{flattenTree:$,isNotEmpty:L,toggleExpand:k,isExpanded:oe,isIndeterminate:re,isChecked:ae,isDisabled:le,isCurrent:ue,isForceHiddenExpandIcon:pe,toggleCheckbox:de,handleNodeClick:Fe,handleNodeCheck:ze,getCurrentNode:Ce,getCurrentKey:Ie,setCurrentKey:_e,getCheckedKeys:At,getCheckedNodes:qe,getHalfCheckedKeys:xe,getHalfCheckedNodes:Ve,setChecked:he,setCheckedKeys:Oe,filter:$e,setData:Ne}=useTree(e,n.emit);return n.expose({getCurrentNode:Ce,getCurrentKey:Ie,setCurrentKey:_e,getCheckedKeys:At,getCheckedNodes:qe,getHalfCheckedKeys:xe,getHalfCheckedNodes:Ve,setChecked:he,setCheckedKeys:Oe,filter:$e,setData:Ne}),{t:r,ns:g,flattenTree:$,itemSize:26,isNotEmpty:L,toggleExpand:k,toggleCheckbox:de,isExpanded:oe,isIndeterminate:re,isChecked:ae,isDisabled:le,isCurrent:ue,isForceHiddenExpandIcon:pe,handleNodeClick:Fe,handleNodeCheck:ze}}});function _sfc_render$y(e,n,r,g,$,L){var k;const oe=resolveComponent("el-tree-node"),re=resolveComponent("fixed-size-list");return openBlock(),createElementBlock("div",{class:normalizeClass([e.ns.b(),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[e.isNotEmpty?(openBlock(),createBlock(re,{key:0,"class-name":e.ns.b("virtual-list"),data:e.flattenTree,total:e.flattenTree.length,height:e.height,"item-size":e.itemSize,"perf-mode":e.perfMode},{default:withCtx(({data:ae,index:le,style:ue})=>[(openBlock(),createBlock(oe,{key:ae[le].key,style:normalizeStyle(ue),node:ae[le],expanded:e.isExpanded(ae[le]),"show-checkbox":e.showCheckbox,checked:e.isChecked(ae[le]),indeterminate:e.isIndeterminate(ae[le]),disabled:e.isDisabled(ae[le]),current:e.isCurrent(ae[le]),"hidden-expand-icon":e.isForceHiddenExpandIcon(ae[le]),onClick:e.handleNodeClick,onToggle:e.toggleExpand,onCheck:e.handleNodeCheck},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(e.ns.e("empty-text"))},toDisplayString((k=e.emptyText)!=null?k:e.t("el.tree.emptyText")),3)],2))],2)}var TreeV2=_export_sfc$2(_sfc_main$D,[["render",_sfc_render$y],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const ElTreeV2=withInstall(TreeV2),SCOPE$2="ElUpload";class UploadAjaxError extends Error{constructor(n,r,g,$){super(n),this.name="UploadAjaxError",this.status=r,this.method=g,this.url=$}}function getError(e,n,r){let g;return r.response?g=`${r.response.error||r.response}`:r.responseText?g=`${r.responseText}`:g=`fail to ${n.method} ${e} ${r.status}`,new UploadAjaxError(g,r.status,n.method,e)}function getBody(e){const n=e.responseText||e.response;if(!n)return n;try{return JSON.parse(n)}catch{return n}}const ajaxUpload=e=>{typeof XMLHttpRequest>"u"&&throwError(SCOPE$2,"XMLHttpRequest is undefined");const n=new XMLHttpRequest,r=e.action;n.upload&&n.upload.addEventListener("progress",L=>{const k=L;k.percent=L.total>0?L.loaded/L.total*100:0,e.onProgress(k)});const g=new FormData;if(e.data)for(const[L,k]of Object.entries(e.data))Array.isArray(k)?g.append(L,...k):g.append(L,k);g.append(e.filename,e.file,e.file.name),n.addEventListener("error",()=>{e.onError(getError(r,e,n))}),n.addEventListener("load",()=>{if(n.status<200||n.status>=300)return e.onError(getError(r,e,n));e.onSuccess(getBody(n))}),n.open(e.method,r,!0),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);const $=e.headers||{};if($ instanceof Headers)$.forEach((L,k)=>n.setRequestHeader(k,L));else for(const[L,k]of Object.entries($))isNil(k)||n.setRequestHeader(L,String(k));return n.send(g),n},uploadListTypes=["text","picture","picture-card"];let fileId=1;const genFileId=()=>Date.now()+fileId++,uploadBaseProps=buildProps({action:{type:String,default:"#"},headers:{type:definePropType(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>mutable({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:definePropType(Array),default:()=>mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:uploadListTypes,default:"text"},httpRequest:{type:definePropType(Function),default:ajaxUpload},disabled:Boolean,limit:Number}),uploadProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},beforeRemove:{type:definePropType(Function)},onRemove:{type:definePropType(Function),default:NOOP},onChange:{type:definePropType(Function),default:NOOP},onPreview:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}),uploadListProps=buildProps({files:{type:definePropType(Array),default:()=>mutable([])},disabled:{type:Boolean,default:!1},handlePreview:{type:definePropType(Function),default:NOOP},listType:{type:String,values:uploadListTypes,default:"text"}}),uploadListEmits={remove:e=>!!e},_hoisted_1$B=["onKeydown"],_hoisted_2$u=["src"],_hoisted_3$g=["onClick"],_hoisted_4$e=["onClick"],_hoisted_5$a=["onClick"],__default__$4={name:"ElUploadList"},_sfc_main$C=defineComponent({...__default__$4,props:uploadListProps,emits:uploadListEmits,setup(e,{emit:n}){const r=e,{t:g}=useLocale(),$=useNamespace("upload"),L=useNamespace("icon"),k=useNamespace("list"),oe=ref(!1),re=le=>{r.handlePreview(le)},ae=le=>{n("remove",le)};return(le,ue)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref($).b("list"),unref($).bm("list",le.listType),unref($).is("disabled",le.disabled)]),name:unref(k).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(le.files,pe=>(openBlock(),createElementBlock("li",{key:pe.uid||pe.name,class:normalizeClass([unref($).be("list","item"),unref($).is(pe.status),{focusing:oe.value}]),tabindex:"0",onKeydown:withKeys(de=>!le.disabled&&ae(pe),["delete"]),onFocus:ue[0]||(ue[0]=de=>oe.value=!0),onBlur:ue[1]||(ue[1]=de=>oe.value=!1),onClick:ue[2]||(ue[2]=de=>oe.value=!1)},[renderSlot(le.$slots,"default",{file:pe},()=>[le.listType==="picture"||pe.status!=="uploading"&&le.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref($).be("list","item-thumbnail")),src:pe.url,alt:""},null,10,_hoisted_2$u)):createCommentVNode("v-if",!0),le.listType!=="picture"&&(pe.status==="uploading"||le.listType!=="picture-card")?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref($).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref($).be("list","item-name")),onClick:withModifiers(de=>re(pe),["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(L).m("document"))},{default:withCtx(()=>[createVNode(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref($).be("list","item-file-name"))},toDisplayString(pe.name),3)],10,_hoisted_3$g),pe.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:le.listType==="picture-card"?"circle":"line","stroke-width":le.listType==="picture-card"?6:2,percentage:Number(pe.percentage),style:normalizeStyle(le.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("label",{class:normalizeClass(unref($).be("list","item-status-label"))},[le.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(L).m("upload-success"),unref(L).m("circle-check")])},{default:withCtx(()=>[createVNode(unref(circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(le.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(L).m("upload-success"),unref(L).m("check")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),le.disabled?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(L).m("close")),onClick:de=>ae(pe)},{default:withCtx(()=>[createVNode(unref(close_default))]),_:2},1032,["class","onClick"])),createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),createCommentVNode(" This is a bug which needs to be fixed "),createCommentVNode(" TODO: Fix the incorrect navigation interaction "),le.disabled?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(L).m("close-tip"))},toDisplayString(unref(g)("el.upload.deleteTip")),3)),le.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref($).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref($).be("list","item-preview")),onClick:de=>le.handlePreview(pe)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(L).m("zoom-in"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_4$e),le.disabled?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref($).be("list","item-delete")),onClick:de=>ae(pe)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(L).m("delete"))},{default:withCtx(()=>[createVNode(unref(delete_default))]),_:1},8,["class"])],10,_hoisted_5$a))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$B))),128)),renderSlot(le.$slots,"append")]),_:3},8,["class","name"]))}});var UploadList=_export_sfc$2(_sfc_main$C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const uploadDraggerProps=buildProps({disabled:{type:Boolean,default:!1}}),uploadDraggerEmits={file:e=>isArray$4(e)},_hoisted_1$A=["onDrop","onDragover"],__default__$3={name:"ElUploadDrag"},_sfc_main$B=defineComponent({...__default__$3,props:uploadDraggerProps,emits:uploadDraggerEmits,setup(e,{emit:n}){const r=e,g="ElUploadDrag",$=inject(uploadContextKey);$||throwError(g,"usage: ");const L=useNamespace("upload"),k=ref(!1),oe=ae=>{if(r.disabled)return;k.value=!1;const le=Array.from(ae.dataTransfer.files),ue=$.accept.value;if(!ue){n("file",le);return}const pe=le.filter(de=>{const{type:Fe,name:ze}=de,Ce=ze.includes(".")?`.${ze.split(".").pop()}`:"",Ie=Fe.replace(/\/.*$/,"");return ue.split(",").map(_e=>_e.trim()).filter(_e=>_e).some(_e=>_e.startsWith(".")?Ce===_e:/\/\*$/.test(_e)?Ie===_e.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(_e)?Fe===_e:!1)});n("file",pe)},re=()=>{r.disabled||(k.value=!0)};return(ae,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(L).b("dragger"),unref(L).is("dragover",k.value)]),onDrop:withModifiers(oe,["prevent"]),onDragover:withModifiers(re,["prevent"]),onDragleave:le[0]||(le[0]=withModifiers(ue=>k.value=!1,["prevent"]))},[renderSlot(ae.$slots,"default")],42,_hoisted_1$A))}});var UploadDragger=_export_sfc$2(_sfc_main$B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const uploadContentProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},onRemove:{type:definePropType(Function),default:NOOP},onStart:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}),_hoisted_1$z=["onKeydown"],_hoisted_2$t=["name","multiple","accept"],__default__$2={name:"ElUploadContent",inheritAttrs:!1},_sfc_main$A=defineComponent({...__default__$2,props:uploadContentProps,setup(e,{expose:n}){const r=e,g=useNamespace("upload"),$=shallowRef({}),L=shallowRef(),k=de=>{if(de.length===0)return;const{autoUpload:Fe,limit:ze,fileList:Ce,multiple:Ie,onStart:_e,onExceed:At}=r;if(ze&&Ce.length+de.length>ze){At(de,Ce);return}Ie||(de=de.slice(0,1));for(const qe of de){const xe=qe;xe.uid=genFileId(),_e(xe),Fe&&oe(xe)}},oe=async de=>{if(L.value.value="",!r.beforeUpload)return re(de);let Fe;try{Fe=await r.beforeUpload(de)}catch{Fe=!1}if(Fe===!1){r.onRemove(de);return}let ze=de;Fe instanceof Blob&&(Fe instanceof File?ze=Fe:ze=new File([Fe],de.name,{type:de.type})),re(Object.assign(ze,{uid:de.uid}))},re=de=>{const{headers:Fe,data:ze,method:Ce,withCredentials:Ie,name:_e,action:At,onProgress:qe,onSuccess:xe,onError:Ve,httpRequest:he}=r,{uid:Oe}=de,$e={headers:Fe||{},withCredentials:Ie,file:de,data:ze,method:Ce,filename:_e,action:At,onProgress:Ue=>{qe(Ue,de)},onSuccess:Ue=>{xe(Ue,de),delete $.value[Oe]},onError:Ue=>{Ve(Ue,de),delete $.value[Oe]}},Ne=he($e);$.value[Oe]=Ne,Ne instanceof Promise&&Ne.then($e.onSuccess,$e.onError)},ae=de=>{const Fe=de.target.files;!Fe||k(Array.from(Fe))},le=()=>{r.disabled||(L.value.value="",L.value.click())},ue=()=>{le()};return n({abort:de=>{entriesOf($.value).filter(de?([ze])=>String(de.uid)===ze:()=>!0).forEach(([ze,Ce])=>{Ce instanceof XMLHttpRequest&&Ce.abort(),delete $.value[ze]})},upload:oe}),(de,Fe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(g).b(),unref(g).m(de.listType),unref(g).is("drag",de.drag)]),tabindex:"0",onClick:le,onKeydown:withKeys(withModifiers(ue,["self"]),["enter","space"])},[de.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:de.disabled,onFile:k},{default:withCtx(()=>[renderSlot(de.$slots,"default")]),_:3},8,["disabled"])):renderSlot(de.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:L,class:normalizeClass(unref(g).e("input")),name:de.name,multiple:de.multiple,accept:de.accept,type:"file",onChange:ae,onClick:Fe[0]||(Fe[0]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$t)],42,_hoisted_1$z))}});var UploadContent=_export_sfc$2(_sfc_main$A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const SCOPE$1="ElUpload",revokeObjectURL=e=>{var n;(n=e.url)!=null&&n.startsWith("blob:")&&URL.revokeObjectURL(e.url)},useHandlers=(e,n)=>{const r=useVModel(e,"fileList",void 0,{passive:!0}),g=pe=>r.value.find(de=>de.uid===pe.uid);function $(pe){var de;(de=n.value)==null||de.abort(pe)}function L(pe=["ready","uploading","success","fail"]){r.value=r.value.filter(de=>!pe.includes(de.status))}const k=(pe,de)=>{const Fe=g(de);!Fe||(console.error(pe),Fe.status="fail",r.value.splice(r.value.indexOf(Fe),1),e.onError(pe,Fe,r.value),e.onChange(Fe,r.value))},oe=(pe,de)=>{const Fe=g(de);!Fe||(e.onProgress(pe,Fe,r.value),Fe.status="uploading",Fe.percentage=Math.round(pe.percent))},re=(pe,de)=>{const Fe=g(de);!Fe||(Fe.status="success",Fe.response=pe,e.onSuccess(pe,Fe,r.value),e.onChange(Fe,r.value))},ae=pe=>{const de={name:pe.name,percentage:0,status:"ready",size:pe.size,raw:pe,uid:pe.uid};if(e.listType==="picture-card"||e.listType==="picture")try{de.url=URL.createObjectURL(pe)}catch(Fe){Fe.message,e.onError(Fe,de,r.value)}r.value=[...r.value,de],e.onChange(de,r.value)},le=async pe=>{const de=pe instanceof File?g(pe):pe;de||throwError(SCOPE$1,"file to be removed not found");const Fe=ze=>{$(ze);const Ce=r.value;Ce.splice(Ce.indexOf(ze),1),e.onRemove(ze,Ce),revokeObjectURL(ze)};e.beforeRemove?await e.beforeRemove(de,r.value)!==!1&&Fe(de):Fe(de)};function ue(){r.value.filter(({status:pe})=>pe==="ready").forEach(({raw:pe})=>{var de;return pe&&((de=n.value)==null?void 0:de.upload(pe))})}return watch(()=>e.listType,pe=>{pe!=="picture-card"&&pe!=="picture"||(r.value=r.value.map(de=>{const{raw:Fe,url:ze}=de;if(!ze&&Fe)try{de.url=URL.createObjectURL(Fe)}catch(Ce){e.onError(Ce,de,r.value)}return de}))}),watch(r,pe=>{for(const de of pe)de.uid||(de.uid=genFileId()),de.status||(de.status="success")},{immediate:!0,deep:!0}),{uploadFiles:r,abort:$,clearFiles:L,handleError:k,handleProgress:oe,handleStart:ae,handleSuccess:re,handleRemove:le,submit:ue}},__default__$1={name:"ElUpload"},_sfc_main$z=defineComponent({...__default__$1,props:uploadProps,setup(e,{expose:n}){const r=e,g=useSlots(),$=useDisabled$1(),L=shallowRef(),{abort:k,submit:oe,clearFiles:re,uploadFiles:ae,handleStart:le,handleError:ue,handleRemove:pe,handleSuccess:de,handleProgress:Fe}=useHandlers(r,L),ze=computed(()=>r.listType==="picture-card"),Ce=computed(()=>({...r,onStart:le,onProgress:Fe,onSuccess:de,onError:ue,onRemove:pe}));return onBeforeUnmount(()=>{ae.value.forEach(({url:Ie})=>{Ie?.startsWith("blob:")&&URL.revokeObjectURL(Ie)})}),provide(uploadContextKey,{accept:toRef(r,"accept")}),n({abort:k,submit:oe,clearFiles:re,handleStart:le,handleRemove:pe}),(Ie,_e)=>(openBlock(),createElementBlock("div",null,[unref(ze)&&Ie.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref($),"list-type":Ie.listType,files:unref(ae),"handle-preview":Ie.onPreview,onRemove:unref(pe)},createSlots({append:withCtx(()=>[Ie.listType==="picture-card"?(openBlock(),createBlock(UploadContent,mergeProps({key:0,ref_key:"uploadRef",ref:L},unref(Ce)),{default:withCtx(()=>[unref(g).trigger?renderSlot(Ie.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(g).trigger&&unref(g).default?renderSlot(Ie.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},[Ie.$slots.file?{name:"default",fn:withCtx(({file:At})=>[renderSlot(Ie.$slots,"file",{file:At})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0),Ie.listType!=="picture-card"?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:L},unref(Ce)),{default:withCtx(()=>[unref(g).trigger?renderSlot(Ie.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(g).trigger&&unref(g).default?renderSlot(Ie.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),Ie.$slots.trigger?renderSlot(Ie.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(Ie.$slots,"tip"),!unref(ze)&&Ie.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref($),"list-type":Ie.listType,files:unref(ae),"handle-preview":Ie.onPreview,onRemove:unref(pe)},createSlots({_:2},[Ie.$slots.file?{name:"default",fn:withCtx(({file:At})=>[renderSlot(Ie.$slots,"file",{file:At})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0)]))}});var Upload=_export_sfc$2(_sfc_main$z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const ElUpload=withInstall(Upload);var Components=[ElAffix,ElAlert,ElAutocomplete,ElAutoResizer,ElAvatar,ElBacktop,ElBadge,ElBreadcrumb,ElBreadcrumbItem,ElButton,ElButtonGroup$1,ElCalendar,ElCard,ElCarousel,ElCarouselItem,ElCascader,ElCascaderPanel,ElCheckTag,ElCheckbox,ElCheckboxButton,ElCheckboxGroup$1,ElCol,ElCollapse,ElCollapseItem,ElCollapseTransition,ElColorPicker,ElConfigProvider,ElContainer,ElAside,ElFooter,ElHeader,ElMain,ElDatePicker,ElDescriptions,ElDescriptionsItem,ElDialog,ElDivider,ElDrawer,ElDropdown,ElDropdownItem,ElDropdownMenu,ElEmpty,ElForm,ElFormItem,ElIcon,ElImage,ElImageViewer,ElInput,ElInputNumber,ElLink,ElMenu,ElMenuItem,ElMenuItemGroup,ElPageHeader,ElPagination,ElPopconfirm,ElPopover,ElPopper,ElProgress,ElRadio,ElRadioButton,ElRadioGroup,ElRate,ElResult,ElRow,ElScrollbar,ElSelect,ElOption,ElOptionGroup,ElSelectV2,ElSkeleton,ElSkeletonItem,ElSlider,ElSpace,ElSteps,ElStep,ElSwitch,ElTable,ElTableColumn,ElTableV2,ElTabs,ElTabPane,ElTag,ElTimePicker,ElTimeSelect,ElTimeline,ElTimelineItem,ElTooltip,ElTooltipV2,ElTransfer,ElTree,ElTreeSelect,ElTreeV2,ElUpload];const SCOPE="ElInfiniteScroll",CHECK_INTERVAL=50,DEFAULT_DELAY=200,DEFAULT_DISTANCE=0,attributes={delay:{type:Number,default:DEFAULT_DELAY},distance:{type:Number,default:DEFAULT_DISTANCE},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},getScrollOptions=(e,n)=>Object.entries(attributes).reduce((r,[g,$])=>{var L,k;const{type:oe,default:re}=$,ae=e.getAttribute(`infinite-scroll-${g}`);let le=(k=(L=n[ae])!=null?L:ae)!=null?k:re;return le=le==="false"?!1:le,le=oe(le),r[g]=Number.isNaN(le)?re:le,r},{}),destroyObserver=e=>{const{observer:n}=e[SCOPE];n&&(n.disconnect(),delete e[SCOPE].observer)},handleScroll=(e,n)=>{const{container:r,containerEl:g,instance:$,observer:L,lastScrollTop:k}=e[SCOPE],{disabled:oe,distance:re}=getScrollOptions(e,$),{clientHeight:ae,scrollHeight:le,scrollTop:ue}=g,pe=ue-k;if(e[SCOPE].lastScrollTop=ue,L||oe||pe<0)return;let de=!1;if(r===e)de=le-(ae+ue)<=re;else{const{clientTop:Fe,scrollHeight:ze}=e,Ce=getOffsetTopDistance(e,g);de=ue+ae>=Ce+Fe+ze-re}de&&n.call($)};function checkFull(e,n){const{containerEl:r,instance:g}=e[SCOPE],{disabled:$}=getScrollOptions(e,g);$||r.clientHeight===0||(r.scrollHeight<=r.clientHeight?n.call(g):destroyObserver(e))}const InfiniteScroll={async mounted(e,n){const{instance:r,value:g}=n;isFunction$1(g)||throwError(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:$,immediate:L}=getScrollOptions(e,r),k=getScrollContainer(e,!0),oe=k===window?document.documentElement:k,re=throttle$1(handleScroll.bind(null,e,g),$);if(!!k){if(e[SCOPE]={instance:r,container:k,containerEl:oe,delay:$,cb:g,onScroll:re,lastScrollTop:oe.scrollTop},L){const ae=new MutationObserver(throttle$1(checkFull.bind(null,e,g),CHECK_INTERVAL));e[SCOPE].observer=ae,ae.observe(e,{childList:!0,subtree:!0}),checkFull(e,g)}k.addEventListener("scroll",re)}},unmounted(e){const{container:n,onScroll:r}=e[SCOPE];n?.removeEventListener("scroll",r),destroyObserver(e)},async updated(e){e[SCOPE]||await nextTick();const{containerEl:n,cb:r,observer:g}=e[SCOPE];n.clientHeight&&g&&checkFull(e,r)}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=e=>{e.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent(e){let n;const r=useNamespace("loading"),g=ref(!1),$=reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function L(de){$.text=de}function k(){const de=$.parent;if(!de.vLoadingAddClassList){let Fe=de.getAttribute("loading-number");Fe=Number.parseInt(Fe)-1,Fe?de.setAttribute("loading-number",Fe.toString()):(removeClass(de,r.bm("parent","relative")),de.removeAttribute("loading-number")),removeClass(de,r.bm("parent","hidden"))}oe(),ue.unmount()}function oe(){var de,Fe;(Fe=(de=pe.$el)==null?void 0:de.parentNode)==null||Fe.removeChild(pe.$el)}function re(){var de;if(e.beforeClose&&!e.beforeClose())return;const Fe=$.parent;Fe.vLoadingAddClassList=void 0,g.value=!0,clearTimeout(n),n=window.setTimeout(()=>{g.value&&(g.value=!1,k())},400),$.visible=!1,(de=e.closed)==null||de.call(e)}function ae(){!g.value||(g.value=!1,k())}const ue=createApp({name:"ElLoading",setup(){return()=>{const de=$.spinner||$.svg,Fe=h$2("svg",{class:"circular",viewBox:$.svgViewBox?$.svgViewBox:"25 25 50 50",...de?{innerHTML:de}:{}},[h$2("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),ze=$.text?h$2("p",{class:r.b("text")},[$.text]):void 0;return h$2(Transition,{name:r.b("fade"),onAfterLeave:ae},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:$.background||""},class:[r.b("mask"),$.customClass,$.fullscreen?"is-fullscreen":""]},[h$2("div",{class:r.b("spinner")},[Fe,ze])]),[[vShow,$.visible]])])})}}}),pe=ue.mount(document.createElement("div"));return{...toRefs($),setText:L,removeElLoadingChild:oe,close:re,handleAfterLeave:ae,vm:pe,get $el(){return pe.$el}}}let fullscreenInstance;const Loading=function(e={}){if(!isClient)return;const n=resolveOptions(e);if(n.fullscreen&&fullscreenInstance)return fullscreenInstance;const r=createLoadingComponent({...n,closed:()=>{var $;($=n.closed)==null||$.call(n),n.fullscreen&&(fullscreenInstance=void 0)}});addStyle(n,n.parent,r),addClassList(n,n.parent,r),n.parent.vLoadingAddClassList=()=>addClassList(n,n.parent,r);let g=n.parent.getAttribute("loading-number");return g?g=`${Number.parseInt(g)+1}`:g="1",n.parent.setAttribute("loading-number",g),n.parent.appendChild(r.$el),nextTick(()=>r.visible.value=n.visible),n.fullscreen&&(fullscreenInstance=r),r},resolveOptions=e=>{var n,r,g,$;let L;return isString$2(e.target)?L=(n=document.querySelector(e.target))!=null?n:document.body:L=e.target||document.body,{parent:L===document.body||e.body?document.body:L,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:L===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(g=e.lock)!=null?g:!1,customClass:e.customClass||"",visible:($=e.visible)!=null?$:!0,target:L}},addStyle=async(e,n,r)=>{const{nextZIndex:g}=useZIndex(),$={};if(e.fullscreen)r.originalPosition.value=getStyle(document.body,"position"),r.originalOverflow.value=getStyle(document.body,"overflow"),$.zIndex=g();else if(e.parent===document.body){r.originalPosition.value=getStyle(document.body,"position"),await nextTick();for(const L of["top","left"]){const k=L==="top"?"scrollTop":"scrollLeft";$[L]=`${e.target.getBoundingClientRect()[L]+document.body[k]+document.documentElement[k]-Number.parseInt(getStyle(document.body,`margin-${L}`),10)}px`}for(const L of["height","width"])$[L]=`${e.target.getBoundingClientRect()[L]}px`}else r.originalPosition.value=getStyle(n,"position");for(const[L,k]of Object.entries($))r.$el.style[L]=k},addClassList=(e,n,r)=>{const g=useNamespace("loading");r.originalPosition.value!=="absolute"&&r.originalPosition.value!=="fixed"?addClass(n,g.bm("parent","relative")):removeClass(n,g.bm("parent","relative")),e.fullscreen&&e.lock?addClass(n,g.bm("parent","hidden")):removeClass(n,g.bm("parent","hidden"))},INSTANCE_KEY=Symbol("ElLoading"),createInstance=(e,n)=>{var r,g,$,L;const k=n.instance,oe=pe=>isObject$4(n.value)?n.value[pe]:void 0,re=pe=>{const de=isString$2(pe)&&k?.[pe]||pe;return de&&ref(de)},ae=pe=>re(oe(pe)||e.getAttribute(`element-loading-${hyphenate(pe)}`)),le=(r=oe("fullscreen"))!=null?r:n.modifiers.fullscreen,ue={text:ae("text"),svg:ae("svg"),svgViewBox:ae("svgViewBox"),spinner:ae("spinner"),background:ae("background"),customClass:ae("customClass"),fullscreen:le,target:(g=oe("target"))!=null?g:le?void 0:e,body:($=oe("body"))!=null?$:n.modifiers.body,lock:(L=oe("lock"))!=null?L:n.modifiers.lock};e[INSTANCE_KEY]={options:ue,instance:Loading(ue)}},updateOptions=(e,n)=>{for(const r of Object.keys(n))isRef(n[r])&&(n[r].value=e[r])},vLoading={mounted(e,n){n.value&&createInstance(e,n)},updated(e,n){const r=e[INSTANCE_KEY];n.oldValue!==n.value&&(n.value&&!n.oldValue?createInstance(e,n):n.value&&n.oldValue?isObject$4(n.value)&&updateOptions(n.value,r.options):r?.instance.close())},unmounted(e){var n;(n=e[INSTANCE_KEY])==null||n.instance.close()}},ElLoading={install(e){e.directive("loading",vLoading),e.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes=["success","info","warning","error"],messageDefaults=mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:"",id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},center:{type:Boolean,default:messageDefaults.center},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults.duration},icon:{type:iconPropType,default:messageDefaults.icon},id:{type:String,default:messageDefaults.id},message:{type:definePropType([String,Object,Function]),default:messageDefaults.message},onClose:{type:definePropType(Function),required:!1},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},offset:{type:Number,default:messageDefaults.offset},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},instances=shallowReactive([]),getInstance=e=>{const n=instances.findIndex($=>$.id===e),r=instances[n];let g;return n>0&&(g=instances[n-1]),{current:r,prev:g}},getLastOffset=e=>{const{prev:n}=getInstance(e);return n?n.vm.exposeProxy.bottom:0},_hoisted_1$y=["id"],_hoisted_2$s=["innerHTML"],__default__={name:"ElMessage"},_sfc_main$y=defineComponent({...__default__,props:messageProps,emits:messageEmits,setup(e,{expose:n}){const r=e,{Close:g}=TypeComponents,$=useNamespace("message"),L=ref(),k=ref(!1),oe=ref(0);let re;const ae=computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),le=computed(()=>{const qe=r.type;return{[$.bm("icon",qe)]:qe&&TypeComponentsMap[qe]}}),ue=computed(()=>r.icon||TypeComponentsMap[r.type]||""),pe=computed(()=>getLastOffset(r.id)),de=computed(()=>r.offset+pe.value),Fe=computed(()=>oe.value+de.value),ze=computed(()=>({top:`${de.value}px`,zIndex:r.zIndex}));function Ce(){r.duration!==0&&({stop:re}=useTimeoutFn(()=>{_e()},r.duration))}function Ie(){re?.()}function _e(){k.value=!1}function At({code:qe}){qe===EVENT_CODE.esc&&_e()}return onMounted(()=>{Ce(),k.value=!0}),watch(()=>r.repeatNum,()=>{Ie(),Ce()}),useEventListener(document,"keydown",At),useResizeObserver(L,()=>{oe.value=L.value.getBoundingClientRect().height}),n({visible:k,bottom:Fe,close:_e}),(qe,xe)=>(openBlock(),createBlock(Transition,{name:unref($).b("fade"),onBeforeLeave:qe.onClose,onAfterLeave:xe[0]||(xe[0]=Ve=>qe.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:qe.id,ref_key:"messageRef",ref:L,class:normalizeClass([unref($).b(),{[unref($).m(qe.type)]:qe.type&&!qe.icon},unref($).is("center",qe.center),unref($).is("closable",qe.showClose),qe.customClass]),style:normalizeStyle(unref(ze)),role:"alert",onMouseenter:Ie,onMouseleave:Ce},[qe.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:qe.repeatNum,type:unref(ae),class:normalizeClass(unref($).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(ue)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref($).e("icon"),unref(le)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ue))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(qe.$slots,"default",{},()=>[qe.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{class:normalizeClass(unref($).e("content")),innerHTML:qe.message},null,10,_hoisted_2$s)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref($).e("content"))},toDisplayString(qe.message),3))]),qe.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref($).e("closeBtn")),onClick:withModifiers(_e,["stop"])},{default:withCtx(()=>[createVNode(unref(g))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$y),[[vShow,k.value]])]),_:3},8,["name","onBeforeLeave"]))}});var MessageConstructor=_export_sfc$2(_sfc_main$y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let seed$1=1;const normalizeOptions=e=>{const n=!e||isString$2(e)||isVNode(e)||isFunction$1(e)?{message:e}:e,r={...messageDefaults,...n};if(!r.appendTo)r.appendTo=document.body;else if(isString$2(r.appendTo)){let g=document.querySelector(r.appendTo);isElement$1(g)||(g=document.body),r.appendTo=g}return r},closeMessage=e=>{const n=instances.indexOf(e);if(n===-1)return;instances.splice(n,1);const{handler:r}=e;r.close()},createMessage=({appendTo:e,...n},r)=>{const{nextZIndex:g}=useZIndex(),$=`message_${seed$1++}`,L=n.onClose,k=document.createElement("div"),oe={...n,zIndex:g()+n.zIndex,id:$,onClose:()=>{L?.(),closeMessage(ue)},onDestroy:()=>{render(null,k)}},re=createVNode(MessageConstructor,oe,isFunction$1(oe.message)||isVNode(oe.message)?{default:oe.message}:null);re.appContext=r||message._context,render(re,k),e.appendChild(k.firstElementChild);const ae=re.component,ue={id:$,vnode:re,vm:ae,handler:{close:()=>{ae.exposeProxy.visible=!1}},props:re.component.props};return ue},message=(e={},n)=>{if(!isClient)return{close:()=>{}};if(isNumber(messageConfig.max)&&instances.length>=messageConfig.max)return{close:()=>{}};const r=normalizeOptions(e);if(r.grouping&&instances.length){const $=instances.find(({vnode:L})=>{var k;return((k=L.props)==null?void 0:k.message)===r.message});if($)return $.props.repeatNum+=1,$.props.type=r.type,$.handler}const g=createMessage(r,n);return instances.push(g),g.handler};messageTypes.forEach(e=>{message[e]=(n={},r)=>{const g=normalizeOptions(n);return message({...g,type:e},r)}});function closeAll$1(e){for(const n of instances)(!e||e===n.props.type)&&n.handler.close()}message.closeAll=closeAll$1;message._context=null;const ElMessage=withInstallFunction(message,"$message"),_sfc_main$x=defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:{ElButton,ElFocusTrap,ElInput,ElOverlay,ElIcon,...TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:n}){const{t:r}=useLocale(),g=useNamespace("message-box"),$=ref(!1),{nextZIndex:L}=useZIndex(),k=reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:L()}),oe=computed(()=>{const Et=k.type;return{[g.bm("icon",Et)]:Et&&TypeComponentsMap[Et]}}),re=useId(),ae=useId(),le=useSize(computed(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),ue=computed(()=>k.icon||TypeComponentsMap[k.type]||""),pe=computed(()=>!!k.message),de=ref(),Fe=ref(),ze=ref(),Ce=ref(),Ie=ref(),_e=computed(()=>k.confirmButtonClass);watch(()=>k.inputValue,async Et=>{await nextTick(),e.boxType==="prompt"&&Et!==null&&$e()},{immediate:!0}),watch(()=>$.value,Et=>{var Pt,Lt;Et&&(e.boxType!=="prompt"&&(k.autofocus?ze.value=(Lt=(Pt=Ie.value)==null?void 0:Pt.$el)!=null?Lt:de.value:ze.value=de.value),k.zIndex=L()),e.boxType==="prompt"&&(Et?nextTick().then(()=>{var vn;Ce.value&&Ce.value.$el&&(k.autofocus?ze.value=(vn=Ne())!=null?vn:de.value:ze.value=de.value)}):(k.editorErrorMessage="",k.validateError=!1))});const At=computed(()=>e.draggable);useDraggable(de,Fe,At),onMounted(async()=>{await nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",qe)}),onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",qe)});function qe(){!$.value||($.value=!1,nextTick(()=>{k.action&&n("action",k.action)}))}const xe=()=>{e.closeOnClickModal&&Oe(k.distinguishCancelAndClose?"close":"cancel")},Ve=useSameTarget(xe),he=Et=>{if(k.inputType!=="textarea")return Et.preventDefault(),Oe("confirm")},Oe=Et=>{var Pt;e.boxType==="prompt"&&Et==="confirm"&&!$e()||(k.action=Et,k.beforeClose?(Pt=k.beforeClose)==null||Pt.call(k,Et,k,qe):qe())},$e=()=>{if(e.boxType==="prompt"){const Et=k.inputPattern;if(Et&&!Et.test(k.inputValue||""))return k.editorErrorMessage=k.inputErrorMessage||r("el.messagebox.error"),k.validateError=!0,!1;const Pt=k.inputValidator;if(typeof Pt=="function"){const Lt=Pt(k.inputValue);if(Lt===!1)return k.editorErrorMessage=k.inputErrorMessage||r("el.messagebox.error"),k.validateError=!0,!1;if(typeof Lt=="string")return k.editorErrorMessage=Lt,k.validateError=!0,!1}}return k.editorErrorMessage="",k.validateError=!1,!0},Ne=()=>{const Et=Ce.value.$refs;return Et.input||Et.textarea},Ue=()=>{Oe("close")},kt=()=>{e.closeOnPressEscape&&Ue()};return e.lockScroll&&useLockscreen($),useRestoreActive($),{...toRefs(k),ns:g,overlayEvent:Ve,visible:$,hasMessage:pe,typeClass:oe,contentId:re,inputId:ae,btnSize:le,iconComponent:ue,confirmButtonClasses:_e,rootRef:de,focusStartRef:ze,headerRef:Fe,inputRef:Ce,confirmRef:Ie,doClose:qe,handleClose:Ue,onCloseRequested:kt,handleWrapperClick:xe,handleInputEnter:he,handleAction:Oe,t:r}}}),_hoisted_1$x=["aria-label","aria-describedby"],_hoisted_2$r=["aria-label"],_hoisted_3$f=["id"];function _sfc_render$x(e,n,r,g,$,L){const k=resolveComponent("el-icon"),oe=resolveComponent("close"),re=resolveComponent("el-input"),ae=resolveComponent("el-button"),le=resolveComponent("el-focus-trap"),ue=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:n[11]||(n[11]=pe=>e.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(ue,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:n[8]||(n[8]=(...pe)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...pe)),onMousedown:n[9]||(n[9]=(...pe)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...pe)),onMouseup:n[10]||(n[10]=(...pe)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...pe))},[createVNode(le,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:normalizeStyle(e.customStyle),tabindex:"-1",onClick:n[7]||(n[7]=withModifiers(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass(e.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(openBlock(),createBlock(k,{key:0,class:normalizeClass([e.ns.e("status"),e.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString(e.title),1)],2),e.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:n[0]||(n[0]=pe=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:n[1]||(n[1]=withKeys(withModifiers(pe=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(k,{class:normalizeClass(e.ns.e("close"))},{default:withCtx(()=>[createVNode(oe)]),_:1},8,["class"])],42,_hoisted_2$r)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:e.contentId,class:normalizeClass(e.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(openBlock(),createBlock(k,{key:0,class:normalizeClass([e.ns.e("status"),e.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),e.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.ns.e("message"))},[renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(e.ns.e("input"))},[createVNode(re,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":n[2]||(n[2]=pe=>e.inputValue=pe),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:normalizeClass({invalid:e.validateError}),onKeydown:withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass(e.ns.e("errormsg")),style:normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},toDisplayString(e.editorErrorMessage),7)],2),[[vShow,e.showInput]])],10,_hoisted_3$f),createBaseVNode("div",{class:normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(openBlock(),createBlock(ae,{key:0,loading:e.cancelButtonLoading,class:normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:n[3]||(n[3]=pe=>e.handleAction("cancel")),onKeydown:n[4]||(n[4]=withKeys(withModifiers(pe=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode(ae,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:n[5]||(n[5]=pe=>e.handleAction("confirm")),onKeydown:n[6]||(n[6]=withKeys(withModifiers(pe=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[vShow,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$x)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,e.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc$2(_sfc_main$x,[["render",_sfc_render$x],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,initInstance=(e,n,r=null)=>{const g=h$2(MessageBoxConstructor,e);return g.appContext=r,render(g,n),document.body.appendChild(n.firstElementChild),g.component},genContainer=()=>document.createElement("div"),showMessage=(e,n)=>{const r=genContainer();e.onVanish=()=>{render(null,r),messageInstance.delete($)},e.onAction=L=>{const k=messageInstance.get($);let oe;e.showInput?oe={value:$.inputValue,action:L}:oe=L,e.callback?e.callback(oe,g.proxy):L==="cancel"||L==="close"?e.distinguishCancelAndClose&&L!=="cancel"?k.reject("close"):k.reject("cancel"):k.resolve(oe)};const g=initInstance(e,r,n),$=g.proxy;for(const L in e)hasOwn(e,L)&&!hasOwn($.$props,L)&&($[L]=e[L]);return watch(()=>$.message,(L,k)=>{isVNode(L)?g.slots.default=()=>[L]:isVNode(k)&&!isVNode(L)&&delete g.slots.default},{immediate:!0}),$.visible=!0,$};function MessageBox(e,n=null){if(!isClient)return Promise.reject();let r;return isString$2(e)||isVNode(e)?e={message:e}:r=e.callback,new Promise((g,$)=>{const L=showMessage(e,n??MessageBox._context);messageInstance.set(L,{options:e,callback:r,resolve:g,reject:$})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};MESSAGE_BOX_VARIANTS.forEach(e=>{MessageBox[e]=messageBoxFactory(e)});function messageBoxFactory(e){return(n,r,g,$)=>{let L;return isObject$4(r)?(g=r,L=""):isUndefined(r)?L="":L=r,MessageBox(Object.assign({title:L,message:n,type:"",...MESSAGE_BOX_DEFAULT_OPTS[e]},g,{boxType:e}),$)}}MessageBox.close=()=>{messageInstance.forEach((e,n)=>{n.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=e=>{_MessageBox._context=e._context,e.config.globalProperties.$msgbox=_MessageBox,e.config.globalProperties.$messageBox=_MessageBox,e.config.globalProperties.$alert=_MessageBox.alert,e.config.globalProperties.$confirm=_MessageBox.confirm,e.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox,notificationTypes=["success","info","warning","error"],notificationProps=buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:definePropType([String,Object]),default:""},id:{type:String,default:""},message:{type:definePropType([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:definePropType(Function),default:()=>{}},onClose:{type:definePropType(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...notificationTypes,""],default:""},zIndex:{type:Number,default:0}}),notificationEmits={destroy:()=>!0},_sfc_main$w=defineComponent({name:"ElNotification",components:{ElIcon,...TypeComponents},props:notificationProps,emits:notificationEmits,setup(e){const n=useNamespace("notification"),r=ref(!1);let g;const $=computed(()=>{const de=e.type;return de&&TypeComponentsMap[e.type]?n.m(de):""}),L=computed(()=>TypeComponentsMap[e.type]||e.icon||""),k=computed(()=>e.position.endsWith("right")?"right":"left"),oe=computed(()=>e.position.startsWith("top")?"top":"bottom"),re=computed(()=>({[oe.value]:`${e.offset}px`,zIndex:e.zIndex}));function ae(){e.duration>0&&({stop:g}=useTimeoutFn(()=>{r.value&&ue()},e.duration))}function le(){g?.()}function ue(){r.value=!1}function pe({code:de}){de===EVENT_CODE.delete||de===EVENT_CODE.backspace?le():de===EVENT_CODE.esc?r.value&&ue():ae()}return onMounted(()=>{ae(),r.value=!0}),useEventListener(document,"keydown",pe),{ns:n,horizontalClass:k,typeClass:$,iconComponent:L,positionStyle:re,visible:r,close:ue,clearTimer:le,startTimer:ae}}}),_hoisted_1$w=["id"],_hoisted_2$q=["textContent"],_hoisted_3$e={key:0},_hoisted_4$d=["innerHTML"];function _sfc_render$w(e,n,r,g,$,L){const k=resolveComponent("el-icon"),oe=resolveComponent("close");return openBlock(),createBlock(Transition,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:n[3]||(n[3]=re=>e.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:e.id,class:normalizeClass([e.ns.b(),e.customClass,e.horizontalClass]),style:normalizeStyle(e.positionStyle),role:"alert",onMouseenter:n[0]||(n[0]=(...re)=>e.clearTimer&&e.clearTimer(...re)),onMouseleave:n[1]||(n[1]=(...re)=>e.startTimer&&e.startTimer(...re)),onClick:n[2]||(n[2]=(...re)=>e.onClick&&e.onClick(...re))},[e.iconComponent?(openBlock(),createBlock(k,{key:0,class:normalizeClass([e.ns.e("icon"),e.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(e.ns.e("group"))},[createBaseVNode("h2",{class:normalizeClass(e.ns.e("title")),textContent:toDisplayString(e.title)},null,10,_hoisted_2$q),withDirectives(createBaseVNode("div",{class:normalizeClass(e.ns.e("content")),style:normalizeStyle(e.title?void 0:{margin:0})},[renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromized, nerver use user's input as message "),createCommentVNode(" eslint-disable-next-line "),createBaseVNode("p",{innerHTML:e.message},null,8,_hoisted_4$d)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$e,toDisplayString(e.message),1))])],6),[[vShow,e.message]]),e.showClose?(openBlock(),createBlock(k,{key:0,class:normalizeClass(e.ns.e("closeBtn")),onClick:withModifiers(e.close,["stop"])},{default:withCtx(()=>[createVNode(oe)]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$w),[[vShow,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var NotificationConstructor=_export_sfc$2(_sfc_main$w,[["render",_sfc_render$w],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const notifications={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},GAP_SIZE=16;let seed=1;const notify=function(e={},n=null){if(!isClient)return{close:()=>{}};(typeof e=="string"||isVNode(e))&&(e={message:e});const r=e.position||"top-right";let g=e.offset||0;notifications[r].forEach(({vm:ue})=>{var pe;g+=(((pe=ue.el)==null?void 0:pe.offsetHeight)||0)+GAP_SIZE}),g+=GAP_SIZE;const{nextZIndex:$}=useZIndex(),L=`notification_${seed++}`,k=e.onClose,oe={...e,zIndex:$(),offset:g,id:L,onClose:()=>{close(L,r,k)}};let re=document.body;isElement$1(e.appendTo)?re=e.appendTo:isString$2(e.appendTo)&&(re=document.querySelector(e.appendTo)),isElement$1(re)||(re=document.body);const ae=document.createElement("div"),le=createVNode(NotificationConstructor,oe,isVNode(oe.message)?{default:()=>oe.message}:null);return le.appContext=n??notify._context,le.props.onDestroy=()=>{render(null,ae)},render(le,ae),notifications[r].push({vm:le}),re.appendChild(ae.firstElementChild),{close:()=>{le.component.proxy.visible=!1}}};notificationTypes.forEach(e=>{notify[e]=(n={})=>((typeof n=="string"||isVNode(n))&&(n={message:n}),notify({...n,type:e}))});function close(e,n,r){const g=notifications[n],$=g.findIndex(({vm:ae})=>{var le;return((le=ae.component)==null?void 0:le.props.id)===e});if($===-1)return;const{vm:L}=g[$];if(!L)return;r?.(L);const k=L.el.offsetHeight,oe=n.split("-")[0];g.splice($,1);const re=g.length;if(!(re<1))for(let ae=$;ae{n.component.proxy.visible=!1})}notify.closeAll=closeAll;notify._context=null;const ElNotification=withInstallFunction(notify,"$notify");var Plugins=[ElInfiniteScroll,ElLoading,ElMessage,ElMessageBox,ElNotification,ElPopoverDirective],installer=makeInstaller([...Components,...Plugins]);const index$1="";var zhCn={name:"zh-cn",el:{colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!"},upload:{deleteTip:"\u6309 delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"}}},OBJECT$1="object";function isObject$1(e){return e&&typeof e===OBJECT$1}function now(){return Date.now?Date.now():new Date().getTime()}function findIndex$1(e,n,r){r===void 0&&(r=-1);for(var g=e.length,$=0;$-1&&L.splice(k,1)}}return this},n.once=function(r,g){var $=this;return g&&this._addEvent(r,g,{once:!0}),new Promise(function(L){$._addEvent(r,L,{once:!0})})},n.emit=function(r,g){var $=this;g===void 0&&(g={});var L=this._events[r];if(!r||!L)return!0;var k=!1;return g.eventType=r,g.stop=function(){k=!0},g.currentTarget=this,__spreadArrays$1(L).forEach(function(oe){oe.listener(g),oe.once&&$.off(r,oe.listener)}),!k},n.trigger=function(r,g){return g===void 0&&(g={}),this.emit(r,g)},n._addEvent=function(r,g,$){var L=this._events;L[r]=L[r]||[];var k=L[r];k.push(__assign$2({listener:g},$))},e}();const EventEmitter$2=EventEmitter$1;/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var extendStatics$1=function(e,n){return extendStatics$1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,g){r.__proto__=g}||function(r,g){for(var $ in g)g.hasOwnProperty($)&&(r[$]=g[$])},extendStatics$1(e,n)};function __extends$1(e,n){extendStatics$1(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var __assign$1=function(){return __assign$1=Object.assign||function(n){for(var r,g=1,$=arguments.length;g<$;g++){r=arguments[g];for(var L in r)Object.prototype.hasOwnProperty.call(r,L)&&(n[L]=r[L])}return n},__assign$1.apply(this,arguments)};function getRad(e,n){var r=n[0]-e[0],g=n[1]-e[1],$=Math.atan2(g,r);return $>=0?$:$+Math.PI*2}function getRotatiion(e){return getRad([e[0].clientX,e[0].clientY],[e[1].clientX,e[1].clientY])/Math.PI*180}function isMultiTouch(e){return e.touches&&e.touches.length>=2}function getEventClients(e){return e?e.touches?getClients(e.touches):[getClient(e)]:[]}function isMouseEvent(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e||"which"in e)}function getPosition(e,n,r){var g=r.length,$=getAverageClient(e,g),L=$.clientX,k=$.clientY,oe=$.originalClientX,re=$.originalClientY,ae=getAverageClient(n,g),le=ae.clientX,ue=ae.clientY,pe=getAverageClient(r,g),de=pe.clientX,Fe=pe.clientY,ze=L-le,Ce=k-ue,Ie=L-de,_e=k-Fe;return{clientX:oe,clientY:re,deltaX:ze,deltaY:Ce,distX:Ie,distY:_e}}function getDist(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function getClients(e){for(var n=Math.min(e.length,2),r=[],g=0;g-1,Pt=Ue.isContentEditable;if(Et||Pt){if(qe||Ne===Ue||Ne&&Pt&&Ne.isContentEditable&&Ne.contains(Ue))return!1}else if((At||pe.type==="touchstart")&&Ne){var Lt=Ne.tagName;(Ne.isContentEditable||INPUT_TAGNAMES.indexOf(Lt)>-1)&&Ne.blur()}(xe||Ve||he)&&addEvent$1(window,"click",L._onClick,!0),L.clientStores=[new ClientStore(getEventClients(pe))],L.flag=!0,L.isDrag=!1,L._dragFlag=!0,L.datas={},L.doubleFlag=now()-L.prevTime<200,L._isMouseEvent=isMouseEvent(pe);var vn=L.emit("dragStart",__assign$1(__assign$1({datas:L.datas,inputEvent:pe,isMouseEvent:L._isMouseEvent,isSecondaryButton:L._isSecondaryButton,isTrusted:de,isDouble:L.doubleFlag},L.getCurrentStore().getPosition()),{preventDefault:function(){pe.preventDefault()},preventDrag:function(){L._dragFlag=!1}}));vn===!1&&L.initDrag(),L.flag&&At&&pe.preventDefault()}if(!L.flag)return!1;var hn=0;if($e&&Oe&&Ce&&(hn=setTimeout(function(){addEvent$1(ze,"touchstart",L.onDragStart,{passive:!1})})),!$e&&Oe&&Ce&&removeEvent$1(ze,"touchstart",L.onDragStart),L.flag&&isMultiTouch(pe)){if(clearTimeout(hn),$e&&pe.touches.length!==pe.changedTouches.length)return;L.pinchFlag||L.onPinchStart(pe)}}},L.onDrag=function(pe,de){if(!!L.flag){var Fe=getEventClients(pe),ze=L.moveClients(Fe,pe,!1);if(L._dragFlag){if(L.pinchFlag||ze.deltaX||ze.deltaY){var Ce=L.emit("drag",__assign$1(__assign$1({},ze),{isScroll:!!de,inputEvent:pe}));if(Ce===!1){L.stop();return}}L.pinchFlag&&L.onPinch(pe,Fe)}L.getCurrentStore().getPosition(Fe,!0)}},L.onDragEnd=function(pe){if(!!L.flag){var de=L.options,Fe=de.pinchOutside,ze=de.container,Ce=de.preventClickEventOnDrag,Ie=de.preventClickEventOnDragStart,_e=de.preventClickEventByCondition,At=L.isDrag;(Ce||Ie||_e)&&requestAnimationFrame(function(){L._allowClickEvent()}),!_e&&!Ie&&Ce&&!At&&L._allowClickEvent(),L.isTouch&&Fe&&removeEvent$1(ze,"touchstart",L.onDragStart),L.pinchFlag&&L.onPinchEnd(pe);var qe=pe?.touches?getEventClients(pe):[],xe=qe.length;xe===0||!L.options.keepDragging?L.flag=!1:L._addStore(new ClientStore(qe));var Ve=L._getPosition(),he=now(),Oe=!At&&L.doubleFlag;L.prevTime=At||Oe?0:he,L.flag||(L.emit("dragEnd",__assign$1({datas:L.datas,isDouble:Oe,isDrag:At,isClick:!At,isMouseEvent:L._isMouseEvent,isSecondaryButton:L._isSecondaryButton,inputEvent:pe},Ve)),L.clientStores=[])}},L.onBlur=function(){L.onDragEnd()},L._allowClickEvent=function(){removeEvent$1(window,"click",L._onClick,!0)},L._onClick=function(pe){var de=L.options.preventClickEventByCondition;de?.(pe)||(pe.stopPropagation(),pe.preventDefault())},L._onContextMenu=function(pe){var de=L.options;de.preventRightClick?L.onDragEnd(pe):pe.preventDefault()};var k=[].concat(g);L.options=__assign$1({checkInput:!1,container:k.length>1?window:k[0],preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},$);var oe=L.options,re=oe.container,ae=oe.events,le=oe.checkWindowBlur;if(L.isTouch=ae.indexOf("touch")>-1,L.isMouse=ae.indexOf("mouse")>-1,L.targets=k,L.isMouse&&(k.forEach(function(pe){addEvent$1(pe,"mousedown",L.onDragStart)}),addEvent$1(re,"mousemove",L.onDrag),addEvent$1(re,"mouseup",L.onDragEnd),addEvent$1(re,"contextmenu",L._onContextMenu)),le&&addEvent$1(window,"blur",L.onBlur),L.isTouch){var ue={passive:!1};k.forEach(function(pe){addEvent$1(pe,"touchstart",L.onDragStart,ue)}),addEvent$1(re,"touchmove",L.onDrag,ue),addEvent$1(re,"touchend",L.onDragEnd,ue),addEvent$1(re,"touchcancel",L.onDragEnd,ue)}return L}var r=n.prototype;return r.stop=function(){this.isDrag=!1,this.flag=!1,this.clientStores=[],this.datas={}},r.getMovement=function(g){return this.getCurrentStore().getMovement(g)+this.clientStores.slice(1).reduce(function($,L){return $+L.movement},0)},r.isDragging=function(){return this.isDrag},r.isFlag=function(){return this.flag},r.isPinchFlag=function(){return this.pinchFlag},r.isDoubleFlag=function(){return this.doubleFlag},r.isPinching=function(){return this.isPinch},r.scrollBy=function(g,$,L,k){k===void 0&&(k=!0),this.flag&&(this.clientStores[0].move(g,$),k&&this.onDrag(L,!0))},r.move=function(g,$){var L=g[0],k=g[1],oe=this.getCurrentStore(),re=oe.prevClients;return this.moveClients(re.map(function(ae){var le=ae.clientX,ue=ae.clientY;return{clientX:le+L,clientY:ue+k,originalClientX:le,originalClientY:ue}}),$,!0)},r.triggerDragStart=function(g){this.onDragStart(g,!1)},r.setEventDatas=function(g){var $=this.datas;for(var L in g)$[L]=g[L];return this},r.getCurrentEvent=function(g){return __assign$1(__assign$1({datas:this.datas},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:g})},r.getEventDatas=function(){return this.datas},r.unset=function(){var g=this,$=this.targets,L=this.options.container;this.off(),removeEvent$1(window,"blur",this.onBlur),this.isMouse&&($.forEach(function(k){removeEvent$1(k,"mousedown",g.onDragStart)}),removeEvent$1(L,"mousemove",this.onDrag),removeEvent$1(L,"mouseup",this.onDragEnd),removeEvent$1(L,"contextmenu",this._onContextMenu)),this.isTouch&&($.forEach(function(k){removeEvent$1(k,"touchstart",g.onDragStart)}),removeEvent$1(L,"touchstart",this.onDragStart),removeEvent$1(L,"touchmove",this.onDrag),removeEvent$1(L,"touchend",this.onDragEnd),removeEvent$1(L,"touchcancel",this.onDragEnd))},r.onPinchStart=function(g){var $=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>$)){var L=new ClientStore(getEventClients(g));this.pinchFlag=!0,this._addStore(L);var k=this.emit("pinchStart",__assign$1(__assign$1({datas:this.datas,angle:L.getAngle(),touches:this.getCurrentStore().getPositions()},L.getPosition()),{inputEvent:g}));k===!1&&(this.pinchFlag=!1)}},r.onPinch=function(g,$){if(!(!this.flag||!this.pinchFlag||$.length<2)){var L=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",__assign$1(__assign$1({datas:this.datas,movement:this.getMovement($),angle:L.getAngle($),rotation:L.getRotation($),touches:L.getPositions($),scale:L.getScale($),distance:L.getDistance($)},L.getPosition($)),{inputEvent:g}))}},r.onPinchEnd=function(g){if(!!this.pinchFlag){var $=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var L=this.getCurrentStore();this.emit("pinchEnd",__assign$1(__assign$1({datas:this.datas,isPinch:$,touches:L.getPositions()},L.getPosition()),{inputEvent:g}))}},r.initDrag=function(){this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._allowClickEvent()},r.getCurrentStore=function(){return this.clientStores[0]},r.moveClients=function(g,$,L){var k=this._getPosition(g,L);return(k.deltaX||k.deltaY)&&(this.isDrag=!0),__assign$1(__assign$1({datas:this.datas},k),{movement:this.getMovement(g),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:$})},r._addStore=function(g){this.clientStores.splice(0,0,g)},r._getPosition=function(g,$){var L=this.getCurrentStore(),k=L.getPosition(g,$),oe=this.clientStores.slice(1).reduce(function(le,ue){var pe=ue.getPosition();return le.distX+=pe.distX,le.distY+=pe.distY,le},k),re=oe.distX,ae=oe.distY;return __assign$1(__assign$1({},k),{distX:re,distY:ae})},n}(EventEmitter$2);const Gesto$1=Gesto,DefaultBufferLength=1024;let nextPropID=0;class Range$1{constructor(n,r){this.from=n,this.to=r}}class NodeProp{constructor(n={}){this.id=nextPropID++,this.perNode=!!n.perNode,this.deserialize=n.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(n){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof n!="function"&&(n=NodeType.match(n)),r=>{let g=n(r);return g===void 0?null:[this,g]}}}NodeProp.closedBy=new NodeProp({deserialize:e=>e.split(" ")});NodeProp.openedBy=new NodeProp({deserialize:e=>e.split(" ")});NodeProp.group=new NodeProp({deserialize:e=>e.split(" ")});NodeProp.contextHash=new NodeProp({perNode:!0});NodeProp.lookAhead=new NodeProp({perNode:!0});NodeProp.mounted=new NodeProp({perNode:!0});const noProps=Object.create(null);class NodeType{constructor(n,r,g,$=0){this.name=n,this.props=r,this.id=g,this.flags=$}static define(n){let r=n.props&&n.props.length?Object.create(null):noProps,g=(n.top?1:0)|(n.skipped?2:0)|(n.error?4:0)|(n.name==null?8:0),$=new NodeType(n.name||"",r,n.id,g);if(n.props){for(let L of n.props)if(Array.isArray(L)||(L=L($)),L){if(L[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");r[L[0].id]=L[1]}}return $}prop(n){return this.props[n.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(n){if(typeof n=="string"){if(this.name==n)return!0;let r=this.prop(NodeProp.group);return r?r.indexOf(n)>-1:!1}return this.id==n}static match(n){let r=Object.create(null);for(let g in n)for(let $ of g.split(" "))r[$]=n[g];return g=>{for(let $=g.prop(NodeProp.group),L=-1;L<($?$.length:0);L++){let k=r[L<0?g.name:$[L]];if(k)return k}}}}NodeType.none=new NodeType("",Object.create(null),0,8);class NodeSet{constructor(n){this.types=n;for(let r=0;r=$&&(k.type.isAnonymous||r(k)!==!1)){if(k.firstChild())continue;oe=!0}for(;oe&&g&&!k.type.isAnonymous&&g(k),!k.nextSibling();){if(!k.parent())return;oe=!0}}}prop(n){return n.perNode?this.props?this.props[n.id]:void 0:this.type.prop(n)}get propValues(){let n=[];if(this.props)for(let r in this.props)n.push([+r,this.props[r]]);return n}balance(n={}){return this.children.length<=8?this:balanceRange(NodeType.none,this.children,this.positions,0,this.children.length,0,this.length,(r,g,$)=>new Tree(this.type,r,g,$,this.propValues),n.makeTree||((r,g,$)=>new Tree(NodeType.none,r,g,$)))}static build(n){return buildTree(n)}}Tree.empty=new Tree(NodeType.none,[],[],0);class FlatBufferCursor{constructor(n,r){this.buffer=n,this.index=r}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new FlatBufferCursor(this.buffer,this.index)}}class TreeBuffer{constructor(n,r,g){this.buffer=n,this.length=r,this.set=g}get type(){return NodeType.none}toString(){let n=[];for(let r=0;r0));re=k[re+3]);return oe}slice(n,r,g,$){let L=this.buffer,k=new Uint16Array(r-n);for(let oe=n,re=0;oe=n&&rn;case 1:return r<=n&&g>n;case 2:return g>n;case 4:return!0}}function enterUnfinishedNodesBefore(e,n){let r=e.childBefore(n);for(;r;){let g=r.lastChild;if(!g||g.to!=r.to)break;g.type.isError&&g.from==g.to?(e=r,r=g.prevSibling):r=g}return e}function resolveNode(e,n,r,g){for(var $;e.from==e.to||(r<1?e.from>=n:e.from>n)||(r>-1?e.to<=n:e.to0?oe.length:-1;n!=ae;n+=r){let le=oe[n],ue=re[n]+k.from;if(!!checkSide($,g,ue,ue+le.length)){if(le instanceof TreeBuffer){if(L&IterMode.ExcludeBuffers)continue;let pe=le.findChild(0,le.buffer.length,r,g-ue,$);if(pe>-1)return new BufferNode(new BufferContext(k,le,n,ue),null,pe)}else if(L&IterMode.IncludeAnonymous||!le.type.isAnonymous||hasChild(le)){let pe;if(!(L&IterMode.IgnoreMounts)&&le.props&&(pe=le.prop(NodeProp.mounted))&&!pe.overlay)return new TreeNode(pe.tree,ue,n,k);let de=new TreeNode(le,ue,n,k);return L&IterMode.IncludeAnonymous||!de.type.isAnonymous?de:de.nextChild(r<0?le.children.length-1:0,r,g,$)}}}if(L&IterMode.IncludeAnonymous||!k.type.isAnonymous||(k.index>=0?n=k.index+r:n=r<0?-1:k._parent._tree.children.length,k=k._parent,!k))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(n){return this.nextChild(0,1,n,2)}childBefore(n){return this.nextChild(this._tree.children.length-1,-1,n,-2)}enter(n,r,g=0){let $;if(!(g&IterMode.IgnoreOverlays)&&($=this._tree.prop(NodeProp.mounted))&&$.overlay){let L=n-this.from;for(let{from:k,to:oe}of $.overlay)if((r>0?k<=L:k=L:oe>L))return new TreeNode($.tree,$.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,n,r,g)}nextSignificantParent(){let n=this;for(;n.type.isAnonymous&&n._parent;)n=n._parent;return n}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(n=0){return new TreeCursor(this,n)}get tree(){return this._tree}toTree(){return this._tree}resolve(n,r=0){return resolveNode(this,n,r,!1)}resolveInner(n,r=0){return resolveNode(this,n,r,!0)}enterUnfinishedNodesBefore(n){return enterUnfinishedNodesBefore(this,n)}getChild(n,r=null,g=null){let $=getChildren(this,n,r,g);return $.length?$[0]:null}getChildren(n,r=null,g=null){return getChildren(this,n,r,g)}toString(){return this._tree.toString()}get node(){return this}matchContext(n){return matchNodeContext(this,n)}}function getChildren(e,n,r,g){let $=e.cursor(),L=[];if(!$.firstChild())return L;if(r!=null){for(;!$.type.is(r);)if(!$.nextSibling())return L}for(;;){if(g!=null&&$.type.is(g))return L;if($.type.is(n)&&L.push($.node),!$.nextSibling())return g==null?L:[]}}function matchNodeContext(e,n,r=n.length-1){for(let g=e.parent;r>=0;g=g.parent){if(!g)return!1;if(!g.type.isAnonymous){if(n[r]&&n[r]!=g.name)return!1;r--}}return!0}class BufferContext{constructor(n,r,g,$){this.parent=n,this.buffer=r,this.index=g,this.start=$}}class BufferNode{constructor(n,r,g){this.context=n,this._parent=r,this.index=g,this.type=n.buffer.set.types[n.buffer.buffer[g]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(n,r,g){let{buffer:$}=this.context,L=$.findChild(this.index+4,$.buffer[this.index+3],n,r-this.context.start,g);return L<0?null:new BufferNode(this.context,this,L)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(n){return this.child(1,n,2)}childBefore(n){return this.child(-1,n,-2)}enter(n,r,g=0){if(g&IterMode.ExcludeBuffers)return null;let{buffer:$}=this.context,L=$.findChild(this.index+4,$.buffer[this.index+3],r>0?1:-1,n-this.context.start,r);return L<0?null:new BufferNode(this.context,this,L)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(n){return this._parent?null:this.context.parent.nextChild(this.context.index+n,n,0,4)}get nextSibling(){let{buffer:n}=this.context,r=n.buffer[this.index+3];return r<(this._parent?n.buffer[this._parent.index+3]:n.buffer.length)?new BufferNode(this.context,this._parent,r):this.externalSibling(1)}get prevSibling(){let{buffer:n}=this.context,r=this._parent?this._parent.index+4:0;return this.index==r?this.externalSibling(-1):new BufferNode(this.context,this._parent,n.findChild(r,this.index,-1,0,4))}cursor(n=0){return new TreeCursor(this,n)}get tree(){return null}toTree(){let n=[],r=[],{buffer:g}=this.context,$=this.index+4,L=g.buffer[this.index+3];if(L>$){let k=g.buffer[this.index+1],oe=g.buffer[this.index+2];n.push(g.slice($,L,k,oe)),r.push(0)}return new Tree(this.type,n,r,this.to-this.from)}resolve(n,r=0){return resolveNode(this,n,r,!1)}resolveInner(n,r=0){return resolveNode(this,n,r,!0)}enterUnfinishedNodesBefore(n){return enterUnfinishedNodesBefore(this,n)}toString(){return this.context.buffer.childString(this.index)}getChild(n,r=null,g=null){let $=getChildren(this,n,r,g);return $.length?$[0]:null}getChildren(n,r=null,g=null){return getChildren(this,n,r,g)}get node(){return this}matchContext(n){return matchNodeContext(this,n)}}class TreeCursor{constructor(n,r=0){if(this.mode=r,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,n instanceof TreeNode)this.yieldNode(n);else{this._tree=n.context.parent,this.buffer=n.context;for(let g=n._parent;g;g=g._parent)this.stack.unshift(g.index);this.bufferNode=n,this.yieldBuf(n.index)}}get name(){return this.type.name}yieldNode(n){return n?(this._tree=n,this.type=n.type,this.from=n.from,this.to=n.to,!0):!1}yieldBuf(n,r){this.index=n;let{start:g,buffer:$}=this.buffer;return this.type=r||$.set.types[$.buffer[n]],this.from=g+$.buffer[n+1],this.to=g+$.buffer[n+2],!0}yield(n){return n?n instanceof TreeNode?(this.buffer=null,this.yieldNode(n)):(this.buffer=n.context,this.yieldBuf(n.index,n.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(n,r,g){if(!this.buffer)return this.yield(this._tree.nextChild(n<0?this._tree._tree.children.length-1:0,n,r,g,this.mode));let{buffer:$}=this.buffer,L=$.findChild(this.index+4,$.buffer[this.index+3],n,r-this.buffer.start,g);return L<0?!1:(this.stack.push(this.index),this.yieldBuf(L))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(n){return this.enterChild(1,n,2)}childBefore(n){return this.enterChild(-1,n,-2)}enter(n,r,g=this.mode){return this.buffer?g&IterMode.ExcludeBuffers?!1:this.enterChild(1,n,r):this.yield(this._tree.enter(n,r,g))}parent(){if(!this.buffer)return this.yieldNode(this.mode&IterMode.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let n=this.mode&IterMode.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(n)}sibling(n){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+n,n,0,4,this.mode)):!1;let{buffer:r}=this.buffer,g=this.stack.length-1;if(n<0){let $=g<0?0:this.stack[g]+4;if(this.index!=$)return this.yieldBuf(r.findChild($,this.index,-1,0,4))}else{let $=r.buffer[this.index+3];if($<(g<0?r.buffer.length:r.buffer[this.stack[g]+3]))return this.yieldBuf($)}return g<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+n,n,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(n){let r,g,{buffer:$}=this;if($){if(n>0){if(this.index<$.buffer.buffer.length)return!1}else for(let L=0;L-1)for(let L=r+n,k=n<0?-1:g._tree.children.length;L!=k;L+=n){let oe=g._tree.children[L];if(this.mode&IterMode.IncludeAnonymous||oe instanceof TreeBuffer||!oe.type.isAnonymous||hasChild(oe))return!1}return!0}move(n,r){if(r&&this.enterChild(n,0,4))return!0;for(;;){if(this.sibling(n))return!0;if(this.atLastNode(n)||!this.parent())return!1}}next(n=!0){return this.move(1,n)}prev(n=!0){return this.move(-1,n)}moveTo(n,r=0){for(;(this.from==this.to||(r<1?this.from>=n:this.from>n)||(r>-1?this.to<=n:this.to=0;){for(let k=n;k;k=k._parent)if(k.index==$){if($==this.index)return k;r=k,g=L+1;break e}$=this.stack[--L]}}for(let $=g;$=0;L--){if(L<0)return matchNodeContext(this.node,n,$);let k=g[r.buffer[this.stack[L]]];if(!k.isAnonymous){if(n[$]&&n[$]!=k.name)return!1;$--}}return!0}}function hasChild(e){return e.children.some(n=>n instanceof TreeBuffer||!n.type.isAnonymous||hasChild(n))}function buildTree(e){var n;let{buffer:r,nodeSet:g,maxBufferLength:$=DefaultBufferLength,reused:L=[],minRepeatType:k=g.types.length}=e,oe=Array.isArray(r)?new FlatBufferCursor(r,r.length):r,re=g.types,ae=0,le=0;function ue(qe,xe,Ve,he,Oe){let{id:$e,start:Ne,end:Ue,size:kt}=oe,Et=le;for(;kt<0;)if(oe.next(),kt==-1){let Dt=L[$e];Ve.push(Dt),he.push(Ne-qe);return}else if(kt==-3){ae=$e;return}else if(kt==-4){le=$e;return}else throw new RangeError(`Unrecognized record size: ${kt}`);let Pt=re[$e],Lt,vn,hn=Ne-qe;if(Ue-Ne<=$&&(vn=ze(oe.pos-xe,Oe))){let Dt=new Uint16Array(vn.size-vn.skip),jt=oe.pos-vn.size,bn=Dt.length;for(;oe.pos>jt;)bn=Ce(vn.start,Dt,bn);Lt=new TreeBuffer(Dt,Ue-vn.start,g),hn=vn.start-qe}else{let Dt=oe.pos-kt;oe.next();let jt=[],bn=[],Sn=$e>=k?$e:-1,Cn=0,On=Ue;for(;oe.pos>Dt;)Sn>=0&&oe.id==Sn&&oe.size>=0?(oe.end<=On-$&&(de(jt,bn,Ne,Cn,oe.end,On,Sn,Et),Cn=jt.length,On=oe.end),oe.next()):ue(Ne,Dt,jt,bn,Sn);if(Sn>=0&&Cn>0&&Cn-1&&Cn>0){let En=pe(Pt);Lt=balanceRange(Pt,jt,bn,0,jt.length,0,Ue-Ne,En,En)}else Lt=Fe(Pt,jt,bn,Ue-Ne,Et-Ue)}Ve.push(Lt),he.push(hn)}function pe(qe){return(xe,Ve,he)=>{let Oe=0,$e=xe.length-1,Ne,Ue;if($e>=0&&(Ne=xe[$e])instanceof Tree){if(!$e&&Ne.type==qe&&Ne.length==he)return Ne;(Ue=Ne.prop(NodeProp.lookAhead))&&(Oe=Ve[$e]+Ne.length+Ue)}return Fe(qe,xe,Ve,he,Oe)}}function de(qe,xe,Ve,he,Oe,$e,Ne,Ue){let kt=[],Et=[];for(;qe.length>he;)kt.push(qe.pop()),Et.push(xe.pop()+Ve-Oe);qe.push(Fe(g.types[Ne],kt,Et,$e-Oe,Ue-$e)),xe.push(Oe-Ve)}function Fe(qe,xe,Ve,he,Oe=0,$e){if(ae){let Ne=[NodeProp.contextHash,ae];$e=$e?[Ne].concat($e):[Ne]}if(Oe>25){let Ne=[NodeProp.lookAhead,Oe];$e=$e?[Ne].concat($e):[Ne]}return new Tree(qe,xe,Ve,he,$e)}function ze(qe,xe){let Ve=oe.fork(),he=0,Oe=0,$e=0,Ne=Ve.end-$,Ue={size:0,start:0,skip:0};e:for(let kt=Ve.pos-qe;Ve.pos>kt;){let Et=Ve.size;if(Ve.id==xe&&Et>=0){Ue.size=he,Ue.start=Oe,Ue.skip=$e,$e+=4,he+=4,Ve.next();continue}let Pt=Ve.pos-Et;if(Et<0||Pt=k?4:0,vn=Ve.start;for(Ve.next();Ve.pos>Pt;){if(Ve.size<0)if(Ve.size==-3)Lt+=4;else break e;else Ve.id>=k&&(Lt+=4);Ve.next()}Oe=vn,he+=Et,$e+=Lt}return(xe<0||he==qe)&&(Ue.size=he,Ue.start=Oe,Ue.skip=$e),Ue.size>4?Ue:void 0}function Ce(qe,xe,Ve){let{id:he,start:Oe,end:$e,size:Ne}=oe;if(oe.next(),Ne>=0&&he4){let kt=oe.pos-(Ne-4);for(;oe.pos>kt;)Ve=Ce(qe,xe,Ve)}xe[--Ve]=Ue,xe[--Ve]=$e-qe,xe[--Ve]=Oe-qe,xe[--Ve]=he}else Ne==-3?ae=he:Ne==-4&&(le=he);return Ve}let Ie=[],_e=[];for(;oe.pos>0;)ue(e.start||0,e.bufferStart||0,Ie,_e,-1);let At=(n=e.length)!==null&&n!==void 0?n:Ie.length?_e[0]+Ie[0].length:0;return new Tree(re[e.topID],Ie.reverse(),_e.reverse(),At)}const nodeSizeCache=new WeakMap;function nodeSize(e,n){if(!e.isAnonymous||n instanceof TreeBuffer||n.type!=e)return 1;let r=nodeSizeCache.get(n);if(r==null){r=1;for(let g of n.children){if(g.type!=e||!(g instanceof Tree)){r=1;break}r+=nodeSize(e,g)}nodeSizeCache.set(n,r)}return r}function balanceRange(e,n,r,g,$,L,k,oe,re){let ae=0;for(let Fe=g;Fe<$;Fe++)ae+=nodeSize(e,n[Fe]);let le=Math.ceil(ae*1.5/8),ue=[],pe=[];function de(Fe,ze,Ce,Ie,_e){for(let At=Ce;At=le)break;Ve+=he}if(At==qe+1){if(Ve>le){let he=Fe[qe];de(he.children,he.positions,0,he.children.length,ze[qe]+_e);continue}ue.push(Fe[qe])}else{let he=ze[At-1]+Fe[At-1].length-xe;ue.push(balanceRange(e,Fe,ze,qe,At,xe,he,null,re))}pe.push(xe+_e-L)}}return de(n,r,g,$,0),(oe||re)(ue,pe,k)}class NodeWeakMap{constructor(){this.map=new WeakMap}setBuffer(n,r,g){let $=this.map.get(n);$||this.map.set(n,$=new Map),$.set(r,g)}getBuffer(n,r){let g=this.map.get(n);return g&&g.get(r)}set(n,r){n instanceof BufferNode?this.setBuffer(n.context.buffer,n.index,r):n instanceof TreeNode&&this.map.set(n.tree,r)}get(n){return n instanceof BufferNode?this.getBuffer(n.context.buffer,n.index):n instanceof TreeNode?this.map.get(n.tree):void 0}cursorSet(n,r){n.buffer?this.setBuffer(n.buffer.buffer,n.index,r):this.map.set(n.tree,r)}cursorGet(n){return n.buffer?this.getBuffer(n.buffer.buffer,n.index):this.map.get(n.tree)}}class TreeFragment{constructor(n,r,g,$,L=!1,k=!1){this.from=n,this.to=r,this.tree=g,this.offset=$,this.open=(L?1:0)|(k?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(n,r=[],g=!1){let $=[new TreeFragment(0,n.length,n,0,!1,g)];for(let L of r)L.to>n.length&&$.push(L);return $}static applyChanges(n,r,g=128){if(!r.length)return n;let $=[],L=1,k=n.length?n[0]:null;for(let oe=0,re=0,ae=0;;oe++){let le=oe=g)for(;k&&k.from=pe.from||ue<=pe.to||ae){let de=Math.max(pe.from,re)-ae,Fe=Math.min(pe.to,ue)-ae;pe=de>=Fe?null:new TreeFragment(de,Fe,pe.tree,pe.offset+ae,oe>0,!!le)}if(pe&&$.push(pe),k.to>ue)break;k=Lnew Range$1($.from,$.to)):[new Range$1(0,0)]:[new Range$1(0,n.length)],this.createParse(n,r||[],g)}parse(n,r,g){let $=this.startParse(n,r,g);for(;;){let L=$.advance();if(L)return L}}}class StringInput{constructor(n){this.string=n}get length(){return this.string.length}chunk(n){return this.string.slice(n)}get lineChunks(){return!1}read(n,r){return this.string.slice(n,r)}}new NodeProp({perNode:!0});class Stack{constructor(n,r,g,$,L,k,oe,re,ae,le=0,ue){this.p=n,this.stack=r,this.state=g,this.reducePos=$,this.pos=L,this.score=k,this.buffer=oe,this.bufferBase=re,this.curContext=ae,this.lookAhead=le,this.parent=ue}toString(){return`[${this.stack.filter((n,r)=>r%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(n,r,g=0){let $=n.parser.context;return new Stack(n,[],r,g,g,0,[],0,$?new StackContext($,$.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(n,r){this.stack.push(this.state,r,this.bufferBase+this.buffer.length),this.state=n}reduce(n){let r=n>>19,g=n&65535,{parser:$}=this.p,L=$.dynamicPrecedence(g);if(L&&(this.score+=L),r==0){this.pushState($.getGoto(this.state,g,!0),this.reducePos),g<$.minRepeatTerm&&this.storeNode(g,this.reducePos,this.reducePos,4,!0),this.reduceContext(g,this.reducePos);return}let k=this.stack.length-(r-1)*3-(n&262144?6:0),oe=this.stack[k-2],re=this.stack[k-1],ae=this.bufferBase+this.buffer.length-re;if(g<$.minRepeatTerm||n&131072){let le=$.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(g,oe,le,ae+4,!0)}if(n&262144)this.state=this.stack[k];else{let le=this.stack[k-3];this.state=$.getGoto(le,g,!0)}for(;this.stack.length>k;)this.stack.pop();this.reduceContext(g,oe)}storeNode(n,r,g,$=4,L=!1){if(n==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&k.buffer[oe-4]==0&&k.buffer[oe-1]>-1){if(r==g)return;if(k.buffer[oe-2]>=r){k.buffer[oe-2]=g;return}}}if(!L||this.pos==g)this.buffer.push(n,r,g,$);else{let k=this.buffer.length;if(k>0&&this.buffer[k-4]!=0)for(;k>0&&this.buffer[k-2]>g;)this.buffer[k]=this.buffer[k-4],this.buffer[k+1]=this.buffer[k-3],this.buffer[k+2]=this.buffer[k-2],this.buffer[k+3]=this.buffer[k-1],k-=4,$>4&&($-=4);this.buffer[k]=n,this.buffer[k+1]=r,this.buffer[k+2]=g,this.buffer[k+3]=$}}shift(n,r,g){let $=this.pos;if(n&131072)this.pushState(n&65535,this.pos);else if((n&262144)==0){let L=n,{parser:k}=this.p;(g>this.pos||r<=k.maxNode)&&(this.pos=g,k.stateFlag(L,1)||(this.reducePos=g)),this.pushState(L,$),this.shiftContext(r,$),r<=k.maxNode&&this.buffer.push(r,$,g,4)}else this.pos=g,this.shiftContext(r,$),r<=this.p.parser.maxNode&&this.buffer.push(r,$,g,4)}apply(n,r,g){n&65536?this.reduce(n):this.shift(n,r,g)}useNode(n,r){let g=this.p.reused.length-1;(g<0||this.p.reused[g]!=n)&&(this.p.reused.push(n),g++);let $=this.pos;this.reducePos=this.pos=$+n.length,this.pushState(r,$),this.buffer.push(g,$,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}split(){let n=this,r=n.buffer.length;for(;r>0&&n.buffer[r-2]>n.reducePos;)r-=4;let g=n.buffer.slice(r),$=n.bufferBase+r;for(;n&&$==n.bufferBase;)n=n.parent;return new Stack(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,g,$,this.curContext,this.lookAhead,n)}recoverByDelete(n,r){let g=n<=this.p.parser.maxNode;g&&this.storeNode(n,this.pos,r,4),this.storeNode(0,this.pos,r,g?8:4),this.pos=this.reducePos=r,this.score-=190}canShift(n){for(let r=new SimulatedStack(this);;){let g=this.p.parser.stateSlot(r.state,4)||this.p.parser.hasAction(r.state,n);if((g&65536)==0)return!0;if(g==0)return!1;r.reduce(g)}}recoverByInsert(n){if(this.stack.length>=300)return[];let r=this.p.parser.nextStates(this.state);if(r.length>4<<1||this.stack.length>=120){let $=[];for(let L=0,k;Lre&1&&oe==k)||$.push(r[L],k)}r=$}let g=[];for(let $=0;$>19,$=n&65535,L=this.stack.length-g*3;if(L<0||r.getGoto(this.stack[L],$,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:n}=this.p;return n.data[n.stateSlot(this.state,1)]==65535&&!n.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(let r=0;rthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=n)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class StackContext{constructor(n,r){this.tracker=n,this.context=r,this.hash=n.strict?n.hash(r):0}}var Recover;(function(e){e[e.Insert=200]="Insert",e[e.Delete=190]="Delete",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth"})(Recover||(Recover={}));class SimulatedStack{constructor(n){this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}reduce(n){let r=n&65535,g=n>>19;g==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(g-1)*3;let $=this.start.p.parser.getGoto(this.stack[this.base-3],r,!0);this.state=$}}class StackBufferCursor{constructor(n,r,g){this.stack=n,this.pos=r,this.index=g,this.buffer=n.buffer,this.index==0&&this.maybeNext()}static create(n,r=n.bufferBase+n.buffer.length){return new StackBufferCursor(n,r,r-n.bufferBase)}maybeNext(){let n=this.stack.parent;n!=null&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new StackBufferCursor(this.stack,this.pos,this.index)}}class CachedToken{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const nullToken=new CachedToken;class InputStream{constructor(n,r){this.input=n,this.ranges=r,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=nullToken,this.rangeIndex=0,this.pos=this.chunkPos=r[0].from,this.range=r[0],this.end=r[r.length-1].to,this.readNext()}resolveOffset(n,r){let g=this.range,$=this.rangeIndex,L=this.pos+n;for(;Lg.to:L>=g.to;){if($==this.ranges.length-1)return null;let k=this.ranges[++$];L+=k.from-g.to,g=k}return L}peek(n){let r=this.chunkOff+n,g,$;if(r>=0&&r=this.chunk2Pos&&goe.to&&(this.chunk2=this.chunk2.slice(0,oe.to-g)),$=this.chunk2.charCodeAt(0)}}return g>=this.token.lookAhead&&(this.token.lookAhead=g+1),$}acceptToken(n,r=0){let g=r?this.resolveOffset(r,-1):this.pos;if(g==null||g=this.chunk2Pos&&this.posthis.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(n=1){for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(n,r){if(r?(this.token=r,r.start=n,r.lookAhead=n+1,r.value=r.extended=-1):this.token=nullToken,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n=this.chunkPos&&r<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,r-this.chunkPos);if(n>=this.chunk2Pos&&r<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,r-this.chunk2Pos);if(n>=this.range.from&&r<=this.range.to)return this.input.read(n,r);let g="";for(let $ of this.ranges){if($.from>=r)break;$.to>n&&(g+=this.input.read(Math.max($.from,n),Math.min($.to,r)))}return g}}class TokenGroup{constructor(n,r){this.data=n,this.id=r}token(n,r){readToken(this.data,n,r,this.id)}}TokenGroup.prototype.contextual=TokenGroup.prototype.fallback=TokenGroup.prototype.extend=!1;class ExternalTokenizer{constructor(n,r={}){this.token=n,this.contextual=!!r.contextual,this.fallback=!!r.fallback,this.extend=!!r.extend}}function readToken(e,n,r,g){let $=0,L=1<0){let de=e[pe];if(oe.allows(de)&&(n.token.value==-1||n.token.value==de||k.overrides(de,n.token.value))){n.acceptToken(de);break}}let ae=n.next,le=0,ue=e[$+2];if(n.next<0&&ue>le&&e[re+ue*3-3]==65535){$=e[re+ue*3-1];continue e}for(;le>1,de=re+pe+(pe<<1),Fe=e[de],ze=e[de+1];if(ae=ze)le=pe+1;else{$=e[de+2],n.advance();continue e}}break}}function decodeArray(e,n=Uint16Array){if(typeof e!="string")return e;let r=null;for(let g=0,$=0;g=92&&k--,k>=34&&k--;let re=k-32;if(re>=46&&(re-=46,oe=!0),L+=re,oe)break;L*=46}r?r[$++]=L:r=new n(L)}return r}const verbose=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let stackIDs=null;var Safety;(function(e){e[e.Margin=25]="Margin"})(Safety||(Safety={}));function cutAt(e,n,r){let g=e.cursor(IterMode.IncludeAnonymous);for(g.moveTo(n);;)if(!(r<0?g.childBefore(n):g.childAfter(n)))for(;;){if((r<0?g.ton)&&!g.type.isError)return r<0?Math.max(0,Math.min(g.to-1,n-25)):Math.min(e.length,Math.max(g.from+1,n+25));if(r<0?g.prevSibling():g.nextSibling())break;if(!g.parent())return r<0?0:e.length}}class FragmentCursor{constructor(n,r){this.fragments=n,this.nodeSet=r,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?cutAt(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?cutAt(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(n){if(nn)return this.nextStart=k,null;if(L instanceof Tree){if(k==n){if(k=Math.max(this.safeFrom,n)&&(this.trees.push(L),this.start.push(k),this.index.push(0))}else this.index[r]++,this.nextStart=k+L.length}}}class TokenCache{constructor(n,r){this.stream=r,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(g=>new CachedToken)}getActions(n){let r=0,g=null,{parser:$}=n.p,{tokenizers:L}=$,k=$.stateSlot(n.state,3),oe=n.curContext?n.curContext.hash:0,re=0;for(let ae=0;aeue.end+25&&(re=Math.max(ue.lookAhead,re)),ue.value!=0)){let pe=r;if(ue.extended>-1&&(r=this.addActions(n,ue.extended,ue.end,r)),r=this.addActions(n,ue.value,ue.end,r),!le.extend&&(g=ue,r>pe))break}}for(;this.actions.length>r;)this.actions.pop();return re&&n.setLookAhead(re),!g&&n.pos==this.stream.end&&(g=new CachedToken,g.value=n.p.parser.eofTerm,g.start=g.end=n.pos,r=this.addActions(n,g.value,g.end,r)),this.mainToken=g,this.actions}getMainToken(n){if(this.mainToken)return this.mainToken;let r=new CachedToken,{pos:g,p:$}=n;return r.start=g,r.end=Math.min(g+1,$.stream.end),r.value=g==$.stream.end?$.parser.eofTerm:0,r}updateCachedToken(n,r,g){if(r.token(this.stream.reset(g.pos,n),g),n.value>-1){let{parser:$}=g.p;for(let L=0;L<$.specialized.length;L++)if($.specialized[L]==n.value){let k=$.specializers[L](this.stream.read(n.start,n.end),g);if(k>=0&&g.p.parser.dialect.allows(k>>1)){(k&1)==0?n.value=k>>1:n.extended=k>>1;break}}}else n.value=0,n.end=Math.min(g.p.stream.end,g.pos+1)}putAction(n,r,g,$){for(let L=0;L<$;L+=3)if(this.actions[L]==n)return $;return this.actions[$++]=n,this.actions[$++]=r,this.actions[$++]=g,$}addActions(n,r,g,$){let{state:L}=n,{parser:k}=n.p,{data:oe}=k;for(let re=0;re<2;re++)for(let ae=k.stateSlot(L,re?2:1);;ae+=3){if(oe[ae]==65535)if(oe[ae+1]==1)ae=pair(oe,ae+2);else{$==0&&oe[ae+1]==2&&($=this.putAction(pair(oe,ae+2),r,g,$));break}oe[ae]==r&&($=this.putAction(pair(oe,ae+1),r,g,$))}return $}}var Rec;(function(e){e[e.Distance=5]="Distance",e[e.MaxRemainingPerStep=3]="MaxRemainingPerStep",e[e.MinBufferLengthPrune=500]="MinBufferLengthPrune",e[e.ForceReduceLimit=10]="ForceReduceLimit",e[e.CutDepth=15e3]="CutDepth",e[e.CutTo=9e3]="CutTo"})(Rec||(Rec={}));class Parse{constructor(n,r,g,$){this.parser=n,this.input=r,this.ranges=$,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.stream=new InputStream(r,$),this.tokens=new TokenCache(n,this.stream),this.topTerm=n.top[1];let{from:L}=$[0];this.stacks=[Stack.start(this,n.top[0],L)],this.fragments=g.length&&this.stream.end-L>n.bufferLength*4?new FragmentCursor(g,n.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let n=this.stacks,r=this.minStackPos,g=this.stacks=[],$,L;for(let k=0;kr)g.push(oe);else{if(this.advanceStack(oe,g,n))continue;{$||($=[],L=[]),$.push(oe);let re=this.tokens.getMainToken(oe);L.push(re.value,re.end)}}break}}if(!g.length){let k=$&&findFinished($);if(k)return this.stackToTree(k);if(this.parser.strict)throw verbose&&$&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&$){let k=this.stoppedAt!=null&&$[0].pos>this.stoppedAt?$[0]:this.runRecovery($,L,g);if(k)return this.stackToTree(k.forceAll())}if(this.recovering){let k=this.recovering==1?1:this.recovering*3;if(g.length>k)for(g.sort((oe,re)=>re.score-oe.score);g.length>k;)g.pop();g.some(oe=>oe.reducePos>r)&&this.recovering--}else if(g.length>1){e:for(let k=0;k500&&ae.buffer.length>500)if((oe.score-ae.score||oe.buffer.length-ae.buffer.length)>0)g.splice(re--,1);else{g.splice(k--,1);continue e}}}}this.minStackPos=g[0].pos;for(let k=1;k ":"";if(this.stoppedAt!=null&&$>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments){let ae=n.curContext&&n.curContext.tracker.strict,le=ae?n.curContext.hash:0;for(let ue=this.fragments.nodeAt($);ue;){let pe=this.parser.nodeSet.types[ue.type.id]==ue.type?L.getGoto(n.state,ue.type.id):-1;if(pe>-1&&ue.length&&(!ae||(ue.prop(NodeProp.contextHash)||0)==le))return n.useNode(ue,pe),verbose&&console.log(k+this.stackID(n)+` (via reuse of ${L.getName(ue.type.id)})`),!0;if(!(ue instanceof Tree)||ue.children.length==0||ue.positions[0]>0)break;let de=ue.children[0];if(de instanceof Tree&&ue.positions[0]==0)ue=de;else break}}let oe=L.stateSlot(n.state,4);if(oe>0)return n.reduce(oe),verbose&&console.log(k+this.stackID(n)+` (via always-reduce ${L.getName(oe&65535)})`),!0;if(n.stack.length>=15e3)for(;n.stack.length>9e3&&n.forceReduce(););let re=this.tokens.getActions(n);for(let ae=0;ae$?r.push(Fe):g.push(Fe)}return!1}advanceFully(n,r){let g=n.pos;for(;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>g)return pushStackDedup(n,r),!0}}runRecovery(n,r,g){let $=null,L=!1;for(let k=0;k ":"";if(oe.deadEnd&&(L||(L=!0,oe.restart(),verbose&&console.log(le+this.stackID(oe)+" (restarted)"),this.advanceFully(oe,g))))continue;let ue=oe.split(),pe=le;for(let de=0;ue.forceReduce()&&de<10&&(verbose&&console.log(pe+this.stackID(ue)+" (via force-reduce)"),!this.advanceFully(ue,g));de++)verbose&&(pe=this.stackID(ue)+" -> ");for(let de of oe.recoverByInsert(re))verbose&&console.log(le+this.stackID(de)+" (via recover-insert)"),this.advanceFully(de,g);this.stream.end>oe.pos?(ae==oe.pos&&(ae++,re=0),oe.recoverByDelete(re,ae),verbose&&console.log(le+this.stackID(oe)+` (via recover-delete ${this.parser.getName(re)})`),pushStackDedup(oe,g)):(!$||$.scoree;class ContextTracker{constructor(n){this.start=n.start,this.shift=n.shift||id,this.reduce=n.reduce||id,this.reuse=n.reuse||id,this.hash=n.hash||(()=>0),this.strict=n.strict!==!1}}class LRParser extends Parser{constructor(n){if(super(),this.wrappers=[],n.version!=14)throw new RangeError(`Parser version (${n.version}) doesn't match runtime version (${14})`);let r=n.nodeNames.split(" ");this.minRepeatTerm=r.length;for(let oe=0;oen.topRules[oe][1]),$=[];for(let oe=0;oe=0)L(le,re,oe[ae++]);else{let ue=oe[ae+-le];for(let pe=-le;pe>0;pe--)L(oe[ae++],re,ue);ae++}}}this.nodeSet=new NodeSet(r.map((oe,re)=>NodeType.define({name:re>=this.minRepeatTerm?void 0:oe,id:re,props:$[re],top:g.indexOf(re)>-1,error:re==0,skipped:n.skippedNodes&&n.skippedNodes.indexOf(re)>-1}))),n.propSources&&(this.nodeSet=this.nodeSet.extend(...n.propSources)),this.strict=!1,this.bufferLength=DefaultBufferLength;let k=decodeArray(n.tokenData);this.context=n.context,this.specializerSpecs=n.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let oe=0;oetypeof oe=="number"?new TokenGroup(k,oe):oe),this.topRules=n.topRules,this.dialects=n.dialects||{},this.dynamicPrecedences=n.dynamicPrecedences||null,this.tokenPrecTable=n.tokenPrec,this.termNames=n.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(n,r,g){let $=new Parse(this,n,r,g);for(let L of this.wrappers)$=L($,n,r,g);return $}getGoto(n,r,g=!1){let $=this.goto;if(r>=$[0])return-1;for(let L=$[r+1];;){let k=$[L++],oe=k&1,re=$[L++];if(oe&&g)return re;for(let ae=L+(k>>1);L0}validAction(n,r){if(r==this.stateSlot(n,4))return!0;for(let g=this.stateSlot(n,1);;g+=3){if(this.data[g]==65535)if(this.data[g+1]==1)g=pair(this.data,g+2);else return!1;if(r==pair(this.data,g+1))return!0}}nextStates(n){let r=[];for(let g=this.stateSlot(n,1);;g+=3){if(this.data[g]==65535)if(this.data[g+1]==1)g=pair(this.data,g+2);else break;if((this.data[g+2]&1)==0){let $=this.data[g+1];r.some((L,k)=>k&1&&L==$)||r.push(this.data[g],$)}}return r}overrides(n,r){let g=findOffset(this.data,this.tokenPrecTable,r);return g<0||findOffset(this.data,this.tokenPrecTable,n){let $=n.tokenizers.find(L=>L.from==g);return $?$.to:g})),n.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map((g,$)=>{let L=n.specializers.find(oe=>oe.from==g.external);if(!L)return g;let k=Object.assign(Object.assign({},g),{external:L.to});return r.specializers[$]=getSpecializer(k),k})),n.contextTracker&&(r.context=n.contextTracker),n.dialect&&(r.dialect=this.parseDialect(n.dialect)),n.strict!=null&&(r.strict=n.strict),n.wrap&&(r.wrappers=r.wrappers.concat(n.wrap)),n.bufferLength!=null&&(r.bufferLength=n.bufferLength),r}hasWrappers(){return this.wrappers.length>0}getName(n){return this.termNames?this.termNames[n]:String(n<=this.maxNode&&this.nodeSet.types[n].name||n)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(n){let r=this.dynamicPrecedences;return r==null?0:r[n]||0}parseDialect(n){let r=Object.keys(this.dialects),g=r.map(()=>!1);if(n)for(let L of n.split(" ")){let k=r.indexOf(L);k>=0&&(g[k]=!0)}let $=null;for(let L=0;Lg)&&r.p.parser.stateFlag(r.state,2)&&(!n||n.scoree.external(r,g)<<1|n}return e.get}let nextTagID=0;class Tag{constructor(n,r,g){this.set=n,this.base=r,this.modified=g,this.id=nextTagID++}static define(n){if(n?.base)throw new Error("Can not derive from a modified tag");let r=new Tag([],null,[]);if(r.set.push(r),n)for(let g of n.set)r.set.push(g);return r}static defineModifier(){let n=new Modifier;return r=>r.modified.indexOf(n)>-1?r:Modifier.get(r.base||r,r.modified.concat(n).sort((g,$)=>g.id-$.id))}}let nextModifierID=0;class Modifier{constructor(){this.instances=[],this.id=nextModifierID++}static get(n,r){if(!r.length)return n;let g=r[0].instances.find(oe=>oe.base==n&&sameArray$1(r,oe.modified));if(g)return g;let $=[],L=new Tag($,n,r);for(let oe of r)oe.instances.push(L);let k=permute(r);for(let oe of n.set)for(let re of k)$.push(Modifier.get(oe,re));return L}}function sameArray$1(e,n){return e.length==n.length&&e.every((r,g)=>r==n[g])}function permute(e){let n=[e];for(let r=0;r0&&ue+3==$.length){k=1;break}let pe=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(oe);if(!pe)throw new RangeError("Invalid path: "+$);if(L.push(pe[0]=="*"?"":pe[0][0]=='"'?JSON.parse(pe[0]):pe[0]),ue+=pe[0].length,ue==$.length)break;let de=$[ue++];if(ue==$.length&&de=="!"){k=0;break}if(de!="/")throw new RangeError("Invalid path: "+$);oe=$.slice(ue)}let re=L.length-1,ae=L[re];if(!ae)throw new RangeError("Invalid path: "+$);let le=new Rule$1(g,k,re>0?L.slice(0,re):null);n[ae]=le.sort(n[ae])}}return ruleNodeProp.add(n)}const ruleNodeProp=new NodeProp;class Rule$1{constructor(n,r,g,$){this.tags=n,this.mode=r,this.context=g,this.next=$}sort(n){return!n||n.depth{let k=$;for(let oe of L)for(let re of oe.set){let ae=r[re.id];if(ae){k=k?k+" "+ae:ae;break}}return k},scope:g}}function highlightTags(e,n){let r=null;for(let g of e){let $=g.style(n);$&&(r=r?r+" "+$:$)}return r}function highlightTree(e,n,r,g=0,$=e.length){let L=new HighlightBuilder(g,Array.isArray(n)?n:[n],r);L.highlightRange(e.cursor(),g,$,"",L.highlighters),L.flush($)}class HighlightBuilder{constructor(n,r,g){this.at=n,this.highlighters=r,this.span=g,this.class=""}startSpan(n,r){r!=this.class&&(this.flush(n),n>this.at&&(this.at=n),this.class=r)}flush(n){n>this.at&&this.class&&this.span(this.at,n,this.class)}highlightRange(n,r,g,$,L){let{type:k,from:oe,to:re}=n;if(oe>=g||re<=r)return;k.isTop&&(L=this.highlighters.filter(de=>!de.scope||de.scope(k)));let ae=$,le=k.prop(ruleNodeProp),ue=!1;for(;le;){if(!le.context||n.matchContext(le.context)){let de=highlightTags(L,le.tags);de&&(ae&&(ae+=" "),ae+=de,le.mode==1?$+=($?" ":"")+de:le.mode==0&&(ue=!0));break}le=le.next}if(this.startSpan(n.from,ae),ue)return;let pe=n.tree&&n.tree.prop(NodeProp.mounted);if(pe&&pe.overlay){let de=n.node.enter(pe.overlay[0].from+oe,1),Fe=this.highlighters.filter(Ce=>!Ce.scope||Ce.scope(pe.tree.type)),ze=n.firstChild();for(let Ce=0,Ie=oe;;Ce++){let _e=Ce=At||!n.nextSibling())););if(!_e||At>g)break;Ie=_e.to+oe,Ie>r&&(this.highlightRange(de.cursor(),Math.max(r,_e.from+oe),Math.min(g,Ie),$,Fe),this.startSpan(Ie,ae))}ze&&n.parent()}else if(n.firstChild()){do if(!(n.to<=r)){if(n.from>=g)break;this.highlightRange(n,r,g,$,L),this.startSpan(Math.min(g,n.to),ae)}while(n.nextSibling());n.parent()}}}const t=Tag.define,comment=t(),name=t(),typeName=t(name),propertyName=t(name),literal=t(),string=t(literal),number=t(literal),content=t(),heading=t(content),keyword=t(),operator=t(),punctuation=t(),bracket=t(punctuation),meta=t(),tags$1={comment,lineComment:t(comment),blockComment:t(comment),docComment:t(comment),name,variableName:t(name),typeName,tagName:t(typeName),propertyName,attributeName:t(propertyName),className:t(name),labelName:t(name),namespace:t(name),macroName:t(name),literal,string,docString:t(string),character:t(string),attributeValue:t(string),number,integer:t(number),float:t(number),bool:t(literal),regexp:t(literal),escape:t(literal),color:t(literal),url:t(literal),keyword,self:t(keyword),null:t(keyword),atom:t(keyword),unit:t(keyword),modifier:t(keyword),operatorKeyword:t(keyword),controlKeyword:t(keyword),definitionKeyword:t(keyword),moduleKeyword:t(keyword),operator,derefOperator:t(operator),arithmeticOperator:t(operator),logicOperator:t(operator),bitwiseOperator:t(operator),compareOperator:t(operator),updateOperator:t(operator),definitionOperator:t(operator),typeOperator:t(operator),controlOperator:t(operator),punctuation,separator:t(punctuation),bracket,angleBracket:t(bracket),squareBracket:t(bracket),paren:t(bracket),brace:t(bracket),content,heading,heading1:t(heading),heading2:t(heading),heading3:t(heading),heading4:t(heading),heading5:t(heading),heading6:t(heading),contentSeparator:t(content),list:t(content),quote:t(content),emphasis:t(content),strong:t(content),link:t(content),monospace:t(content),strikethrough:t(content),inserted:t(),deleted:t(),changed:t(),invalid:t(),meta,documentMeta:t(meta),annotation:t(meta),processingInstruction:t(meta),definition:Tag.defineModifier(),constant:Tag.defineModifier(),function:Tag.defineModifier(),standard:Tag.defineModifier(),local:Tag.defineModifier(),special:Tag.defineModifier()};tagHighlighter([{tag:tags$1.link,class:"tok-link"},{tag:tags$1.heading,class:"tok-heading"},{tag:tags$1.emphasis,class:"tok-emphasis"},{tag:tags$1.strong,class:"tok-strong"},{tag:tags$1.keyword,class:"tok-keyword"},{tag:tags$1.atom,class:"tok-atom"},{tag:tags$1.bool,class:"tok-bool"},{tag:tags$1.url,class:"tok-url"},{tag:tags$1.labelName,class:"tok-labelName"},{tag:tags$1.inserted,class:"tok-inserted"},{tag:tags$1.deleted,class:"tok-deleted"},{tag:tags$1.literal,class:"tok-literal"},{tag:tags$1.string,class:"tok-string"},{tag:tags$1.number,class:"tok-number"},{tag:[tags$1.regexp,tags$1.escape,tags$1.special(tags$1.string)],class:"tok-string2"},{tag:tags$1.variableName,class:"tok-variableName"},{tag:tags$1.local(tags$1.variableName),class:"tok-variableName tok-local"},{tag:tags$1.definition(tags$1.variableName),class:"tok-variableName tok-definition"},{tag:tags$1.special(tags$1.variableName),class:"tok-variableName2"},{tag:tags$1.definition(tags$1.propertyName),class:"tok-propertyName tok-definition"},{tag:tags$1.typeName,class:"tok-typeName"},{tag:tags$1.namespace,class:"tok-namespace"},{tag:tags$1.className,class:"tok-className"},{tag:tags$1.macroName,class:"tok-macroName"},{tag:tags$1.propertyName,class:"tok-propertyName"},{tag:tags$1.operator,class:"tok-operator"},{tag:tags$1.comment,class:"tok-comment"},{tag:tags$1.meta,class:"tok-meta"},{tag:tags$1.invalid,class:"tok-invalid"},{tag:tags$1.punctuation,class:"tok-punctuation"}]);const jsonHighlighting=styleTags({String:tags$1.string,Number:tags$1.number,"True False":tags$1.bool,PropertyName:tags$1.propertyName,Null:tags$1.null,",":tags$1.separator,"[ ]":tags$1.squareBracket,"{ }":tags$1.brace}),parser$2=LRParser.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26A0 JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[jsonHighlighting],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});class Text$1{constructor(){}lineAt(n){if(n<0||n>this.length)throw new RangeError(`Invalid position ${n} in document of length ${this.length}`);return this.lineInner(n,!1,1,0)}line(n){if(n<1||n>this.lines)throw new RangeError(`Invalid line number ${n} in ${this.lines}-line document`);return this.lineInner(n,!0,1,0)}replace(n,r,g){let $=[];return this.decompose(0,n,$,2),g.length&&g.decompose(0,g.length,$,3),this.decompose(r,this.length,$,1),TextNode.from($,this.length-(r-n)+g.length)}append(n){return this.replace(this.length,this.length,n)}slice(n,r=this.length){let g=[];return this.decompose(n,r,g,0),TextNode.from(g,r-n)}eq(n){if(n==this)return!0;if(n.length!=this.length||n.lines!=this.lines)return!1;let r=this.scanIdentical(n,1),g=this.length-this.scanIdentical(n,-1),$=new RawTextCursor(this),L=new RawTextCursor(n);for(let k=r,oe=r;;){if($.next(k),L.next(k),k=0,$.lineBreak!=L.lineBreak||$.done!=L.done||$.value!=L.value)return!1;if(oe+=$.value.length,$.done||oe>=g)return!0}}iter(n=1){return new RawTextCursor(this,n)}iterRange(n,r=this.length){return new PartialTextCursor(this,n,r)}iterLines(n,r){let g;if(n==null)g=this.iter();else{r==null&&(r=this.lines+1);let $=this.line(n).from;g=this.iterRange($,Math.max($,r==this.lines+1?this.length:r<=1?0:this.line(r-1).to))}return new LineCursor(g)}toString(){return this.sliceString(0)}toJSON(){let n=[];return this.flatten(n),n}static of(n){if(n.length==0)throw new RangeError("A document must have at least one line");return n.length==1&&!n[0]?Text$1.empty:n.length<=32?new TextLeaf(n):TextNode.from(TextLeaf.split(n,[]))}}class TextLeaf extends Text$1{constructor(n,r=textLength(n)){super(),this.text=n,this.length=r}get lines(){return this.text.length}get children(){return null}lineInner(n,r,g,$){for(let L=0;;L++){let k=this.text[L],oe=$+k.length;if((r?g:oe)>=n)return new Line($,oe,g,k);$=oe+1,g++}}decompose(n,r,g,$){let L=n<=0&&r>=this.length?this:new TextLeaf(sliceText(this.text,n,r),Math.min(r,this.length)-Math.max(0,n));if($&1){let k=g.pop(),oe=appendText(L.text,k.text.slice(),0,L.length);if(oe.length<=32)g.push(new TextLeaf(oe,k.length+L.length));else{let re=oe.length>>1;g.push(new TextLeaf(oe.slice(0,re)),new TextLeaf(oe.slice(re)))}}else g.push(L)}replace(n,r,g){if(!(g instanceof TextLeaf))return super.replace(n,r,g);let $=appendText(this.text,appendText(g.text,sliceText(this.text,0,n)),r),L=this.length+g.length-(r-n);return $.length<=32?new TextLeaf($,L):TextNode.from(TextLeaf.split($,[]),L)}sliceString(n,r=this.length,g=` +`){let $="";for(let L=0,k=0;L<=r&&kn&&k&&($+=g),nL&&($+=oe.slice(Math.max(0,n-L),r-L)),L=re+1}return $}flatten(n){for(let r of this.text)n.push(r)}scanIdentical(){return 0}static split(n,r){let g=[],$=-1;for(let L of n)g.push(L),$+=L.length+1,g.length==32&&(r.push(new TextLeaf(g,$)),g=[],$=-1);return $>-1&&r.push(new TextLeaf(g,$)),r}}class TextNode extends Text$1{constructor(n,r){super(),this.children=n,this.length=r,this.lines=0;for(let g of n)this.lines+=g.lines}lineInner(n,r,g,$){for(let L=0;;L++){let k=this.children[L],oe=$+k.length,re=g+k.lines-1;if((r?re:oe)>=n)return k.lineInner(n,r,g,$);$=oe+1,g=re+1}}decompose(n,r,g,$){for(let L=0,k=0;k<=r&&L=k){let ae=$&((k<=n?1:0)|(re>=r?2:0));k>=n&&re<=r&&!ae?g.push(oe):oe.decompose(n-k,r-k,g,ae)}k=re+1}}replace(n,r,g){if(g.lines=L&&r<=oe){let re=k.replace(n-L,r-L,g),ae=this.lines-k.lines+re.lines;if(re.lines>5-1&&re.lines>ae>>5+1){let le=this.children.slice();return le[$]=re,new TextNode(le,this.length-(r-n)+g.length)}return super.replace(L,oe,re)}L=oe+1}return super.replace(n,r,g)}sliceString(n,r=this.length,g=` +`){let $="";for(let L=0,k=0;Ln&&L&&($+=g),nk&&($+=oe.sliceString(n-k,r-k,g)),k=re+1}return $}flatten(n){for(let r of this.children)r.flatten(n)}scanIdentical(n,r){if(!(n instanceof TextNode))return 0;let g=0,[$,L,k,oe]=r>0?[0,0,this.children.length,n.children.length]:[this.children.length-1,n.children.length-1,-1,-1];for(;;$+=r,L+=r){if($==k||L==oe)return g;let re=this.children[$],ae=n.children[L];if(re!=ae)return g+re.scanIdentical(ae,r);g+=re.length+1}}static from(n,r=n.reduce((g,$)=>g+$.length+1,-1)){let g=0;for(let de of n)g+=de.lines;if(g<32){let de=[];for(let Fe of n)Fe.flatten(de);return new TextLeaf(de,r)}let $=Math.max(32,g>>5),L=$<<1,k=$>>1,oe=[],re=0,ae=-1,le=[];function ue(de){let Fe;if(de.lines>L&&de instanceof TextNode)for(let ze of de.children)ue(ze);else de.lines>k&&(re>k||!re)?(pe(),oe.push(de)):de instanceof TextLeaf&&re&&(Fe=le[le.length-1])instanceof TextLeaf&&de.lines+Fe.lines<=32?(re+=de.lines,ae+=de.length+1,le[le.length-1]=new TextLeaf(Fe.text.concat(de.text),Fe.length+1+de.length)):(re+de.lines>$&&pe(),re+=de.lines,ae+=de.length+1,le.push(de))}function pe(){re!=0&&(oe.push(le.length==1?le[0]:TextNode.from(le,ae)),ae=-1,re=le.length=0)}for(let de of n)ue(de);return pe(),oe.length==1?oe[0]:new TextNode(oe,r)}}Text$1.empty=new TextLeaf([""],0);function textLength(e){let n=-1;for(let r of e)n+=r.length+1;return n}function appendText(e,n,r=0,g=1e9){for(let $=0,L=0,k=!0;L=r&&(re>g&&(oe=oe.slice(0,g-$)),$0?1:(n instanceof TextLeaf?n.text.length:n.children.length)<<1]}nextInner(n,r){for(this.done=this.lineBreak=!1;;){let g=this.nodes.length-1,$=this.nodes[g],L=this.offsets[g],k=L>>1,oe=$ instanceof TextLeaf?$.text.length:$.children.length;if(k==(r>0?oe:0)){if(g==0)return this.done=!0,this.value="",this;r>0&&this.offsets[g-1]++,this.nodes.pop(),this.offsets.pop()}else if((L&1)==(r>0?0:1)){if(this.offsets[g]+=r,n==0)return this.lineBreak=!0,this.value=` +`,this;n--}else if($ instanceof TextLeaf){let re=$.text[k+(r<0?-1:0)];if(this.offsets[g]+=r,re.length>Math.max(0,n))return this.value=n==0?re:r>0?re.slice(n):re.slice(0,re.length-n),this;n-=re.length}else{let re=$.children[k+(r<0?-1:0)];n>re.length?(n-=re.length,this.offsets[g]+=r):(r<0&&this.offsets[g]--,this.nodes.push(re),this.offsets.push(r>0?1:(re instanceof TextLeaf?re.text.length:re.children.length)<<1))}}}next(n=0){return n<0&&(this.nextInner(-n,-this.dir),n=this.value.length),this.nextInner(n,this.dir)}}class PartialTextCursor{constructor(n,r,g){this.value="",this.done=!1,this.cursor=new RawTextCursor(n,r>g?-1:1),this.pos=r>g?n.length:0,this.from=Math.min(r,g),this.to=Math.max(r,g)}nextInner(n,r){if(r<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;n+=Math.max(0,r<0?this.pos-this.to:this.from-this.pos);let g=r<0?this.pos-this.from:this.to-this.pos;n>g&&(n=g),g-=n;let{value:$}=this.cursor.next(n);return this.pos+=($.length+n)*r,this.value=$.length<=g?$:r<0?$.slice($.length-g):$.slice(0,g),this.done=!this.value,this}next(n=0){return n<0?n=Math.max(n,this.from-this.pos):n>0&&(n=Math.min(n,this.to-this.pos)),this.nextInner(n,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class LineCursor{constructor(n){this.inner=n,this.afterBreak=!0,this.value="",this.done=!1}next(n=0){let{done:r,lineBreak:g,value:$}=this.inner.next(n);return r?(this.done=!0,this.value=""):g?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=$,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Text$1.prototype[Symbol.iterator]=function(){return this.iter()},RawTextCursor.prototype[Symbol.iterator]=PartialTextCursor.prototype[Symbol.iterator]=LineCursor.prototype[Symbol.iterator]=function(){return this});class Line{constructor(n,r,g,$){this.from=n,this.to=r,this.number=g,this.text=$}get length(){return this.to-this.from}}let extend$1="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=1;ee)return extend$1[n-1]<=e;return!1}function isRegionalIndicator(e){return e>=127462&&e<=127487}const ZWJ=8205;function findClusterBreak(e,n,r=!0,g=!0){return(r?nextClusterBreak:prevClusterBreak)(e,n,g)}function nextClusterBreak(e,n,r){if(n==e.length)return n;n&&surrogateLow(e.charCodeAt(n))&&surrogateHigh(e.charCodeAt(n-1))&&n--;let g=codePointAt(e,n);for(n+=codePointSize(g);n=0&&isRegionalIndicator(codePointAt(e,k));)L++,k-=2;if(L%2==0)break;n+=2}else break}return n}function prevClusterBreak(e,n,r){for(;n>0;){let g=nextClusterBreak(e,n-2,r);if(g=56320&&e<57344}function surrogateHigh(e){return e>=55296&&e<56320}function codePointAt(e,n){let r=e.charCodeAt(n);if(!surrogateHigh(r)||n+1==e.length)return r;let g=e.charCodeAt(n+1);return surrogateLow(g)?(r-55296<<10)+(g-56320)+65536:r}function fromCodePoint(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function codePointSize(e){return e<65536?1:2}const DefaultSplit=/\r\n?|\n/;var MapMode=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(MapMode||(MapMode={}));class ChangeDesc{constructor(n){this.sections=n}get length(){let n=0;for(let r=0;rn)return L+(n-$);L+=oe}else{if(g!=MapMode.Simple&&ae>=n&&(g==MapMode.TrackDel&&$n||g==MapMode.TrackBefore&&$n))return null;if(ae>n||ae==n&&r<0&&!oe)return n==$||r<0?L:L+re;L+=re}$=ae}if(n>$)throw new RangeError(`Position ${n} is out of range for changeset of length ${$}`);return L}touchesRange(n,r=n){for(let g=0,$=0;g=0&&$<=r&&oe>=n)return $r?"cover":!0;$=oe}return!1}toString(){let n="";for(let r=0;r=0?":"+$:"")}return n}toJSON(){return this.sections}static fromJSON(n){if(!Array.isArray(n)||n.length%2||n.some(r=>typeof r!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ChangeDesc(n)}static create(n){return new ChangeDesc(n)}}class ChangeSet extends ChangeDesc{constructor(n,r){super(n),this.inserted=r}apply(n){if(this.length!=n.length)throw new RangeError("Applying change set to a document with the wrong length");return iterChanges(this,(r,g,$,L,k)=>n=n.replace($,$+(g-r),k),!1),n}mapDesc(n,r=!1){return mapSet(this,n,r,!0)}invert(n){let r=this.sections.slice(),g=[];for(let $=0,L=0;$=0){r[$]=oe,r[$+1]=k;let re=$>>1;for(;g.length0&&addInsert(g,r,L.text),L.forward(le),oe+=le}let ae=n[k++];for(;oe>1].toJSON()))}return n}static of(n,r,g){let $=[],L=[],k=0,oe=null;function re(le=!1){if(!le&&!$.length)return;kpe||ue<0||pe>r)throw new RangeError(`Invalid change range ${ue} to ${pe} (in doc of length ${r})`);let Fe=de?typeof de=="string"?Text$1.of(de.split(g||DefaultSplit)):de:Text$1.empty,ze=Fe.length;if(ue==pe&&ze==0)return;uek&&addSection($,ue-k,-1),addSection($,pe-ue,ze),addInsert(L,$,Fe),k=pe}}return ae(n),re(!oe),oe}static empty(n){return new ChangeSet(n?[n,-1]:[],[])}static fromJSON(n){if(!Array.isArray(n))throw new RangeError("Invalid JSON representation of ChangeSet");let r=[],g=[];for(let $=0;$oe&&typeof k!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(L.length==1)r.push(L[0],0);else{for(;g.length<$;)g.push(Text$1.empty);g[$]=Text$1.of(L.slice(1)),r.push(L[0],g[$].length)}}}return new ChangeSet(r,g)}static createSet(n,r){return new ChangeSet(n,r)}}function addSection(e,n,r,g=!1){if(n==0&&r<=0)return;let $=e.length-2;$>=0&&r<=0&&r==e[$+1]?e[$]+=n:n==0&&e[$]==0?e[$+1]+=r:g?(e[$]+=n,e[$+1]+=r):e.push(n,r)}function addInsert(e,n,r){if(r.length==0)return;let g=n.length-2>>1;if(g>1])),!(r||k==e.sections.length||e.sections[k+1]<0);)oe=e.sections[k++],re=e.sections[k++];n($,ae,L,le,ue),$=ae,L=le}}}function mapSet(e,n,r,g=!1){let $=[],L=g?[]:null,k=new SectionIter(e),oe=new SectionIter(n);for(let re=-1;;)if(k.ins==-1&&oe.ins==-1){let ae=Math.min(k.len,oe.len);addSection($,ae,-1),k.forward(ae),oe.forward(ae)}else if(oe.ins>=0&&(k.ins<0||re==k.i||k.off==0&&(oe.len=0&&re=0){let ae=0,le=k.len;for(;le;)if(oe.ins==-1){let ue=Math.min(le,oe.len);ae+=ue,le-=ue,oe.forward(ue)}else if(oe.ins==0&&oe.lenre||k.ins>=0&&k.len>re)&&(oe||g.length>ae),L.forward2(re),k.forward(re)}}}}class SectionIter{constructor(n){this.set=n,this.i=0,this.next()}next(){let{sections:n}=this.set;this.i>1;return r>=n.length?Text$1.empty:n[r]}textBit(n){let{inserted:r}=this.set,g=this.i-2>>1;return g>=r.length&&!n?Text$1.empty:r[g].slice(this.off,n==null?void 0:this.off+n)}forward(n){n==this.len?this.next():(this.len-=n,this.off+=n)}forward2(n){this.ins==-1?this.forward(n):n==this.ins?this.next():(this.ins-=n,this.off+=n)}}class SelectionRange{constructor(n,r,g){this.from=n,this.to=r,this.flags=g}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let n=this.flags&3;return n==3?null:n}get goalColumn(){let n=this.flags>>5;return n==33554431?void 0:n}map(n,r=-1){let g,$;return this.empty?g=$=n.mapPos(this.from,r):(g=n.mapPos(this.from,1),$=n.mapPos(this.to,-1)),g==this.from&&$==this.to?this:new SelectionRange(g,$,this.flags)}extend(n,r=n){if(n<=this.anchor&&r>=this.anchor)return EditorSelection.range(n,r);let g=Math.abs(n-this.anchor)>Math.abs(r-this.anchor)?n:r;return EditorSelection.range(this.anchor,g)}eq(n){return this.anchor==n.anchor&&this.head==n.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(n){if(!n||typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return EditorSelection.range(n.anchor,n.head)}static create(n,r,g){return new SelectionRange(n,r,g)}}class EditorSelection{constructor(n,r){this.ranges=n,this.mainIndex=r}map(n,r=-1){return n.empty?this:EditorSelection.create(this.ranges.map(g=>g.map(n,r)),this.mainIndex)}eq(n){if(this.ranges.length!=n.ranges.length||this.mainIndex!=n.mainIndex)return!1;for(let r=0;rn.toJSON()),main:this.mainIndex}}static fromJSON(n){if(!n||!Array.isArray(n.ranges)||typeof n.main!="number"||n.main>=n.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new EditorSelection(n.ranges.map(r=>SelectionRange.fromJSON(r)),n.main)}static single(n,r=n){return new EditorSelection([EditorSelection.range(n,r)],0)}static create(n,r=0){if(n.length==0)throw new RangeError("A selection needs at least one range");for(let g=0,$=0;$n?4:0))}static normalized(n,r=0){let g=n[r];n.sort(($,L)=>$.from-L.from),r=n.indexOf(g);for(let $=1;$L.head?EditorSelection.range(re,oe):EditorSelection.range(oe,re))}}return new EditorSelection(n,r)}}function checkSelection(e,n){for(let r of e.ranges)if(r.to>n)throw new RangeError("Selection points outside of document")}let nextID=0;class Facet{constructor(n,r,g,$,L){this.combine=n,this.compareInput=r,this.compare=g,this.isStatic=$,this.id=nextID++,this.default=n([]),this.extensions=typeof L=="function"?L(this):L}static define(n={}){return new Facet(n.combine||(r=>r),n.compareInput||((r,g)=>r===g),n.compare||(n.combine?(r,g)=>r===g:sameArray),!!n.static,n.enables)}of(n){return new FacetProvider([],this,0,n)}compute(n,r){if(this.isStatic)throw new Error("Can't compute a static facet");return new FacetProvider(n,this,1,r)}computeN(n,r){if(this.isStatic)throw new Error("Can't compute a static facet");return new FacetProvider(n,this,2,r)}from(n,r){return r||(r=g=>g),this.compute([n],g=>r(g.field(n)))}}function sameArray(e,n){return e==n||e.length==n.length&&e.every((r,g)=>r===n[g])}class FacetProvider{constructor(n,r,g,$){this.dependencies=n,this.facet=r,this.type=g,this.value=$,this.id=nextID++}dynamicSlot(n){var r;let g=this.value,$=this.facet.compareInput,L=this.id,k=n[L]>>1,oe=this.type==2,re=!1,ae=!1,le=[];for(let ue of this.dependencies)ue=="doc"?re=!0:ue=="selection"?ae=!0:(((r=n[ue.id])!==null&&r!==void 0?r:1)&1)==0&&le.push(n[ue.id]);return{create(ue){return ue.values[k]=g(ue),1},update(ue,pe){if(re&&pe.docChanged||ae&&(pe.docChanged||pe.selection)||ensureAll(ue,le)){let de=g(ue);if(oe?!compareArray(de,ue.values[k],$):!$(de,ue.values[k]))return ue.values[k]=de,1}return 0},reconfigure:(ue,pe)=>{let de=g(ue),Fe=pe.config.address[L];if(Fe!=null){let ze=getAddr(pe,Fe);if(this.dependencies.every(Ce=>Ce instanceof Facet?pe.facet(Ce)===ue.facet(Ce):Ce instanceof StateField?pe.field(Ce,!1)==ue.field(Ce,!1):!0)||(oe?compareArray(de,ze,$):$(de,ze)))return ue.values[k]=ze,0}return ue.values[k]=de,1}}}}function compareArray(e,n,r){if(e.length!=n.length)return!1;for(let g=0;ge[re.id]),$=r.map(re=>re.type),L=g.filter(re=>!(re&1)),k=e[n.id]>>1;function oe(re){let ae=[];for(let le=0;leg===$),n);return n.provide&&(r.provides=n.provide(r)),r}create(n){let r=n.facet(initField).find(g=>g.field==this);return(r?.create||this.createF)(n)}slot(n){let r=n[this.id]>>1;return{create:g=>(g.values[r]=this.create(g),1),update:(g,$)=>{let L=g.values[r],k=this.updateF(L,$);return this.compareF(L,k)?0:(g.values[r]=k,1)},reconfigure:(g,$)=>$.config.address[this.id]!=null?(g.values[r]=$.field(this),0):(g.values[r]=this.create(g),1)}}init(n){return[this,initField.of({field:this,create:n})]}get extension(){return this}}const Prec_={lowest:4,low:3,default:2,high:1,highest:0};function prec(e){return n=>new PrecExtension(n,e)}const Prec={highest:prec(Prec_.highest),high:prec(Prec_.high),default:prec(Prec_.default),low:prec(Prec_.low),lowest:prec(Prec_.lowest)};class PrecExtension{constructor(n,r){this.inner=n,this.prec=r}}class Compartment{of(n){return new CompartmentInstance(this,n)}reconfigure(n){return Compartment.reconfigure.of({compartment:this,extension:n})}get(n){return n.config.compartments.get(this)}}class CompartmentInstance{constructor(n,r){this.compartment=n,this.inner=r}}class Configuration{constructor(n,r,g,$,L,k){for(this.base=n,this.compartments=r,this.dynamicSlots=g,this.address=$,this.staticValues=L,this.facets=k,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(n,r,g){let $=[],L=Object.create(null),k=new Map;for(let pe of flatten(n,r,k))pe instanceof StateField?$.push(pe):(L[pe.facet.id]||(L[pe.facet.id]=[])).push(pe);let oe=Object.create(null),re=[],ae=[];for(let pe of $)oe[pe.id]=ae.length<<1,ae.push(de=>pe.slot(de));let le=g?.config.facets;for(let pe in L){let de=L[pe],Fe=de[0].facet,ze=le&&le[pe]||[];if(de.every(Ce=>Ce.type==0))if(oe[Fe.id]=re.length<<1|1,sameArray(ze,de))re.push(g.facet(Fe));else{let Ce=Fe.combine(de.map(Ie=>Ie.value));re.push(g&&Fe.compare(Ce,g.facet(Fe))?g.facet(Fe):Ce)}else{for(let Ce of de)Ce.type==0?(oe[Ce.id]=re.length<<1|1,re.push(Ce.value)):(oe[Ce.id]=ae.length<<1,ae.push(Ie=>Ce.dynamicSlot(Ie)));oe[Fe.id]=ae.length<<1,ae.push(Ce=>dynamicFacetSlot(Ce,Fe,de))}}let ue=ae.map(pe=>pe(oe));return new Configuration(n,k,ue,oe,re,L)}}function flatten(e,n,r){let g=[[],[],[],[],[]],$=new Map;function L(k,oe){let re=$.get(k);if(re!=null){if(re<=oe)return;let ae=g[re].indexOf(k);ae>-1&&g[re].splice(ae,1),k instanceof CompartmentInstance&&r.delete(k.compartment)}if($.set(k,oe),Array.isArray(k))for(let ae of k)L(ae,oe);else if(k instanceof CompartmentInstance){if(r.has(k.compartment))throw new RangeError("Duplicate use of compartment in extensions");let ae=n.get(k.compartment)||k.inner;r.set(k.compartment,ae),L(ae,oe)}else if(k instanceof PrecExtension)L(k.inner,k.prec);else if(k instanceof StateField)g[oe].push(k),k.provides&&L(k.provides,oe);else if(k instanceof FacetProvider)g[oe].push(k),k.facet.extensions&&L(k.facet.extensions,Prec_.default);else{let ae=k.extension;if(!ae)throw new Error(`Unrecognized extension value in extension set (${k}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);L(ae,oe)}}return L(e,Prec_.default),g.reduce((k,oe)=>k.concat(oe))}function ensureAddr(e,n){if(n&1)return 2;let r=n>>1,g=e.status[r];if(g==4)throw new Error("Cyclic dependency between fields and/or facets");if(g&2)return g;e.status[r]=4;let $=e.computeSlot(e,e.config.dynamicSlots[r]);return e.status[r]=2|$}function getAddr(e,n){return n&1?e.config.staticValues[n>>1]:e.values[n>>1]}const languageData=Facet.define(),allowMultipleSelections=Facet.define({combine:e=>e.some(n=>n),static:!0}),lineSeparator=Facet.define({combine:e=>e.length?e[0]:void 0,static:!0}),changeFilter=Facet.define(),transactionFilter=Facet.define(),transactionExtender=Facet.define(),readOnly=Facet.define({combine:e=>e.length?e[0]:!1});class Annotation{constructor(n,r){this.type=n,this.value=r}static define(){return new AnnotationType}}class AnnotationType{of(n){return new Annotation(this,n)}}class StateEffectType{constructor(n){this.map=n}of(n){return new StateEffect(this,n)}}class StateEffect{constructor(n,r){this.type=n,this.value=r}map(n){let r=this.type.map(this.value,n);return r===void 0?void 0:r==this.value?this:new StateEffect(this.type,r)}is(n){return this.type==n}static define(n={}){return new StateEffectType(n.map||(r=>r))}static mapEffects(n,r){if(!n.length)return n;let g=[];for(let $ of n){let L=$.map(r);L&&g.push(L)}return g}}StateEffect.reconfigure=StateEffect.define();StateEffect.appendConfig=StateEffect.define();class Transaction{constructor(n,r,g,$,L,k){this.startState=n,this.changes=r,this.selection=g,this.effects=$,this.annotations=L,this.scrollIntoView=k,this._doc=null,this._state=null,g&&checkSelection(g,r.newLength),L.some(oe=>oe.type==Transaction.time)||(this.annotations=L.concat(Transaction.time.of(Date.now())))}static create(n,r,g,$,L,k){return new Transaction(n,r,g,$,L,k)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(n){for(let r of this.annotations)if(r.type==n)return r.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(n){let r=this.annotation(Transaction.userEvent);return!!(r&&(r==n||r.length>n.length&&r.slice(0,n.length)==n&&r[n.length]=="."))}}Transaction.time=Annotation.define();Transaction.userEvent=Annotation.define();Transaction.addToHistory=Annotation.define();Transaction.remote=Annotation.define();function joinRanges(e,n){let r=[];for(let g=0,$=0;;){let L,k;if(g=e[g]))L=e[g++],k=e[g++];else if($=0;$--){let L=g[$](e);L instanceof Transaction?e=L:Array.isArray(L)&&L.length==1&&L[0]instanceof Transaction?e=L[0]:e=resolveTransaction(n,asArray$1(L),!1)}return e}function extendTransaction(e){let n=e.startState,r=n.facet(transactionExtender),g=e;for(let $=r.length-1;$>=0;$--){let L=r[$](e);L&&Object.keys(L).length&&(g=mergeTransaction(e,resolveTransactionInner(n,L,e.changes.newLength),!0))}return g==e?e:Transaction.create(n,e.changes,e.selection,g.effects,g.annotations,g.scrollIntoView)}const none$2=[];function asArray$1(e){return e==null?none$2:Array.isArray(e)?e:[e]}var CharCategory=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(CharCategory||(CharCategory={}));const nonASCIISingleCaseWordChar=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let wordChar;try{wordChar=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function hasWordChar(e){if(wordChar)return wordChar.test(e);for(let n=0;n"\x80"&&(r.toUpperCase()!=r.toLowerCase()||nonASCIISingleCaseWordChar.test(r)))return!0}return!1}function makeCategorizer(e){return n=>{if(!/\S/.test(n))return CharCategory.Space;if(hasWordChar(n))return CharCategory.Word;for(let r=0;r-1)return CharCategory.Word;return CharCategory.Other}}class EditorState{constructor(n,r,g,$,L,k){this.config=n,this.doc=r,this.selection=g,this.values=$,this.status=n.statusTemplate.slice(),this.computeSlot=L,k&&(k._state=this);for(let oe=0;oe$.set(re,oe)),r=null),$.set(k.value.compartment,k.value.extension)):k.is(StateEffect.reconfigure)?(r=null,g=k.value):k.is(StateEffect.appendConfig)&&(r=null,g=asArray$1(g).concat(k.value));let L;r?L=n.startState.values.slice():(r=Configuration.resolve(g,$,this),L=new EditorState(r,this.doc,this.selection,r.dynamicSlots.map(()=>null),(oe,re)=>re.reconfigure(oe,this),null).values),new EditorState(r,n.newDoc,n.newSelection,L,(k,oe)=>oe.update(k,n),n)}replaceSelection(n){return typeof n=="string"&&(n=this.toText(n)),this.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:n},range:EditorSelection.cursor(r.from+n.length)}))}changeByRange(n){let r=this.selection,g=n(r.ranges[0]),$=this.changes(g.changes),L=[g.range],k=asArray$1(g.effects);for(let oe=1;oek.spec.fromJSON(oe,re)))}}return EditorState.create({doc:n.doc,selection:EditorSelection.fromJSON(n.selection),extensions:r.extensions?$.concat([r.extensions]):$})}static create(n={}){let r=Configuration.resolve(n.extensions||[],new Map),g=n.doc instanceof Text$1?n.doc:Text$1.of((n.doc||"").split(r.staticFacet(EditorState.lineSeparator)||DefaultSplit)),$=n.selection?n.selection instanceof EditorSelection?n.selection:EditorSelection.single(n.selection.anchor,n.selection.head):EditorSelection.single(0);return checkSelection($,g.length),r.staticFacet(allowMultipleSelections)||($=$.asSingle()),new EditorState(r,g,$,r.dynamicSlots.map(()=>null),(L,k)=>k.create(L),null)}get tabSize(){return this.facet(EditorState.tabSize)}get lineBreak(){return this.facet(EditorState.lineSeparator)||` +`}get readOnly(){return this.facet(readOnly)}phrase(n,...r){for(let g of this.facet(EditorState.phrases))if(Object.prototype.hasOwnProperty.call(g,n)){n=g[n];break}return r.length&&(n=n.replace(/\$(\$|\d*)/g,(g,$)=>{if($=="$")return"$";let L=+($||1);return!L||L>r.length?g:r[L-1]})),n}languageDataAt(n,r,g=-1){let $=[];for(let L of this.facet(languageData))for(let k of L(this,r,g))Object.prototype.hasOwnProperty.call(k,n)&&$.push(k[n]);return $}charCategorizer(n){return makeCategorizer(this.languageDataAt("wordChars",n).join(""))}wordAt(n){let{text:r,from:g,length:$}=this.doc.lineAt(n),L=this.charCategorizer(n),k=n-g,oe=n-g;for(;k>0;){let re=findClusterBreak(r,k,!1);if(L(r.slice(re,k))!=CharCategory.Word)break;k=re}for(;oe<$;){let re=findClusterBreak(r,oe);if(L(r.slice(oe,re))!=CharCategory.Word)break;oe=re}return k==oe?null:EditorSelection.range(k+g,oe+g)}}EditorState.allowMultipleSelections=allowMultipleSelections;EditorState.tabSize=Facet.define({combine:e=>e.length?e[0]:4});EditorState.lineSeparator=lineSeparator;EditorState.readOnly=readOnly;EditorState.phrases=Facet.define({compare(e,n){let r=Object.keys(e),g=Object.keys(n);return r.length==g.length&&r.every($=>e[$]==n[$])}});EditorState.languageData=languageData;EditorState.changeFilter=changeFilter;EditorState.transactionFilter=transactionFilter;EditorState.transactionExtender=transactionExtender;Compartment.reconfigure=StateEffect.define();function combineConfig(e,n,r={}){let g={};for(let $ of e)for(let L of Object.keys($)){let k=$[L],oe=g[L];if(oe===void 0)g[L]=k;else if(!(oe===k||k===void 0))if(Object.hasOwnProperty.call(r,L))g[L]=r[L](oe,k);else throw new Error("Config merge conflict for field "+L)}for(let $ in n)g[$]===void 0&&(g[$]=n[$]);return g}class RangeValue{eq(n){return this==n}range(n,r=n){return Range.create(n,r,this)}}RangeValue.prototype.startSide=RangeValue.prototype.endSide=0;RangeValue.prototype.point=!1;RangeValue.prototype.mapMode=MapMode.TrackDel;class Range{constructor(n,r,g){this.from=n,this.to=r,this.value=g}static create(n,r,g){return new Range(n,r,g)}}function cmpRange(e,n){return e.from-n.from||e.value.startSide-n.value.startSide}class Chunk{constructor(n,r,g,$){this.from=n,this.to=r,this.value=g,this.maxPoint=$}get length(){return this.to[this.to.length-1]}findIndex(n,r,g,$=0){let L=g?this.to:this.from;for(let k=$,oe=L.length;;){if(k==oe)return k;let re=k+oe>>1,ae=L[re]-n||(g?this.value[re].endSide:this.value[re].startSide)-r;if(re==k)return ae>=0?k:oe;ae>=0?oe=re:k=re+1}}between(n,r,g,$){for(let L=this.findIndex(r,-1e9,!0),k=this.findIndex(g,1e9,!1,L);Lde||pe==de&&ae.startSide>0&&ae.endSide<=0)continue;(de-pe||ae.endSide-ae.startSide)<0||(k<0&&(k=pe),ae.point&&(oe=Math.max(oe,de-pe)),g.push(ae),$.push(pe-k),L.push(de-k))}return{mapped:g.length?new Chunk($,L,g,oe):null,pos:k}}}class RangeSet{constructor(n,r,g,$){this.chunkPos=n,this.chunk=r,this.nextLayer=g,this.maxPoint=$}static create(n,r,g,$){return new RangeSet(n,r,g,$)}get length(){let n=this.chunk.length-1;return n<0?0:Math.max(this.chunkEnd(n),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let n=this.nextLayer.size;for(let r of this.chunk)n+=r.value.length;return n}chunkEnd(n){return this.chunkPos[n]+this.chunk[n].length}update(n){let{add:r=[],sort:g=!1,filterFrom:$=0,filterTo:L=this.length}=n,k=n.filter;if(r.length==0&&!k)return this;if(g&&(r=r.slice().sort(cmpRange)),this.isEmpty)return r.length?RangeSet.of(r):this;let oe=new LayerCursor(this,null,-1).goto(0),re=0,ae=[],le=new RangeSetBuilder;for(;oe.value||re=0){let ue=r[re++];le.addInner(ue.from,ue.to,ue.value)||ae.push(ue)}else oe.rangeIndex==1&&oe.chunkIndexthis.chunkEnd(oe.chunkIndex)||Loe.to||L=L&&n<=L+k.length&&k.between(L,n-L,r-L,g)===!1)return}this.nextLayer.between(n,r,g)}}iter(n=0){return HeapCursor.from([this]).goto(n)}get isEmpty(){return this.nextLayer==this}static iter(n,r=0){return HeapCursor.from(n).goto(r)}static compare(n,r,g,$,L=-1){let k=n.filter(ue=>ue.maxPoint>0||!ue.isEmpty&&ue.maxPoint>=L),oe=r.filter(ue=>ue.maxPoint>0||!ue.isEmpty&&ue.maxPoint>=L),re=findSharedChunks(k,oe,g),ae=new SpanCursor(k,re,L),le=new SpanCursor(oe,re,L);g.iterGaps((ue,pe,de)=>compare(ae,ue,le,pe,de,$)),g.empty&&g.length==0&&compare(ae,0,le,0,0,$)}static eq(n,r,g=0,$){$==null&&($=1e9);let L=n.filter(le=>!le.isEmpty&&r.indexOf(le)<0),k=r.filter(le=>!le.isEmpty&&n.indexOf(le)<0);if(L.length!=k.length)return!1;if(!L.length)return!0;let oe=findSharedChunks(L,k),re=new SpanCursor(L,oe,0).goto(g),ae=new SpanCursor(k,oe,0).goto(g);for(;;){if(re.to!=ae.to||!sameValues(re.active,ae.active)||re.point&&(!ae.point||!re.point.eq(ae.point)))return!1;if(re.to>$)return!0;re.next(),ae.next()}}static spans(n,r,g,$,L=-1){let k=new SpanCursor(n,null,L).goto(r),oe=r,re=k.openStart;for(;;){let ae=Math.min(k.to,g);if(k.point?($.point(oe,ae,k.point,k.activeForPoint(k.to),re,k.pointRank),re=k.openEnd(ae)+(k.to>ae?1:0)):ae>oe&&($.span(oe,ae,k.active,re),re=k.openEnd(ae)),k.to>g)break;oe=k.to,k.next()}return re}static of(n,r=!1){let g=new RangeSetBuilder;for(let $ of n instanceof Range?[n]:r?lazySort(n):n)g.add($.from,$.to,$.value);return g.finish()}}RangeSet.empty=new RangeSet([],[],null,-1);function lazySort(e){if(e.length>1)for(let n=e[0],r=1;r0)return e.slice().sort(cmpRange);n=g}return e}RangeSet.empty.nextLayer=RangeSet.empty;class RangeSetBuilder{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(n){this.chunks.push(new Chunk(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,n&&(this.from=[],this.to=[],this.value=[])}add(n,r,g){this.addInner(n,r,g)||(this.nextLayer||(this.nextLayer=new RangeSetBuilder)).add(n,r,g)}addInner(n,r,g){let $=n-this.lastTo||g.startSide-this.last.endSide;if($<=0&&(n-this.lastFrom||g.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return $<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=n),this.from.push(n-this.chunkStart),this.to.push(r-this.chunkStart),this.last=g,this.lastFrom=n,this.lastTo=r,this.value.push(g),g.point&&(this.maxPoint=Math.max(this.maxPoint,r-n)),!0)}addChunk(n,r){if((n-this.lastTo||r.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,r.maxPoint),this.chunks.push(r),this.chunkPos.push(n);let g=r.value.length-1;return this.last=r.value[g],this.lastFrom=r.from[g]+n,this.lastTo=r.to[g]+n,!0}finish(){return this.finishInner(RangeSet.empty)}finishInner(n){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return n;let r=RangeSet.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(n):n,this.setMaxPoint);return this.from=null,r}}function findSharedChunks(e,n,r){let g=new Map;for(let L of e)for(let k=0;k=this.minPoint)break}}setRangeIndex(n){if(n==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=g&&$.push(new LayerCursor(k,r,g,L));return $.length==1?$[0]:new HeapCursor($)}get startSide(){return this.value?this.value.startSide:0}goto(n,r=-1e9){for(let g of this.heap)g.goto(n,r);for(let g=this.heap.length>>1;g>=0;g--)heapBubble(this.heap,g);return this.next(),this}forward(n,r){for(let g of this.heap)g.forward(n,r);for(let g=this.heap.length>>1;g>=0;g--)heapBubble(this.heap,g);(this.to-n||this.value.endSide-r)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let n=this.heap[0];this.from=n.from,this.to=n.to,this.value=n.value,this.rank=n.rank,n.value&&n.next(),heapBubble(this.heap,0)}}}function heapBubble(e,n){for(let r=e[n];;){let g=(n<<1)+1;if(g>=e.length)break;let $=e[g];if(g+1=0&&($=e[g+1],g++),r.compare($)<0)break;e[g]=r,e[n]=$,n=g}}class SpanCursor{constructor(n,r,g){this.minPoint=g,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=HeapCursor.from(n,r,g)}goto(n,r=-1e9){return this.cursor.goto(n,r),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=n,this.endSide=r,this.openStart=-1,this.next(),this}forward(n,r){for(;this.minActive>-1&&(this.activeTo[this.minActive]-n||this.active[this.minActive].endSide-r)<0;)this.removeActive(this.minActive);this.cursor.forward(n,r)}removeActive(n){remove(this.active,n),remove(this.activeTo,n),remove(this.activeRank,n),this.minActive=findMinIndex(this.active,this.activeTo)}addActive(n){let r=0,{value:g,to:$,rank:L}=this.cursor;for(;r-1&&(this.activeTo[L]-this.cursor.from||this.active[L].endSide-this.cursor.startSide)<0){if(this.activeTo[L]>n){this.to=this.activeTo[L],this.endSide=this.active[L].endSide;break}this.removeActive(L),g&&remove(g,L)}else if(this.cursor.value)if(this.cursor.from>n){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let k=this.cursor.value;if(!k.point)this.addActive(g),this.cursor.fromn&&$++,this.cursor.next();else if(r&&this.cursor.to==this.to&&this.cursor.from=0&&!(this.activeRank[g]n||this.activeTo[g]==n&&this.active[g].endSide>=this.point.endSide)&&r.push(this.active[g]);return r.reverse()}openEnd(n){let r=0;for(let g=this.activeTo.length-1;g>=0&&this.activeTo[g]>n;g--)r++;return r}}function compare(e,n,r,g,$,L){e.goto(n),r.goto(g);let k=g+$,oe=g,re=g-n;for(;;){let ae=e.to+re-r.to||e.endSide-r.endSide,le=ae<0?e.to+re:r.to,ue=Math.min(le,k);if(e.point||r.point?e.point&&r.point&&(e.point==r.point||e.point.eq(r.point))&&sameValues(e.activeForPoint(e.to+re),r.activeForPoint(r.to))||L.comparePoint(oe,ue,e.point,r.point):ue>oe&&!sameValues(e.active,r.active)&&L.compareRange(oe,ue,e.active,r.active),le>k)break;oe=le,ae<=0&&e.next(),ae>=0&&r.next()}}function sameValues(e,n){if(e.length!=n.length)return!1;for(let r=0;r=n;g--)e[g+1]=e[g];e[n]=r}function findMinIndex(e,n){let r=-1,g=1e9;for(let $=0;$=n)return $;if($==e.length)break;L+=e.charCodeAt($)==9?r-L%r:1,$=findClusterBreak(e,$)}return g===!0?-1:e.length}const C$1="\u037C",COUNT=typeof Symbol>"u"?"__"+C$1:Symbol.for(C$1),SET=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),top=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class StyleModule{constructor(n,r){this.rules=[];let{finish:g}=r||{};function $(k){return/^@/.test(k)?[k]:k.split(/,\s*/)}function L(k,oe,re,ae){let le=[],ue=/^@(\w+)\b/.exec(k[0]),pe=ue&&ue[1]=="keyframes";if(ue&&oe==null)return re.push(k[0]+";");for(let de in oe){let Fe=oe[de];if(/&/.test(de))L(de.split(/,\s*/).map(ze=>k.map(Ce=>ze.replace(/&/,Ce))).reduce((ze,Ce)=>ze.concat(Ce)),Fe,re);else if(Fe&&typeof Fe=="object"){if(!ue)throw new RangeError("The value of a property ("+de+") should be a primitive value.");L($(de),Fe,le,pe)}else Fe!=null&&le.push(de.replace(/_.*/,"").replace(/[A-Z]/g,ze=>"-"+ze.toLowerCase())+": "+Fe+";")}(le.length||pe)&&re.push((g&&!ue&&!ae?k.map(g):k).join(", ")+" {"+le.join(" ")+"}")}for(let k in n)L($(k),n[k],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let n=top[COUNT]||1;return top[COUNT]=n+1,C$1+n.toString(36)}static mount(n,r){(n[SET]||new StyleSet(n)).mount(Array.isArray(r)?r:[r])}}let adoptedSet=null;class StyleSet{constructor(n){if(!n.head&&n.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(adoptedSet)return n.adoptedStyleSheets=[adoptedSet.sheet].concat(n.adoptedStyleSheets),n[SET]=adoptedSet;this.sheet=new CSSStyleSheet,n.adoptedStyleSheets=[this.sheet].concat(n.adoptedStyleSheets),adoptedSet=this}else{this.styleTag=(n.ownerDocument||n).createElement("style");let r=n.head||n;r.insertBefore(this.styleTag,r.firstChild)}this.modules=[],n[SET]=this}mount(n){let r=this.sheet,g=0,$=0;for(let L=0;L-1&&(this.modules.splice(oe,1),$--,oe=-1),oe==-1){if(this.modules.splice($++,0,k),r)for(let re=0;re",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},chrome$1=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent);typeof navigator<"u"&&/Gecko\/\d+/.test(navigator.userAgent);var mac=typeof navigator<"u"&&/Mac/.test(navigator.platform),ie$1=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),brokenModifierNames=mac||chrome$1&&+chrome$1[1]<57;for(var i=0;i<10;i++)base[48+i]=base[96+i]=String(i);for(var i=1;i<=24;i++)base[i+111]="F"+i;for(var i=65;i<=90;i++)base[i]=String.fromCharCode(i+32),shift[i]=String.fromCharCode(i);for(var code in base)shift.hasOwnProperty(code)||(shift[code]=base[code]);function keyName(e){var n=brokenModifierNames&&(e.ctrlKey||e.altKey||e.metaKey)||ie$1&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",r=!n&&e.key||(e.shiftKey?shift:base)[e.keyCode]||e.key||"Unidentified";return r=="Esc"&&(r="Escape"),r=="Del"&&(r="Delete"),r=="Left"&&(r="ArrowLeft"),r=="Up"&&(r="ArrowUp"),r=="Right"&&(r="ArrowRight"),r=="Down"&&(r="ArrowDown"),r}function getSelection$1(e){let n;return e.nodeType==11?n=e.getSelection?e:e.ownerDocument:n=e,n.getSelection()}function contains(e,n){return n?e==n||e.contains(n.nodeType!=1?n.parentNode:n):!1}function deepActiveElement(){let e=document.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function hasSelection(e,n){if(!n.anchorNode)return!1;try{return contains(e,n.anchorNode)}catch{return!1}}function clientRectsFor(e){return e.nodeType==3?textRange(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function isEquivalentPosition(e,n,r,g){return r?scanFor(e,n,r,g,-1)||scanFor(e,n,r,g,1):!1}function domIndex(e){for(var n=0;;n++)if(e=e.previousSibling,!e)return n}function scanFor(e,n,r,g,$){for(;;){if(e==r&&n==g)return!0;if(n==($<0?0:maxOffset(e))){if(e.nodeName=="DIV")return!1;let L=e.parentNode;if(!L||L.nodeType!=1)return!1;n=domIndex(e)+($<0?0:1),e=L}else if(e.nodeType==1){if(e=e.childNodes[n+($<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;n=$<0?maxOffset(e):0}else return!1}}function maxOffset(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}const Rect0={left:0,right:0,top:0,bottom:0};function flattenRect(e,n){let r=n?e.left:e.right;return{left:r,right:r,top:e.top,bottom:e.bottom}}function windowRect(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function scrollRectIntoView(e,n,r,g,$,L,k,oe){let re=e.ownerDocument,ae=re.defaultView;for(let le=e;le;)if(le.nodeType==1){let ue,pe=le==re.body;if(pe)ue=windowRect(ae);else{if(le.scrollHeight<=le.clientHeight&&le.scrollWidth<=le.clientWidth){le=le.parentNode;continue}let ze=le.getBoundingClientRect();ue={left:ze.left,right:ze.left+le.clientWidth,top:ze.top,bottom:ze.top+le.clientHeight}}let de=0,Fe=0;if($=="nearest")n.top0&&n.bottom>ue.bottom+Fe&&(Fe=n.bottom-ue.bottom+Fe+k)):n.bottom>ue.bottom&&(Fe=n.bottom-ue.bottom+k,r<0&&n.top-Fe0&&n.right>ue.right+de&&(de=n.right-ue.right+de+L)):n.right>ue.right&&(de=n.right-ue.right+L,r<0&&n.leftr)return ue.domBoundsAround(n,r,ae);if(pe>=n&&$==-1&&($=re,L=ae),ae>r&&ue.dom.parentNode==this.dom){k=re,oe=le;break}le=pe,ae=pe+ue.breakAfter}return{from:L,to:oe<0?g+this.length:oe,startDOM:($?this.children[$-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:k=0?this.children[k].dom:null}}markDirty(n=!1){this.dirty|=2,this.markParentsDirty(n)}markParentsDirty(n){for(let r=this.parent;r;r=r.parent){if(n&&(r.dirty|=2),r.dirty&1)return;r.dirty|=1,n=!1}}setParent(n){this.parent!=n&&(this.parent=n,this.dirty&&this.markParentsDirty(!0))}setDOM(n){this.dom&&(this.dom.cmView=null),this.dom=n,n.cmView=this}get rootView(){for(let n=this;;){let r=n.parent;if(!r)return n;n=r}}replaceChildren(n,r,g=noChildren){this.markDirty();for(let $=n;$this.pos||n==this.pos&&(r>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=n-this.pos,this;let g=this.children[--this.i];this.pos-=g.length+g.breakAfter}}}function replaceRange(e,n,r,g,$,L,k,oe,re){let{children:ae}=e,le=ae.length?ae[n]:null,ue=L.length?L[L.length-1]:null,pe=ue?ue.breakAfter:k;if(!(n==g&&le&&!k&&!pe&&L.length<2&&le.merge(r,$,L.length?ue:null,r==0,oe,re))){if(g0&&(!k&&L.length&&le.merge(r,le.length,L[0],!1,oe,0)?le.breakAfter=L.shift().breakAfter:(r2);var browser={mac:ios||/Mac/.test(nav.platform),windows:/Win/.test(nav.platform),linux:/Linux|X11/.test(nav.platform),ie,ie_version:ie_upto10?doc.documentMode||6:ie_11up?+ie_11up[1]:ie_edge?+ie_edge[1]:0,gecko,gecko_version:gecko?+(/Firefox\/(\d+)/.exec(nav.userAgent)||[0,0])[1]:0,chrome:!!chrome,chrome_version:chrome?+chrome[1]:0,ios,android:/Android\b/.test(nav.userAgent),webkit,safari,webkit_version:webkit?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:doc.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const MaxJoinLen=256;class TextView extends ContentView{constructor(n){super(),this.text=n}get length(){return this.text.length}createDOM(n){this.setDOM(n||document.createTextNode(this.text))}sync(n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(n){n.nodeType==3&&this.createDOM(n)}merge(n,r,g){return g&&(!(g instanceof TextView)||this.length-(r-n)+g.length>MaxJoinLen)?!1:(this.text=this.text.slice(0,n)+(g?g.text:"")+this.text.slice(r),this.markDirty(),!0)}split(n){let r=new TextView(this.text.slice(n));return this.text=this.text.slice(0,n),this.markDirty(),r}localPosFromDOM(n,r){return n==this.dom?r:r?this.text.length:0}domAtPos(n){return new DOMPos(this.dom,n)}domBoundsAround(n,r,g){return{from:g,to:g+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(n,r){return textCoords(this.dom,n,r)}}class MarkView extends ContentView{constructor(n,r=[],g=0){super(),this.mark=n,this.children=r,this.length=g;for(let $ of r)$.setParent(this)}setAttrs(n){if(clearAttributes(n),this.mark.class&&(n.className=this.mark.class),this.mark.attrs)for(let r in this.mark.attrs)n.setAttribute(r,this.mark.attrs[r]);return n}reuseDOM(n){n.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(n),this.dirty|=6)}sync(n){this.dom?this.dirty&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(n)}merge(n,r,g,$,L,k){return g&&(!(g instanceof MarkView&&g.mark.eq(this.mark))||n&&L<=0||rn&&r.push(g=n&&($=L),g=re,L++}let k=this.length-n;return this.length=n,$>-1&&(this.children.length=$,this.markDirty()),new MarkView(this.mark,r,k)}domAtPos(n){return inlineDOMAtPos(this.dom,this.children,n)}coordsAt(n,r){return coordsInChildren(this,n,r)}}function textCoords(e,n,r){let g=e.nodeValue.length;n>g&&(n=g);let $=n,L=n,k=0;n==0&&r<0||n==g&&r>=0?browser.chrome||browser.gecko||(n?($--,k=1):L=0)?0:oe.length-1];return browser.safari&&!k&&re.width==0&&(re=Array.prototype.find.call(oe,ae=>ae.width)||re),k?flattenRect(re,k<0):re||null}class WidgetView extends ContentView{constructor(n,r,g){super(),this.widget=n,this.length=r,this.side=g,this.prevWidget=null}static create(n,r,g){return new(n.customView||WidgetView)(n,r,g)}split(n){let r=WidgetView.create(this.widget,this.length-n,this.side);return this.length-=n,r}sync(){(!this.dom||!this.widget.updateDOM(this.dom))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(n,r,g,$,L,k){return g&&(!(g instanceof WidgetView)||!this.widget.compare(g.widget)||n>0&&L<=0||r0?g.length-1:0;$=g[L],!(n>0?L==0:L==g.length-1||$.top<$.bottom);L+=n>0?-1:1);return n==0&&r>0||n==this.length&&r<=0?$:flattenRect($,n==0)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class CompositionView extends WidgetView{domAtPos(n){let{topView:r,text:g}=this.widget;return r?scanCompositionTree(n,0,r,g,($,L)=>$.domAtPos(L),$=>new DOMPos(g,Math.min($,g.nodeValue.length))):new DOMPos(g,Math.min(n,g.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(n,r){let{topView:g,text:$}=this.widget;return g?posFromDOMInCompositionTree(n,r,g,$):Math.min(r,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(n,r){let{topView:g,text:$}=this.widget;return g?scanCompositionTree(n,r,g,$,(L,k,oe)=>L.coordsAt(k,oe),(L,k)=>textCoords($,L,k)):textCoords($,n,r)}destroy(){var n;super.destroy(),(n=this.widget.topView)===null||n===void 0||n.destroy()}get isEditable(){return!0}}function scanCompositionTree(e,n,r,g,$,L){if(r instanceof MarkView){for(let k of r.children){let oe=contains(k.dom,g),re=oe?g.nodeValue.length:k.length;if(e0?-1:1);return g&&g.topr.top?{left:r.left,right:r.right,top:g.top,bottom:g.bottom}:r}get overrideDOMText(){return Text$1.empty}}TextView.prototype.children=WidgetView.prototype.children=WidgetBufferView.prototype.children=noChildren;function inlineSiblingRect(e,n){let r=e.parent,g=r?r.children.indexOf(e):-1;for(;r&&g>=0;)if(n<0?g>0:g$&&r0;g--){let $=n[g-1].dom;if($.parentNode==e)return DOMPos.after($)}return new DOMPos(e,0)}function joinInlineInto(e,n,r){let g,{children:$}=e;r>0&&n instanceof MarkView&&$.length&&(g=$[$.length-1])instanceof MarkView&&g.mark.eq(n.mark)?joinInlineInto(g,n.children[0],r-1):($.push(n),n.setParent(e)),e.length+=n.length}function coordsInChildren(e,n,r){for(let L=0,k=0;k0?re>=n:re>n)&&(n0)){let le=0;if(re==L){if(oe.getSide()<=0)continue;le=r=-oe.getSide()}let ue=oe.coordsAt(Math.max(0,n-L),r);return le&&ue?flattenRect(ue,r<0):ue}L=re}let g=e.dom.lastChild;if(!g)return e.dom.getBoundingClientRect();let $=clientRectsFor(g);return $[$.length-1]||null}function combineAttrs(e,n){for(let r in e)r=="class"&&n.class?n.class+=" "+e.class:r=="style"&&n.style?n.style+=";"+e.style:n[r]=e[r];return n}function attrsEq(e,n){if(e==n)return!0;if(!e||!n)return!1;let r=Object.keys(e),g=Object.keys(n);if(r.length!=g.length)return!1;for(let $ of r)if(g.indexOf($)==-1||e[$]!==n[$])return!1;return!0}function updateAttrs(e,n,r){let g=null;if(n)for(let $ in n)r&&$ in r||e.removeAttribute(g=$);if(r)for(let $ in r)n&&n[$]==r[$]||e.setAttribute(g=$,r[$]);return!!g}class WidgetType{eq(n){return!1}updateDOM(n){return!1}compare(n){return this==n||this.constructor==n.constructor&&this.eq(n)}get estimatedHeight(){return-1}ignoreEvent(n){return!0}get customView(){return null}destroy(n){}}var BlockType=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(BlockType||(BlockType={}));class Decoration extends RangeValue{constructor(n,r,g,$){super(),this.startSide=n,this.endSide=r,this.widget=g,this.spec=$}get heightRelevant(){return!1}static mark(n){return new MarkDecoration(n)}static widget(n){let r=n.side||0,g=!!n.block;return r+=g?r>0?3e8:-4e8:r>0?1e8:-1e8,new PointDecoration(n,r,r,g,n.widget||null,!1)}static replace(n){let r=!!n.block,g,$;if(n.isBlockGap)g=-5e8,$=4e8;else{let{start:L,end:k}=getInclusive(n,r);g=(L?r?-3e8:-1:5e8)-1,$=(k?r?2e8:1:-6e8)+1}return new PointDecoration(n,g,$,r,n.widget||null,!0)}static line(n){return new LineDecoration(n)}static set(n,r=!1){return RangeSet.of(n,r)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Decoration.none=RangeSet.empty;class MarkDecoration extends Decoration{constructor(n){let{start:r,end:g}=getInclusive(n);super(r?-1:5e8,g?1:-6e8,null,n),this.tagName=n.tagName||"span",this.class=n.class||"",this.attrs=n.attributes||null}eq(n){return this==n||n instanceof MarkDecoration&&this.tagName==n.tagName&&this.class==n.class&&attrsEq(this.attrs,n.attrs)}range(n,r=n){if(n>=r)throw new RangeError("Mark decorations may not be empty");return super.range(n,r)}}MarkDecoration.prototype.point=!1;class LineDecoration extends Decoration{constructor(n){super(-2e8,-2e8,null,n)}eq(n){return n instanceof LineDecoration&&attrsEq(this.spec.attributes,n.spec.attributes)}range(n,r=n){if(r!=n)throw new RangeError("Line decoration ranges must be zero-length");return super.range(n,r)}}LineDecoration.prototype.mapMode=MapMode.TrackBefore;LineDecoration.prototype.point=!0;class PointDecoration extends Decoration{constructor(n,r,g,$,L,k){super(r,g,L,n),this.block=$,this.isReplace=k,this.mapMode=$?r<=0?MapMode.TrackBefore:MapMode.TrackAfter:MapMode.TrackDel}get type(){return this.startSide=5}eq(n){return n instanceof PointDecoration&&widgetsEq(this.widget,n.widget)&&this.block==n.block&&this.startSide==n.startSide&&this.endSide==n.endSide}range(n,r=n){if(this.isReplace&&(n>r||n==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=n)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(n,r)}}PointDecoration.prototype.point=!0;function getInclusive(e,n=!1){let{inclusiveStart:r,inclusiveEnd:g}=e;return r==null&&(r=e.inclusive),g==null&&(g=e.inclusive),{start:r??n,end:g??n}}function widgetsEq(e,n){return e==n||!!(e&&n&&e.compare(n))}function addRange(e,n,r,g=0){let $=r.length-1;$>=0&&r[$]+g>=e?r[$]=Math.max(r[$],n):r.push(e,n)}class LineView extends ContentView{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(n,r,g,$,L,k){if(g){if(!(g instanceof LineView))return!1;this.dom||g.transferDOM(this)}return $&&this.setDeco(g?g.attrs:null),mergeChildrenInto(this,n,r,g?g.children:[],L,k),!0}split(n){let r=new LineView;if(r.breakAfter=this.breakAfter,this.length==0)return r;let{i:g,off:$}=this.childPos(n);$&&(r.append(this.children[g].split($),0),this.children[g].merge($,this.children[g].length,null,!1,0,0),g++);for(let L=g;L0&&this.children[g-1].length==0;)this.children[--g].destroy();return this.children.length=g,this.markDirty(),this.length=n,r}transferDOM(n){!this.dom||(this.markDirty(),n.setDOM(this.dom),n.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(n){attrsEq(this.attrs,n)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=n)}append(n,r){joinInlineInto(this,n,r)}addLineDeco(n){let r=n.spec.attributes,g=n.spec.class;r&&(this.attrs=combineAttrs(r,this.attrs||{})),g&&(this.attrs=combineAttrs({class:g},this.attrs||{}))}domAtPos(n){return inlineDOMAtPos(this.dom,this.children,n)}reuseDOM(n){n.nodeName=="DIV"&&(this.setDOM(n),this.dirty|=6)}sync(n){var r;this.dom?this.dirty&4&&(clearAttributes(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(updateAttrs(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(n);let g=this.dom.lastChild;for(;g&&ContentView.get(g)instanceof MarkView;)g=g.lastChild;if(!g||!this.length||g.nodeName!="BR"&&((r=ContentView.get(g))===null||r===void 0?void 0:r.isEditable)==!1&&(!browser.ios||!this.children.some($=>$ instanceof TextView))){let $=document.createElement("BR");$.cmIgnore=!0,this.dom.appendChild($)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let n=0;for(let r of this.children){if(!(r instanceof TextView)||/[^ -~]/.test(r.text))return null;let g=clientRectsFor(r.dom);if(g.length!=1)return null;n+=g[0].width}return n?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:n/this.length}:null}coordsAt(n,r){return coordsInChildren(this,n,r)}become(n){return!1}get type(){return BlockType.Text}static find(n,r){for(let g=0,$=0;g=r){if(L instanceof LineView)return L;if(k>r)break}$=k+L.breakAfter}return null}}class BlockWidgetView extends ContentView{constructor(n,r,g){super(),this.widget=n,this.length=r,this.type=g,this.breakAfter=0,this.prevWidget=null}merge(n,r,g,$,L,k){return g&&(!(g instanceof BlockWidgetView)||!this.widget.compare(g.widget)||n>0&&L<=0||r0;){if(this.textOff==this.text.length){let{value:L,lineBreak:k,done:oe}=this.cursor.next(this.skip);if(this.skip=0,oe)throw new Error("Ran out of text content when drawing inline views");if(k){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,n--;continue}else this.text=L,this.textOff=0}let $=Math.min(this.text.length-this.textOff,n,512);this.flushBuffer(r.slice(0,g)),this.getLine().append(wrapMarks(new TextView(this.text.slice(this.textOff,this.textOff+$)),r),g),this.atCursorPos=!0,this.textOff+=$,n-=$,g=0}}span(n,r,g,$){this.buildText(r-n,g,$),this.pos=r,this.openStart<0&&(this.openStart=$)}point(n,r,g,$,L,k){if(this.disallowBlockEffectsFor[k]&&g instanceof PointDecoration){if(g.block)throw new RangeError("Block decorations may not be specified via plugins");if(r>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let oe=r-n;if(g instanceof PointDecoration)if(g.block){let{type:re}=g;re==BlockType.WidgetAfter&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new BlockWidgetView(g.widget||new NullWidget("div"),oe,re))}else{let re=WidgetView.create(g.widget||new NullWidget("span"),oe,g.startSide),ae=this.atCursorPos&&!re.isEditable&&L<=$.length&&(n0),le=!re.isEditable&&(ne.some(n=>n)});class ScrollTarget{constructor(n,r="nearest",g="nearest",$=5,L=5){this.range=n,this.y=r,this.x=g,this.yMargin=$,this.xMargin=L}map(n){return n.empty?this:new ScrollTarget(this.range.map(n),this.y,this.x,this.yMargin,this.xMargin)}}const scrollIntoView$1=StateEffect.define({map:(e,n)=>e.map(n)});function logException(e,n,r){let g=e.facet(exceptionSink);g.length?g[0](n):window.onerror?window.onerror(String(n),r,void 0,void 0,n):r?console.error(r+":",n):console.error(n)}const editable=Facet.define({combine:e=>e.length?e[0]:!0});let nextPluginID=0;const viewPlugin=Facet.define();class ViewPlugin{constructor(n,r,g,$){this.id=n,this.create=r,this.domEventHandlers=g,this.extension=$(this)}static define(n,r){const{eventHandlers:g,provide:$,decorations:L}=r||{};return new ViewPlugin(nextPluginID++,n,g,k=>{let oe=[viewPlugin.of(k)];return L&&oe.push(decorations.of(re=>{let ae=re.plugin(k);return ae?L(ae):Decoration.none})),$&&oe.push($(k)),oe})}static fromClass(n,r){return ViewPlugin.define(g=>new n(g),r)}}class PluginInstance{constructor(n){this.spec=n,this.mustUpdate=null,this.value=null}update(n){if(this.value){if(this.mustUpdate){let r=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(r)}catch(g){if(logException(r.state,g,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(n)}catch(r){logException(n.state,r,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(n){var r;if(!((r=this.value)===null||r===void 0)&&r.destroy)try{this.value.destroy()}catch(g){logException(n.state,g,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const editorAttributes=Facet.define(),contentAttributes=Facet.define(),decorations=Facet.define(),atomicRanges=Facet.define(),scrollMargins=Facet.define(),styleModule=Facet.define();class ChangedRange{constructor(n,r,g,$){this.fromA=n,this.toA=r,this.fromB=g,this.toB=$}join(n){return new ChangedRange(Math.min(this.fromA,n.fromA),Math.max(this.toA,n.toA),Math.min(this.fromB,n.fromB),Math.max(this.toB,n.toB))}addToSet(n){let r=n.length,g=this;for(;r>0;r--){let $=n[r-1];if(!($.fromA>g.toA)){if($.toAle)break;L+=2}if(!re)return g;new ChangedRange(re.fromA,re.toA,re.fromB,re.toB).addToSet(g),k=re.toA,oe=re.toB}}}class ViewUpdate{constructor(n,r,g){this.view=n,this.state=r,this.transactions=g,this.flags=0,this.startState=n.state,this.changes=ChangeSet.empty(this.startState.doc.length);for(let k of g)this.changes=this.changes.compose(k.changes);let $=[];this.changes.iterChangedRanges((k,oe,re,ae)=>$.push(new ChangedRange(k,oe,re,ae))),this.changedRanges=$;let L=n.hasFocus;L!=n.inputState.notifiedFocused&&(n.inputState.notifiedFocused=L,this.flags|=1)}static create(n,r,g){return new ViewUpdate(n,r,g)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(n=>n.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var Direction=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Direction||(Direction={}));const LTR=Direction.LTR,RTL=Direction.RTL;function dec(e){let n=[];for(let r=0;r=r){if(oe.level==g)return k;(L<0||($!=0?$<0?oe.fromr:n[L].level>oe.level))&&(L=k)}}if(L<0)throw new RangeError("Index out of range");return L}}const types=[];function computeOrder(e,n){let r=e.length,g=n==LTR?1:2,$=n==LTR?2:1;if(!e||g==1&&!BidiRE.test(e))return trivialOrder(r);for(let k=0,oe=g,re=g;k=0;pe-=3)if(BracketStack[pe+1]==-le){let de=BracketStack[pe+2],Fe=de&2?g:de&4?de&1?$:g:0;Fe&&(types[k]=types[BracketStack[pe]]=Fe),oe=pe;break}}else{if(BracketStack.length==189)break;BracketStack[oe++]=k,BracketStack[oe++]=ae,BracketStack[oe++]=re}else if((ue=types[k])==2||ue==1){let pe=ue==g;re=pe?0:1;for(let de=oe-3;de>=0;de-=3){let Fe=BracketStack[de+2];if(Fe&2)break;if(pe)BracketStack[de+2]|=2;else{if(Fe&4)break;BracketStack[de+2]|=4}}}for(let k=0;koe;){let le=ae,ue=types[--ae]!=2;for(;ae>oe&&ue==(types[ae-1]!=2);)ae--;L.push(new BidiSpan(ae,le,ue?2:1))}else L.push(new BidiSpan(oe,k,0))}else for(let k=0;k1)for(let re of this.points)re.node==n&&re.pos>this.text.length&&(re.pos-=k-1);g=L+k}}readNode(n){if(n.cmIgnore)return;let r=ContentView.get(n),g=r&&r.overrideDOMText;if(g!=null){this.findPointInside(n,g.length);for(let $=g.iter();!$.next().done;)$.lineBreak?this.lineBreak():this.append($.value)}else n.nodeType==3?this.readTextNode(n):n.nodeName=="BR"?n.nextSibling&&this.lineBreak():n.nodeType==1&&this.readRange(n.firstChild,null)}findPointBefore(n,r){for(let g of this.points)g.node==n&&n.childNodes[g.offset]==r&&(g.pos=this.text.length)}findPointInside(n,r){for(let g of this.points)(n.nodeType==3?g.node==n:n.contains(g.node))&&(g.pos=this.text.length+Math.min(r,g.offset))}}function isBlockElement(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class DOMPoint{constructor(n,r){this.node=n,this.offset=r,this.pos=-1}}class DocView extends ContentView{constructor(n){super(),this.view=n,this.compositionDeco=Decoration.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(n.contentDOM),this.children=[new LineView],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new ChangedRange(0,0,0,n.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(n){let r=n.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:k,toA:oe})=>oethis.minWidthTo)?(this.minWidthFrom=n.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=n.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Decoration.none:(n.transactions.length||this.dirty)&&(this.compositionDeco=computeCompositionDeco(this.view,n.changes)),(browser.ie||browser.chrome)&&!this.compositionDeco.size&&n&&n.state.doc.lines!=n.startState.doc.lines&&(this.forceSelection=!0);let g=this.decorations,$=this.updateDeco(),L=findChangedDeco(g,$,n.changes);return r=ChangedRange.extendWithRanges(r,L),this.dirty==0&&r.length==0?!1:(this.updateInner(r,n.startState.doc.length),n.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(n,r);let{observer:g}=this.view;g.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let L=browser.chrome||browser.ios?{node:g.selectionRange.focusNode,written:!1}:void 0;this.sync(L),this.dirty=0,L&&(L.written||g.selectionRange.focusNode!=L.node)&&(this.forceSelection=!0),this.dom.style.height=""});let $=[];if(this.view.viewport.from||this.view.viewport.to=0?n[$]:null;if(!L)break;let{fromA:k,toA:oe,fromB:re,toB:ae}=L,{content:le,breakAtStart:ue,openStart:pe,openEnd:de}=ContentBuilder.build(this.view.state.doc,re,ae,this.decorations,this.dynamicDecorationMap),{i:Fe,off:ze}=g.findPos(oe,1),{i:Ce,off:Ie}=g.findPos(k,-1);replaceRange(this,Ce,Ie,Fe,ze,le,ue,pe,de)}}updateSelection(n=!1,r=!1){if((n||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange(),!(r||this.mayControlSelection())||browser.ios&&this.view.inputState.rapidCompositionStart)return;let g=this.forceSelection;this.forceSelection=!1;let $=this.view.state.selection.main,L=this.domAtPos($.anchor),k=$.empty?L:this.domAtPos($.head);if(browser.gecko&&$.empty&&betweenUneditable(L)){let re=document.createTextNode("");this.view.observer.ignore(()=>L.node.insertBefore(re,L.node.childNodes[L.offset]||null)),L=k=new DOMPos(re,0),g=!0}let oe=this.view.observer.selectionRange;(g||!oe.focusNode||!isEquivalentPosition(L.node,L.offset,oe.anchorNode,oe.anchorOffset)||!isEquivalentPosition(k.node,k.offset,oe.focusNode,oe.focusOffset))&&(this.view.observer.ignore(()=>{browser.android&&browser.chrome&&this.dom.contains(oe.focusNode)&&inUneditable(oe.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let re=getSelection$1(this.view.root);if(re)if($.empty){if(browser.gecko){let ae=nextToUneditable(L.node,L.offset);if(ae&&ae!=3){let le=nearbyTextNode(L.node,L.offset,ae==1?1:-1);le&&(L=new DOMPos(le,ae==1?0:le.nodeValue.length))}}re.collapse(L.node,L.offset),$.bidiLevel!=null&&oe.cursorBidiLevel!=null&&(oe.cursorBidiLevel=$.bidiLevel)}else if(re.extend)re.collapse(L.node,L.offset),re.extend(k.node,k.offset);else{let ae=document.createRange();$.anchor>$.head&&([L,k]=[k,L]),ae.setEnd(k.node,k.offset),ae.setStart(L.node,L.offset),re.removeAllRanges(),re.addRange(ae)}}),this.view.observer.setSelectionRange(L,k)),this.impreciseAnchor=L.precise?null:new DOMPos(oe.anchorNode,oe.anchorOffset),this.impreciseHead=k.precise?null:new DOMPos(oe.focusNode,oe.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let n=this.view.state.selection.main,r=getSelection$1(this.view.root);if(!r||!n.empty||!n.assoc||!r.modify)return;let g=LineView.find(this,n.head);if(!g)return;let $=g.posAtStart;if(n.head==$||n.head==$+g.length)return;let L=this.coordsAt(n.head,-1),k=this.coordsAt(n.head,1);if(!L||!k||L.bottom>k.top)return;let oe=this.domAtPos(n.head+n.assoc);r.collapse(oe.node,oe.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary")}mayControlSelection(){let n=this.view.root.activeElement;return n==this.dom||hasSelection(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n))}nearest(n){for(let r=n;r;){let g=ContentView.get(r);if(g&&g.rootView==this)return g;r=r.parentNode}return null}posFromDOM(n,r){let g=this.nearest(n);if(!g)throw new RangeError("Trying to find position for a DOM position outside of the document");return g.localPosFromDOM(n,r)+g.posAtStart}domAtPos(n){let{i:r,off:g}=this.childCursor().findPos(n,-1);for(;rk||n==k&&L.type!=BlockType.WidgetBefore&&L.type!=BlockType.WidgetAfter&&(!$||r==2||this.children[$-1].breakAfter||this.children[$-1].type==BlockType.WidgetBefore&&r>-2))return L.coordsAt(n-k,r);g=k}}measureVisibleLineHeights(n){let r=[],{from:g,to:$}=n,L=this.view.contentDOM.clientWidth,k=L>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,oe=-1,re=this.view.textDirection==Direction.LTR;for(let ae=0,le=0;le$)break;if(ae>=g){let de=ue.dom.getBoundingClientRect();if(r.push(de.height),k){let Fe=ue.dom.lastChild,ze=Fe?clientRectsFor(Fe):[];if(ze.length){let Ce=ze[ze.length-1],Ie=re?Ce.right-de.left:de.right-Ce.left;Ie>oe&&(oe=Ie,this.minWidth=L,this.minWidthFrom=ae,this.minWidthTo=pe)}}}ae=pe+ue.breakAfter}return r}textDirectionAt(n){let{i:r}=this.childPos(n,1);return getComputedStyle(this.children[r].dom).direction=="rtl"?Direction.RTL:Direction.LTR}measureTextSize(){for(let $ of this.children)if($ instanceof LineView){let L=$.measureTextSize();if(L)return L}let n=document.createElement("div"),r,g;return n.className="cm-line",n.style.width="99999px",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(n);let $=clientRectsFor(n.firstChild)[0];r=n.getBoundingClientRect().height,g=$?$.width/27:7,n.remove()}),{lineHeight:r,charWidth:g}}childCursor(n=this.length){let r=this.children.length;return r&&(n-=this.children[--r].length),new ChildCursor(this.children,n,r)}computeBlockGapDeco(){let n=[],r=this.view.viewState;for(let g=0,$=0;;$++){let L=$==r.viewports.length?null:r.viewports[$],k=L?L.from-1:this.length;if(k>g){let oe=r.lineBlockAt(k).bottom-r.lineBlockAt(g).top;n.push(Decoration.replace({widget:new BlockGapWidget(oe),block:!0,inclusive:!0,isBlockGap:!0}).range(g,k))}if(!L)break;g=L.to+1}return Decoration.set(n)}updateDeco(){let n=this.view.state.facet(decorations).map((r,g)=>(this.dynamicDecorationMap[g]=typeof r=="function")?r(this.view):r);for(let r=n.length;rr.anchor?-1:1),$;if(!g)return;!r.empty&&($=this.coordsAt(r.anchor,r.anchor>r.head?-1:1))&&(g={left:Math.min(g.left,$.left),top:Math.min(g.top,$.top),right:Math.max(g.right,$.right),bottom:Math.max(g.bottom,$.bottom)});let L=0,k=0,oe=0,re=0;for(let le of this.view.state.facet(scrollMargins).map(ue=>ue(this.view)))if(le){let{left:ue,right:pe,top:de,bottom:Fe}=le;ue!=null&&(L=Math.max(L,ue)),pe!=null&&(k=Math.max(k,pe)),de!=null&&(oe=Math.max(oe,de)),Fe!=null&&(re=Math.max(re,Fe))}let ae={left:g.left-L,top:g.top-oe,right:g.right+k,bottom:g.bottom+re};scrollRectIntoView(this.view.scrollDOM,ae,r.head0&&r<=0)e=e.childNodes[n-1],n=maxOffset(e);else if(e.nodeType==1&&n=0)e=e.childNodes[n],n=0;else return null}}function nextToUneditable(e,n){return e.nodeType!=1?0:(n&&e.childNodes[n-1].contentEditable=="false"?1:0)|(n0;){let ae=findClusterBreak($.text,k,!1);if(g($.text.slice(ae,k))!=re)break;k=ae}for(;oe<$.length;){let ae=findClusterBreak($.text,oe);if(g($.text.slice(oe,ae))!=re)break;oe=ae}return EditorSelection.range(k+$.from,oe+$.from)}function getdx(e,n){return n.left>e?n.left-e:Math.max(0,e-n.right)}function getdy(e,n){return n.top>e?n.top-e:Math.max(0,e-n.bottom)}function yOverlap(e,n){return e.topn.top+1}function upTop(e,n){return ne.bottom?{top:e.top,left:e.left,right:e.right,bottom:n}:e}function domPosAtCoords(e,n,r){let g,$,L,k,oe=!1,re,ae,le,ue;for(let Fe=e.firstChild;Fe;Fe=Fe.nextSibling){let ze=clientRectsFor(Fe);for(let Ce=0;CeAt||k==At&&L>_e)&&(g=Fe,$=Ie,L=_e,k=At,oe=!_e||(_e>0?Ce0)),_e==0?r>Ie.bottom&&(!le||le.bottomIe.top)&&(ae=Fe,ue=Ie):le&&yOverlap(le,Ie)?le=upBot(le,Ie.bottom):ue&&yOverlap(ue,Ie)&&(ue=upTop(ue,Ie.top))}}if(le&&le.bottom>=r?(g=re,$=le):ue&&ue.top<=r&&(g=ae,$=ue),!g)return{node:e,offset:0};let pe=Math.max($.left,Math.min($.right,n));if(g.nodeType==3)return domPosInText(g,pe,r);if(oe&&g.contentEditable!="false")return domPosAtCoords(g,pe,r);let de=Array.prototype.indexOf.call(e.childNodes,g)+(n>=($.left+$.right)/2?1:0);return{node:e,offset:de}}function domPosInText(e,n,r){let g=e.nodeValue.length,$=-1,L=1e9,k=0;for(let oe=0;oer?le.top-r:r-le.bottom)-1;if(le.left-1<=n&&le.right+1>=n&&ue=(le.left+le.right)/2,de=pe;if((browser.chrome||browser.gecko)&&textRange(e,oe).getBoundingClientRect().left==le.right&&(de=!pe),ue<=0)return{node:e,offset:oe+(de?1:0)};$=oe+(de?1:0),L=ue}}}return{node:e,offset:$>-1?$:k>0?e.nodeValue.length:0}}function posAtCoords(e,{x:n,y:r},g,$=-1){var L;let k=e.contentDOM.getBoundingClientRect(),oe=k.top+e.viewState.paddingTop,re,{docHeight:ae}=e.viewState,le=r-oe;if(le<0)return 0;if(le>ae)return e.state.doc.length;for(let Ie=e.defaultLineHeight/2,_e=!1;re=e.elementAtHeight(le),re.type!=BlockType.Text;)for(;le=$>0?re.bottom+Ie:re.top-Ie,!(le>=0&&le<=ae);){if(_e)return g?null:0;_e=!0,$=-$}r=oe+le;let ue=re.from;if(uee.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:g?null:posAtCoordsImprecise(e,k,re,n,r);let pe=e.dom.ownerDocument,de=e.root.elementFromPoint?e.root:pe,Fe=de.elementFromPoint(n,r);Fe&&!e.contentDOM.contains(Fe)&&(Fe=null),Fe||(n=Math.max(k.left+1,Math.min(k.right-1,n)),Fe=de.elementFromPoint(n,r),Fe&&!e.contentDOM.contains(Fe)&&(Fe=null));let ze,Ce=-1;if(Fe&&((L=e.docView.nearest(Fe))===null||L===void 0?void 0:L.isEditable)!=!1){if(pe.caretPositionFromPoint){let Ie=pe.caretPositionFromPoint(n,r);Ie&&({offsetNode:ze,offset:Ce}=Ie)}else if(pe.caretRangeFromPoint){let Ie=pe.caretRangeFromPoint(n,r);Ie&&({startContainer:ze,startOffset:Ce}=Ie,(!e.contentDOM.contains(ze)||browser.safari&&isSuspiciousSafariCaretResult(ze,Ce,n)||browser.chrome&&isSuspiciousChromeCaretResult(ze,Ce,n))&&(ze=void 0))}}if(!ze||!e.docView.dom.contains(ze)){let Ie=LineView.find(e.docView,ue);if(!Ie)return le>re.top+re.height/2?re.to:re.from;({node:ze,offset:Ce}=domPosAtCoords(Ie.dom,n,r))}return e.docView.posFromDOM(ze,Ce)}function posAtCoordsImprecise(e,n,r,g,$){let L=Math.round((g-n.left)*e.defaultCharacterWidth);e.lineWrapping&&r.height>e.defaultLineHeight*1.5&&(L+=Math.floor(($-r.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength);let k=e.state.sliceDoc(r.from,r.to);return r.from+findColumn(k,L,e.state.tabSize)}function isSuspiciousSafariCaretResult(e,n,r){let g;if(e.nodeType!=3||n!=(g=e.nodeValue.length))return!1;for(let $=e.nextSibling;$;$=$.nextSibling)if($.nodeType!=1||$.nodeName!="BR")return!1;return textRange(e,g-1,g).getBoundingClientRect().left>r}function isSuspiciousChromeCaretResult(e,n,r){if(n!=0)return!1;for(let $=e;;){let L=$.parentNode;if(!L||L.nodeType!=1||L.firstChild!=$)return!1;if(L.classList.contains("cm-line"))break;$=L}let g=e.nodeType==1?e.getBoundingClientRect():textRange(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return r-g.left>5}function moveToLineBoundary(e,n,r,g){let $=e.state.doc.lineAt(n.head),L=!g||!e.lineWrapping?null:e.coordsAtPos(n.assoc<0&&n.head>$.from?n.head-1:n.head);if(L){let re=e.dom.getBoundingClientRect(),ae=e.textDirectionAt($.from),le=e.posAtCoords({x:r==(ae==Direction.LTR)?re.right-1:re.left+1,y:(L.top+L.bottom)/2});if(le!=null)return EditorSelection.cursor(le,r?-1:1)}let k=LineView.find(e.docView,n.head),oe=k?r?k.posAtEnd:k.posAtStart:r?$.to:$.from;return EditorSelection.cursor(oe,r?-1:1)}function moveByChar(e,n,r,g){let $=e.state.doc.lineAt(n.head),L=e.bidiSpans($),k=e.textDirectionAt($.from);for(let oe=n,re=null;;){let ae=moveVisually($,L,k,oe,r),le=movedOver;if(!ae){if($.number==(r?e.state.doc.lines:1))return oe;le=` +`,$=e.state.doc.line($.number+(r?1:-1)),L=e.bidiSpans($),ae=EditorSelection.cursor(r?$.from:$.to)}if(re){if(!re(le))return oe}else{if(!g)return ae;re=g(le)}oe=ae}}function byGroup(e,n,r){let g=e.state.charCategorizer(n),$=g(r);return L=>{let k=g(L);return $==CharCategory.Space&&($=k),$==k}}function moveVertically(e,n,r,g){let $=n.head,L=r?1:-1;if($==(r?e.state.doc.length:0))return EditorSelection.cursor($,n.assoc);let k=n.goalColumn,oe,re=e.contentDOM.getBoundingClientRect(),ae=e.coordsAtPos($),le=e.documentTop;if(ae)k==null&&(k=ae.left-re.left),oe=L<0?ae.top:ae.bottom;else{let de=e.viewState.lineBlockAt($);k==null&&(k=Math.min(re.right-re.left,e.defaultCharacterWidth*($-de.from))),oe=(L<0?de.top:de.bottom)+le}let ue=re.left+k,pe=g??e.defaultLineHeight>>1;for(let de=0;;de+=10){let Fe=oe+(pe+de)*L,ze=posAtCoords(e,{x:ue,y:Fe},!1,L);if(Fere.bottom||(L<0?ze<$:ze>$))return EditorSelection.cursor(ze,n.assoc,void 0,k)}}function skipAtoms(e,n,r){let g=e.state.facet(atomicRanges).map($=>$(e));for(;;){let $=!1;for(let L of g)L.between(r.from-1,r.from+1,(k,oe,re)=>{r.from>k&&r.fromr.from?EditorSelection.cursor(k,1):EditorSelection.cursor(oe,-1),$=!0)});if(!$)return r}}class InputState{constructor(n){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null;for(let r in handlers){let g=handlers[r];n.contentDOM.addEventListener(r,$=>{!eventBelongsToEditor(n,$)||this.ignoreDuringComposition($)||r=="keydown"&&this.keydown(n,$)||(this.mustFlushObserver($)&&n.observer.forceFlush(),this.runCustomHandlers(r,n,$)?$.preventDefault():g(n,$))},handlerOptions[r]),this.registeredEvents.push(r)}browser.chrome&&browser.chrome_version==102&&n.scrollDOM.addEventListener("wheel",()=>{this.chromeScrollHack<0?n.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout(()=>{this.chromeScrollHack=-1,n.contentDOM.style.pointerEvents=""},100)},{passive:!0}),this.notifiedFocused=n.hasFocus,browser.safari&&n.contentDOM.addEventListener("input",()=>null)}setSelectionOrigin(n){this.lastSelectionOrigin=n,this.lastSelectionTime=Date.now()}ensureHandlers(n,r){var g;let $;this.customHandlers=[];for(let L of r)if($=(g=L.update(n).spec)===null||g===void 0?void 0:g.domEventHandlers){this.customHandlers.push({plugin:L.value,handlers:$});for(let k in $)this.registeredEvents.indexOf(k)<0&&k!="scroll"&&(this.registeredEvents.push(k),n.contentDOM.addEventListener(k,oe=>{!eventBelongsToEditor(n,oe)||this.runCustomHandlers(k,n,oe)&&oe.preventDefault()}))}}runCustomHandlers(n,r,g){for(let $ of this.customHandlers){let L=$.handlers[n];if(L)try{if(L.call($.plugin,g,r)||g.defaultPrevented)return!0}catch(k){logException(r.state,k)}}return!1}runScrollHandlers(n,r){this.lastScrollTop=n.scrollDOM.scrollTop,this.lastScrollLeft=n.scrollDOM.scrollLeft;for(let g of this.customHandlers){let $=g.handlers.scroll;if($)try{$.call(g.plugin,r,n)}catch(L){logException(n.state,L)}}}keydown(n,r){if(this.lastKeyCode=r.keyCode,this.lastKeyTime=Date.now(),r.keyCode==9&&Date.now()$.keyCode==r.keyCode))&&!(r.ctrlKey||r.altKey||r.metaKey)&&!r.synthetic?(this.pendingIOSKey=g,setTimeout(()=>this.flushIOSKey(n),250),!0):!1}flushIOSKey(n){let r=this.pendingIOSKey;return r?(this.pendingIOSKey=void 0,dispatchKey(n.contentDOM,r.key,r.keyCode)):!1}ignoreDuringComposition(n){return/^key/.test(n.type)?this.composing>0?!0:browser.safari&&!browser.ios&&Date.now()-this.compositionEndedAt<100?(this.compositionEndedAt=0,!0):!1:!1}mustFlushObserver(n){return n.type=="keydown"&&n.keyCode!=229||n.type=="compositionend"&&!browser.ios}startMouseSelection(n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=n}update(n){this.mouseSelection&&this.mouseSelection.update(n),n.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const PendingKeys=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],modifierCodes=[16,17,18,20,91,92,224,225];class MouseSelection{constructor(n,r,g,$){this.view=n,this.style=g,this.mustSelect=$,this.lastEvent=r;let L=n.contentDOM.ownerDocument;L.addEventListener("mousemove",this.move=this.move.bind(this)),L.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=r.shiftKey,this.multiple=n.state.facet(EditorState.allowMultipleSelections)&&addsSelectionRange(n,r),this.dragMove=dragMovesSelection(n,r),this.dragging=isInPrimarySelection(n,r)&&getClickType(r)==1?null:!1,this.dragging===!1&&(r.preventDefault(),this.select(r))}move(n){if(n.buttons==0)return this.destroy();this.dragging===!1&&this.select(this.lastEvent=n)}up(n){this.dragging==null&&this.select(this.lastEvent),this.dragging||n.preventDefault(),this.destroy()}destroy(){let n=this.view.contentDOM.ownerDocument;n.removeEventListener("mousemove",this.move),n.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(n){let r=this.style.get(n,this.extend,this.multiple);(this.mustSelect||!r.eq(this.view.state.selection)||r.main.assoc!=this.view.state.selection.main.assoc)&&this.view.dispatch({selection:r,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(n){n.docChanged&&this.dragging&&(this.dragging=this.dragging.map(n.changes)),this.style.update(n)&&setTimeout(()=>this.select(this.lastEvent),20)}}function addsSelectionRange(e,n){let r=e.state.facet(clickAddsSelectionRange);return r.length?r[0](n):browser.mac?n.metaKey:n.ctrlKey}function dragMovesSelection(e,n){let r=e.state.facet(dragMovesSelection$1);return r.length?r[0](n):browser.mac?!n.altKey:!n.ctrlKey}function isInPrimarySelection(e,n){let{main:r}=e.state.selection;if(r.empty)return!1;let g=getSelection$1(e.root);if(!g||g.rangeCount==0)return!0;let $=g.getRangeAt(0).getClientRects();for(let L=0;L<$.length;L++){let k=$[L];if(k.left<=n.clientX&&k.right>=n.clientX&&k.top<=n.clientY&&k.bottom>=n.clientY)return!0}return!1}function eventBelongsToEditor(e,n){if(!n.bubbles)return!0;if(n.defaultPrevented)return!1;for(let r=n.target,g;r!=e.contentDOM;r=r.parentNode)if(!r||r.nodeType==11||(g=ContentView.get(r))&&g.ignoreEvent(n))return!1;return!0}const handlers=Object.create(null),handlerOptions=Object.create(null),brokenClipboardAPI=browser.ie&&browser.ie_version<15||browser.ios&&browser.webkit_version<604;function capturePaste(e){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(()=>{e.focus(),r.remove(),doPaste(e,r.value)},50)}function doPaste(e,n){let{state:r}=e,g,$=1,L=r.toText(n),k=L.lines==r.selection.ranges.length;if(lastLinewiseCopy!=null&&r.selection.ranges.every(re=>re.empty)&&lastLinewiseCopy==L.toString()){let re=-1;g=r.changeByRange(ae=>{let le=r.doc.lineAt(ae.from);if(le.from==re)return{range:ae};re=le.from;let ue=r.toText((k?L.line($++).text:n)+r.lineBreak);return{changes:{from:le.from,insert:ue},range:EditorSelection.cursor(ae.from+ue.length)}})}else k?g=r.changeByRange(re=>{let ae=L.line($++);return{changes:{from:re.from,to:re.to,insert:ae.text},range:EditorSelection.cursor(re.from+ae.length)}}):g=r.replaceSelection(L);e.dispatch(g,{userEvent:"input.paste",scrollIntoView:!0})}handlers.keydown=(e,n)=>{e.inputState.setSelectionOrigin("select"),n.keyCode==27?e.inputState.lastEscPress=Date.now():modifierCodes.indexOf(n.keyCode)<0&&(e.inputState.lastEscPress=0)};handlers.touchstart=(e,n)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};handlers.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};handlerOptions.touchstart=handlerOptions.touchmove={passive:!0};handlers.mousedown=(e,n)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3&&getClickType(n)==1)return;let r=null;for(let g of e.state.facet(mouseSelectionStyle))if(r=g(e,n),r)break;if(!r&&n.button==0&&(r=basicMouseSelection(e,n)),r){let g=e.root.activeElement!=e.contentDOM;g&&e.observer.ignore(()=>focusPreventScroll(e.contentDOM)),e.inputState.startMouseSelection(new MouseSelection(e,n,r,g))}};function rangeForClick(e,n,r,g){if(g==1)return EditorSelection.cursor(n,r);if(g==2)return groupAt(e.state,n,r);{let $=LineView.find(e.docView,n),L=e.state.doc.lineAt($?$.posAtEnd:n),k=$?$.posAtStart:L.from,oe=$?$.posAtEnd:L.to;return oee>=n.top&&e<=n.bottom,inside=(e,n,r)=>insideY(n,r)&&e>=r.left&&e<=r.right;function findPositionSide(e,n,r,g){let $=LineView.find(e.docView,n);if(!$)return 1;let L=n-$.posAtStart;if(L==0)return 1;if(L==$.length)return-1;let k=$.coordsAt(L,-1);if(k&&inside(r,g,k))return-1;let oe=$.coordsAt(L,1);return oe&&inside(r,g,oe)?1:k&&insideY(g,k)?-1:1}function queryPos(e,n){let r=e.posAtCoords({x:n.clientX,y:n.clientY},!1);return{pos:r,bias:findPositionSide(e,r,n.clientX,n.clientY)}}const BadMouseDetail=browser.ie&&browser.ie_version<=11;let lastMouseDown=null,lastMouseDownCount=0,lastMouseDownTime=0;function getClickType(e){if(!BadMouseDetail)return e.detail;let n=lastMouseDown,r=lastMouseDownTime;return lastMouseDown=e,lastMouseDownTime=Date.now(),lastMouseDownCount=!n||r>Date.now()-400&&Math.abs(n.clientX-e.clientX)<2&&Math.abs(n.clientY-e.clientY)<2?(lastMouseDownCount+1)%3:1}function basicMouseSelection(e,n){let r=queryPos(e,n),g=getClickType(n),$=e.state.selection,L=r,k=n;return{update(oe){oe.docChanged&&(r&&(r.pos=oe.changes.mapPos(r.pos)),$=$.map(oe.changes),k=null)},get(oe,re,ae){let le;if(k&&oe.clientX==k.clientX&&oe.clientY==k.clientY?le=L:(le=L=queryPos(e,oe),k=oe),!le||!r)return $;let ue=rangeForClick(e,le.pos,le.bias,g);if(r.pos!=le.pos&&!re){let pe=rangeForClick(e,r.pos,r.bias,g),de=Math.min(pe.from,ue.from),Fe=Math.max(pe.to,ue.to);ue=de1&&$.ranges.some(pe=>pe.eq(ue))?removeRange($,ue):ae?$.addRange(ue):EditorSelection.create([ue])}}}function removeRange(e,n){for(let r=0;;r++)if(e.ranges[r].eq(n))return EditorSelection.create(e.ranges.slice(0,r).concat(e.ranges.slice(r+1)),e.mainIndex==r?0:e.mainIndex-(e.mainIndex>r?1:0))}handlers.dragstart=(e,n)=>{let{selection:{main:r}}=e.state,{mouseSelection:g}=e.inputState;g&&(g.dragging=r),n.dataTransfer&&(n.dataTransfer.setData("Text",e.state.sliceDoc(r.from,r.to)),n.dataTransfer.effectAllowed="copyMove")};function dropText(e,n,r,g){if(!r)return;let $=e.posAtCoords({x:n.clientX,y:n.clientY},!1);n.preventDefault();let{mouseSelection:L}=e.inputState,k=g&&L&&L.dragging&&L.dragMove?{from:L.dragging.from,to:L.dragging.to}:null,oe={from:$,insert:r},re=e.state.changes(k?[k,oe]:oe);e.focus(),e.dispatch({changes:re,selection:{anchor:re.mapPos($,-1),head:re.mapPos($,1)},userEvent:k?"move.drop":"input.drop"})}handlers.drop=(e,n)=>{if(!n.dataTransfer)return;if(e.state.readOnly)return n.preventDefault();let r=n.dataTransfer.files;if(r&&r.length){n.preventDefault();let g=Array(r.length),$=0,L=()=>{++$==r.length&&dropText(e,n,g.filter(k=>k!=null).join(e.state.lineBreak),!1)};for(let k=0;k{/[\x00-\x08\x0e-\x1f]{2}/.test(oe.result)||(g[k]=oe.result),L()},oe.readAsText(r[k])}}else dropText(e,n,n.dataTransfer.getData("Text"),!0)};handlers.paste=(e,n)=>{if(e.state.readOnly)return n.preventDefault();e.observer.flush();let r=brokenClipboardAPI?null:n.clipboardData;r?(doPaste(e,r.getData("text/plain")),n.preventDefault()):capturePaste(e)};function captureCopy(e,n){let r=e.dom.parentNode;if(!r)return;let g=r.appendChild(document.createElement("textarea"));g.style.cssText="position: fixed; left: -10000px; top: 10px",g.value=n,g.focus(),g.selectionEnd=n.length,g.selectionStart=0,setTimeout(()=>{g.remove(),e.focus()},50)}function copiedRange(e){let n=[],r=[],g=!1;for(let $ of e.selection.ranges)$.empty||(n.push(e.sliceDoc($.from,$.to)),r.push($));if(!n.length){let $=-1;for(let{from:L}of e.selection.ranges){let k=e.doc.lineAt(L);k.number>$&&(n.push(k.text),r.push({from:k.from,to:Math.min(e.doc.length,k.to+1)})),$=k.number}g=!0}return{text:n.join(e.lineBreak),ranges:r,linewise:g}}let lastLinewiseCopy=null;handlers.copy=handlers.cut=(e,n)=>{let{text:r,ranges:g,linewise:$}=copiedRange(e.state);if(!r&&!$)return;lastLinewiseCopy=$?r:null;let L=brokenClipboardAPI?null:n.clipboardData;L?(n.preventDefault(),L.clearData(),L.setData("text/plain",r)):captureCopy(e,r),n.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:g,scrollIntoView:!0,userEvent:"delete.cut"})};function updateForFocusChange(e){setTimeout(()=>{e.hasFocus!=e.inputState.notifiedFocused&&e.update([])},10)}handlers.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),updateForFocusChange(e)};handlers.blur=e=>{e.observer.clearSelectionRange(),updateForFocusChange(e)};function forceClearComposition(e,n){if(e.docView.compositionDeco.size){e.inputState.rapidCompositionStart=n;try{e.update([])}finally{e.inputState.rapidCompositionStart=!1}}}handlers.compositionstart=handlers.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.compositionDeco.size&&(e.observer.flush(),forceClearComposition(e,!0)))};handlers.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,setTimeout(()=>{e.inputState.composing<0&&forceClearComposition(e,!1)},50)};handlers.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};handlers.beforeinput=(e,n)=>{var r;let g;if(browser.chrome&&browser.android&&(g=PendingKeys.find($=>$.inputType==n.inputType))&&(e.observer.delayAndroidKey(g.key,g.keyCode),g.key=="Backspace"||g.key=="Delete")){let $=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var L;(((L=window.visualViewport)===null||L===void 0?void 0:L.height)||0)>$+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}};const wrappingWhiteSpace=["pre-wrap","normal","pre-line","break-spaces"];class HeightOracle{constructor(){this.doc=Text$1.empty,this.lineWrapping=!1,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(n,r){let g=this.doc.lineAt(r).number-this.doc.lineAt(n).number+1;return this.lineWrapping&&(g+=Math.ceil((r-n-g*this.lineLength*.5)/this.lineLength)),this.lineHeight*g}heightForLine(n){return this.lineWrapping?(1+Math.max(0,Math.ceil((n-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(n){return this.doc=n,this}mustRefreshForWrapping(n){return wrappingWhiteSpace.indexOf(n)>-1!=this.lineWrapping}mustRefreshForHeights(n){let r=!1;for(let g=0;g-1,oe=Math.round(r)!=Math.round(this.lineHeight)||this.lineWrapping!=k;if(this.lineWrapping=k,this.lineHeight=r,this.charWidth=g,this.lineLength=$,oe){this.heightSamples={};for(let re=0;re0}set outdated(n){this.flags=(n?2:0)|this.flags&-3}setHeight(n,r){this.height!=r&&(Math.abs(this.height-r)>Epsilon&&(n.heightChanged=!0),this.height=r)}replace(n,r,g){return HeightMap.of(g)}decomposeLeft(n,r){r.push(this)}decomposeRight(n,r){r.push(this)}applyChanges(n,r,g,$){let L=this;for(let k=$.length-1;k>=0;k--){let{fromA:oe,toA:re,fromB:ae,toB:le}=$[k],ue=L.lineAt(oe,QueryType$1.ByPosNoHeight,r,0,0),pe=ue.to>=re?ue:L.lineAt(re,QueryType$1.ByPosNoHeight,r,0,0);for(le+=pe.to-re,re=pe.to;k>0&&ue.from<=$[k-1].toA;)oe=$[k-1].fromA,ae=$[k-1].fromB,k--,oeL*2){let oe=n[r-1];oe.break?n.splice(--r,1,oe.left,null,oe.right):n.splice(--r,1,oe.left,oe.right),g+=1+oe.break,$-=oe.size}else if(L>$*2){let oe=n[g];oe.break?n.splice(g,1,oe.left,null,oe.right):n.splice(g,1,oe.left,oe.right),g+=2+oe.break,L-=oe.size}else break;else if($=L&&k(this.blockAt(0,g,$,L))}updateHeight(n,r=0,g=!1,$){return $&&$.from<=r&&$.more&&this.setHeight(n,$.heights[$.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class HeightMapText extends HeightMapBlock{constructor(n,r){super(n,r,BlockType.Text),this.collapsed=0,this.widgetHeight=0}replace(n,r,g){let $=g[0];return g.length==1&&($ instanceof HeightMapText||$ instanceof HeightMapGap&&$.flags&4)&&Math.abs(this.length-$.length)<10?($ instanceof HeightMapGap?$=new HeightMapText($.length,this.height):$.height=this.height,this.outdated||($.outdated=!1),$):HeightMap.of(g)}updateHeight(n,r=0,g=!1,$){return $&&$.from<=r&&$.more?this.setHeight(n,$.heights[$.index++]):(g||this.outdated)&&this.setHeight(n,Math.max(this.widgetHeight,n.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class HeightMapGap extends HeightMap{constructor(n){super(n,0)}lines(n,r){let g=n.lineAt(r).number,$=n.lineAt(r+this.length).number;return{firstLine:g,lastLine:$,lineHeight:this.height/($-g+1)}}blockAt(n,r,g,$){let{firstLine:L,lastLine:k,lineHeight:oe}=this.lines(r,$),re=Math.max(0,Math.min(k-L,Math.floor((n-g)/oe))),{from:ae,length:le}=r.line(L+re);return new BlockInfo(ae,le,g+oe*re,oe,BlockType.Text)}lineAt(n,r,g,$,L){if(r==QueryType$1.ByHeight)return this.blockAt(n,g,$,L);if(r==QueryType$1.ByPosNoHeight){let{from:ue,to:pe}=g.lineAt(n);return new BlockInfo(ue,pe-ue,0,0,BlockType.Text)}let{firstLine:k,lineHeight:oe}=this.lines(g,L),{from:re,length:ae,number:le}=g.lineAt(n);return new BlockInfo(re,ae,$+oe*(le-k),oe,BlockType.Text)}forEachLine(n,r,g,$,L,k){let{firstLine:oe,lineHeight:re}=this.lines(g,L);for(let ae=Math.max(n,L),le=Math.min(L+this.length,r);ae<=le;){let ue=g.lineAt(ae);ae==n&&($+=re*(ue.number-oe)),k(new BlockInfo(ue.from,ue.length,$,re,BlockType.Text)),$+=re,ae=ue.to+1}}replace(n,r,g){let $=this.length-r;if($>0){let L=g[g.length-1];L instanceof HeightMapGap?g[g.length-1]=new HeightMapGap(L.length+$):g.push(null,new HeightMapGap($-1))}if(n>0){let L=g[0];L instanceof HeightMapGap?g[0]=new HeightMapGap(n+L.length):g.unshift(new HeightMapGap(n-1),null)}return HeightMap.of(g)}decomposeLeft(n,r){r.push(new HeightMapGap(n-1),null)}decomposeRight(n,r){r.push(null,new HeightMapGap(this.length-n-1))}updateHeight(n,r=0,g=!1,$){let L=r+this.length;if($&&$.from<=r+this.length&&$.more){let k=[],oe=Math.max(r,$.from),re=-1,ae=n.heightChanged;for($.from>r&&k.push(new HeightMapGap($.from-r-1).updateHeight(n,r));oe<=L&&$.more;){let ue=n.doc.lineAt(oe).length;k.length&&k.push(null);let pe=$.heights[$.index++];re==-1?re=pe:Math.abs(pe-re)>=Epsilon&&(re=-2);let de=new HeightMapText(ue,pe);de.outdated=!1,k.push(de),oe+=ue+1}oe<=L&&k.push(null,new HeightMapGap(L-oe).updateHeight(n,oe));let le=HeightMap.of(k);return n.heightChanged=ae||re<0||Math.abs(le.height-this.height)>=Epsilon||Math.abs(re-this.lines(n.doc,r).lineHeight)>=Epsilon,le}else(g||this.outdated)&&(this.setHeight(n,n.heightForGap(r,r+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class HeightMapBranch extends HeightMap{constructor(n,r,g){super(n.length+r+g.length,n.height+g.height,r|(n.outdated||g.outdated?2:0)),this.left=n,this.right=g,this.size=n.size+g.size}get break(){return this.flags&1}blockAt(n,r,g,$){let L=g+this.left.height;return noe))return ae;let le=r==QueryType$1.ByPosNoHeight?QueryType$1.ByPosNoHeight:QueryType$1.ByPos;return re?ae.join(this.right.lineAt(oe,le,g,k,oe)):this.left.lineAt(oe,le,g,$,L).join(ae)}forEachLine(n,r,g,$,L,k){let oe=$+this.left.height,re=L+this.left.length+this.break;if(this.break)n=re&&this.right.forEachLine(n,r,g,oe,re,k);else{let ae=this.lineAt(re,QueryType$1.ByPos,g,$,L);n=n&&ae.from<=r&&k(ae),r>ae.to&&this.right.forEachLine(ae.to+1,r,g,oe,re,k)}}replace(n,r,g){let $=this.left.length+this.break;if(r<$)return this.balanced(this.left.replace(n,r,g),this.right);if(n>this.left.length)return this.balanced(this.left,this.right.replace(n-$,r-$,g));let L=[];n>0&&this.decomposeLeft(n,L);let k=L.length;for(let oe of g)L.push(oe);if(n>0&&mergeGaps(L,k-1),r=g&&r.push(null)),n>g&&this.right.decomposeLeft(n-g,r)}decomposeRight(n,r){let g=this.left.length,$=g+this.break;if(n>=$)return this.right.decomposeRight(n-$,r);n2*r.size||r.size>2*n.size?HeightMap.of(this.break?[n,null,r]:[n,r]):(this.left=n,this.right=r,this.height=n.height+r.height,this.outdated=n.outdated||r.outdated,this.size=n.size+r.size,this.length=n.length+this.break+r.length,this)}updateHeight(n,r=0,g=!1,$){let{left:L,right:k}=this,oe=r+L.length+this.break,re=null;return $&&$.from<=r+L.length&&$.more?re=L=L.updateHeight(n,r,g,$):L.updateHeight(n,r,g),$&&$.from<=oe+k.length&&$.more?re=k=k.updateHeight(n,oe,g,$):k.updateHeight(n,oe,g),re?this.balanced(L,k):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mergeGaps(e,n){let r,g;e[n]==null&&(r=e[n-1])instanceof HeightMapGap&&(g=e[n+1])instanceof HeightMapGap&&e.splice(n-1,3,new HeightMapGap(r.length+1+g.length))}const relevantWidgetHeight=5;class NodeBuilder{constructor(n,r){this.pos=n,this.oracle=r,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=n}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(n,r){if(this.lineStart>-1){let g=Math.min(r,this.lineEnd),$=this.nodes[this.nodes.length-1];$ instanceof HeightMapText?$.length+=g-this.pos:(g>this.pos||!this.isCovered)&&this.nodes.push(new HeightMapText(g-this.pos,-1)),this.writtenTo=g,r>g&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=r}point(n,r,g){if(n=relevantWidgetHeight)&&this.addLineDeco($,L)}else r>n&&this.span(n,r);this.lineEnd>-1&&this.lineEnd-1)return;let{from:n,to:r}=this.oracle.doc.lineAt(this.pos);this.lineStart=n,this.lineEnd=r,this.writtenTon&&this.nodes.push(new HeightMapText(this.pos-n,-1)),this.writtenTo=this.pos}blankContent(n,r){let g=new HeightMapGap(r-n);return this.oracle.doc.lineAt(n).to==r&&(g.flags|=4),g}ensureLine(){this.enterLine();let n=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(n instanceof HeightMapText)return n;let r=new HeightMapText(0,-1);return this.nodes.push(r),r}addBlock(n){this.enterLine(),n.type==BlockType.WidgetAfter&&!this.isCovered&&this.ensureLine(),this.nodes.push(n),this.writtenTo=this.pos=this.pos+n.length,n.type!=BlockType.WidgetBefore&&(this.covering=n)}addLineDeco(n,r){let g=this.ensureLine();g.length+=r,g.collapsed+=r,g.widgetHeight=Math.max(g.widgetHeight,n),this.writtenTo=this.pos=this.pos+r}finish(n){let r=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(r instanceof HeightMapText)&&!this.isCovered?this.nodes.push(new HeightMapText(0,-1)):(this.writtenToae.clientHeight||ae.scrollWidth>ae.clientWidth)&&le.overflow!="visible"){let ue=ae.getBoundingClientRect();g=Math.max(g,ue.left),$=Math.min($,ue.right),L=Math.max(L,ue.top),k=re==e.parentNode?ue.bottom:Math.min(k,ue.bottom)}re=le.position=="absolute"||le.position=="fixed"?ae.offsetParent:ae.parentNode}else if(re.nodeType==11)re=re.host;else break;return{left:g-r.left,right:Math.max(g,$)-r.left,top:L-(r.top+n),bottom:Math.max(L,k)-(r.top+n)}}function fullPixelRange(e,n){let r=e.getBoundingClientRect();return{left:0,right:r.right-r.left,top:n,bottom:r.bottom-(r.top+n)}}class LineGap{constructor(n,r,g){this.from=n,this.to=r,this.size=g}static same(n,r){if(n.length!=r.length)return!1;for(let g=0;gtypeof r!="function"),this.heightMap=HeightMap.empty().applyChanges(this.stateDeco,Text$1.empty,this.heightOracle.setDoc(n.doc),[new ChangedRange(0,0,0,n.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Decoration.set(this.lineGaps.map(r=>r.draw(!1))),this.computeVisibleRanges()}updateForViewport(){let n=[this.viewport],{main:r}=this.state.selection;for(let g=0;g<=1;g++){let $=g?r.head:r.anchor;if(!n.some(({from:L,to:k})=>$>=L&&$<=k)){let{from:L,to:k}=this.lineBlockAt($);n.push(new Viewport(L,k))}}this.viewports=n.sort((g,$)=>g.from-$.from),this.scaler=this.heightMap.height<=7e6?IdScaler:new BigScaler(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,n=>{this.viewportLines.push(this.scaler.scale==1?n:scaleBlock(n,this.scaler))})}update(n,r=null){this.state=n.state;let g=this.stateDeco;this.stateDeco=this.state.facet(decorations).filter(ae=>typeof ae!="function");let $=n.changedRanges,L=ChangedRange.extendWithRanges($,heightRelevantDecoChanges(g,this.stateDeco,n?n.changes:ChangeSet.empty(this.state.doc.length))),k=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,n.startState.doc,this.heightOracle.setDoc(this.state.doc),L),this.heightMap.height!=k&&(n.flags|=2);let oe=L.length?this.mapViewport(this.viewport,n.changes):this.viewport;(r&&(r.range.headoe.to)||!this.viewportIsAppropriate(oe))&&(oe=this.getViewport(0,r));let re=!n.changes.empty||n.flags&2||oe.from!=this.viewport.from||oe.to!=this.viewport.to;this.viewport=oe,this.updateForViewport(),re&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,n.changes))),n.flags|=this.computeVisibleRanges(),r&&(this.scrollTarget=r),!this.mustEnforceCursorAssoc&&n.selectionSet&&n.view.lineWrapping&&n.state.selection.main.empty&&n.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}measure(n){let r=n.contentDOM,g=window.getComputedStyle(r),$=this.heightOracle,L=g.whiteSpace;this.defaultTextDirection=g.direction=="rtl"?Direction.RTL:Direction.LTR;let k=this.heightOracle.mustRefreshForWrapping(L),oe=k||this.mustMeasureContent||this.contentDOMHeight!=r.clientHeight;this.contentDOMHeight=r.clientHeight,this.mustMeasureContent=!1;let re=0,ae=0,le=parseInt(g.paddingTop)||0,ue=parseInt(g.paddingBottom)||0;(this.paddingTop!=le||this.paddingBottom!=ue)&&(this.paddingTop=le,this.paddingBottom=ue,re|=10),this.editorWidth!=n.scrollDOM.clientWidth&&($.lineWrapping&&(oe=!0),this.editorWidth=n.scrollDOM.clientWidth,re|=8);let pe=(this.printing?fullPixelRange:visiblePixelRange)(r,this.paddingTop),de=pe.top-this.pixelViewport.top,Fe=pe.bottom-this.pixelViewport.bottom;this.pixelViewport=pe;let ze=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(ze!=this.inView&&(this.inView=ze,ze&&(oe=!0)),!this.inView)return 0;let Ce=r.clientWidth;if((this.contentDOMWidth!=Ce||this.editorHeight!=n.scrollDOM.clientHeight)&&(this.contentDOMWidth=Ce,this.editorHeight=n.scrollDOM.clientHeight,re|=8),oe){let _e=n.docView.measureVisibleLineHeights(this.viewport);if($.mustRefreshForHeights(_e)&&(k=!0),k||$.lineWrapping&&Math.abs(Ce-this.contentDOMWidth)>$.charWidth){let{lineHeight:At,charWidth:qe}=n.docView.measureTextSize();k=$.refresh(L,At,qe,Ce/qe,_e),k&&(n.docView.minWidth=0,re|=8)}de>0&&Fe>0?ae=Math.max(de,Fe):de<0&&Fe<0&&(ae=Math.min(de,Fe)),$.heightChanged=!1;for(let At of this.viewports){let qe=At.from==this.viewport.from?_e:n.docView.measureVisibleLineHeights(At);this.heightMap=this.heightMap.updateHeight($,0,k,new MeasuredHeights(At.from,qe))}$.heightChanged&&(re|=2)}let Ie=!this.viewportIsAppropriate(this.viewport,ae)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return Ie&&(this.viewport=this.getViewport(ae,this.scrollTarget)),this.updateForViewport(),(re&2||Ie)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(k?[]:this.lineGaps)),re|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),re}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(n,r){let g=.5-Math.max(-.5,Math.min(.5,n/1e3/2)),$=this.heightMap,L=this.state.doc,{visibleTop:k,visibleBottom:oe}=this,re=new Viewport($.lineAt(k-g*1e3,QueryType$1.ByHeight,L,0,0).from,$.lineAt(oe+(1-g)*1e3,QueryType$1.ByHeight,L,0,0).to);if(r){let{head:ae}=r.range;if(aere.to){let le=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),ue=$.lineAt(ae,QueryType$1.ByPos,L,0,0),pe;r.y=="center"?pe=(ue.top+ue.bottom)/2-le/2:r.y=="start"||r.y=="nearest"&&ae=oe+Math.max(10,Math.min(g,250)))&&$>k-2*1e3&&Lg.from&&oe.push({from:g.from,to:L}),k=g.from&&re.from<=g.to&&cutRange(oe,re.from-10,re.from+10),!re.empty&&re.to>=g.from&&re.to<=g.to&&cutRange(oe,re.to-10,re.to+10);for(let{from:ae,to:le}of oe)le-ae>1e3&&r.push(find$1(n,ue=>ue.from>=g.from&&ue.to<=g.to&&Math.abs(ue.from-ae)<1e3&&Math.abs(ue.to-le)<1e3)||new LineGap(ae,le,this.gapSize(g,ae,le,$)))}return r}gapSize(n,r,g,$){let L=findFraction($,g)-findFraction($,r);return this.heightOracle.lineWrapping?n.height*L:$.total*this.heightOracle.charWidth*L}updateLineGaps(n){LineGap.same(n,this.lineGaps)||(this.lineGaps=n,this.lineGapDeco=Decoration.set(n.map(r=>r.draw(this.heightOracle.lineWrapping))))}computeVisibleRanges(){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let r=[];RangeSet.spans(n,this.viewport.from,this.viewport.to,{span($,L){r.push({from:$,to:L})},point(){}},20);let g=r.length!=this.visibleRanges.length||this.visibleRanges.some(($,L)=>$.from!=r[L].from||$.to!=r[L].to);return this.visibleRanges=r,g?4:0}lineBlockAt(n){return n>=this.viewport.from&&n<=this.viewport.to&&this.viewportLines.find(r=>r.from<=n&&r.to>=n)||scaleBlock(this.heightMap.lineAt(n,QueryType$1.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(n){return scaleBlock(this.heightMap.lineAt(this.scaler.fromDOM(n),QueryType$1.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(n){return scaleBlock(this.heightMap.blockAt(this.scaler.fromDOM(n),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Viewport{constructor(n,r){this.from=n,this.to=r}}function lineStructure(e,n,r){let g=[],$=e,L=0;return RangeSet.spans(r,e,n,{span(){},point(k,oe){k>$&&(g.push({from:$,to:k}),L+=k-$),$=oe}},20),$=1)return n[n.length-1].to;let g=Math.floor(e*r);for(let $=0;;$++){let{from:L,to:k}=n[$],oe=k-L;if(g<=oe)return L+g;g-=oe}}function findFraction(e,n){let r=0;for(let{from:g,to:$}of e.ranges){if(n<=$){r+=n-g;break}r+=$-g}return r/e.total}function cutRange(e,n,r){for(let g=0;gn){let L=[];$.fromr&&L.push({from:r,to:$.to}),e.splice(g,1,...L),g+=L.length-1}}}function find$1(e,n){for(let r of e)if(n(r))return r}const IdScaler={toDOM(e){return e},fromDOM(e){return e},scale:1};class BigScaler{constructor(n,r,g){let $=0,L=0,k=0;this.viewports=g.map(({from:oe,to:re})=>{let ae=r.lineAt(oe,QueryType$1.ByPos,n,0,0).top,le=r.lineAt(re,QueryType$1.ByPos,n,0,0).bottom;return $+=le-ae,{from:oe,to:re,top:ae,bottom:le,domTop:0,domBottom:0}}),this.scale=(7e6-$)/(r.height-$);for(let oe of this.viewports)oe.domTop=k+(oe.top-L)*this.scale,k=oe.domBottom=oe.domTop+(oe.bottom-oe.top),L=oe.bottom}toDOM(n){for(let r=0,g=0,$=0;;r++){let L=rscaleBlock($,n)):e.type)}const theme=Facet.define({combine:e=>e.join(" ")}),darkTheme=Facet.define({combine:e=>e.indexOf(!0)>-1}),baseThemeID=StyleModule.newName(),baseLightID=StyleModule.newName(),baseDarkID=StyleModule.newName(),lightDarkIDs={"&light":"."+baseLightID,"&dark":"."+baseDarkID};function buildTheme(e,n,r){return new StyleModule(n,{finish(g){return/&/.test(g)?g.replace(/&\w*/,$=>{if($=="&")return e;if(!r||!r[$])throw new RangeError(`Unsupported selector: ${$}`);return r[$]}):e+" "+g}})}const baseTheme$1$3=buildTheme("."+baseThemeID,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},lightDarkIDs),observeOptions={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},useCharData=browser.ie&&browser.ie_version<=11;class DOMObserver{constructor(n,r,g){this.view=n,this.onChange=r,this.onScrollChanged=g,this.active=!1,this.selectionRange=new DOMSelectionState,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.scrollTargets=[],this.intersection=null,this.resize=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=n.contentDOM,this.observer=new MutationObserver($=>{for(let L of $)this.queue.push(L);(browser.ie&&browser.ie_version<=11||browser.ios&&n.composing)&&$.some(L=>L.type=="childList"&&L.removedNodes.length||L.type=="characterData"&&L.oldValue.length>L.target.nodeValue.length)?this.flushSoon():this.flush()}),useCharData&&(this.onCharData=$=>{this.queue.push({target:$.target,type:"characterData",oldValue:$.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resize=new ResizeObserver(()=>{this.view.docView.lastUpdate{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),$.length>0&&$[$.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver($=>{$.length>0&&$[$.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScroll(n){this.intersecting&&this.flush(!1),this.onScrollChanged(n)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(n){if(this.gapIntersection&&(n.length!=this.gaps.length||this.gaps.some((r,g)=>r!=n[g]))){this.gapIntersection.disconnect();for(let r of n)this.gapIntersection.observe(r);this.gaps=n}}onSelectionChange(n){if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,g=this.selectionRange;if(r.state.facet(editable)?r.root.activeElement!=this.dom:!hasSelection(r.dom,g))return;let $=g.anchorNode&&r.docView.nearest(g.anchorNode);$&&$.ignoreEvent(n)||((browser.ie&&browser.ie_version<=11||browser.android&&browser.chrome)&&!r.state.selection.main.empty&&g.focusNode&&isEquivalentPosition(g.focusNode,g.focusOffset,g.anchorNode,g.anchorOffset)?this.flushSoon():this.flush(!1))}readSelectionRange(){let{view:n}=this,r=browser.safari&&n.root.nodeType==11&&deepActiveElement()==this.dom&&safariSelectionRangeHack(this.view)||getSelection$1(n.root);if(!r||this.selectionRange.eq(r))return!1;let g=hasSelection(this.dom,r);return g&&!this.selectionChanged&&n.inputState.lastFocusTime>Date.now()-200&&n.inputState.lastTouchTime{let g=this.delayedAndroidKey;this.delayedAndroidKey=null,this.delayedFlush=-1,this.flush()||dispatchKey(this.dom,g.key,g.keyCode)}),(!this.delayedAndroidKey||n=="Enter")&&(this.delayedAndroidKey={key:n,keyCode:r})}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=window.setTimeout(()=>{this.delayedFlush=-1,this.flush()},20))}forceFlush(){this.delayedFlush>=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let n=this.queue;for(let L of this.observer.takeRecords())n.push(L);n.length&&(this.queue=[]);let r=-1,g=-1,$=!1;for(let L of n){let k=this.readMutation(L);!k||(k.typeOver&&($=!0),r==-1?{from:r,to:g}=k:(r=Math.min(k.from,r),g=Math.max(k.to,g)))}return{from:r,to:g,typeOver:$}}flush(n=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return;n&&this.readSelectionRange();let{from:r,to:g,typeOver:$}=this.processRecords(),L=this.selectionChanged&&hasSelection(this.dom,this.selectionRange);if(r<0&&!L)return;this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let k=this.view.state,oe=this.onChange(r,g,$);return this.view.state==k&&this.view.update([]),oe}readMutation(n){let r=this.view.docView.nearest(n.target);if(!r||r.ignoreMutation(n))return null;if(r.markDirty(n.type=="attributes"),n.type=="attributes"&&(r.dirty|=4),n.type=="childList"){let g=findChild(r,n.previousSibling||n.target.previousSibling,-1),$=findChild(r,n.nextSibling||n.target.nextSibling,1);return{from:g?r.posAfter(g):r.posAtStart,to:$?r.posBefore($):r.posAtEnd,typeOver:!1}}else return n.type=="characterData"?{from:r.posAtStart,to:r.posAtEnd,typeOver:n.target.nodeValue==n.oldValue}:null}setWindow(n){n!=this.win&&(this.removeWindowListeners(this.win),this.win=n,this.addWindowListeners(this.win))}addWindowListeners(n){n.addEventListener("resize",this.onResize),n.addEventListener("beforeprint",this.onPrint),n.addEventListener("scroll",this.onScroll),n.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(n){n.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onResize),n.removeEventListener("beforeprint",this.onPrint),n.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var n,r,g;this.stop(),(n=this.intersection)===null||n===void 0||n.disconnect(),(r=this.gapIntersection)===null||r===void 0||r.disconnect(),(g=this.resize)===null||g===void 0||g.disconnect();for(let $ of this.scrollTargets)$.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout)}}function findChild(e,n,r){for(;n;){let g=ContentView.get(n);if(g&&g.parent==e)return g;let $=n.parentNode;n=$!=e.dom?$:r>0?n.nextSibling:n.previousSibling}return null}function safariSelectionRangeHack(e){let n=null;function r(re){re.preventDefault(),re.stopImmediatePropagation(),n=re.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),!n)return null;let g=n.startContainer,$=n.startOffset,L=n.endContainer,k=n.endOffset,oe=e.docView.domAtPos(e.state.selection.main.anchor);return isEquivalentPosition(oe.node,oe.offset,L,k)&&([g,$,L,k]=[L,k,g,$]),{anchorNode:g,anchorOffset:$,focusNode:L,focusOffset:k}}function applyDOMChange(e,n,r,g){let $,L,k=e.state.selection.main;if(n>-1){let oe=e.docView.domBoundsAround(n,r,0);if(!oe||e.state.readOnly)return!1;let{from:re,to:ae}=oe,le=e.docView.impreciseHead||e.docView.impreciseAnchor?[]:selectionPoints(e),ue=new DOMReader(le,e.state);ue.readRange(oe.startDOM,oe.endDOM);let pe=k.from,de=null;(e.inputState.lastKeyCode===8&&e.inputState.lastKeyTime>Date.now()-100||browser.android&&ue.text.length=k.from&&$.to<=k.to&&($.from!=k.from||$.to!=k.to)&&k.to-k.from-($.to-$.from)<=4?$={from:k.from,to:k.to,insert:e.state.doc.slice(k.from,$.from).append($.insert).append(e.state.doc.slice($.to,k.to))}:(browser.mac||browser.android)&&$&&$.from==$.to&&$.from==k.head-1&&$.insert.toString()=="."&&($={from:k.from,to:k.to,insert:Text$1.of([" "])}),$){let oe=e.state;if(browser.ios&&e.inputState.flushIOSKey(e)||browser.android&&($.from==k.from&&$.to==k.to&&$.insert.length==1&&$.insert.lines==2&&dispatchKey(e.contentDOM,"Enter",13)||$.from==k.from-1&&$.to==k.to&&$.insert.length==0&&dispatchKey(e.contentDOM,"Backspace",8)||$.from==k.from&&$.to==k.to+1&&$.insert.length==0&&dispatchKey(e.contentDOM,"Delete",46)))return!0;let re=$.insert.toString();if(e.state.facet(inputHandler$1).some(ue=>ue(e,$.from,$.to,re)))return!0;e.inputState.composing>=0&&e.inputState.composing++;let ae;if($.from>=k.from&&$.to<=k.to&&$.to-$.from>=(k.to-k.from)/3&&(!L||L.main.empty&&L.main.from==$.from+$.insert.length)&&e.inputState.composing<0){let ue=k.from<$.from?oe.sliceDoc(k.from,$.from):"",pe=k.to>$.to?oe.sliceDoc($.to,k.to):"";ae=oe.replaceSelection(e.state.toText(ue+$.insert.sliceString(0,void 0,e.state.lineBreak)+pe))}else{let ue=oe.changes($),pe=L&&!oe.selection.main.eq(L.main)&&L.main.to<=ue.newLength?L.main:void 0;if(oe.selection.ranges.length>1&&e.inputState.composing>=0&&$.to<=k.to&&$.to>=k.to-10){let de=e.state.sliceDoc($.from,$.to),Fe=compositionSurroundingNode(e)||e.state.doc.lineAt(k.head),ze=k.to-$.to,Ce=k.to-k.from;ae=oe.changeByRange(Ie=>{if(Ie.from==k.from&&Ie.to==k.to)return{changes:ue,range:pe||Ie.map(ue)};let _e=Ie.to-ze,At=_e-de.length;if(Ie.to-Ie.from!=Ce||e.state.sliceDoc(At,_e)!=de||Fe&&Ie.to>=Fe.from&&Ie.from<=Fe.to)return{range:Ie};let qe=oe.changes({from:At,to:_e,insert:$.insert}),xe=Ie.to-k.to;return{changes:qe,range:pe?EditorSelection.range(Math.max(0,pe.anchor+xe),Math.max(0,pe.head+xe)):Ie.map(qe)}})}else ae={changes:ue,selection:pe&&oe.selection.replaceRange(pe)}}let le="input.type";return e.composing&&(le+=".compose",e.inputState.compositionFirstChange&&(le+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(ae,{scrollIntoView:!0,userEvent:le}),!0}else if(L&&!L.main.eq(k)){let oe=!1,re="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(oe=!0),re=e.inputState.lastSelectionOrigin),e.dispatch({selection:L,scrollIntoView:oe,userEvent:re}),!0}else return!1}function findDiff(e,n,r,g){let $=Math.min(e.length,n.length),L=0;for(;L<$&&e.charCodeAt(L)==n.charCodeAt(L);)L++;if(L==$&&e.length==n.length)return null;let k=e.length,oe=n.length;for(;k>0&&oe>0&&e.charCodeAt(k-1)==n.charCodeAt(oe-1);)k--,oe--;if(g=="end"){let re=Math.max(0,L-Math.min(k,oe));r-=k+re-L}return k=k?L-r:0,oe=L+(oe-k),k=L):oe=oe?L-r:0,k=L+(k-oe),oe=L),{from:L,toA:k,toB:oe}}function selectionPoints(e){let n=[];if(e.root.activeElement!=e.contentDOM)return n;let{anchorNode:r,anchorOffset:g,focusNode:$,focusOffset:L}=e.observer.selectionRange;return r&&(n.push(new DOMPoint(r,g)),($!=r||L!=g)&&n.push(new DOMPoint($,L))),n}function selectionFromPoints(e,n){if(e.length==0)return null;let r=e[0].pos,g=e.length==2?e[1].pos:r;return r>-1&&g>-1?EditorSelection.single(r+n,g+n):null}class EditorView{constructor(n={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=n.dispatch||(r=>this.update([r])),this.dispatch=this.dispatch.bind(this),this._root=n.root||getRoot(n.parent)||document,this.viewState=new ViewState(n.state||EditorState.create(n)),this.plugins=this.state.facet(viewPlugin).map(r=>new PluginInstance(r));for(let r of this.plugins)r.update(this);this.observer=new DOMObserver(this,(r,g,$)=>applyDOMChange(this,r,g,$),r=>{this.inputState.runScrollHandlers(this,r),this.observer.intersecting&&this.measure()}),this.inputState=new InputState(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new DocView(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),n.parent&&n.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}dispatch(...n){this._dispatch(n.length==1&&n[0]instanceof Transaction?n[0]:this.state.update(...n))}update(n){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let r=!1,g=!1,$,L=this.state;for(let oe of n){if(oe.startState!=L)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");L=oe.state}if(this.destroyed){this.viewState.state=L;return}if(this.observer.clear(),L.facet(EditorState.phrases)!=this.state.facet(EditorState.phrases))return this.setState(L);$=ViewUpdate.create(this,L,n);let k=this.viewState.scrollTarget;try{this.updateState=2;for(let oe of n){if(k&&(k=k.map(oe.changes)),oe.scrollIntoView){let{main:re}=oe.state.selection;k=new ScrollTarget(re.empty?re:EditorSelection.cursor(re.head,re.head>re.anchor?-1:1))}for(let re of oe.effects)re.is(scrollIntoView$1)&&(k=re.value)}this.viewState.update($,k),this.bidiCache=CachedOrder.update(this.bidiCache,$.changes),$.empty||(this.updatePlugins($),this.inputState.update($)),r=this.docView.update($),this.state.facet(styleModule)!=this.styleModules&&this.mountStyles(),g=this.updateAttrs(),this.showAnnouncements(n),this.docView.updateSelection(r,n.some(oe=>oe.isUserEvent("select.pointer")))}finally{this.updateState=0}if($.startState.facet(theme)!=$.state.facet(theme)&&(this.viewState.mustMeasureContent=!0),(r||g||k||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!$.empty)for(let oe of this.state.facet(updateListener))oe($)}setState(n){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=n;return}this.updateState=2;let r=this.hasFocus;try{for(let g of this.plugins)g.destroy(this);this.viewState=new ViewState(n),this.plugins=n.facet(viewPlugin).map(g=>new PluginInstance(g)),this.pluginMap.clear();for(let g of this.plugins)g.update(this);this.docView=new DocView(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}r&&this.focus(),this.requestMeasure()}updatePlugins(n){let r=n.startState.facet(viewPlugin),g=n.state.facet(viewPlugin);if(r!=g){let $=[];for(let L of g){let k=r.indexOf(L);if(k<0)$.push(new PluginInstance(L));else{let oe=this.plugins[k];oe.mustUpdate=n,$.push(oe)}}for(let L of this.plugins)L.mustUpdate!=n&&L.destroy(this);this.plugins=$,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let $ of this.plugins)$.mustUpdate=n;for(let $=0;$-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,n&&this.observer.forceFlush();let r=null,{scrollHeight:g,scrollTop:$,clientHeight:L}=this.scrollDOM,k=$>g-L-4?g:$;try{for(let oe=0;;oe++){this.updateState=1;let re=this.viewport,ae=this.viewState.lineBlockAtHeight(k),le=this.viewState.measure(this);if(!le&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(oe>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let ue=[];le&4||([this.measureRequests,ue]=[ue,this.measureRequests]);let pe=ue.map(Ce=>{try{return Ce.read(this)}catch(Ie){return logException(this.state,Ie),BadMeasure}}),de=ViewUpdate.create(this,this.state,[]),Fe=!1,ze=!1;de.flags|=le,r?r.flags|=le:r=de,this.updateState=2,de.empty||(this.updatePlugins(de),this.inputState.update(de),this.updateAttrs(),Fe=this.docView.update(de));for(let Ce=0;Ce1||Ce<-1)&&(this.scrollDOM.scrollTop+=Ce,ze=!0)}if(Fe&&this.docView.updateSelection(!0),this.viewport.from==re.from&&this.viewport.to==re.to&&!ze&&this.measureRequests.length==0)break}}finally{this.updateState=0,this.measureScheduled=-1}if(r&&!r.empty)for(let oe of this.state.facet(updateListener))oe(r)}get themeClasses(){return baseThemeID+" "+(this.state.facet(darkTheme)?baseDarkID:baseLightID)+" "+this.state.facet(theme)}updateAttrs(){let n=attrsFromFacet(this,editorAttributes,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),r={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(editable)?"true":"false",class:"cm-content",style:`${browser.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(r["aria-readonly"]="true"),attrsFromFacet(this,contentAttributes,r);let g=this.observer.ignore(()=>{let $=updateAttrs(this.contentDOM,this.contentAttrs,r),L=updateAttrs(this.dom,this.editorAttrs,n);return $||L});return this.editorAttrs=n,this.contentAttrs=r,g}showAnnouncements(n){let r=!0;for(let g of n)for(let $ of g.effects)if($.is(EditorView.announce)){r&&(this.announceDOM.textContent=""),r=!1;let L=this.announceDOM.appendChild(document.createElement("div"));L.textContent=$.value}}mountStyles(){this.styleModules=this.state.facet(styleModule),StyleModule.mount(this.root,this.styleModules.concat(baseTheme$1$3).reverse())}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(n){if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame(()=>this.measure())),n){if(n.key!=null){for(let r=0;rg.spec==n)||null),r&&r.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(n){return this.readMeasured(),this.viewState.elementAtHeight(n)}lineBlockAtHeight(n){return this.readMeasured(),this.viewState.lineBlockAtHeight(n)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(n){return this.viewState.lineBlockAt(n)}get contentHeight(){return this.viewState.contentHeight}moveByChar(n,r,g){return skipAtoms(this,n,moveByChar(this,n,r,g))}moveByGroup(n,r){return skipAtoms(this,n,moveByChar(this,n,r,g=>byGroup(this,n.head,g)))}moveToLineBoundary(n,r,g=!0){return moveToLineBoundary(this,n,r,g)}moveVertically(n,r,g){return skipAtoms(this,n,moveVertically(this,n,r,g))}domAtPos(n){return this.docView.domAtPos(n)}posAtDOM(n,r=0){return this.docView.posFromDOM(n,r)}posAtCoords(n,r=!0){return this.readMeasured(),posAtCoords(this,n,r)}coordsAtPos(n,r=1){this.readMeasured();let g=this.docView.coordsAt(n,r);if(!g||g.left==g.right)return g;let $=this.state.doc.lineAt(n),L=this.bidiSpans($),k=L[BidiSpan.find(L,n-$.from,-1,r)];return flattenRect(g,k.dir==Direction.LTR==r>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(n){return!this.state.facet(perLineTextDirection)||nthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(n))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(n){if(n.length>MaxBidiLine)return trivialOrder(n.length);let r=this.textDirectionAt(n.from);for(let $ of this.bidiCache)if($.from==n.from&&$.dir==r)return $.order;let g=computeOrder(n.text,r);return this.bidiCache.push(new CachedOrder(n.from,n.to,r,g)),g}get hasFocus(){var n;return(document.hasFocus()||browser.safari&&((n=this.inputState)===null||n===void 0?void 0:n.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{focusPreventScroll(this.contentDOM),this.docView.updateSelection()})}setRoot(n){this._root!=n&&(this._root=n,this.observer.setWindow((n.nodeType==9?n:n.ownerDocument).defaultView),this.mountStyles())}destroy(){for(let n of this.plugins)n.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(n,r={}){return scrollIntoView$1.of(new ScrollTarget(typeof n=="number"?EditorSelection.cursor(n):n,r.y,r.x,r.yMargin,r.xMargin))}static domEventHandlers(n){return ViewPlugin.define(()=>({}),{eventHandlers:n})}static theme(n,r){let g=StyleModule.newName(),$=[theme.of(g),styleModule.of(buildTheme(`.${g}`,n))];return r&&r.dark&&$.push(darkTheme.of(!0)),$}static baseTheme(n){return Prec.lowest(styleModule.of(buildTheme("."+baseThemeID,n,lightDarkIDs)))}static findFromDOM(n){var r;let g=n.querySelector(".cm-content"),$=g&&ContentView.get(g)||ContentView.get(n);return((r=$?.rootView)===null||r===void 0?void 0:r.view)||null}}EditorView.styleModule=styleModule;EditorView.inputHandler=inputHandler$1;EditorView.perLineTextDirection=perLineTextDirection;EditorView.exceptionSink=exceptionSink;EditorView.updateListener=updateListener;EditorView.editable=editable;EditorView.mouseSelectionStyle=mouseSelectionStyle;EditorView.dragMovesSelection=dragMovesSelection$1;EditorView.clickAddsSelectionRange=clickAddsSelectionRange;EditorView.decorations=decorations;EditorView.atomicRanges=atomicRanges;EditorView.scrollMargins=scrollMargins;EditorView.darkTheme=darkTheme;EditorView.contentAttributes=contentAttributes;EditorView.editorAttributes=editorAttributes;EditorView.lineWrapping=EditorView.contentAttributes.of({class:"cm-lineWrapping"});EditorView.announce=StateEffect.define();const MaxBidiLine=4096,BadMeasure={};class CachedOrder{constructor(n,r,g,$){this.from=n,this.to=r,this.dir=g,this.order=$}static update(n,r){if(r.empty)return n;let g=[],$=n.length?n[n.length-1].dir:Direction.LTR;for(let L=Math.max(0,n.length-10);L=0;$--){let L=g[$],k=typeof L=="function"?L(e):L;k&&combineAttrs(k,r)}return r}const currentPlatform=browser.mac?"mac":browser.windows?"win":browser.linux?"linux":"key";function normalizeKeyName(e,n){const r=e.split(/-(?!$)/);let g=r[r.length-1];g=="Space"&&(g=" ");let $,L,k,oe;for(let re=0;reg.concat($),[]))),r}function runScopeHandlers(e,n,r){return runHandlers(getKeymap(e.state),n,e,r)}let storedPrefix=null;const PrefixTimeout=4e3;function buildKeymap(e,n=currentPlatform){let r=Object.create(null),g=Object.create(null),$=(k,oe)=>{let re=g[k];if(re==null)g[k]=oe;else if(re!=oe)throw new Error("Key binding "+k+" is used both as a regular binding and as a multi-stroke prefix")},L=(k,oe,re,ae)=>{let le=r[k]||(r[k]=Object.create(null)),ue=oe.split(/ (?!$)/).map(Fe=>normalizeKeyName(Fe,n));for(let Fe=1;Fe{let Ie=storedPrefix={view:Ce,prefix:ze,scope:k};return setTimeout(()=>{storedPrefix==Ie&&(storedPrefix=null)},PrefixTimeout),!0}]})}let pe=ue.join(" ");$(pe,!1);let de=le[pe]||(le[pe]={preventDefault:!1,commands:[]});de.commands.push(re),ae&&(de.preventDefault=!0)};for(let k of e){let oe=k[n]||k.key;if(!!oe)for(let re of k.scope?k.scope.split(" "):["editor"])L(re,oe,k.run,k.preventDefault),k.shift&&L(re,"Shift-"+oe,k.shift,k.preventDefault)}return r}function runHandlers(e,n,r,g){let $=keyName(n),L=codePointAt($,0),k=codePointSize(L)==$.length&&$!=" ",oe="",re=!1;storedPrefix&&storedPrefix.view==r&&storedPrefix.scope==g&&(oe=storedPrefix.prefix+" ",(re=modifierCodes.indexOf(n.keyCode)<0)&&(storedPrefix=null));let ae=pe=>{if(pe){for(let de of pe.commands)if(de(r))return!0;pe.preventDefault&&(re=!0)}return!1},le=e[g],ue;if(le){if(ae(le[oe+modifiers($,n,!k)]))return!0;if(k&&(n.shiftKey||n.altKey||n.metaKey||L>127)&&(ue=base[n.keyCode])&&ue!=$){if(ae(le[oe+modifiers(ue,n,!0)]))return!0;if(n.shiftKey&&shift[n.keyCode]!=ue&&ae(le[oe+modifiers(shift[n.keyCode],n,!1)]))return!0}else if(k&&n.shiftKey&&ae(le[oe+modifiers($,n,!0)]))return!0}return re}const CanHidePrimary=!browser.ios,selectionConfig=Facet.define({combine(e){return combineConfig(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(n,r)=>Math.min(n,r),drawRangeCursor:(n,r)=>n||r})}});function drawSelection(e={}){return[selectionConfig.of(e),drawSelectionPlugin,hideNativeSelection]}class Piece{constructor(n,r,g,$,L){this.left=n,this.top=r,this.width=g,this.height=$,this.className=L}draw(){let n=document.createElement("div");return n.className=this.className,this.adjust(n),n}adjust(n){n.style.left=this.left+"px",n.style.top=this.top+"px",this.width>=0&&(n.style.width=this.width+"px"),n.style.height=this.height+"px"}eq(n){return this.left==n.left&&this.top==n.top&&this.width==n.width&&this.height==n.height&&this.className==n.className}}const drawSelectionPlugin=ViewPlugin.fromClass(class{constructor(e){this.view=e,this.rangePieces=[],this.cursors=[],this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.selectionLayer=e.scrollDOM.appendChild(document.createElement("div")),this.selectionLayer.className="cm-selectionLayer",this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){this.cursorLayer.style.animationDuration=this.view.state.facet(selectionConfig).cursorBlinkRate+"ms"}update(e){let n=e.startState.facet(selectionConfig)!=e.state.facet(selectionConfig);(n||e.selectionSet||e.geometryChanged||e.viewportChanged)&&this.view.requestMeasure(this.measureReq),e.transactions.some(r=>r.scrollIntoView)&&(this.cursorLayer.style.animationName=this.cursorLayer.style.animationName=="cm-blink"?"cm-blink2":"cm-blink"),n&&this.setBlinkRate()}readPos(){let{state:e}=this.view,n=e.facet(selectionConfig),r=e.selection.ranges.map($=>$.empty?[]:measureRange(this.view,$)).reduce(($,L)=>$.concat(L)),g=[];for(let $ of e.selection.ranges){let L=$==e.selection.main;if($.empty?!L||CanHidePrimary:n.drawRangeCursor){let k=measureCursor(this.view,$,L);k&&g.push(k)}}return{rangePieces:r,cursors:g}}drawSel({rangePieces:e,cursors:n}){if(e.length!=this.rangePieces.length||e.some((r,g)=>!r.eq(this.rangePieces[g]))){this.selectionLayer.textContent="";for(let r of e)this.selectionLayer.appendChild(r.draw());this.rangePieces=e}if(n.length!=this.cursors.length||n.some((r,g)=>!r.eq(this.cursors[g]))){let r=this.cursorLayer.children;if(r.length!==n.length){this.cursorLayer.textContent="";for(const g of n)this.cursorLayer.appendChild(g.draw())}else n.forEach((g,$)=>g.adjust(r[$]));this.cursors=n}}destroy(){this.selectionLayer.remove(),this.cursorLayer.remove()}}),themeSpec={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};CanHidePrimary&&(themeSpec[".cm-line"].caretColor="transparent !important");const hideNativeSelection=Prec.highest(EditorView.theme(themeSpec));function getBase(e){let n=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Direction.LTR?n.left:n.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft,top:n.top-e.scrollDOM.scrollTop}}function wrappedLine(e,n,r){let g=EditorSelection.cursor(n);return{from:Math.max(r.from,e.moveToLineBoundary(g,!1,!0).from),to:Math.min(r.to,e.moveToLineBoundary(g,!0,!0).from),type:BlockType.Text}}function blockAt(e,n){let r=e.lineBlockAt(n);if(Array.isArray(r.type)){for(let g of r.type)if(g.to>n||g.to==n&&(g.to==r.to||g.type==BlockType.Text))return g}return r}function measureRange(e,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),g=Math.min(n.to,e.viewport.to),$=e.textDirection==Direction.LTR,L=e.contentDOM,k=L.getBoundingClientRect(),oe=getBase(e),re=window.getComputedStyle(L.firstChild),ae=k.left+parseInt(re.paddingLeft)+Math.min(0,parseInt(re.textIndent)),le=k.right-parseInt(re.paddingRight),ue=blockAt(e,r),pe=blockAt(e,g),de=ue.type==BlockType.Text?ue:null,Fe=pe.type==BlockType.Text?pe:null;if(e.lineWrapping&&(de&&(de=wrappedLine(e,r,de)),Fe&&(Fe=wrappedLine(e,g,Fe))),de&&Fe&&de.from==Fe.from)return Ce(Ie(n.from,n.to,de));{let At=de?Ie(n.from,null,de):_e(ue,!1),qe=Fe?Ie(null,n.to,Fe):_e(pe,!0),xe=[];return(de||ue).to<(Fe||pe).from-1?xe.push(ze(ae,At.bottom,le,qe.top)):At.bottomNe&&kt.from=Pt)break;Dt>Et&&$e(Math.max(hn,Et),At==null&&hn<=Ne,Math.min(Dt,Pt),qe==null&&Dt>=Ue,vn.dir)}if(Et=Lt.to+1,Et>=Pt)break}return Oe.length==0&&$e(Ne,At==null,Ue,qe==null,e.textDirection),{top:Ve,bottom:he,horizontal:Oe}}function _e(At,qe){let xe=k.top+(qe?At.top:At.bottom);return{top:xe,bottom:xe,horizontal:[]}}}function measureCursor(e,n,r){let g=e.coordsAtPos(n.head,n.assoc||1);if(!g)return null;let $=getBase(e);return new Piece(g.left-$.left,g.top-$.top,-1,g.bottom-g.top,r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary")}const setDropCursorPos=StateEffect.define({map(e,n){return e==null?null:n.mapPos(e)}}),dropCursorPos=StateField.define({create(){return null},update(e,n){return e!=null&&(e=n.changes.mapPos(e)),n.effects.reduce((r,g)=>g.is(setDropCursorPos)?g.value:r,e)}}),drawDropCursor=ViewPlugin.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var n;let r=e.state.field(dropCursorPos);r==null?this.cursor!=null&&((n=this.cursor)===null||n===void 0||n.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(dropCursorPos)!=r||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let e=this.view.state.field(dropCursorPos),n=e!=null&&this.view.coordsAtPos(e);if(!n)return null;let r=this.view.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+this.view.scrollDOM.scrollLeft,top:n.top-r.top+this.view.scrollDOM.scrollTop,height:n.bottom-n.top}}drawCursor(e){this.cursor&&(e?(this.cursor.style.left=e.left+"px",this.cursor.style.top=e.top+"px",this.cursor.style.height=e.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(dropCursorPos)!=e&&this.view.dispatch({effects:setDropCursorPos.of(e)})}},{eventHandlers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){(e.target==this.view.contentDOM||!this.view.contentDOM.contains(e.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function dropCursor(){return[dropCursorPos,drawDropCursor]}function iterMatches(e,n,r,g,$){n.lastIndex=0;for(let L=e.iterRange(r,g),k=r,oe;!L.next().done;k+=L.value.length)if(!L.lineBreak)for(;oe=n.exec(L.value);)$(k+oe.index,oe)}function matchRanges(e,n){let r=e.visibleRanges;if(r.length==1&&r[0].from==e.viewport.from&&r[0].to==e.viewport.to)return r;let g=[];for(let{from:$,to:L}of r)$=Math.max(e.state.doc.lineAt($).from,$-n),L=Math.min(e.state.doc.lineAt(L).to,L+n),g.length&&g[g.length-1].to>=$?g[g.length-1].to=L:g.push({from:$,to:L});return g}class MatchDecorator{constructor(n){const{regexp:r,decoration:g,decorate:$,boundary:L,maxLength:k=1e3}=n;if(!r.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=r,$)this.addMatch=(oe,re,ae,le)=>$(le,ae,ae+oe[0].length,oe,re);else if(g){let oe=typeof g=="function"?g:()=>g;this.addMatch=(re,ae,le,ue)=>ue(le,le+re[0].length,oe(re,ae,le))}else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=L,this.maxLength=k}createDeco(n){let r=new RangeSetBuilder,g=r.add.bind(r);for(let{from:$,to:L}of matchRanges(n,this.maxLength))iterMatches(n.state.doc,this.regexp,$,L,(k,oe)=>this.addMatch(oe,n,k,g));return r.finish()}updateDeco(n,r){let g=1e9,$=-1;return n.docChanged&&n.changes.iterChanges((L,k,oe,re)=>{re>n.view.viewport.from&&oe1e3?this.createDeco(n.view):$>-1?this.updateRange(n.view,r.map(n.changes),g,$):r}updateRange(n,r,g,$){for(let L of n.visibleRanges){let k=Math.max(L.from,g),oe=Math.min(L.to,$);if(oe>k){let re=n.state.doc.lineAt(k),ae=re.tore.from;k--)if(this.boundary.test(re.text[k-1-re.from])){le=k;break}for(;oepe.push(Ie.range(ze,Ce));if(re==ae)for(this.regexp.lastIndex=le-re.from;(de=this.regexp.exec(re.text))&&de.indexthis.addMatch(Ce,n,ze,Fe));r=r.update({filterFrom:le,filterTo:ue,filter:(ze,Ce)=>zeue,add:pe})}}return r}}const UnicodeRegexpSupport=/x/.unicode!=null?"gu":"g",Specials=new RegExp(`[\0-\b +-\x7F-\x9F\xAD\u061C\u200B\u200E\u200F\u2028\u2029\u202D\u202E\u2066\u2067\u2069\uFEFF\uFFF9-\uFFFC]`,UnicodeRegexpSupport),Names={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let _supportsTabSize=null;function supportsTabSize(){var e;if(_supportsTabSize==null&&typeof document<"u"&&document.body){let n=document.body.style;_supportsTabSize=((e=n.tabSize)!==null&&e!==void 0?e:n.MozTabSize)!=null}return _supportsTabSize||!1}const specialCharConfig=Facet.define({combine(e){let n=combineConfig(e,{render:null,specialChars:Specials,addSpecialChars:null});return(n.replaceTabs=!supportsTabSize())&&(n.specialChars=new RegExp(" |"+n.specialChars.source,UnicodeRegexpSupport)),n.addSpecialChars&&(n.specialChars=new RegExp(n.specialChars.source+"|"+n.addSpecialChars.source,UnicodeRegexpSupport)),n}});function highlightSpecialChars(e={}){return[specialCharConfig.of(e),specialCharPlugin()]}let _plugin=null;function specialCharPlugin(){return _plugin||(_plugin=ViewPlugin.fromClass(class{constructor(e){this.view=e,this.decorations=Decoration.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(specialCharConfig)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new MatchDecorator({regexp:e.specialChars,decoration:(n,r,g)=>{let{doc:$}=r.state,L=codePointAt(n[0],0);if(L==9){let k=$.lineAt(g),oe=r.state.tabSize,re=countColumn(k.text,oe,g-k.from);return Decoration.replace({widget:new TabWidget((oe-re%oe)*this.view.defaultCharacterWidth)})}return this.decorationCache[L]||(this.decorationCache[L]=Decoration.replace({widget:new SpecialCharWidget(e,L)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let n=e.state.facet(specialCharConfig);e.startState.facet(specialCharConfig)!=n?(this.decorator=this.makeDecorator(n),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))}const DefaultPlaceholder="\u2022";function placeholder$1(e){return e>=32?DefaultPlaceholder:e==10?"\u2424":String.fromCharCode(9216+e)}class SpecialCharWidget extends WidgetType{constructor(n,r){super(),this.options=n,this.code=r}eq(n){return n.code==this.code}toDOM(n){let r=placeholder$1(this.code),g=n.state.phrase("Control character")+" "+(Names[this.code]||"0x"+this.code.toString(16)),$=this.options.render&&this.options.render(this.code,g,r);if($)return $;let L=document.createElement("span");return L.textContent=r,L.title=g,L.setAttribute("aria-label",g),L.className="cm-specialChar",L}ignoreEvent(){return!1}}class TabWidget extends WidgetType{constructor(n){super(),this.width=n}eq(n){return n.width==this.width}toDOM(){let n=document.createElement("span");return n.textContent=" ",n.className="cm-tab",n.style.width=this.width+"px",n}ignoreEvent(){return!1}}function highlightActiveLine(){return activeLineHighlighter}const lineDeco=Decoration.line({class:"cm-activeLine"}),activeLineHighlighter=ViewPlugin.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let n=-1,r=[];for(let g of e.state.selection.ranges){if(!g.empty)return Decoration.none;let $=e.lineBlockAt(g.head);$.from>n&&(r.push(lineDeco.range($.from)),n=$.from)}return Decoration.set(r)}},{decorations:e=>e.decorations});class Placeholder extends WidgetType{constructor(n){super(),this.content=n}toDOM(){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?n.setAttribute("aria-label","placeholder "+this.content):n.setAttribute("aria-hidden","true"),n}ignoreEvent(){return!1}}function placeholder(e){return ViewPlugin.fromClass(class{constructor(n){this.view=n,this.placeholder=Decoration.set([Decoration.widget({widget:new Placeholder(e),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?Decoration.none:this.placeholder}},{decorations:n=>n.decorations})}const MaxOff=2e3;function rectangleFor(e,n,r){let g=Math.min(n.line,r.line),$=Math.max(n.line,r.line),L=[];if(n.off>MaxOff||r.off>MaxOff||n.col<0||r.col<0){let k=Math.min(n.off,r.off),oe=Math.max(n.off,r.off);for(let re=g;re<=$;re++){let ae=e.doc.line(re);ae.length<=oe&&L.push(EditorSelection.range(ae.from+k,ae.to+oe))}}else{let k=Math.min(n.col,r.col),oe=Math.max(n.col,r.col);for(let re=g;re<=$;re++){let ae=e.doc.line(re),le=findColumn(ae.text,k,e.tabSize,!0);if(le>-1){let ue=findColumn(ae.text,oe,e.tabSize);L.push(EditorSelection.range(ae.from+le,ae.from+ue))}}}return L}function absoluteColumn(e,n){let r=e.coordsAtPos(e.viewport.from);return r?Math.round(Math.abs((r.left-n)/e.defaultCharacterWidth)):-1}function getPos(e,n){let r=e.posAtCoords({x:n.clientX,y:n.clientY},!1),g=e.state.doc.lineAt(r),$=r-g.from,L=$>MaxOff?-1:$==g.length?absoluteColumn(e,n.clientX):countColumn(g.text,e.state.tabSize,r-g.from);return{line:g.number,col:L,off:$}}function rectangleSelectionStyle(e,n){let r=getPos(e,n),g=e.state.selection;return r?{update($){if($.docChanged){let L=$.changes.mapPos($.startState.doc.line(r.line).from),k=$.state.doc.lineAt(L);r={line:k.number,col:r.col,off:Math.min(r.off,k.length)},g=g.map($.changes)}},get($,L,k){let oe=getPos(e,$);if(!oe)return g;let re=rectangleFor(e.state,r,oe);return re.length?k?EditorSelection.create(re.concat(g.ranges)):EditorSelection.create(re):g}}:null}function rectangularSelection(e){let n=e?.eventFilter||(r=>r.altKey&&r.button==0);return EditorView.mouseSelectionStyle.of((r,g)=>n(g)?rectangleSelectionStyle(r,g):null)}const keys={Alt:[18,e=>e.altKey],Control:[17,e=>e.ctrlKey],Shift:[16,e=>e.shiftKey],Meta:[91,e=>e.metaKey]},showCrosshair={style:"cursor: crosshair"};function crosshairCursor(e={}){let[n,r]=keys[e.key||"Alt"],g=ViewPlugin.fromClass(class{constructor($){this.view=$,this.isDown=!1}set($){this.isDown!=$&&(this.isDown=$,this.view.update([]))}},{eventHandlers:{keydown($){this.set($.keyCode==n||r($))},keyup($){($.keyCode==n||!r($))&&this.set(!1)}}});return[g,EditorView.contentAttributes.of($=>{var L;return!((L=$.plugin(g))===null||L===void 0)&&L.isDown?showCrosshair:null})]}const Outside="-10000px";class TooltipViewManager{constructor(n,r,g){this.facet=r,this.createTooltipView=g,this.input=n.state.facet(r),this.tooltips=this.input.filter($=>$),this.tooltipViews=this.tooltips.map(g)}update(n){let r=n.state.facet(this.facet),g=r.filter(L=>L);if(r===this.input){for(let L of this.tooltipViews)L.update&&L.update(n);return!1}let $=[];for(let L=0;L{var n,r,g;return{position:browser.ios?"absolute":((n=e.find($=>$.position))===null||n===void 0?void 0:n.position)||"fixed",parent:((r=e.find($=>$.parent))===null||r===void 0?void 0:r.parent)||null,tooltipSpace:((g=e.find($=>$.tooltipSpace))===null||g===void 0?void 0:g.tooltipSpace)||windowSpace}}}),tooltipPlugin=ViewPlugin.fromClass(class{constructor(e){var n;this.view=e,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let r=e.state.facet(tooltipConfig);this.position=r.position,this.parent=r.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new TooltipViewManager(e,showTooltip,g=>this.createTooltip(g)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(g=>{Date.now()>this.lastTransaction-50&&g.length>0&&g[g.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),(n=e.dom.ownerDocument.defaultView)===null||n===void 0||n.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let n=this.manager.update(e);n&&this.observeIntersection();let r=n||e.geometryChanged,g=e.state.facet(tooltipConfig);if(g.position!=this.position){this.position=g.position;for(let $ of this.manager.tooltipViews)$.dom.style.position=this.position;r=!0}if(g.parent!=this.parent){this.parent&&this.container.remove(),this.parent=g.parent,this.createContainer();for(let $ of this.manager.tooltipViews)this.container.appendChild($.dom);r=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);r&&this.maybeMeasure()}createTooltip(e){let n=e.create(this.view);if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",n.dom.appendChild(r)}return n.dom.style.position=this.position,n.dom.style.top=Outside,this.container.appendChild(n.dom),n.mount&&n.mount(this.view),n}destroy(){var e,n;(e=this.view.dom.ownerDocument.defaultView)===null||e===void 0||e.removeEventListener("resize",this.measureSoon);for(let{dom:r}of this.manager.tooltipViews)r.remove();(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((n,r)=>{let g=this.manager.tooltipViews[r];return g.getCoords?g.getCoords(n.pos):this.view.coordsAtPos(n.pos)}),size:this.manager.tooltipViews.map(({dom:n})=>n.getBoundingClientRect()),space:this.view.state.facet(tooltipConfig).tooltipSpace(this.view)}}writeMeasure(e){let{editor:n,space:r}=e,g=[];for(let $=0;$=Math.min(n.bottom,r.bottom)||re.rightMath.min(n.right,r.right)+.1){oe.style.top=Outside;continue}let le=L.arrow?k.dom.querySelector(".cm-tooltip-arrow"):null,ue=le?7:0,pe=ae.right-ae.left,de=ae.bottom-ae.top,Fe=k.offset||noOffset,ze=this.view.textDirection==Direction.LTR,Ce=ae.width>r.right-r.left?ze?r.left:r.right-ae.width:ze?Math.min(re.left-(le?14:0)+Fe.x,r.right-pe):Math.max(r.left,re.left-pe+(le?14:0)-Fe.x),Ie=!!L.above;!L.strictSide&&(Ie?re.top-(ae.bottom-ae.top)-Fe.yr.bottom)&&Ie==r.bottom-re.bottom>re.top-r.top&&(Ie=!Ie);let _e=Ie?re.top-de-ue-Fe.y:re.bottom+ue+Fe.y,At=Ce+pe;if(k.overlap!==!0)for(let qe of g)qe.leftCe&&qe.top<_e+de&&qe.bottom>_e&&(_e=Ie?qe.top-de-2-ue:qe.bottom+ue+2);this.position=="absolute"?(oe.style.top=_e-e.parent.top+"px",oe.style.left=Ce-e.parent.left+"px"):(oe.style.top=_e+"px",oe.style.left=Ce+"px"),le&&(le.style.left=`${re.left+(ze?Fe.x:-Fe.x)-(Ce+14-7)}px`),k.overlap!==!0&&g.push({left:Ce,top:_e,right:At,bottom:_e+de}),oe.classList.toggle("cm-tooltip-above",Ie),oe.classList.toggle("cm-tooltip-below",!Ie),k.positioned&&k.positioned()}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Outside}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),baseTheme$4=EditorView.baseTheme({".cm-tooltip":{zIndex:100},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:`${7}px`,width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:`${7}px solid transparent`,borderRight:`${7}px solid transparent`},".cm-tooltip-above &":{bottom:`-${7}px`,"&:before":{borderTop:`${7}px solid #bbb`},"&:after":{borderTop:`${7}px solid #f5f5f5`,bottom:"1px"}},".cm-tooltip-below &":{top:`-${7}px`,"&:before":{borderBottom:`${7}px solid #bbb`},"&:after":{borderBottom:`${7}px solid #f5f5f5`,top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),noOffset={x:0,y:0},showTooltip=Facet.define({enables:[tooltipPlugin,baseTheme$4]}),showHoverTooltip=Facet.define();class HoverTooltipHost{constructor(n){this.view=n,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new TooltipViewManager(n,showHoverTooltip,r=>this.createHostedView(r))}static create(n){return new HoverTooltipHost(n)}createHostedView(n){let r=n.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(r.dom),this.mounted&&r.mount&&r.mount(this.view),r}mount(n){for(let r of this.manager.tooltipViews)r.mount&&r.mount(n);this.mounted=!0}positioned(){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned()}update(n){this.manager.update(n)}}const showHoverTooltipHost=showTooltip.compute([showHoverTooltip],e=>{let n=e.facet(showHoverTooltip).filter(r=>r);return n.length===0?null:{pos:Math.min(...n.map(r=>r.pos)),end:Math.max(...n.filter(r=>r.end!=null).map(r=>r.end)),create:HoverTooltipHost.create,above:n[0].above,arrow:n.some(r=>r.arrow)}});class HoverPlugin{constructor(n,r,g,$,L){this.view=n,this.source=r,this.field=g,this.setHover=$,this.hoverTime=L,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:n.dom,time:0},this.checkHover=this.checkHover.bind(this),n.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),n.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let n=Date.now()-this.lastMove.time;ng.bottom||n.xg.right+this.view.defaultCharacterWidth)return;let $=this.view.bidiSpans(this.view.state.doc.lineAt(r)).find(oe=>oe.from<=r&&oe.to>=r),L=$&&$.dir==Direction.RTL?-1:1,k=this.source(this.view,r,n.x{this.pending==oe&&(this.pending=null,re&&this.view.dispatch({effects:this.setHover.of(re)}))},re=>logException(this.view.state,re,"hover tooltip"))}else k&&this.view.dispatch({effects:this.setHover.of(k)})}mousemove(n){var r;this.lastMove={x:n.clientX,y:n.clientY,target:n.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let g=this.active;if(g&&!isInTooltip(this.lastMove.target)||this.pending){let{pos:$}=g||this.pending,L=(r=g?.end)!==null&&r!==void 0?r:$;($==L?this.view.posAtCoords(this.lastMove)!=$:!isOverRange(this.view,$,L,n.clientX,n.clientY,6))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function isInTooltip(e){for(let n=e;n;n=n.parentNode)if(n.nodeType==1&&n.classList.contains("cm-tooltip"))return!0;return!1}function isOverRange(e,n,r,g,$,L){let k=document.createRange(),oe=e.domAtPos(n),re=e.domAtPos(r);k.setEnd(re.node,re.offset),k.setStart(oe.node,oe.offset);let ae=k.getClientRects();k.detach();for(let le=0;leshowHoverTooltip.from($)});return[g,ViewPlugin.define($=>new HoverPlugin($,e,g,r,n.hoverTime||300)),showHoverTooltipHost]}function getTooltip(e,n){let r=e.plugin(tooltipPlugin);if(!r)return null;let g=r.manager.tooltips.indexOf(n);return g<0?null:r.manager.tooltipViews[g]}const closeHoverTooltipEffect=StateEffect.define(),panelConfig=Facet.define({combine(e){let n,r;for(let g of e)n=n||g.topContainer,r=r||g.bottomContainer;return{topContainer:n,bottomContainer:r}}});function getPanel(e,n){let r=e.plugin(panelPlugin),g=r?r.specs.indexOf(n):-1;return g>-1?r.panels[g]:null}const panelPlugin=ViewPlugin.fromClass(class{constructor(e){this.input=e.state.facet(showPanel),this.specs=this.input.filter(r=>r),this.panels=this.specs.map(r=>r(e));let n=e.state.facet(panelConfig);this.top=new PanelGroup(e,!0,n.topContainer),this.bottom=new PanelGroup(e,!1,n.bottomContainer),this.top.sync(this.panels.filter(r=>r.top)),this.bottom.sync(this.panels.filter(r=>!r.top));for(let r of this.panels)r.dom.classList.add("cm-panel"),r.mount&&r.mount()}update(e){let n=e.state.facet(panelConfig);this.top.container!=n.topContainer&&(this.top.sync([]),this.top=new PanelGroup(e.view,!0,n.topContainer)),this.bottom.container!=n.bottomContainer&&(this.bottom.sync([]),this.bottom=new PanelGroup(e.view,!1,n.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let r=e.state.facet(showPanel);if(r!=this.input){let g=r.filter(re=>re),$=[],L=[],k=[],oe=[];for(let re of g){let ae=this.specs.indexOf(re),le;ae<0?(le=re(e.view),oe.push(le)):(le=this.panels[ae],le.update&&le.update(e)),$.push(le),(le.top?L:k).push(le)}this.specs=g,this.panels=$,this.top.sync(L),this.bottom.sync(k);for(let re of oe)re.dom.classList.add("cm-panel"),re.mount&&re.mount()}else for(let g of this.panels)g.update&&g.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>EditorView.scrollMargins.of(n=>{let r=n.plugin(e);return r&&{top:r.top.scrollMargin(),bottom:r.bottom.scrollMargin()}})});class PanelGroup{constructor(n,r,g){this.view=n,this.top=r,this.container=g,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(n){for(let r of this.panels)r.destroy&&n.indexOf(r)<0&&r.destroy();this.panels=n,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let r=this.container||this.view.dom;r.insertBefore(this.dom,this.top?r.firstChild:null)}let n=this.dom.firstChild;for(let r of this.panels)if(r.dom.parentNode==this.dom){for(;n!=r.dom;)n=rm(n);n=n.nextSibling}else this.dom.insertBefore(r.dom,n);for(;n;)n=rm(n)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let n of this.classes.split(" "))n&&this.container.classList.remove(n);for(let n of(this.classes=this.view.themeClasses).split(" "))n&&this.container.classList.add(n)}}}function rm(e){let n=e.nextSibling;return e.remove(),n}const showPanel=Facet.define({enables:panelPlugin});class GutterMarker extends RangeValue{compare(n){return this==n||this.constructor==n.constructor&&this.eq(n)}eq(n){return!1}destroy(n){}}GutterMarker.prototype.elementClass="";GutterMarker.prototype.toDOM=void 0;GutterMarker.prototype.mapMode=MapMode.TrackBefore;GutterMarker.prototype.startSide=GutterMarker.prototype.endSide=-1;GutterMarker.prototype.point=!0;const gutterLineClass=Facet.define(),defaults$2={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>RangeSet.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},activeGutters=Facet.define();function gutter(e){return[gutters(),activeGutters.of(Object.assign(Object.assign({},defaults$2),e))]}const unfixGutters=Facet.define({combine:e=>e.some(n=>n)});function gutters(e){let n=[gutterView];return e&&e.fixed===!1&&n.push(unfixGutters.of(!0)),n}const gutterView=ViewPlugin.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(activeGutters).map(n=>new SingleGutterView(e,n));for(let n of this.gutters)this.dom.appendChild(n.dom);this.fixed=!e.state.facet(unfixGutters),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let n=this.prevViewport,r=e.view.viewport,g=Math.min(n.to,r.to)-Math.max(n.from,r.from);this.syncGutters(g<(r.to-r.from)*.8)}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(unfixGutters)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let n=this.dom.nextSibling;e&&this.dom.remove();let r=RangeSet.iter(this.view.state.facet(gutterLineClass),this.view.viewport.from),g=[],$=this.gutters.map(L=>new UpdateContext(L,this.view.viewport,-this.view.documentPadding.top));for(let L of this.view.viewportLineBlocks){let k;if(Array.isArray(L.type)){for(let oe of L.type)if(oe.type==BlockType.Text){k=oe;break}}else k=L.type==BlockType.Text?L:void 0;if(!!k){g.length&&(g=[]),advanceCursor(r,g,L.from);for(let oe of $)oe.line(this.view,k,g)}}for(let L of $)L.finish();e&&this.view.scrollDOM.insertBefore(this.dom,n)}updateGutters(e){let n=e.startState.facet(activeGutters),r=e.state.facet(activeGutters),g=e.docChanged||e.heightChanged||e.viewportChanged||!RangeSet.eq(e.startState.facet(gutterLineClass),e.state.facet(gutterLineClass),e.view.viewport.from,e.view.viewport.to);if(n==r)for(let $ of this.gutters)$.update(e)&&(g=!0);else{g=!0;let $=[];for(let L of r){let k=n.indexOf(L);k<0?$.push(new SingleGutterView(this.view,L)):(this.gutters[k].update(e),$.push(this.gutters[k]))}for(let L of this.gutters)L.dom.remove(),$.indexOf(L)<0&&L.destroy();for(let L of $)this.dom.appendChild(L.dom);this.gutters=$}return g}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>EditorView.scrollMargins.of(n=>{let r=n.plugin(e);return!r||r.gutters.length==0||!r.fixed?null:n.textDirection==Direction.LTR?{left:r.dom.offsetWidth}:{right:r.dom.offsetWidth}})});function asArray(e){return Array.isArray(e)?e:[e]}function advanceCursor(e,n,r){for(;e.value&&e.from<=r;)e.from==r&&n.push(e.value),e.next()}class UpdateContext{constructor(n,r,g){this.gutter=n,this.height=g,this.localMarkers=[],this.i=0,this.cursor=RangeSet.iter(n.markers,r.from)}line(n,r,g){this.localMarkers.length&&(this.localMarkers=[]),advanceCursor(this.cursor,this.localMarkers,r.from);let $=g.length?this.localMarkers.concat(g):this.localMarkers,L=this.gutter.config.lineMarker(n,r,$);L&&$.unshift(L);let k=this.gutter;if($.length==0&&!k.config.renderEmptyElements)return;let oe=r.top-this.height;if(this.i==k.elements.length){let re=new GutterElement(n,r.height,oe,$);k.elements.push(re),k.dom.appendChild(re.dom)}else k.elements[this.i].update(n,r.height,oe,$);this.height=r.bottom,this.i++}finish(){let n=this.gutter;for(;n.elements.length>this.i;){let r=n.elements.pop();n.dom.removeChild(r.dom),r.destroy()}}}class SingleGutterView{constructor(n,r){this.view=n,this.config=r,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let g in r.domEventHandlers)this.dom.addEventListener(g,$=>{let L=n.lineBlockAtHeight($.clientY-n.documentTop);r.domEventHandlers[g](n,L,$)&&$.preventDefault()});this.markers=asArray(r.markers(n)),r.initialSpacer&&(this.spacer=new GutterElement(n,0,0,[r.initialSpacer(n)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(n){let r=this.markers;if(this.markers=asArray(this.config.markers(n.view)),this.spacer&&this.config.updateSpacer){let $=this.config.updateSpacer(this.spacer.markers[0],n);$!=this.spacer.markers[0]&&this.spacer.update(n.view,0,0,[$])}let g=n.view.viewport;return!RangeSet.eq(this.markers,r,g.from,g.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(n):!1)}destroy(){for(let n of this.elements)n.destroy()}}class GutterElement{constructor(n,r,g,$){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(n,r,g,$)}update(n,r,g,$){this.height!=r&&(this.dom.style.height=(this.height=r)+"px"),this.above!=g&&(this.dom.style.marginTop=(this.above=g)?g+"px":""),sameMarkers(this.markers,$)||this.setMarkers(n,$)}setMarkers(n,r){let g="cm-gutterElement",$=this.dom.firstChild;for(let L=0,k=0;;){let oe=k,re=LL(oe,re,ae)||k(oe,re,ae):k}return g}})}});class NumberMarker extends GutterMarker{constructor(n){super(),this.number=n}eq(n){return this.number==n.number}toDOM(){return document.createTextNode(this.number)}}function formatNumber(e,n){return e.state.facet(lineNumberConfig).formatNumber(n,e.state)}const lineNumberGutter=activeGutters.compute([lineNumberConfig],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(n){return n.state.facet(lineNumberMarkers)},lineMarker(n,r,g){return g.some($=>$.toDOM)?null:new NumberMarker(formatNumber(n,n.state.doc.lineAt(r.from).number))},lineMarkerChange:n=>n.startState.facet(lineNumberConfig)!=n.state.facet(lineNumberConfig),initialSpacer(n){return new NumberMarker(formatNumber(n,maxLineNumber(n.state.doc.lines)))},updateSpacer(n,r){let g=formatNumber(r.view,maxLineNumber(r.view.state.doc.lines));return g==n.number?n:new NumberMarker(g)},domEventHandlers:e.facet(lineNumberConfig).domEventHandlers}));function lineNumbers(e={}){return[lineNumberConfig.of(e),gutters(),lineNumberGutter]}function maxLineNumber(e){let n=9;for(;n{let n=[],r=-1;for(let g of e.selection.ranges)if(g.empty){let $=e.doc.lineAt(g.head).from;$>r&&(r=$,n.push(activeLineGutterMarker.range($)))}return RangeSet.of(n)});function highlightActiveLineGutter(){return activeLineGutterHighlighter}var _a;const languageDataProp=new NodeProp;function defineLanguageFacet(e){return Facet.define({combine:e?n=>n.concat(e):void 0})}class Language{constructor(n,r,g=[]){this.data=n,EditorState.prototype.hasOwnProperty("tree")||Object.defineProperty(EditorState.prototype,"tree",{get(){return syntaxTree(this)}}),this.parser=r,this.extension=[language.of(this),EditorState.languageData.of(($,L,k)=>$.facet(languageDataFacetAt($,L,k)))].concat(g)}isActiveAt(n,r,g=-1){return languageDataFacetAt(n,r,g)==this.data}findRegions(n){let r=n.facet(language);if(r?.data==this.data)return[{from:0,to:n.doc.length}];if(!r||!r.allowsNesting)return[];let g=[],$=(L,k)=>{if(L.prop(languageDataProp)==this.data){g.push({from:k,to:k+L.length});return}let oe=L.prop(NodeProp.mounted);if(oe){if(oe.tree.prop(languageDataProp)==this.data){if(oe.overlay)for(let re of oe.overlay)g.push({from:re.from+k,to:re.to+k});else g.push({from:k,to:k+L.length});return}else if(oe.overlay){let re=g.length;if($(oe.tree,oe.overlay[0].from+k),g.length>re)return}}for(let re=0;reg.isTop?r:void 0)]}))}configure(n){return new LRLanguage(this.data,this.parser.configure(n))}get allowsNesting(){return this.parser.hasWrappers()}}function syntaxTree(e){let n=e.field(Language.state,!1);return n?n.tree:Tree.empty}class DocInput{constructor(n,r=n.length){this.doc=n,this.length=r,this.cursorPos=0,this.string="",this.cursor=n.iter()}syncTo(n){return this.string=this.cursor.next(n-this.cursorPos).value,this.cursorPos=n+this.string.length,this.cursorPos-this.string.length}chunk(n){return this.syncTo(n),this.string}get lineChunks(){return!0}read(n,r){let g=this.cursorPos-this.string.length;return n=this.cursorPos?this.doc.sliceString(n,r):this.string.slice(n-g,r-g)}}let currentContext=null;class ParseContext{constructor(n,r,g=[],$,L,k,oe,re){this.parser=n,this.state=r,this.fragments=g,this.tree=$,this.treeLen=L,this.viewport=k,this.skipped=oe,this.scheduleOn=re,this.parse=null,this.tempSkipped=[]}static create(n,r,g){return new ParseContext(n,r,[],Tree.empty,0,g,[],null)}startParse(){return this.parser.startParse(new DocInput(this.state.doc),this.fragments)}work(n,r){return r!=null&&r>=this.state.doc.length&&(r=void 0),this.tree!=Tree.empty&&this.isDone(r??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var g;if(typeof n=="number"){let $=Date.now()+n;n=()=>Date.now()>$}for(this.parse||(this.parse=this.startParse()),r!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>r)&&r=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&this.parse.stopAt(n),this.withContext(()=>{for(;!(r=this.parse.advance()););}),this.treeLen=n,this.tree=r,this.fragments=this.withoutTempSkipped(TreeFragment.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(n){let r=currentContext;currentContext=this;try{return n()}finally{currentContext=r}}withoutTempSkipped(n){for(let r;r=this.tempSkipped.pop();)n=cutFragments(n,r.from,r.to);return n}changes(n,r){let{fragments:g,tree:$,treeLen:L,viewport:k,skipped:oe}=this;if(this.takeTree(),!n.empty){let re=[];if(n.iterChangedRanges((ae,le,ue,pe)=>re.push({fromA:ae,toA:le,fromB:ue,toB:pe})),g=TreeFragment.applyChanges(g,re),$=Tree.empty,L=0,k={from:n.mapPos(k.from,-1),to:n.mapPos(k.to,1)},this.skipped.length){oe=[];for(let ae of this.skipped){let le=n.mapPos(ae.from,1),ue=n.mapPos(ae.to,-1);len.from&&(this.fragments=cutFragments(this.fragments,$,L),this.skipped.splice(g--,1))}return this.skipped.length>=r?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(n,r){this.skipped.push({from:n,to:r})}static getSkippingParser(n){return new class extends Parser{createParse(r,g,$){let L=$[0].from,k=$[$.length-1].to;return{parsedPos:L,advance(){let re=currentContext;if(re){for(let ae of $)re.tempSkipped.push(ae);n&&(re.scheduleOn=re.scheduleOn?Promise.all([re.scheduleOn,n]):n)}return this.parsedPos=k,new Tree(NodeType.none,[],[],k-L)},stoppedAt:null,stopAt(){}}}}}isDone(n){n=Math.min(n,this.state.doc.length);let r=this.fragments;return this.treeLen>=n&&r.length&&r[0].from==0&&r[0].to>=n}static get(){return currentContext}}function cutFragments(e,n,r){return TreeFragment.applyChanges(e,[{fromA:n,toA:r,fromB:n,toB:r}])}class LanguageState{constructor(n){this.context=n,this.tree=n.tree}apply(n){if(!n.docChanged&&this.tree==this.context.tree)return this;let r=this.context.changes(n.changes,n.state),g=this.context.treeLen==n.startState.doc.length?void 0:Math.max(n.changes.mapPos(this.context.treeLen),r.viewport.to);return r.work(20,g)||r.takeTree(),new LanguageState(r)}static init(n){let r=Math.min(3e3,n.doc.length),g=ParseContext.create(n.facet(language).parser,n,{from:0,to:r});return g.work(20,r)||g.takeTree(),new LanguageState(g)}}Language.state=StateField.define({create:LanguageState.init,update(e,n){for(let r of n.effects)if(r.is(Language.setState))return r.value;return n.startState.facet(language)!=n.state.facet(language)?LanguageState.init(n.state):e.apply(n)}});let requestIdle=e=>{let n=setTimeout(()=>e(),500);return()=>clearTimeout(n)};typeof requestIdleCallback<"u"&&(requestIdle=e=>{let n=-1,r=setTimeout(()=>{n=requestIdleCallback(e,{timeout:500-100})},100);return()=>n<0?clearTimeout(r):cancelIdleCallback(n)});const isInputPending=typeof navigator<"u"&&((_a=navigator.scheduling)===null||_a===void 0?void 0:_a.isInputPending)?()=>navigator.scheduling.isInputPending():null,parseWorker=ViewPlugin.fromClass(class{constructor(n){this.view=n,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(n){let r=this.view.state.field(Language.state).context;(r.updateViewport(n.view.viewport)||this.view.viewport.to>r.treeLen)&&this.scheduleWork(),n.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(r)}scheduleWork(){if(this.working)return;let{state:n}=this.view,r=n.field(Language.state);(r.tree!=r.context.tree||!r.context.isDone(n.doc.length))&&(this.working=requestIdle(this.work))}work(n){this.working=null;let r=Date.now();if(this.chunkEnd$+1e3,re=L.context.work(()=>isInputPending&&isInputPending()||Date.now()>k,$+(oe?0:1e5));this.chunkBudget-=Date.now()-r,(re||this.chunkBudget<=0)&&(L.context.takeTree(),this.view.dispatch({effects:Language.setState.of(new LanguageState(L.context))})),this.chunkBudget>0&&!(re&&!oe)&&this.scheduleWork(),this.checkAsyncSchedule(L.context)}checkAsyncSchedule(n){n.scheduleOn&&(this.workScheduled++,n.scheduleOn.then(()=>this.scheduleWork()).catch(r=>logException(this.view.state,r)).then(()=>this.workScheduled--),n.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),language=Facet.define({combine(e){return e.length?e[0]:null},enables:[Language.state,parseWorker]});class LanguageSupport{constructor(n,r=[]){this.language=n,this.support=r,this.extension=[n,r]}}const indentService=Facet.define(),indentUnit=Facet.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});function getIndentUnit(e){let n=e.facet(indentUnit);return n.charCodeAt(0)==9?e.tabSize*n.length:n.length}function indentString(e,n){let r="",g=e.tabSize;if(e.facet(indentUnit).charCodeAt(0)==9)for(;n>=g;)r+=" ",n-=g;for(let $=0;$=g.from&&$<=g.to?L&&$==n?{text:"",from:n}:(r<0?$-1&&(L+=k-this.countColumn(g,g.search(/\S|$/))),L}countColumn(n,r=n.length){return countColumn(n,this.state.tabSize,r)}lineIndent(n,r=1){let{text:g,from:$}=this.lineAt(n,r),L=this.options.overrideIndentation;if(L){let k=L($);if(k>-1)return k}return this.countColumn(g,g.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const indentNodeProp=new NodeProp;function syntaxIndentation(e,n,r){return indentFrom(n.resolveInner(r).enterUnfinishedNodesBefore(r),r,e)}function ignoreClosed(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function indentStrategy(e){let n=e.type.prop(indentNodeProp);if(n)return n;let r=e.firstChild,g;if(r&&(g=r.type.prop(NodeProp.closedBy))){let $=e.lastChild,L=$&&g.indexOf($.name)>-1;return k=>delimitedStrategy(k,!0,1,void 0,L&&!ignoreClosed(k)?$.from:void 0)}return e.parent==null?topIndent:null}function indentFrom(e,n,r){for(;e;e=e.parent){let g=indentStrategy(e);if(g)return g(TreeIndentContext.create(r,n,e))}return null}function topIndent(){return 0}class TreeIndentContext extends IndentContext{constructor(n,r,g){super(n.state,n.options),this.base=n,this.pos=r,this.node=g}static create(n,r,g){return new TreeIndentContext(n,r,g)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let n=this.state.doc.lineAt(this.node.from);for(;;){let r=this.node.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(isParent(r,this.node))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){let n=this.node.parent;return n?indentFrom(n,this.pos,this.base):0}}function isParent(e,n){for(let r=n;r;r=r.parent)if(e==r)return!0;return!1}function bracketedAligned(e){let n=e.node,r=n.childAfter(n.from),g=n.lastChild;if(!r)return null;let $=e.options.simulateBreak,L=e.state.doc.lineAt(r.from),k=$==null||$<=L.from?L.to:Math.min(L.to,$);for(let oe=r.to;;){let re=n.childAfter(oe);if(!re||re==g)return null;if(!re.type.isSkipped)return re.fromdelimitedStrategy(g,n,r,e)}function delimitedStrategy(e,n,r,g,$){let L=e.textAfter,k=L.match(/^\s*/)[0].length,oe=g&&L.slice(k,k+g.length)==g||$==e.pos+k,re=n?bracketedAligned(e):null;return re?oe?e.column(re.from):e.column(re.to):e.baseIndent+(oe?0:e.unit*r)}const flatIndent=e=>e.baseIndent;function continuedIndent({except:e,units:n=1}={}){return r=>{let g=e&&e.test(r.textAfter);return r.baseIndent+(g?0:n*r.unit)}}const DontIndentBeyond=200;function indentOnInput(){return EditorState.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let n=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!n.length)return e;let r=e.newDoc,{head:g}=e.newSelection.main,$=r.lineAt(g);if(g>$.from+DontIndentBeyond)return e;let L=r.sliceString($.from,g);if(!n.some(ae=>ae.test(L)))return e;let{state:k}=e,oe=-1,re=[];for(let{head:ae}of k.selection.ranges){let le=k.doc.lineAt(ae);if(le.from==oe)continue;oe=le.from;let ue=getIndentation(k,le.from);if(ue==null)continue;let pe=/^\s*/.exec(le.text)[0],de=indentString(k,ue);pe!=de&&re.push({from:le.from,to:le.from+pe.length,insert:de})}return re.length?[e,{changes:re,sequential:!0}]:e})}const foldService=Facet.define(),foldNodeProp=new NodeProp;function foldInside(e){let n=e.firstChild,r=e.lastChild;return n&&n.tor)continue;if(L&&k.from=n&&re.to>r&&(L=re)}}return L}function isUnfinished(e){let n=e.lastChild;return n&&n.to==e.to&&n.type.isError}function foldable(e,n,r){for(let g of e.facet(foldService)){let $=g(e,n,r);if($)return $}return syntaxFolding(e,n,r)}function mapRange(e,n){let r=n.mapPos(e.from,1),g=n.mapPos(e.to,-1);return r>=g?void 0:{from:r,to:g}}const foldEffect=StateEffect.define({map:mapRange}),unfoldEffect=StateEffect.define({map:mapRange});function selectedLines(e){let n=[];for(let{head:r}of e.state.selection.ranges)n.some(g=>g.from<=r&&g.to>=r)||n.push(e.lineBlockAt(r));return n}const foldState=StateField.define({create(){return Decoration.none},update(e,n){e=e.map(n.changes);for(let r of n.effects)r.is(foldEffect)&&!foldExists(e,r.value.from,r.value.to)?e=e.update({add:[foldWidget.range(r.value.from,r.value.to)]}):r.is(unfoldEffect)&&(e=e.update({filter:(g,$)=>r.value.from!=g||r.value.to!=$,filterFrom:r.value.from,filterTo:r.value.to}));if(n.selection){let r=!1,{head:g}=n.selection.main;e.between(g,g,($,L)=>{$g&&(r=!0)}),r&&(e=e.update({filterFrom:g,filterTo:g,filter:($,L)=>L<=g||$>=g}))}return e},provide:e=>EditorView.decorations.from(e),toJSON(e,n){let r=[];return e.between(0,n.doc.length,(g,$)=>{r.push(g,$)}),r},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let n=[];for(let r=0;r{(!$||$.from>L)&&($={from:L,to:k})}),$}function foldExists(e,n,r){let g=!1;return e.between(n,n,($,L)=>{$==n&&L==r&&(g=!0)}),g}function maybeEnable(e,n){return e.field(foldState,!1)?n:n.concat(StateEffect.appendConfig.of(codeFolding()))}const foldCode=e=>{for(let n of selectedLines(e)){let r=foldable(e.state,n.from,n.to);if(r)return e.dispatch({effects:maybeEnable(e.state,[foldEffect.of(r),announceFold(e,r)])}),!0}return!1},unfoldCode=e=>{if(!e.state.field(foldState,!1))return!1;let n=[];for(let r of selectedLines(e)){let g=findFold(e.state,r.from,r.to);g&&n.push(unfoldEffect.of(g),announceFold(e,g,!1))}return n.length&&e.dispatch({effects:n}),n.length>0};function announceFold(e,n,r=!0){let g=e.state.doc.lineAt(n.from).number,$=e.state.doc.lineAt(n.to).number;return EditorView.announce.of(`${e.state.phrase(r?"Folded lines":"Unfolded lines")} ${g} ${e.state.phrase("to")} ${$}.`)}const foldAll=e=>{let{state:n}=e,r=[];for(let g=0;g{let n=e.state.field(foldState,!1);if(!n||!n.size)return!1;let r=[];return n.between(0,e.state.doc.length,(g,$)=>{r.push(unfoldEffect.of({from:g,to:$}))}),e.dispatch({effects:r}),!0},foldKeymap=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:foldCode},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:unfoldCode},{key:"Ctrl-Alt-[",run:foldAll},{key:"Ctrl-Alt-]",run:unfoldAll}],defaultConfig={placeholderDOM:null,placeholderText:"\u2026"},foldConfig=Facet.define({combine(e){return combineConfig(e,defaultConfig)}});function codeFolding(e){let n=[foldState,baseTheme$1$2];return e&&n.push(foldConfig.of(e)),n}const foldWidget=Decoration.replace({widget:new class extends WidgetType{toDOM(e){let{state:n}=e,r=n.facet(foldConfig),g=L=>{let k=e.lineBlockAt(e.posAtDOM(L.target)),oe=findFold(e.state,k.from,k.to);oe&&e.dispatch({effects:unfoldEffect.of(oe)}),L.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,g);let $=document.createElement("span");return $.textContent=r.placeholderText,$.setAttribute("aria-label",n.phrase("folded code")),$.title=n.phrase("unfold"),$.className="cm-foldPlaceholder",$.onclick=g,$}}}),foldGutterDefaults={openText:"\u2304",closedText:"\u203A",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class FoldMarker extends GutterMarker{constructor(n,r){super(),this.config=n,this.open=r}eq(n){return this.config==n.config&&this.open==n.open}toDOM(n){if(this.config.markerDOM)return this.config.markerDOM(this.open);let r=document.createElement("span");return r.textContent=this.open?this.config.openText:this.config.closedText,r.title=n.state.phrase(this.open?"Fold line":"Unfold line"),r}}function foldGutter(e={}){let n=Object.assign(Object.assign({},foldGutterDefaults),e),r=new FoldMarker(n,!0),g=new FoldMarker(n,!1),$=ViewPlugin.fromClass(class{constructor(k){this.from=k.viewport.from,this.markers=this.buildMarkers(k)}update(k){(k.docChanged||k.viewportChanged||k.startState.facet(language)!=k.state.facet(language)||k.startState.field(foldState,!1)!=k.state.field(foldState,!1)||syntaxTree(k.startState)!=syntaxTree(k.state)||n.foldingChanged(k))&&(this.markers=this.buildMarkers(k.view))}buildMarkers(k){let oe=new RangeSetBuilder;for(let re of k.viewportLineBlocks){let ae=findFold(k.state,re.from,re.to)?g:foldable(k.state,re.from,re.to)?r:null;ae&&oe.add(re.from,re.from,ae)}return oe.finish()}}),{domEventHandlers:L}=n;return[$,gutter({class:"cm-foldGutter",markers(k){var oe;return((oe=k.plugin($))===null||oe===void 0?void 0:oe.markers)||RangeSet.empty},initialSpacer(){return new FoldMarker(n,!1)},domEventHandlers:Object.assign(Object.assign({},L),{click:(k,oe,re)=>{if(L.click&&L.click(k,oe,re))return!0;let ae=findFold(k.state,oe.from,oe.to);if(ae)return k.dispatch({effects:unfoldEffect.of(ae)}),!0;let le=foldable(k.state,oe.from,oe.to);return le?(k.dispatch({effects:foldEffect.of(le)}),!0):!1}})}),codeFolding()]}const baseTheme$1$2=EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class HighlightStyle{constructor(n,r){let g;function $(oe){let re=StyleModule.newName();return(g||(g=Object.create(null)))["."+re]=oe,re}const L=typeof r.all=="string"?r.all:r.all?$(r.all):void 0,k=r.scope;this.scope=k instanceof Language?oe=>oe.prop(languageDataProp)==k.data:k?oe=>oe==k:void 0,this.style=tagHighlighter(n.map(oe=>({tag:oe.tag,class:oe.class||$(Object.assign({},oe,{tag:null}))})),{all:L}).style,this.module=g?new StyleModule(g):null,this.themeType=r.themeType}static define(n,r){return new HighlightStyle(n,r||{})}}const highlighterFacet=Facet.define(),fallbackHighlighter=Facet.define({combine(e){return e.length?[e[0]]:null}});function getHighlighters(e){let n=e.facet(highlighterFacet);return n.length?n:e.facet(fallbackHighlighter)}function syntaxHighlighting(e,n){let r=[treeHighlighter],g;return e instanceof HighlightStyle&&(e.module&&r.push(EditorView.styleModule.of(e.module)),g=e.themeType),n?.fallback?r.push(fallbackHighlighter.of(e)):g?r.push(highlighterFacet.computeN([EditorView.darkTheme],$=>$.facet(EditorView.darkTheme)==(g=="dark")?[e]:[])):r.push(highlighterFacet.of(e)),r}class TreeHighlighter{constructor(n){this.markCache=Object.create(null),this.tree=syntaxTree(n.state),this.decorations=this.buildDeco(n,getHighlighters(n.state))}update(n){let r=syntaxTree(n.state),g=getHighlighters(n.state),$=g!=getHighlighters(n.startState);r.length{g.add(k,oe,this.markCache[re]||(this.markCache[re]=Decoration.mark({class:re})))},$,L);return g.finish()}}const treeHighlighter=Prec.high(ViewPlugin.fromClass(TreeHighlighter,{decorations:e=>e.decorations})),defaultHighlightStyle=HighlightStyle.define([{tag:tags$1.meta,color:"#7a757a"},{tag:tags$1.link,textDecoration:"underline"},{tag:tags$1.heading,textDecoration:"underline",fontWeight:"bold"},{tag:tags$1.emphasis,fontStyle:"italic"},{tag:tags$1.strong,fontWeight:"bold"},{tag:tags$1.strikethrough,textDecoration:"line-through"},{tag:tags$1.keyword,color:"#708"},{tag:[tags$1.atom,tags$1.bool,tags$1.url,tags$1.contentSeparator,tags$1.labelName],color:"#219"},{tag:[tags$1.literal,tags$1.inserted],color:"#164"},{tag:[tags$1.string,tags$1.deleted],color:"#a11"},{tag:[tags$1.regexp,tags$1.escape,tags$1.special(tags$1.string)],color:"#e40"},{tag:tags$1.definition(tags$1.variableName),color:"#00f"},{tag:tags$1.local(tags$1.variableName),color:"#30a"},{tag:[tags$1.typeName,tags$1.namespace],color:"#085"},{tag:tags$1.className,color:"#167"},{tag:[tags$1.special(tags$1.variableName),tags$1.macroName],color:"#256"},{tag:tags$1.definition(tags$1.propertyName),color:"#00c"},{tag:tags$1.comment,color:"#940"},{tag:tags$1.invalid,color:"#f00"}]),baseTheme$3=EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),DefaultScanDist=1e4,DefaultBrackets="()[]{}",bracketMatchingConfig=Facet.define({combine(e){return combineConfig(e,{afterCursor:!0,brackets:DefaultBrackets,maxScanDistance:DefaultScanDist,renderMatch:defaultRenderMatch})}}),matchingMark=Decoration.mark({class:"cm-matchingBracket"}),nonmatchingMark=Decoration.mark({class:"cm-nonmatchingBracket"});function defaultRenderMatch(e){let n=[],r=e.matched?matchingMark:nonmatchingMark;return n.push(r.range(e.start.from,e.start.to)),e.end&&n.push(r.range(e.end.from,e.end.to)),n}const bracketMatchingState=StateField.define({create(){return Decoration.none},update(e,n){if(!n.docChanged&&!n.selection)return e;let r=[],g=n.state.facet(bracketMatchingConfig);for(let $ of n.state.selection.ranges){if(!$.empty)continue;let L=matchBrackets(n.state,$.head,-1,g)||$.head>0&&matchBrackets(n.state,$.head-1,1,g)||g.afterCursor&&(matchBrackets(n.state,$.head,1,g)||$.headEditorView.decorations.from(e)}),bracketMatchingUnique=[bracketMatchingState,baseTheme$3];function bracketMatching(e={}){return[bracketMatchingConfig.of(e),bracketMatchingUnique]}function matchingNodes(e,n,r){let g=e.prop(n<0?NodeProp.openedBy:NodeProp.closedBy);if(g)return g;if(e.name.length==1){let $=r.indexOf(e.name);if($>-1&&$%2==(n<0?1:0))return[r[$+n]]}return null}function matchBrackets(e,n,r,g={}){let $=g.maxScanDistance||DefaultScanDist,L=g.brackets||DefaultBrackets,k=syntaxTree(e),oe=k.resolveInner(n,r);for(let re=oe;re;re=re.parent){let ae=matchingNodes(re.type,r,L);if(ae&&re.from=g.to){if(re==0&&$.indexOf(ae.type.name)>-1&&ae.from0)return null;let ae={from:r<0?n-1:n,to:r>0?n+1:n},le=e.doc.iterRange(n,r>0?e.doc.length:0),ue=0;for(let pe=0;!le.next().done&&pe<=L;){let de=le.value;r<0&&(pe+=de.length);let Fe=n+pe*r;for(let ze=r>0?0:de.length-1,Ce=r>0?de.length:-1;ze!=Ce;ze+=r){let Ie=k.indexOf(de[ze]);if(!(Ie<0||g.resolveInner(Fe+ze,1).type!=$))if(Ie%2==0==r>0)ue++;else{if(ue==1)return{start:ae,end:{from:Fe+ze,to:Fe+ze+1},matched:Ie>>1==re>>1};ue--}}r>0&&(pe+=de.length)}return le.done?{start:ae,matched:!1}:null}const noTokens=Object.create(null),typeArray=[NodeType.none],warned=[],defaultTable=Object.create(null);for(let[e,n]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])defaultTable[e]=createTokenType(noTokens,n);function warnForPart(e,n){warned.indexOf(e)>-1||(warned.push(e),console.warn(n))}function createTokenType(e,n){let r=null;for(let L of n.split(".")){let k=e[L]||tags$1[L];k?typeof k=="function"?r?r=k(r):warnForPart(L,`Modifier ${L} used at start of tag`):r?warnForPart(L,`Tag ${L} used as modifier`):r=k:warnForPart(L,`Unknown highlighting tag ${L}`)}if(!r)return 0;let g=n.replace(/ /g,"_"),$=NodeType.define({id:typeArray.length,name:g,props:[styleTags({[g]:r})]});return typeArray.push($),$.id}const jsonLanguage=LRLanguage.define({parser:parser$2.configure({props:[indentNodeProp.add({Object:continuedIndent({except:/^\s*\}/}),Array:continuedIndent({except:/^\s*\]/})}),foldNodeProp.add({"Object Array":foldInside})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function json(){return new LanguageSupport(jsonLanguage)}var wangEditor={exports:{}};(function(e,n){(function(g,$){e.exports=$()})(window,function(){return function(r){var g={};function $(L){if(g[L])return g[L].exports;var k=g[L]={i:L,l:!1,exports:{}};return r[L].call(k.exports,k,k.exports,$),k.l=!0,k.exports}return $.m=r,$.c=g,$.d=function(L,k,oe){$.o(L,k)||Object.defineProperty(L,k,{enumerable:!0,get:oe})},$.r=function(L){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(L,"__esModule",{value:!0})},$.t=function(L,k){if(k&1&&(L=$(L)),k&8||k&4&&typeof L=="object"&&L&&L.__esModule)return L;var oe=Object.create(null);if($.r(oe),Object.defineProperty(oe,"default",{enumerable:!0,value:L}),k&2&&typeof L!="string")for(var re in L)$.d(oe,re,function(ae){return L[ae]}.bind(null,re));return oe},$.n=function(L){var k=L&&L.__esModule?function(){return L.default}:function(){return L};return $.d(k,"a",k),k},$.o=function(L,k){return Object.prototype.hasOwnProperty.call(L,k)},$.p="",$($.s=141)}([function(r,g){function $(L){return L&&L.__esModule?L:{default:L}}r.exports=$},function(r,g,$){r.exports=$(142)},function(r,g,$){$.r(g),$.d(g,"__extends",function(){return k}),$.d(g,"__assign",function(){return oe}),$.d(g,"__rest",function(){return re}),$.d(g,"__decorate",function(){return ae}),$.d(g,"__param",function(){return le}),$.d(g,"__metadata",function(){return ue}),$.d(g,"__awaiter",function(){return pe}),$.d(g,"__generator",function(){return de}),$.d(g,"__createBinding",function(){return Fe}),$.d(g,"__exportStar",function(){return ze}),$.d(g,"__values",function(){return Ce}),$.d(g,"__read",function(){return Ie}),$.d(g,"__spread",function(){return _e}),$.d(g,"__spreadArrays",function(){return At}),$.d(g,"__spreadArray",function(){return qe}),$.d(g,"__await",function(){return xe}),$.d(g,"__asyncGenerator",function(){return Ve}),$.d(g,"__asyncDelegator",function(){return he}),$.d(g,"__asyncValues",function(){return Oe}),$.d(g,"__makeTemplateObject",function(){return $e}),$.d(g,"__importStar",function(){return Ue}),$.d(g,"__importDefault",function(){return kt}),$.d(g,"__classPrivateFieldGet",function(){return Et}),$.d(g,"__classPrivateFieldSet",function(){return Pt});/*! ***************************************************************************** + 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 L=function(Lt,vn){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(hn,Dt){hn.__proto__=Dt}||function(hn,Dt){for(var jt in Dt)Object.prototype.hasOwnProperty.call(Dt,jt)&&(hn[jt]=Dt[jt])},L(Lt,vn)};function k(Lt,vn){if(typeof vn!="function"&&vn!==null)throw new TypeError("Class extends value "+String(vn)+" is not a constructor or null");L(Lt,vn);function hn(){this.constructor=Lt}Lt.prototype=vn===null?Object.create(vn):(hn.prototype=vn.prototype,new hn)}var oe=function(){return oe=Object.assign||function(vn){for(var hn,Dt=1,jt=arguments.length;Dt=0;Cn--)(Sn=Lt[Cn])&&(bn=(jt<3?Sn(bn):jt>3?Sn(vn,hn,bn):Sn(vn,hn))||bn);return jt>3&&bn&&Object.defineProperty(vn,hn,bn),bn}function le(Lt,vn){return function(hn,Dt){vn(hn,Dt,Lt)}}function ue(Lt,vn){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Lt,vn)}function pe(Lt,vn,hn,Dt){function jt(bn){return bn instanceof hn?bn:new hn(function(Sn){Sn(bn)})}return new(hn||(hn=Promise))(function(bn,Sn){function Cn(An){try{En(Dt.next(An))}catch(In){Sn(In)}}function On(An){try{En(Dt.throw(An))}catch(In){Sn(In)}}function En(An){An.done?bn(An.value):jt(An.value).then(Cn,On)}En((Dt=Dt.apply(Lt,vn||[])).next())})}function de(Lt,vn){var hn={label:0,sent:function(){if(bn[0]&1)throw bn[1];return bn[1]},trys:[],ops:[]},Dt,jt,bn,Sn;return Sn={next:Cn(0),throw:Cn(1),return:Cn(2)},typeof Symbol=="function"&&(Sn[Symbol.iterator]=function(){return this}),Sn;function Cn(En){return function(An){return On([En,An])}}function On(En){if(Dt)throw new TypeError("Generator is already executing.");for(;hn;)try{if(Dt=1,jt&&(bn=En[0]&2?jt.return:En[0]?jt.throw||((bn=jt.return)&&bn.call(jt),0):jt.next)&&!(bn=bn.call(jt,En[1])).done)return bn;switch(jt=0,bn&&(En=[En[0]&2,bn.value]),En[0]){case 0:case 1:bn=En;break;case 4:return hn.label++,{value:En[1],done:!1};case 5:hn.label++,jt=En[1],En=[0];continue;case 7:En=hn.ops.pop(),hn.trys.pop();continue;default:if(bn=hn.trys,!(bn=bn.length>0&&bn[bn.length-1])&&(En[0]===6||En[0]===2)){hn=0;continue}if(En[0]===3&&(!bn||En[1]>bn[0]&&En[1]=Lt.length&&(Lt=void 0),{value:Lt&&Lt[Dt++],done:!Lt}}};throw new TypeError(vn?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ie(Lt,vn){var hn=typeof Symbol=="function"&&Lt[Symbol.iterator];if(!hn)return Lt;var Dt=hn.call(Lt),jt,bn=[],Sn;try{for(;(vn===void 0||vn-- >0)&&!(jt=Dt.next()).done;)bn.push(jt.value)}catch(Cn){Sn={error:Cn}}finally{try{jt&&!jt.done&&(hn=Dt.return)&&hn.call(Dt)}finally{if(Sn)throw Sn.error}}return bn}function _e(){for(var Lt=[],vn=0;vn1||Cn($n,Pn)})})}function Cn($n,Pn){try{On(Dt[$n](Pn))}catch(Dn){In(bn[0][3],Dn)}}function On($n){$n.value instanceof xe?Promise.resolve($n.value.v).then(En,An):In(bn[0][2],$n)}function En($n){Cn("next",$n)}function An($n){Cn("throw",$n)}function In($n,Pn){$n(Pn),bn.shift(),bn.length&&Cn(bn[0][0],bn[0][1])}}function he(Lt){var vn,hn;return vn={},Dt("next"),Dt("throw",function(jt){throw jt}),Dt("return"),vn[Symbol.iterator]=function(){return this},vn;function Dt(jt,bn){vn[jt]=Lt[jt]?function(Sn){return(hn=!hn)?{value:xe(Lt[jt](Sn)),done:jt==="return"}:bn?bn(Sn):Sn}:bn}}function Oe(Lt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var vn=Lt[Symbol.asyncIterator],hn;return vn?vn.call(Lt):(Lt=typeof Ce=="function"?Ce(Lt):Lt[Symbol.iterator](),hn={},Dt("next"),Dt("throw"),Dt("return"),hn[Symbol.asyncIterator]=function(){return this},hn);function Dt(bn){hn[bn]=Lt[bn]&&function(Sn){return new Promise(function(Cn,On){Sn=Lt[bn](Sn),jt(Cn,On,Sn.done,Sn.value)})}}function jt(bn,Sn,Cn,On){Promise.resolve(On).then(function(En){bn({value:En,done:Cn})},Sn)}}function $e(Lt,vn){return Object.defineProperty?Object.defineProperty(Lt,"raw",{value:vn}):Lt.raw=vn,Lt}var Ne=Object.create?function(Lt,vn){Object.defineProperty(Lt,"default",{enumerable:!0,value:vn})}:function(Lt,vn){Lt.default=vn};function Ue(Lt){if(Lt&&Lt.__esModule)return Lt;var vn={};if(Lt!=null)for(var hn in Lt)hn!=="default"&&Object.prototype.hasOwnProperty.call(Lt,hn)&&Fe(vn,Lt,hn);return Ne(vn,Lt),vn}function kt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}function Et(Lt,vn){if(!vn.has(Lt))throw new TypeError("attempted to get private field on non-instance");return vn.get(Lt)}function Pt(Lt,vn,hn){if(!vn.has(Lt))throw new TypeError("attempted to set private field on non-instance");return vn.set(Lt,hn),hn}},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(89)),re=L($(4)),ae=L($(26)),le=L($(17)),ue=L($(121)),pe=L($(27)),de=L($(91)),Fe=L($(70)),ze=L($(28)),Ce=L($(57));(0,k.default)(g,"__esModule",{value:!0}),g.DomElement=void 0;var Ie=$(2),_e=$(6),At=[];function qe(Ne){var Ue=document.createElement("div");Ue.innerHTML=Ne;var kt=Ue.children;return _e.toArray(kt)}function xe(Ne){return Ne?Ne instanceof HTMLCollection||Ne instanceof NodeList:!1}function Ve(Ne){var Ue=document.querySelectorAll(Ne);return _e.toArray(Ue)}function he(Ne){var Ue=[],kt=[];return(0,oe.default)(Ne)?Ue=Ne:Ue=Ne.split(";"),(0,re.default)(Ue).call(Ue,function(Et){var Pt,Lt=(0,ae.default)(Pt=Et.split(":")).call(Pt,function(vn){return(0,le.default)(vn).call(vn)});Lt.length===2&&kt.push(Lt[0]+":"+Lt[1])}),kt}var Oe=function(){function Ne(Ue){if(this.elems=[],this.length=this.elems.length,this.dataSource=new ue.default,!!Ue){if(Ue instanceof Ne)return Ue;var kt=[],Et=Ue instanceof Node?Ue.nodeType:-1;if(this.selector=Ue,Et===1||Et===9)kt=[Ue];else if(xe(Ue))kt=_e.toArray(Ue);else if(Ue instanceof Array)kt=Ue;else if(typeof Ue=="string"){var Pt,Lt=(0,le.default)(Pt=Ue.replace(`/ +/mg`,"")).call(Pt);(0,pe.default)(Lt).call(Lt,"<")===0?kt=qe(Lt):kt=Ve(Lt)}var vn=kt.length;if(!vn)return this;for(var hn=0;hn=kt&&(Ue=Ue%kt),$e(this.elems[Ue])},Ne.prototype.first=function(){return this.get(0)},Ne.prototype.last=function(){var Ue=this.length;return this.get(Ue-1)},Ne.prototype.on=function(Ue,kt,Et){var Pt;return Ue?(typeof kt=="function"&&(Et=kt,kt=""),(0,re.default)(Pt=this).call(Pt,function(Lt){if(!kt){Lt.addEventListener(Ue,Et);return}var vn=function(Dt){var jt=Dt.target;jt.matches(kt)&&Et.call(jt,Dt)};Lt.addEventListener(Ue,vn),At.push({elem:Lt,selector:kt,fn:Et,agentFn:vn})})):this},Ne.prototype.off=function(Ue,kt,Et){var Pt;return Ue?(typeof kt=="function"&&(Et=kt,kt=""),(0,re.default)(Pt=this).call(Pt,function(Lt){if(kt){for(var vn=-1,hn=0;hn]+>/g,function(){return""})}},Ne.prototype.html=function(Ue){var kt=this.elems[0];return Ue?(kt.innerHTML=Ue,this):kt.innerHTML},Ne.prototype.val=function(){var Ue,kt=this.elems[0];return(0,le.default)(Ue=kt.value).call(Ue)},Ne.prototype.focus=function(){var Ue;return(0,re.default)(Ue=this).call(Ue,function(kt){kt.focus()})},Ne.prototype.prev=function(){var Ue=this.elems[0];return $e(Ue.previousElementSibling)},Ne.prototype.next=function(){var Ue=this.elems[0];return $e(Ue.nextElementSibling)},Ne.prototype.getNextSibling=function(){var Ue=this.elems[0];return $e(Ue.nextSibling)},Ne.prototype.parent=function(){var Ue=this.elems[0];return $e(Ue.parentElement)},Ne.prototype.parentUntil=function(Ue,kt){var Et=kt||this.elems[0];if(Et.nodeName==="BODY")return null;var Pt=Et.parentElement;return Pt===null?null:Pt.matches(Ue)?$e(Pt):this.parentUntil(Ue,Pt)},Ne.prototype.parentUntilEditor=function(Ue,kt,Et){var Pt=Et||this.elems[0];if($e(Pt).equal(kt.$textContainerElem)||$e(Pt).equal(kt.$toolbarElem))return null;var Lt=Pt.parentElement;return Lt===null?null:Lt.matches(Ue)?$e(Lt):this.parentUntilEditor(Ue,kt,Lt)},Ne.prototype.equal=function(Ue){return Ue instanceof Ne?this.elems[0]===Ue.elems[0]:Ue instanceof HTMLElement?this.elems[0]===Ue:!1},Ne.prototype.insertBefore=function(Ue){var kt,Et=$e(Ue),Pt=Et.elems[0];return Pt?(0,re.default)(kt=this).call(kt,function(Lt){var vn=Pt.parentNode;vn?.insertBefore(Lt,Pt)}):this},Ne.prototype.insertAfter=function(Ue){var kt,Et=$e(Ue),Pt=Et.elems[0],Lt=Pt&&Pt.nextSibling;return Pt?(0,re.default)(kt=this).call(kt,function(vn){var hn=Pt.parentNode;Lt?hn.insertBefore(vn,Lt):hn.appendChild(vn)}):this},Ne.prototype.data=function(Ue,kt){if(kt!=null)this.dataSource.set(Ue,kt);else return this.dataSource.get(Ue)},Ne.prototype.getNodeTop=function(Ue){if(this.length<1)return this;var kt=this.parent();return Ue.$textElem.equal(this)||Ue.$textElem.equal(kt)?this:(kt.prior=this,kt.getNodeTop(Ue))},Ne.prototype.getOffsetData=function(){var Ue=this.elems[0];return{top:Ue.offsetTop,left:Ue.offsetLeft,width:Ue.offsetWidth,height:Ue.offsetHeight,parent:Ue.offsetParent}},Ne.prototype.scrollTop=function(Ue){var kt=this.elems[0];kt.scrollTo({top:Ue})},Ne}();g.DomElement=Oe;function $e(){for(var Ne=[],Ue=0;Ue/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")}g.replaceHtmlSymbol=Ce;function Ie(Ue){return Ue.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}g.replaceSpecialSymbol=Ie;function _e(Ue,kt){for(var Et in Ue)if(Object.prototype.hasOwnProperty.call(Ue,Et)){var Pt=kt(Et,Ue[Et]);if(Pt===!1)break}}g.forEach=_e;function At(Ue,kt){var Et,Pt,Lt,vn=Ue.length||0;for(Et=0;Et

',g.EMPTY_P_LAST_REGEX=/

<\/p>$/gim,g.EMPTY_P_REGEX=/

/gim},function(r,g,$){(function(L){var k=function(oe){return oe&&oe.Math==Math&&oe};r.exports=k(typeof globalThis=="object"&&globalThis)||k(typeof window=="object"&&window)||k(typeof self=="object"&&self)||k(typeof L=="object"&&L)||Function("return this")()}).call(this,$(145))},function(r,g){r.exports={}},function(r,g,$){var L=$(8),k=$(74),oe=$(16),re=$(64),ae=$(76),le=$(106),ue=k("wks"),pe=L.Symbol,de=le?pe:pe&&pe.withoutSetter||re;r.exports=function(Fe){return oe(ue,Fe)||(ae&&oe(pe,Fe)?ue[Fe]=pe[Fe]:ue[Fe]=de("Symbol."+Fe)),ue[Fe]}},function(r,g){r.exports=function($){try{return!!$()}catch{return!0}}},function(r,g,$){var L=$(9),k=$(16),oe=$(93),re=$(18).f;r.exports=function(ae){var le=L.Symbol||(L.Symbol={});k(le,ae)||re(le,ae,{value:oe.f(ae)})}},function(r,g){r.exports=function($){return typeof $=="object"?$!==null:typeof $=="function"}},function(r,g,$){var L=$(11);r.exports=!L(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(r,g,$){var L=$(9);r.exports=function(k){return L[k+"Prototype"]}},function(r,g){var $={}.hasOwnProperty;r.exports=function(L,k){return $.call(L,k)}},function(r,g,$){r.exports=$(192)},function(r,g,$){var L=$(14),k=$(100),oe=$(25),re=$(60),ae=Object.defineProperty;g.f=L?ae:function(ue,pe,de){if(oe(ue),pe=re(pe,!0),oe(de),k)try{return ae(ue,pe,de)}catch{}if("get"in de||"set"in de)throw TypeError("Accessors not supported");return"value"in de&&(ue[pe]=de.value),ue}},function(r,g,$){var L=$(14),k=$(18),oe=$(48);r.exports=L?function(re,ae,le){return k.f(re,ae,oe(1,le))}:function(re,ae,le){return re[ae]=le,re}},function(r,g,$){var L=function(){var At;return function(){return typeof At>"u"&&(At=Boolean(window&&document&&document.all&&!window.atob)),At}}(),k=function(){var At={};return function(xe){if(typeof At[xe]>"u"){var Ve=document.querySelector(xe);if(window.HTMLIFrameElement&&Ve instanceof window.HTMLIFrameElement)try{Ve=Ve.contentDocument.head}catch{Ve=null}At[xe]=Ve}return At[xe]}}(),oe=[];function re(_e){for(var At=-1,qe=0;qe"u"){var xe=$.nc;xe&&(qe.nonce=xe)}if(Object.keys(qe).forEach(function(he){At.setAttribute(he,qe[he])}),typeof _e.insert=="function")_e.insert(At);else{var Ve=k(_e.insert||"head");if(!Ve)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");Ve.appendChild(At)}return At}function ue(_e){if(_e.parentNode===null)return!1;_e.parentNode.removeChild(_e)}var pe=function(){var At=[];return function(xe,Ve){return At[xe]=Ve,At.filter(Boolean).join(` +`)}}();function de(_e,At,qe,xe){var Ve=qe?"":xe.media?"@media ".concat(xe.media," {").concat(xe.css,"}"):xe.css;if(_e.styleSheet)_e.styleSheet.cssText=pe(At,Ve);else{var he=document.createTextNode(Ve),Oe=_e.childNodes;Oe[At]&&_e.removeChild(Oe[At]),Oe.length?_e.insertBefore(he,Oe[At]):_e.appendChild(he)}}function Fe(_e,At,qe){var xe=qe.css,Ve=qe.media,he=qe.sourceMap;if(Ve?_e.setAttribute("media",Ve):_e.removeAttribute("media"),he&&typeof btoa<"u"&&(xe+=` +/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(he))))," */")),_e.styleSheet)_e.styleSheet.cssText=xe;else{for(;_e.firstChild;)_e.removeChild(_e.firstChild);_e.appendChild(document.createTextNode(xe))}}var ze=null,Ce=0;function Ie(_e,At){var qe,xe,Ve;if(At.singleton){var he=Ce++;qe=ze||(ze=le(At)),xe=de.bind(null,qe,he,!1),Ve=de.bind(null,qe,he,!0)}else qe=le(At),xe=Fe.bind(null,qe,At),Ve=function(){ue(qe)};return xe(_e),function($e){if($e){if($e.css===_e.css&&$e.media===_e.media&&$e.sourceMap===_e.sourceMap)return;xe(_e=$e)}else Ve()}}r.exports=function(_e,At){At=At||{},!At.singleton&&typeof At.singleton!="boolean"&&(At.singleton=L()),_e=_e||[];var qe=ae(_e,At);return function(Ve){if(Ve=Ve||[],Object.prototype.toString.call(Ve)==="[object Array]"){for(var he=0;he0){var Ne=$e?.getNodeName();Ne&&Ne==="I"&&Oe.addClass(qe)}})}var Ve=new pe.default(At,_e);return At.dropList=Ve,Ce.on("click",function(){var he;Ie.selection.getRange()!=null&&(Ce.css("z-index",Ie.zIndex.get("menu")),(0,oe.default)(he=Ie.txt.eventHooks.dropListMenuHoverEvents).call(he,function(Oe){return Oe()}),Ve.show())}).on("mouseleave",function(){Ce.css("z-index","auto"),Ve.hideTimeoutId=(0,re.default)(function(){Ve.hide()})}),At}return ze}(ue.default);g.default=de},function(r,g,$){var L=$(13);r.exports=function(k){if(!L(k))throw TypeError(String(k)+" is not an object");return k}},function(r,g,$){r.exports=$(188)},function(r,g,$){r.exports=$(201)},function(r,g,$){r.exports=$(213)},function(r,g,$){r.exports=$(283)},function(r,g,$){var L=$(72),k=$(49);r.exports=function(oe){return L(k(oe))}},function(r,g,$){var L=$(49);r.exports=function(k){return Object(L(k))}},function(r,g,$){var L=$(40),k=$(72),oe=$(31),re=$(35),ae=$(88),le=[].push,ue=function(pe){var de=pe==1,Fe=pe==2,ze=pe==3,Ce=pe==4,Ie=pe==6,_e=pe==5||Ie;return function(At,qe,xe,Ve){for(var he=oe(At),Oe=k(he),$e=L(qe,xe,3),Ne=re(Oe.length),Ue=0,kt=Ve||ae,Et=de?kt(At,Ne):Fe?kt(At,0):void 0,Pt,Lt;Ne>Ue;Ue++)if((_e||Ue in Oe)&&(Pt=Oe[Ue],Lt=$e(Pt,Ue,he),pe)){if(de)Et[Ue]=Lt;else if(Lt)switch(pe){case 3:return!0;case 5:return Pt;case 6:return Ue;case 2:le.call(Et,Pt)}else if(Ce)return!1}return Ie?-1:ze||Ce?Ce:Et}};r.exports={forEach:ue(0),map:ue(1),filter:ue(2),some:ue(3),every:ue(4),find:ue(5),findIndex:ue(6)}},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4)),re=L($(29)),ae=L($(132));(0,k.default)(g,"__esModule",{value:!0});var le=$(2),ue=le.__importDefault($(3)),pe=$(7),de=function(){function Fe(ze,Ce){this.menu=ze,this.conf=Ce,this.$container=ue.default('

');var Ie=ze.editor;Ie.txt.eventHooks.clickEvents.push(Fe.hideCurAllPanels),Ie.txt.eventHooks.toolbarClickEvents.push(Fe.hideCurAllPanels),Ie.txt.eventHooks.dropListMenuHoverEvents.push(Fe.hideCurAllPanels)}return Fe.prototype.create=function(){var ze=this,Ce=this.menu;if(!Fe.createdMenus.has(Ce)){var Ie=this.conf,_e=this.$container,At=Ie.width||300,qe=Ce.editor.$toolbarElem.getBoundingClientRect(),xe=Ce.$elem.getBoundingClientRect(),Ve=qe.height+qe.top-xe.top,he=(qe.width-At)/2+qe.left-xe.left,Oe=300;Math.abs(he)>Oe&&(xe.left');_e.append($e),$e.on("click",function(){ze.remove()});var Ne=ue.default('
    '),Ue=ue.default('
    ');_e.append(Ne).append(Ue);var kt=Ie.height;kt&&Ue.css("height",kt+"px").css("overflow-y","auto");var Et=Ie.tabs||[],Pt=[],Lt=[];(0,oe.default)(Et).call(Et,function(hn,Dt){if(!!hn){var jt=hn.title||"",bn=hn.tpl||"",Sn=ue.default('
  • '+jt+"
  • ");Ne.append(Sn);var Cn=ue.default(bn);Ue.append(Cn),Pt.push(Sn),Lt.push(Cn),Dt===0?(Sn.data("active",!0),Sn.addClass("w-e-active")):Cn.hide(),Sn.on("click",function(){Sn.data("active")||((0,oe.default)(Pt).call(Pt,function(On){On.data("active",!1),On.removeClass("w-e-active")}),(0,oe.default)(Lt).call(Lt,function(On){On.hide()}),Sn.data("active",!0),Sn.addClass("w-e-active"),Cn.show())})}}),_e.on("click",function(hn){hn.stopPropagation()}),Ce.$elem.append(_e),Ie.setLinkValue&&Ie.setLinkValue(_e,"text"),Ie.setLinkValue&&Ie.setLinkValue(_e,"link"),(0,oe.default)(Et).call(Et,function(hn,Dt){if(!!hn){var jt=hn.events||[];(0,oe.default)(jt).call(jt,function(bn){var Sn,Cn=bn.selector,On=bn.type,En=bn.fn||pe.EMPTY_FN,An=Lt[Dt],In=(Sn=bn.bindEnter)!==null&&Sn!==void 0?Sn:!1,$n=function(Dn){return le.__awaiter(ze,void 0,void 0,function(){var Mn;return le.__generator(this,function(Fn){switch(Fn.label){case 0:return Dn.stopPropagation(),[4,En(Dn)];case 1:return Mn=Fn.sent(),Mn&&this.remove(),[2]}})})};(0,re.default)(An).call(An,Cn).on(On,$n),In&&On==="click"&&An.on("keyup",function(Pn){Pn.keyCode==13&&$n(Pn)})})}});var vn=(0,re.default)(_e).call(_e,"input[type=text],textarea");vn.length&&vn.get(0).focus(),Fe.hideCurAllPanels(),Ce.setPanel(this),Fe.createdMenus.add(Ce)}},Fe.prototype.remove=function(){var ze=this.menu,Ce=this.$container;Ce&&Ce.remove(),Fe.createdMenus.delete(ze)},Fe.hideCurAllPanels=function(){var ze;Fe.createdMenus.size!==0&&(0,oe.default)(ze=Fe.createdMenus).call(ze,function(Ce){var Ie=Ce.panel;Ie&&Ie.remove()})},Fe.createdMenus=new ae.default,Fe}();g.default=de},function(r,g){var $={}.toString;r.exports=function(L){return $.call(L).slice(8,-1)}},function(r,g,$){var L=$(62),k=Math.min;r.exports=function(oe){return oe>0?k(L(oe),9007199254740991):0}},function(r,g,$){var L=$(9),k=$(8),oe=function(re){return typeof re=="function"?re:void 0};r.exports=function(re,ae){return arguments.length<2?oe(L[re])||oe(k[re]):L[re]&&L[re][ae]||k[re]&&k[re][ae]}},function(r,g,$){var L=$(81),k=$(18).f,oe=$(19),re=$(16),ae=$(170),le=$(10),ue=le("toStringTag");r.exports=function(pe,de,Fe,ze){if(pe){var Ce=Fe?pe:pe.prototype;re(Ce,ue)||k(Ce,ue,{configurable:!0,value:de}),ze&&!L&&oe(Ce,"toString",ae)}}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(95)),ae=function(le){oe.__extends(ue,le);function ue(pe,de){return le.call(this,pe,de)||this}return ue.prototype.setPanel=function(pe){this.panel=pe},ue}(re.default);g.default=ae},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4)),re=L($(57));(0,k.default)(g,"__esModule",{value:!0});var ae=$(2),le=ae.__importDefault($(3)),ue=function(){function pe(de,Fe,ze){this.editor=de,this.$targetElem=Fe,this.conf=ze,this._show=!1,this._isInsertTextContainer=!1;var Ce=le.default("
    ");Ce.addClass("w-e-tooltip"),this.$container=Ce}return pe.prototype.getPositionData=function(){var de=this.$container,Fe=0,ze=0,Ce=20,Ie=document.documentElement.scrollTop,_e=this.$targetElem.getBoundingClientRect(),At=this.editor.$textElem.getBoundingClientRect(),qe=this.$targetElem.getOffsetData(),xe=le.default(qe.parent),Ve=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=xe.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var he=xe.getBoundingClientRect().height,Oe=qe.top,$e=qe.left,Ne=qe.height,Ue=Oe-Ve;Ue>Ce+5?(Fe=Ue-Ce-15,de.addClass("w-e-tooltip-up")):Ue+Ne+Ce0?Ue:0)+Ce+10,de.addClass("w-e-tooltip-down")),$e<0?ze=0:ze=$e}else _e.top");xe.addClass("w-e-tooltip-item-wrapper "),xe.append(qe),Ie.append(xe),qe.on("click",function(Ve){Ve.preventDefault();var he=_e.onClick(ze,Ce);he&&de.remove()})})},pe.prototype.create=function(){var de,Fe,ze=this.editor,Ce=this.$container;this.appendMenus();var Ie=this.getPositionData(),_e=Ie.top,At=Ie.left;Ce.css("top",_e+"px"),Ce.css("left",At+"px"),Ce.css("z-index",ze.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(Ce):le.default("body").append(Ce),this._show=!0,ze.beforeDestroy((0,re.default)(de=this.remove).call(de,this)),ze.txt.eventHooks.onBlurEvents.push((0,re.default)(Fe=this.remove).call(Fe,this))},pe.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,k.default)(pe.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),pe}();g.default=ue},function(r,g,$){var L=$(41);r.exports=function(k,oe,re){if(L(k),oe===void 0)return k;switch(re){case 0:return function(){return k.call(oe)};case 1:return function(ae){return k.call(oe,ae)};case 2:return function(ae,le){return k.call(oe,ae,le)};case 3:return function(ae,le,ue){return k.call(oe,ae,le,ue)}}return function(){return k.apply(oe,arguments)}}},function(r,g){r.exports=function($){if(typeof $!="function")throw TypeError(String($)+" is not a function");return $}},function(r,g,$){var L=$(165),k=$(8),oe=$(13),re=$(19),ae=$(16),le=$(63),ue=$(51),pe=k.WeakMap,de,Fe,ze,Ce=function(he){return ze(he)?Fe(he):de(he,{})},Ie=function(he){return function(Oe){var $e;if(!oe(Oe)||($e=Fe(Oe)).type!==he)throw TypeError("Incompatible receiver, "+he+" required");return $e}};if(L){var _e=new pe,At=_e.get,qe=_e.has,xe=_e.set;de=function(he,Oe){return xe.call(_e,he,Oe),Oe},Fe=function(he){return At.call(_e,he)||{}},ze=function(he){return qe.call(_e,he)}}else{var Ve=le("state");ue[Ve]=!0,de=function(he,Oe){return re(he,Ve,Oe),Oe},Fe=function(he){return ae(he,Ve)?he[Ve]:{}},ze=function(he){return ae(he,Ve)}}r.exports={set:de,get:Fe,has:ze,enforce:Ce,getterFor:Ie}},function(r,g){r.exports=!0},function(r,g){r.exports={}},function(r,g,$){r.exports=$(261)},function(r,g,$){r.exports=$(265)},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0}),g.createElementFragment=g.createDocumentFragment=g.createElement=g.insertBefore=g.getEndPoint=g.getStartPoint=g.updateRange=g.filterSelectionNodes=void 0;var re=$(2),ae=$(137),le=re.__importDefault($(3));function ue(At){var qe=[];return(0,oe.default)(At).call(At,function(xe){var Ve=xe.getNodeName();if(Ve!==ae.ListType.OrderedList&&Ve!==ae.ListType.UnorderedList)qe.push(xe);else if(xe.prior)qe.push(xe.prior);else{var he=xe.children();he==null||(0,oe.default)(he).call(he,function(Oe){qe.push(le.default(Oe))})}}),qe}g.filterSelectionNodes=ue;function pe(At,qe,xe){var Ve=At.selection,he=document.createRange();qe.length>1?(he.setStart(qe.elems[0],0),he.setEnd(qe.elems[qe.length-1],qe.elems[qe.length-1].childNodes.length)):he.selectNodeContents(qe.elems[0]),xe&&he.collapse(!1),Ve.saveRange(he),Ve.restoreSelection()}g.updateRange=pe;function de(At){var qe;return At.prior?At.prior:le.default((qe=At.children())===null||qe===void 0?void 0:qe.elems[0])}g.getStartPoint=de;function Fe(At){var qe;return At.prior?At.prior:le.default((qe=At.children())===null||qe===void 0?void 0:qe.last().elems[0])}g.getEndPoint=Fe;function ze(At,qe,xe){xe===void 0&&(xe=null),At.parent().elems[0].insertBefore(qe,xe)}g.insertBefore=ze;function Ce(At){return document.createElement(At)}g.createElement=Ce;function Ie(){return document.createDocumentFragment()}g.createDocumentFragment=Ie;function _e(At,qe,xe){return xe===void 0&&(xe="li"),(0,oe.default)(At).call(At,function(Ve){var he=Ce(xe);he.innerHTML=Ve.html(),qe.appendChild(he),Ve.remove()}),qe}g.createElementFragment=_e},function(r,g){r.exports=function($,L){return{enumerable:!($&1),configurable:!($&2),writable:!($&4),value:L}}},function(r,g){r.exports=function($){if($==null)throw TypeError("Can't call method on "+$);return $}},function(r,g,$){var L=$(164).charAt,k=$(42),oe=$(75),re="String Iterator",ae=k.set,le=k.getterFor(re);oe(String,"String",function(ue){ae(this,{type:re,string:String(ue),index:0})},function(){var pe=le(this),de=pe.string,Fe=pe.index,ze;return Fe>=de.length?{value:void 0,done:!0}:(ze=L(de,Fe),pe.index+=ze.length,{value:ze,done:!1})})},function(r,g){r.exports={}},function(r,g,$){var L=$(107),k=$(80);r.exports=Object.keys||function(re){return L(re,k)}},function(r,g,$){var L=$(19);r.exports=function(k,oe,re,ae){ae&&ae.enumerable?k[oe]=re:L(k,oe,re)}},function(r,g,$){$(173);var L=$(174),k=$(8),oe=$(65),re=$(19),ae=$(44),le=$(10),ue=le("toStringTag");for(var pe in L){var de=k[pe],Fe=de&&de.prototype;Fe&&oe(Fe)!==ue&&re(Fe,ue,pe),ae[pe]=ae.Array}},function(r,g,$){var L=$(34);r.exports=Array.isArray||function(oe){return L(oe)=="Array"}},function(r,g,$){var L=$(11),k=$(10),oe=$(86),re=k("species");r.exports=function(ae){return oe>=51||!L(function(){var le=[],ue=le.constructor={};return ue[re]=function(){return{foo:1}},le[ae](Boolean).foo!==1})}},function(r,g,$){r.exports=$(222)},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.ListHandle=void 0;var oe=$(2),re=oe.__importDefault($(373)),ae=function(){function le(ue){this.options=ue,this.selectionRangeElem=new re.default}return le}();g.ListHandle=ae},function(r,g,$){var L={}.propertyIsEnumerable,k=Object.getOwnPropertyDescriptor,oe=k&&!L.call({1:2},1);g.f=oe?function(ae){var le=k(this,ae);return!!le&&le.enumerable}:L},function(r,g,$){var L=$(13);r.exports=function(k,oe){if(!L(k))return k;var re,ae;if(oe&&typeof(re=k.toString)=="function"&&!L(ae=re.call(k))||typeof(re=k.valueOf)=="function"&&!L(ae=re.call(k))||!oe&&typeof(re=k.toString)=="function"&&!L(ae=re.call(k)))return ae;throw TypeError("Can't convert object to primitive value")}},function(r,g){},function(r,g){var $=Math.ceil,L=Math.floor;r.exports=function(k){return isNaN(k=+k)?0:(k>0?L:$)(k)}},function(r,g,$){var L=$(74),k=$(64),oe=L("keys");r.exports=function(re){return oe[re]||(oe[re]=k(re))}},function(r,g){var $=0,L=Math.random();r.exports=function(k){return"Symbol("+String(k===void 0?"":k)+")_"+(++$+L).toString(36)}},function(r,g,$){var L=$(81),k=$(34),oe=$(10),re=oe("toStringTag"),ae=k(function(){return arguments}())=="Arguments",le=function(ue,pe){try{return ue[pe]}catch{}};r.exports=L?k:function(ue){var pe,de,Fe;return ue===void 0?"Undefined":ue===null?"Null":typeof(de=le(pe=Object(ue),re))=="string"?de:ae?k(pe):(Fe=k(pe))=="Object"&&typeof pe.callee=="function"?"Arguments":Fe}},function(r,g,$){var L=$(25),k=$(112),oe=$(35),re=$(40),ae=$(113),le=$(114),ue=function(de,Fe){this.stopped=de,this.result=Fe},pe=r.exports=function(de,Fe,ze,Ce,Ie){var _e=re(Fe,ze,Ce?2:1),At,qe,xe,Ve,he,Oe,$e;if(Ie)At=de;else{if(qe=ae(de),typeof qe!="function")throw TypeError("Target is not iterable");if(k(qe)){for(xe=0,Ve=oe(de.length);Ve>xe;xe++)if(he=Ce?_e(L($e=de[xe])[0],$e[1]):_e(de[xe]),he&&he instanceof ue)return he;return new ue(!1)}At=qe.call(de)}for(Oe=At.next;!($e=Oe.call(At)).done;)if(he=le(At,_e,$e.value,Ce),typeof he=="object"&&he&&he instanceof ue)return he;return new ue(!1)};pe.stop=function(de){return new ue(!0,de)}},function(r,g,$){var L=$(11);r.exports=function(k,oe){var re=[][k];return!!re&&L(function(){re.call(null,oe||function(){throw 1},1)})}},function(r,g){r.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(r,g,$){var L=$(60),k=$(18),oe=$(48);r.exports=function(re,ae,le){var ue=L(ae);ue in re?k.f(re,ue,oe(0,le)):re[ue]=le}},function(r,g,$){r.exports=$(209)},function(r,g,$){var L=$(14),k=$(59),oe=$(48),re=$(30),ae=$(60),le=$(16),ue=$(100),pe=Object.getOwnPropertyDescriptor;g.f=L?pe:function(Fe,ze){if(Fe=re(Fe),ze=ae(ze,!0),ue)try{return pe(Fe,ze)}catch{}if(le(Fe,ze))return oe(!k.f.call(Fe,ze),Fe[ze])}},function(r,g,$){var L=$(11),k=$(34),oe="".split;r.exports=L(function(){return!Object("z").propertyIsEnumerable(0)})?function(re){return k(re)=="String"?oe.call(re,""):Object(re)}:Object},function(r,g,$){var L=$(8),k=$(13),oe=L.document,re=k(oe)&&k(oe.createElement);r.exports=function(ae){return re?oe.createElement(ae):{}}},function(r,g,$){var L=$(43),k=$(103);(r.exports=function(oe,re){return k[oe]||(k[oe]=re!==void 0?re:{})})("versions",[]).push({version:"3.6.4",mode:L?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(r,g,$){var L=$(5),k=$(167),oe=$(105),re=$(171),ae=$(37),le=$(19),ue=$(53),pe=$(10),de=$(43),Fe=$(44),ze=$(104),Ce=ze.IteratorPrototype,Ie=ze.BUGGY_SAFARI_ITERATORS,_e=pe("iterator"),At="keys",qe="values",xe="entries",Ve=function(){return this};r.exports=function(he,Oe,$e,Ne,Ue,kt,Et){k($e,Oe,Ne);var Pt=function(En){if(En===Ue&&jt)return jt;if(!Ie&&En in hn)return hn[En];switch(En){case At:return function(){return new $e(this,En)};case qe:return function(){return new $e(this,En)};case xe:return function(){return new $e(this,En)}}return function(){return new $e(this)}},Lt=Oe+" Iterator",vn=!1,hn=he.prototype,Dt=hn[_e]||hn["@@iterator"]||Ue&&hn[Ue],jt=!Ie&&Dt||Pt(Ue),bn=Oe=="Array"&&hn.entries||Dt,Sn,Cn,On;if(bn&&(Sn=oe(bn.call(new he)),Ce!==Object.prototype&&Sn.next&&(!de&&oe(Sn)!==Ce&&(re?re(Sn,Ce):typeof Sn[_e]!="function"&&le(Sn,_e,Ve)),ae(Sn,Lt,!0,!0),de&&(Fe[Lt]=Ve))),Ue==qe&&Dt&&Dt.name!==qe&&(vn=!0,jt=function(){return Dt.call(this)}),(!de||Et)&&hn[_e]!==jt&&le(hn,_e,jt),Fe[Oe]=jt,Ue)if(Cn={values:Pt(qe),keys:kt?jt:Pt(At),entries:Pt(xe)},Et)for(On in Cn)(Ie||vn||!(On in hn))&&ue(hn,On,Cn[On]);else L({target:Oe,proto:!0,forced:Ie||vn},Cn);return Cn}},function(r,g,$){var L=$(11);r.exports=!!Object.getOwnPropertySymbols&&!L(function(){return!String(Symbol())})},function(r,g,$){var L=$(25),k=$(169),oe=$(80),re=$(51),ae=$(108),le=$(73),ue=$(63),pe=">",de="<",Fe="prototype",ze="script",Ce=ue("IE_PROTO"),Ie=function(){},_e=function(he){return de+ze+pe+he+de+"/"+ze+pe},At=function(he){he.write(_e("")),he.close();var Oe=he.parentWindow.Object;return he=null,Oe},qe=function(){var he=le("iframe"),Oe="java"+ze+":",$e;return he.style.display="none",ae.appendChild(he),he.src=String(Oe),$e=he.contentWindow.document,$e.open(),$e.write(_e("document.F=Object")),$e.close(),$e.F},xe,Ve=function(){try{xe=document.domain&&new ActiveXObject("htmlfile")}catch{}Ve=xe?At(xe):qe();for(var he=oe.length;he--;)delete Ve[Fe][oe[he]];return Ve()};re[Ce]=!0,r.exports=Object.create||function(Oe,$e){var Ne;return Oe!==null?(Ie[Fe]=L(Oe),Ne=new Ie,Ie[Fe]=null,Ne[Ce]=Oe):Ne=Ve(),$e===void 0?Ne:k(Ne,$e)}},function(r,g,$){var L=$(30),k=$(35),oe=$(79),re=function(ae){return function(le,ue,pe){var de=L(le),Fe=k(de.length),ze=oe(pe,Fe),Ce;if(ae&&ue!=ue){for(;Fe>ze;)if(Ce=de[ze++],Ce!=Ce)return!0}else for(;Fe>ze;ze++)if((ae||ze in de)&&de[ze]===ue)return ae||ze||0;return!ae&&-1}};r.exports={includes:re(!0),indexOf:re(!1)}},function(r,g,$){var L=$(62),k=Math.max,oe=Math.min;r.exports=function(re,ae){var le=L(re);return le<0?k(le+ae,0):oe(le,ae)}},function(r,g){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(r,g,$){var L=$(10),k=L("toStringTag"),oe={};oe[k]="z",r.exports=String(oe)==="[object z]"},function(r,g){r.exports=function(){}},function(r,g){r.exports=function($,L,k){if(!($ instanceof L))throw TypeError("Incorrect "+(k?k+" ":"")+"invocation");return $}},function(r,g,$){var L=$(36);r.exports=L("navigator","userAgent")||""},function(r,g,$){var L=$(41),k=function(oe){var re,ae;this.promise=new oe(function(le,ue){if(re!==void 0||ae!==void 0)throw TypeError("Bad Promise constructor");re=le,ae=ue}),this.resolve=L(re),this.reject=L(ae)};r.exports.f=function(oe){return new k(oe)}},function(r,g,$){var L=$(8),k=$(84),oe=L.process,re=oe&&oe.versions,ae=re&&re.v8,le,ue;ae?(le=ae.split("."),ue=le[0]+le[1]):k&&(le=k.match(/Edge\/(\d+)/),(!le||le[1]>=74)&&(le=k.match(/Chrome\/(\d+)/),le&&(ue=le[1]))),r.exports=ue&&+ue},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=$(6),ue=re.__importDefault($(267)),pe=re.__importDefault($(280)),de=re.__importDefault($(281)),Fe=re.__importDefault($(282)),ze=re.__importDefault($(301)),Ce=re.__importStar($(416)),Ie=re.__importDefault($(417)),_e=re.__importDefault($(418)),At=re.__importDefault($(419)),qe=re.__importStar($(420)),xe=re.__importDefault($(423)),Ve=re.__importDefault($(424)),he=re.__importDefault($(425)),Oe=re.__importDefault($(427)),$e=re.__importDefault($(437)),Ne=re.__importDefault($(440)),Ue=re.__importStar($(441)),kt=re.__importDefault($(23)),Et=re.__importDefault($(134)),Pt=re.__importDefault($(24)),Lt=re.__importDefault($(33)),vn=re.__importDefault($(38)),hn=re.__importDefault($(39)),Dt=1,jt=function(){function bn(Sn,Cn){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+Dt++,this.toolbarSelector=Sn,this.textSelector=Cn,Ce.selectorValidator(this),this.config=le.deepClone(ue.default),this.$toolbarElem=ae.default("
    "),this.$textContainerElem=ae.default("
    "),this.$textElem=ae.default("
    "),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new pe.default(this),this.cmd=new de.default(this),this.txt=new Fe.default(this),this.menus=new ze.default(this),this.zIndex=new Ve.default,this.change=new he.default(this),this.history=new Oe.default(this),this.onSelectionChange=new Ne.default(this);var On=$e.default(this),En=On.disable,An=On.enable;this.disable=En,this.enable=An,this.isEnable=!0}return bn.prototype.initSelection=function(Sn){Ie.default(this,Sn)},bn.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),At.default(this),Ce.default(this),this.txt.init(),this.menus.init(),qe.default(this),this.initSelection(!0),_e.default(this),this.change.observe(),this.history.observe(),Ue.default(this)},bn.prototype.beforeDestroy=function(Sn){return this.beforeDestroyHooks.push(Sn),this},bn.prototype.destroy=function(){var Sn,Cn=this;(0,oe.default)(Sn=this.beforeDestroyHooks).call(Sn,function(On){return On.call(Cn)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},bn.prototype.fullScreen=function(){qe.setFullScreen(this)},bn.prototype.unFullScreen=function(){qe.setUnFullScreen(this)},bn.prototype.scrollToHead=function(Sn){xe.default(this,Sn)},bn.registerMenu=function(Sn,Cn){!Cn||typeof Cn!="function"||(bn.globalCustomMenuConstructorList[Sn]=Cn)},bn.prototype.registerPlugin=function(Sn,Cn){Ue.registerPlugin(Sn,Cn,this.pluginsFunctionList)},bn.registerPlugin=function(Sn,Cn){Ue.registerPlugin(Sn,Cn,bn.globalPluginsFunctionList)},bn.$=ae.default,bn.BtnMenu=kt.default,bn.DropList=Et.default,bn.DropListMenu=Pt.default,bn.Panel=Lt.default,bn.PanelMenu=vn.default,bn.Tooltip=hn.default,bn.globalCustomMenuConstructorList={},bn.globalPluginsFunctionList={},bn}();g.default=jt},function(r,g,$){var L=$(13),k=$(55),oe=$(10),re=oe("species");r.exports=function(ae,le){var ue;return k(ae)&&(ue=ae.constructor,typeof ue=="function"&&(ue===Array||k(ue.prototype))?ue=void 0:L(ue)&&(ue=ue[re],ue===null&&(ue=void 0))),new(ue===void 0?Array:ue)(le===0?0:le)}},function(r,g,$){r.exports=$(185)},function(r,g,$){var L=$(49),k=$(68),oe="["+k+"]",re=RegExp("^"+oe+oe+"*"),ae=RegExp(oe+oe+"*$"),le=function(ue){return function(pe){var de=String(L(pe));return ue&1&&(de=de.replace(re,"")),ue&2&&(de=de.replace(ae,"")),de}};r.exports={start:le(1),end:le(2),trim:le(3)}},function(r,g,$){r.exports=$(205)},function(r,g,$){var L=$(227),k=$(230);function oe(re){return typeof k=="function"&&typeof L=="symbol"?r.exports=oe=function(le){return typeof le}:r.exports=oe=function(le){return le&&typeof k=="function"&&le.constructor===k&&le!==k.prototype?"symbol":typeof le},oe(re)}r.exports=oe},function(r,g,$){var L=$(10);g.f=L},function(r,g,$){r.exports=$(306)},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(33)),le=function(){function ue(pe,de){var Fe=this;this.$elem=pe,this.editor=de,this._active=!1,pe.on("click",function(ze){var Ce;ae.default.hideCurAllPanels(),(0,oe.default)(Ce=de.txt.eventHooks.menuClickEvents).call(Ce,function(Ie){return Ie()}),ze.stopPropagation(),de.selection.getRange()!=null&&Fe.clickHandler(ze)})}return ue.prototype.clickHandler=function(pe){},ue.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},ue.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,k.default)(ue.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),ue}();g.default=le},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(28));(0,k.default)(g,"__esModule",{value:!0}),g.getParentNodeA=g.EXTRA_TAG=void 0,g.EXTRA_TAG=["B","FONT","I","STRIKE"];function re(le){for(var ue=le.elems[0];ue&&(0,oe.default)(pe=g.EXTRA_TAG).call(pe,ue.nodeName);){var pe;if(ue=ue.parentElement,ue.nodeName==="A")return ue}}g.getParentNodeA=re;function ae(le){var ue,pe=le.selection.getSelectionContainerElem();if(!(!((ue=pe?.elems)===null||ue===void 0)&&ue.length))return!1;if(pe.getNodeName()==="A")return!0;var de=re(pe);return!!(de&&de.nodeName==="A")}g.default=ae},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(57)),re=L($(4)),ae=L($(27));(0,k.default)(g,"__esModule",{value:!0});var le=$(2),ue=$(6),pe=le.__importDefault($(135)),de=le.__importDefault($(136)),Fe=function(){function ze(Ce){this.editor=Ce}return ze.prototype.insertImg=function(Ce,Ie,_e){var At=this.editor,qe=At.config,xe="validate.",Ve=function(kt,Et){return Et===void 0&&(Et=xe),At.i18next.t(Et+kt)},he=Ce.replace(//g,">");he=he.replace("'",'"');var Oe="";_e&&(Oe=_e.replace("'",'"'),Oe="data-href='"+encodeURIComponent(Oe)+"' ");var $e="";Ie&&($e=Ie.replace(//g,">"),$e=$e.replace("'",'"'),$e="alt='"+$e+"' "),At.cmd.do("insertHTML","'),qe.linkImgCallback(Ce,Ie,_e);var Ne=document.createElement("img");Ne.onload=function(){Ne=null},Ne.onerror=function(){qe.customAlert(Ve("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"),"error","wangEditor: "+Ve("\u63D2\u5165\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+Ve("\u56FE\u7247\u94FE\u63A5")+' "'+Ce+'"\uFF0C'+Ve("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),Ne=null},Ne.onabort=function(){return Ne=null},Ne.src=Ce},ze.prototype.uploadImg=function(Ce){var Ie=this;if(!!Ce.length){var _e=this.editor,At=_e.config,qe="validate.",xe=function($n){return _e.i18next.t(qe+$n)},Ve=At.uploadImgServer,he=At.uploadImgShowBase64,Oe=At.uploadImgMaxSize,$e=Oe/1024/1024,Ne=At.uploadImgMaxLength,Ue=At.uploadFileName,kt=At.uploadImgParams,Et=At.uploadImgParamsWithUrl,Pt=At.uploadImgHeaders,Lt=At.uploadImgHooks,vn=At.uploadImgTimeout,hn=At.withCredentials,Dt=At.customUploadImg;if(!(!Dt&&!Ve&&!he)){var jt=[],bn=[];if(ue.arrForEach(Ce,function(In){if(!!In){var $n=In.name||In.type.replace("/","."),Pn=In.size;if(!(!$n||!Pn)){var Dn=_e.config.uploadImgAccept.join("|"),Mn=".("+Dn+")$",Fn=new RegExp(Mn,"i");if(Fn.test($n)===!1){bn.push("\u3010"+$n+"\u3011"+xe("\u4E0D\u662F\u56FE\u7247"));return}if(OeNe){At.customAlert(xe("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+Ne+xe("\u5F20\u56FE\u7247"),"warning");return}if(Dt&&typeof Dt=="function"){var Sn;Dt(jt,(0,oe.default)(Sn=this.insertImg).call(Sn,this));return}var Cn=new FormData;if((0,re.default)(jt).call(jt,function(In,$n){var Pn=Ue||In.name;jt.length>1&&(Pn=Pn+($n+1)),Cn.append(Pn,In)}),Ve){var On=Ve.split("#");Ve=On[0];var En=On[1]||"";(0,re.default)(ue).call(ue,kt,function(In,$n){Et&&((0,ae.default)(Ve).call(Ve,"?")>0?Ve+="&":Ve+="?",Ve=Ve+In+"="+$n),Cn.append(In,$n)}),En&&(Ve+="#"+En);var An=pe.default(Ve,{timeout:vn,formData:Cn,headers:Pt,withCredentials:!!hn,beforeSend:function($n){if(Lt.before)return Lt.before($n,_e,jt)},onTimeout:function($n){At.customAlert(xe("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),Lt.timeout&&Lt.timeout($n,_e)},onProgress:function($n,Pn){var Dn=new de.default(_e);Pn.lengthComputable&&($n=Pn.loaded/Pn.total,Dn.show($n))},onError:function($n){At.customAlert(xe("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",xe("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+xe("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+$n.status),Lt.error&&Lt.error($n,_e)},onFail:function($n,Pn){At.customAlert(xe("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",xe("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+xe("\u8FD4\u56DE\u7ED3\u679C")+": ")+Pn),Lt.fail&&Lt.fail($n,_e,Pn)},onSuccess:function($n,Pn){if(Lt.customInsert){var Dn;Lt.customInsert((0,oe.default)(Dn=Ie.insertImg).call(Dn,Ie),Pn,_e);return}if(Pn.errno!="0"){At.customAlert(xe("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",xe("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+xe("\u8FD4\u56DE\u7ED3\u679C")+" errno="+Pn.errno),Lt.fail&&Lt.fail($n,_e,Pn);return}var Mn=Pn.data;(0,re.default)(Mn).call(Mn,function(Fn){typeof Fn=="string"?Ie.insertImg(Fn):Ie.insertImg(Fn.url,Fn.alt,Fn.href)}),Lt.success&&Lt.success($n,_e,Pn)}});typeof An=="string"&&At.customAlert(An,"error");return}he&&ue.arrForEach(Ce,function(In){var $n=Ie,Pn=new FileReader;Pn.readAsDataURL(In),Pn.onload=function(){if(!!this.result){var Dn=this.result.toString();$n.insertImg(Dn,Dn)}}})}}},ze}();g.default=Fe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(410)),re=L($(4)),ae=L($(45));(0,k.default)(g,"__esModule",{value:!0}),g.dealTextNode=g.isAllTodo=g.isTodo=g.getCursorNextNode=void 0;function le(ze){return ze.length?ze.attr("class")==="w-e-todo":!1}g.isTodo=le;function ue(ze){var Ce=ze.selection.getSelectionRangeTopNodes();if(Ce.length!==0)return(0,oe.default)(Ce).call(Ce,function(Ie){return le(Ie)})}g.isAllTodo=ue;function pe(ze,Ce,Ie){var _e;if(!!ze.hasChildNodes()){var At=ze.cloneNode(),qe=!1;Ce.nodeValue===""&&(qe=!0);var xe=[];return(0,re.default)(_e=ze.childNodes).call(_e,function(Ve){if(!de(Ve,Ce)&&qe&&(At.appendChild(Ve.cloneNode(!0)),Ve.nodeName!=="BR"&&xe.push(Ve)),de(Ve,Ce)){if(Ve.nodeType===1){var he=pe(Ve,Ce,Ie);he&&he.textContent!==""&&At?.appendChild(he)}if(Ve.nodeType===3&&Ce.isEqualNode(Ve)){var Oe=Fe(Ve,Ie);At.textContent=Oe}qe=!0}}),(0,re.default)(xe).call(xe,function(Ve){var he=Ve;he.remove()}),At}}g.getCursorNextNode=pe;function de(ze,Ce){return ze.nodeType===3?ze.nodeValue===Ce.nodeValue:ze.contains(Ce)}function Fe(ze,Ce,Ie){Ie===void 0&&(Ie=!0);var _e=ze.nodeValue,At=_e==null?void 0:(0,ae.default)(_e).call(_e,0,Ce);if(_e=_e==null?void 0:(0,ae.default)(_e).call(_e,Ce),!Ie){var qe=_e;_e=At,At=qe}return ze.nodeValue=At,_e}g.dealTextNode=Fe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(430),re=function(){function ae(le){this.maxSize=le,this.isRe=!1,this.data=new oe.CeilStack(le),this.revokeData=new oe.CeilStack(le)}return(0,k.default)(ae.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),ae.prototype.resetMaxSize=function(le){this.data.resetMax(le),this.revokeData.resetMax(le)},ae.prototype.save=function(le){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(le),this},ae.prototype.revoke=function(le){!this.isRe&&(this.isRe=!0);var ue=this.data.outstack();return ue?(this.revokeData.instack(ue),le(ue),!0):!1},ae.prototype.restore=function(le){!this.isRe&&(this.isRe=!0);var ue=this.revokeData.outstack();return ue?(this.data.instack(ue),le(ue),!0):!1},ae}();g.default=re},function(r,g,$){var L=$(14),k=$(11),oe=$(73);r.exports=!L&&!k(function(){return Object.defineProperty(oe("div"),"a",{get:function(){return 7}}).a!=7})},function(r,g,$){var L=$(11),k=/#|\.prototype\./,oe=function(pe,de){var Fe=ae[re(pe)];return Fe==ue?!0:Fe==le?!1:typeof de=="function"?L(de):!!de},re=oe.normalize=function(pe){return String(pe).replace(k,".").toLowerCase()},ae=oe.data={},le=oe.NATIVE="N",ue=oe.POLYFILL="P";r.exports=oe},function(r,g,$){var L=$(103),k=Function.toString;typeof L.inspectSource!="function"&&(L.inspectSource=function(oe){return k.call(oe)}),r.exports=L.inspectSource},function(r,g,$){var L=$(8),k=$(166),oe="__core-js_shared__",re=L[oe]||k(oe,{});r.exports=re},function(r,g,$){var L=$(105),k=$(19),oe=$(16),re=$(10),ae=$(43),le=re("iterator"),ue=!1,pe=function(){return this},de,Fe,ze;[].keys&&(ze=[].keys(),"next"in ze?(Fe=L(L(ze)),Fe!==Object.prototype&&(de=Fe)):ue=!0),de==null&&(de={}),!ae&&!oe(de,le)&&k(de,le,pe),r.exports={IteratorPrototype:de,BUGGY_SAFARI_ITERATORS:ue}},function(r,g,$){var L=$(16),k=$(31),oe=$(63),re=$(168),ae=oe("IE_PROTO"),le=Object.prototype;r.exports=re?Object.getPrototypeOf:function(ue){return ue=k(ue),L(ue,ae)?ue[ae]:typeof ue.constructor=="function"&&ue instanceof ue.constructor?ue.constructor.prototype:ue instanceof Object?le:null}},function(r,g,$){var L=$(76);r.exports=L&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(r,g,$){var L=$(16),k=$(30),oe=$(78).indexOf,re=$(51);r.exports=function(ae,le){var ue=k(ae),pe=0,de=[],Fe;for(Fe in ue)!L(re,Fe)&&L(ue,Fe)&&de.push(Fe);for(;le.length>pe;)L(ue,Fe=le[pe++])&&(~oe(de,Fe)||de.push(Fe));return de}},function(r,g,$){var L=$(36);r.exports=L("document","documentElement")},function(r,g,$){var L=$(8);r.exports=L.Promise},function(r,g,$){var L=$(53);r.exports=function(k,oe,re){for(var ae in oe)re&&re.unsafe&&k[ae]?k[ae]=oe[ae]:L(k,ae,oe[ae],re);return k}},function(r,g,$){var L=$(36),k=$(18),oe=$(10),re=$(14),ae=oe("species");r.exports=function(le){var ue=L(le),pe=k.f;re&&ue&&!ue[ae]&&pe(ue,ae,{configurable:!0,get:function(){return this}})}},function(r,g,$){var L=$(10),k=$(44),oe=L("iterator"),re=Array.prototype;r.exports=function(ae){return ae!==void 0&&(k.Array===ae||re[oe]===ae)}},function(r,g,$){var L=$(65),k=$(44),oe=$(10),re=oe("iterator");r.exports=function(ae){if(ae!=null)return ae[re]||ae["@@iterator"]||k[L(ae)]}},function(r,g,$){var L=$(25);r.exports=function(k,oe,re,ae){try{return ae?oe(L(re)[0],re[1]):oe(re)}catch(ue){var le=k.return;throw le!==void 0&&L(le.call(k)),ue}}},function(r,g,$){var L=$(10),k=L("iterator"),oe=!1;try{var re=0,ae={next:function(){return{done:!!re++}},return:function(){oe=!0}};ae[k]=function(){return this},Array.from(ae,function(){throw 2})}catch{}r.exports=function(le,ue){if(!ue&&!oe)return!1;var pe=!1;try{var de={};de[k]=function(){return{next:function(){return{done:pe=!0}}}},le(de)}catch{}return pe}},function(r,g,$){var L=$(25),k=$(41),oe=$(10),re=oe("species");r.exports=function(ae,le){var ue=L(ae).constructor,pe;return ue===void 0||(pe=L(ue)[re])==null?le:k(pe)}},function(r,g,$){var L=$(8),k=$(11),oe=$(34),re=$(40),ae=$(108),le=$(73),ue=$(118),pe=L.location,de=L.setImmediate,Fe=L.clearImmediate,ze=L.process,Ce=L.MessageChannel,Ie=L.Dispatch,_e=0,At={},qe="onreadystatechange",xe,Ve,he,Oe=function(kt){if(At.hasOwnProperty(kt)){var Et=At[kt];delete At[kt],Et()}},$e=function(kt){return function(){Oe(kt)}},Ne=function(kt){Oe(kt.data)},Ue=function(kt){L.postMessage(kt+"",pe.protocol+"//"+pe.host)};(!de||!Fe)&&(de=function(Et){for(var Pt=[],Lt=1;arguments.length>Lt;)Pt.push(arguments[Lt++]);return At[++_e]=function(){(typeof Et=="function"?Et:Function(Et)).apply(void 0,Pt)},xe(_e),_e},Fe=function(Et){delete At[Et]},oe(ze)=="process"?xe=function(kt){ze.nextTick($e(kt))}:Ie&&Ie.now?xe=function(kt){Ie.now($e(kt))}:Ce&&!ue?(Ve=new Ce,he=Ve.port2,Ve.port1.onmessage=Ne,xe=re(he.postMessage,he,1)):L.addEventListener&&typeof postMessage=="function"&&!L.importScripts&&!k(Ue)&&pe.protocol!=="file:"?(xe=Ue,L.addEventListener("message",Ne,!1)):qe in le("script")?xe=function(kt){ae.appendChild(le("script"))[qe]=function(){ae.removeChild(this),Oe(kt)}}:xe=function(kt){setTimeout($e(kt),0)}),r.exports={set:de,clear:Fe}},function(r,g,$){var L=$(84);r.exports=/(iphone|ipod|ipad).*applewebkit/i.test(L)},function(r,g,$){var L=$(25),k=$(13),oe=$(85);r.exports=function(re,ae){if(L(re),k(ae)&&ae.constructor===re)return ae;var le=oe.f(re),ue=le.resolve;return ue(ae),le.promise}},function(r,g){r.exports=function($){try{return{error:!1,value:$()}}catch(L){return{error:!0,value:L}}}},function(r,g,$){r.exports=$(197)},function(r,g,$){var L=$(5),k=$(8),oe=$(123),re=$(11),ae=$(19),le=$(66),ue=$(83),pe=$(13),de=$(37),Fe=$(18).f,ze=$(32).forEach,Ce=$(14),Ie=$(42),_e=Ie.set,At=Ie.getterFor;r.exports=function(qe,xe,Ve){var he=qe.indexOf("Map")!==-1,Oe=qe.indexOf("Weak")!==-1,$e=he?"set":"add",Ne=k[qe],Ue=Ne&&Ne.prototype,kt={},Et;if(!Ce||typeof Ne!="function"||!(Oe||Ue.forEach&&!re(function(){new Ne().entries().next()})))Et=Ve.getConstructor(xe,qe,he,$e),oe.REQUIRED=!0;else{Et=xe(function(Lt,vn){_e(ue(Lt,Et,qe),{type:qe,collection:new Ne}),vn!=null&&le(vn,Lt[$e],Lt,he)});var Pt=At(qe);ze(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(Lt){var vn=Lt=="add"||Lt=="set";Lt in Ue&&!(Oe&&Lt=="clear")&&ae(Et.prototype,Lt,function(hn,Dt){var jt=Pt(this).collection;if(!vn&&Oe&&!pe(hn))return Lt=="get"?void 0:!1;var bn=jt[Lt](hn===0?0:hn,Dt);return vn?this:bn})}),Oe||Fe(Et.prototype,"size",{configurable:!0,get:function(){return Pt(this).collection.size}})}return de(Et,qe,!1,!0),kt[qe]=Et,L({global:!0,forced:!0},kt),Oe||Ve.setStrong(Et,qe,he),Et}},function(r,g,$){var L=$(51),k=$(13),oe=$(16),re=$(18).f,ae=$(64),le=$(200),ue=ae("meta"),pe=0,de=Object.isExtensible||function(){return!0},Fe=function(At){re(At,ue,{value:{objectID:"O"+ ++pe,weakData:{}}})},ze=function(At,qe){if(!k(At))return typeof At=="symbol"?At:(typeof At=="string"?"S":"P")+At;if(!oe(At,ue)){if(!de(At))return"F";if(!qe)return"E";Fe(At)}return At[ue].objectID},Ce=function(At,qe){if(!oe(At,ue)){if(!de(At))return!0;if(!qe)return!1;Fe(At)}return At[ue].weakData},Ie=function(At){return le&&_e.REQUIRED&&de(At)&&!oe(At,ue)&&Fe(At),At},_e=r.exports={REQUIRED:!1,fastKey:ze,getWeakData:Ce,onFreeze:Ie};L[ue]=!0},function(r,g,$){var L=$(18).f,k=$(77),oe=$(110),re=$(40),ae=$(83),le=$(66),ue=$(75),pe=$(111),de=$(14),Fe=$(123).fastKey,ze=$(42),Ce=ze.set,Ie=ze.getterFor;r.exports={getConstructor:function(_e,At,qe,xe){var Ve=_e(function(Ne,Ue){ae(Ne,Ve,At),Ce(Ne,{type:At,index:k(null),first:void 0,last:void 0,size:0}),de||(Ne.size=0),Ue!=null&&le(Ue,Ne[xe],Ne,qe)}),he=Ie(At),Oe=function(Ne,Ue,kt){var Et=he(Ne),Pt=$e(Ne,Ue),Lt,vn;return Pt?Pt.value=kt:(Et.last=Pt={index:vn=Fe(Ue,!0),key:Ue,value:kt,previous:Lt=Et.last,next:void 0,removed:!1},Et.first||(Et.first=Pt),Lt&&(Lt.next=Pt),de?Et.size++:Ne.size++,vn!=="F"&&(Et.index[vn]=Pt)),Ne},$e=function(Ne,Ue){var kt=he(Ne),Et=Fe(Ue),Pt;if(Et!=="F")return kt.index[Et];for(Pt=kt.first;Pt;Pt=Pt.next)if(Pt.key==Ue)return Pt};return oe(Ve.prototype,{clear:function(){for(var Ue=this,kt=he(Ue),Et=kt.index,Pt=kt.first;Pt;)Pt.removed=!0,Pt.previous&&(Pt.previous=Pt.previous.next=void 0),delete Et[Pt.index],Pt=Pt.next;kt.first=kt.last=void 0,de?kt.size=0:Ue.size=0},delete:function(Ne){var Ue=this,kt=he(Ue),Et=$e(Ue,Ne);if(Et){var Pt=Et.next,Lt=Et.previous;delete kt.index[Et.index],Et.removed=!0,Lt&&(Lt.next=Pt),Pt&&(Pt.previous=Lt),kt.first==Et&&(kt.first=Pt),kt.last==Et&&(kt.last=Lt),de?kt.size--:Ue.size--}return!!Et},forEach:function(Ue){for(var kt=he(this),Et=re(Ue,arguments.length>1?arguments[1]:void 0,3),Pt;Pt=Pt?Pt.next:kt.first;)for(Et(Pt.value,Pt.key,this);Pt&&Pt.removed;)Pt=Pt.previous},has:function(Ue){return!!$e(this,Ue)}}),oe(Ve.prototype,qe?{get:function(Ue){var kt=$e(this,Ue);return kt&&kt.value},set:function(Ue,kt){return Oe(this,Ue===0?0:Ue,kt)}}:{add:function(Ue){return Oe(this,Ue=Ue===0?0:Ue,Ue)}}),de&&L(Ve.prototype,"size",{get:function(){return he(this).size}}),Ve},setStrong:function(_e,At,qe){var xe=At+" Iterator",Ve=Ie(At),he=Ie(xe);ue(_e,At,function(Oe,$e){Ce(this,{type:xe,target:Oe,state:Ve(Oe),kind:$e,last:void 0})},function(){for(var Oe=he(this),$e=Oe.kind,Ne=Oe.last;Ne&&Ne.removed;)Ne=Ne.previous;return!Oe.target||!(Oe.last=Ne=Ne?Ne.next:Oe.state.first)?(Oe.target=void 0,{value:void 0,done:!0}):$e=="keys"?{value:Ne.key,done:!1}:$e=="values"?{value:Ne.value,done:!1}:{value:[Ne.key,Ne.value],done:!1}},qe?"entries":"values",!qe,!0),pe(At)}}},function(r,g,$){var L=$(12);L("iterator")},function(r,g,$){var L=$(107),k=$(80),oe=k.concat("length","prototype");g.f=Object.getOwnPropertyNames||function(ae){return L(ae,oe)}},function(r,g){g.f=Object.getOwnPropertySymbols},function(r,g,$){r.exports=$(268)},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.default={zIndex:1e4}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.default={focus:!0,height:300,placeholder:"\u8BF7\u8F93\u5165\u6B63\u6587",zIndexFullScreen:10002,showFullScreen:!0}},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0}),g.getPasteImgs=g.getPasteHtml=g.getPasteText=void 0;var re=$(2),ae=$(6),le=re.__importDefault($(292));function ue(Fe){var ze=Fe.clipboardData,Ce="";return ze==null?Ce=window.clipboardData&&window.clipboardData.getData("text"):Ce=ze.getData("text/plain"),ae.replaceHtmlSymbol(Ce)}g.getPasteText=ue;function pe(Fe,ze,Ce){ze===void 0&&(ze=!0),Ce===void 0&&(Ce=!1);var Ie=Fe.clipboardData,_e="";if(Ie&&(_e=Ie.getData("text/html")),!_e){var At=ue(Fe);if(!At)return"";_e="

    "+At+"

    "}return _e=_e.replace(/<(\d)/gm,function(qe,xe){return"<"+xe}),_e=_e.replace(/<(\/?meta.*?)>/gim,""),_e=le.default(_e,ze,Ce),_e}g.getPasteHtml=pe;function de(Fe){var ze,Ce=[],Ie=ue(Fe);if(Ie)return Ce;var _e=(ze=Fe.clipboardData)===null||ze===void 0?void 0:ze.items;return _e&&(0,oe.default)(ae).call(ae,_e,function(At,qe){var xe=qe.type;/image/i.test(xe)&&Ce.push(qe.getAsFile())}),Ce}g.getPasteImgs=de},function(r,g,$){r.exports=$(294)},function(r,g,$){r.exports=$(310)},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4)),re=L($(46));(0,k.default)(g,"__esModule",{value:!0});var ae=$(2),le=ae.__importDefault($(3)),ue=$(7),pe=function(){function de(Fe,ze){var Ce=this;this.hideTimeoutId=0,this.menu=Fe,this.conf=ze;var Ie=le.default('
    '),_e=le.default("

    "+ze.title+"

    ");_e.addClass("w-e-dp-title"),Ie.append(_e);var At=ze.list||[],qe=ze.type||"list",xe=ze.clickHandler||ue.EMPTY_FN,Ve=le.default('
      ');(0,oe.default)(At).call(At,function(he){var Oe=he.$elem,$e=he.value,Ne=le.default('
    • ');Oe&&(Ne.append(Oe),Ve.append(Ne),Ne.on("click",function(Ue){xe($e),Ue.stopPropagation(),Ce.hideTimeoutId=(0,re.default)(function(){Ce.hide()})}))}),Ie.append(Ve),Ie.on("mouseleave",function(){Ce.hideTimeoutId=(0,re.default)(function(){Ce.hide()})}),this.$container=Ie,this.rendered=!1,this._show=!1}return de.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var Fe=this.menu,ze=Fe.$elem,Ce=this.$container;if(!this._show){if(this.rendered)Ce.show();else{var Ie=ze.getBoundingClientRect().height||0,_e=this.conf.width||100;Ce.css("margin-top",Ie+"px").css("width",_e+"px"),ze.append(Ce),this.rendered=!0}this._show=!0}},de.prototype.hide=function(){var Fe=this.$container;!this._show||(Fe.hide(),this._show=!1)},(0,k.default)(de.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),de}();g.default=pe},function(r,g,$){var L=$(0),k=L($(92)),oe=L($(1)),re=L($(4));(0,oe.default)(g,"__esModule",{value:!0});var ae=$(6);function le(ue,pe){var de=new XMLHttpRequest;if(de.open("POST",ue),de.timeout=pe.timeout||10*1e3,de.ontimeout=function(){console.error("wangEditor - \u8BF7\u6C42\u8D85\u65F6"),pe.onTimeout&&pe.onTimeout(de)},de.upload&&(de.upload.onprogress=function(ze){var Ce=ze.loaded/ze.total;pe.onProgress&&pe.onProgress(Ce,ze)}),pe.headers&&(0,re.default)(ae).call(ae,pe.headers,function(ze,Ce){de.setRequestHeader(ze,Ce)}),de.withCredentials=!!pe.withCredentials,pe.beforeSend){var Fe=pe.beforeSend(de);if(Fe&&(0,k.default)(Fe)==="object"&&Fe.prevent)return Fe.msg}return de.onreadystatechange=function(){if(de.readyState===4){var ze=de.status;if(!(ze<200)&&!(ze>=300&&ze<400)){if(ze>=400){console.error("wangEditor - XHR \u62A5\u9519\uFF0C\u72B6\u6001\u7801 "+ze),pe.onError&&pe.onError(de);return}var Ce=de.responseText,Ie;if((0,k.default)(Ce)!=="object")try{Ie=JSON.parse(Ce)}catch{console.error("wangEditor - \u8FD4\u56DE\u7ED3\u679C\u4E0D\u662F JSON \u683C\u5F0F",Ce),pe.onFail&&pe.onFail(de,Ce);return}else Ie=Ce;pe.onSuccess(de,Ie)}}},de.send(pe.formData||null),de}g.default=le},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(342)),re=L($(46));(0,k.default)(g,"__esModule",{value:!0});var ae=$(2),le=ae.__importDefault($(3)),ue=function(){function pe(de){this.editor=de,this.$textContainer=de.$textContainerElem,this.$bar=le.default('
      '),this.isShow=!1,this.time=0,this.timeoutId=0}return pe.prototype.show=function(de){var Fe=this;if(!this.isShow){this.isShow=!0;var ze=this.$bar,Ce=this.$textContainer;Ce.append(ze),(0,oe.default)()-this.time>100&&de<=1&&(ze.css("width",de*100+"%"),this.time=(0,oe.default)());var Ie=this.timeoutId;Ie&&clearTimeout(Ie),this.timeoutId=(0,re.default)(function(){Fe.hide()},500)}},pe.prototype.hide=function(){var de=this.$bar;de.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},pe}();g.default=ue},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.ListType=void 0;var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(24)),le=$(47),ue=oe.__importStar($(371)),pe;(function(Fe){Fe.OrderedList="OL",Fe.UnorderedList="UL"})(pe=g.ListType||(g.ListType={}));var de=function(Fe){oe.__extends(ze,Fe);function ze(Ce){var Ie=this,_e=re.default(`
      + +
      `),At={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:re.default(` +

      + + `+Ce.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+` +

      `),value:pe.UnorderedList},{$elem:re.default(`

      + + `+Ce.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+` +

      `),value:pe.OrderedList}],clickHandler:function(xe){Ie.command(xe)}};return Ie=Fe.call(this,_e,Ce,At)||this,Ie}return ze.prototype.command=function(Ce){var Ie=this.editor,_e=Ie.selection.getSelectionContainerElem();_e!==void 0&&(this.handleSelectionRangeNodes(Ce),this.tryChangeActive())},ze.prototype.validator=function(Ce,Ie,_e){return!(!Ce.length||!Ie.length||_e.equal(Ce)||_e.equal(Ie))},ze.prototype.handleSelectionRangeNodes=function(Ce){var Ie=this.editor,_e=Ie.selection,At=Ce.toLowerCase(),qe=_e.getSelectionContainerElem(),xe=_e.getSelectionStartElem().getNodeTop(Ie),Ve=_e.getSelectionEndElem().getNodeTop(Ie);if(!!this.validator(xe,Ve,Ie.$textElem)){var he=_e.getRange(),Oe=he?.collapsed;Ie.$textElem.equal(qe)||(qe=qe.getNodeTop(Ie));var $e={editor:Ie,listType:Ce,listTarget:At,$selectionElem:qe,$startElem:xe,$endElem:Ve},Ne;this.isOrderElem(qe)?Ne=ue.ClassType.Wrap:this.isOrderElem(xe)&&this.isOrderElem(Ve)?Ne=ue.ClassType.Join:this.isOrderElem(xe)?Ne=ue.ClassType.StartJoin:this.isOrderElem(Ve)?Ne=ue.ClassType.EndJoin:Ne=ue.ClassType.Other;var Ue=new ue.default(ue.createListHandle(Ne,$e,he));le.updateRange(Ie,Ue.getSelectionRangeElem(),!!Oe)}},ze.prototype.isOrderElem=function(Ce){var Ie=Ce.getNodeName();return Ie===pe.OrderedList||Ie===pe.UnorderedList},ze.prototype.tryChangeActive=function(){},ze}(ae.default);g.default=de},function(r,g,$){r.exports=$(395)},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});function oe(re){var ae=re.selection.getSelectionContainerElem();return ae?.length?!!(ae.getNodeName()=="CODE"||ae.getNodeName()=="PRE"||ae.parent().getNodeName()=="CODE"||ae.parent().getNodeName()=="PRE"||/hljs/.test(ae.parent().attr("class"))):!1}g.default=oe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(29));(0,k.default)(g,"__esModule",{value:!0}),g.todo=void 0;var re=$(2),ae=re.__importDefault($(3)),le=function(){function pe(de){var Fe;this.template='

      ',this.checked=!1,this.$todo=ae.default(this.template),this.$child=(Fe=de?.childNodes())===null||Fe===void 0?void 0:Fe.clone(!0)}return pe.prototype.init=function(){var de=this.$child,Fe=this.getInputContainer();de&&de.insertAfter(Fe)},pe.prototype.getInput=function(){var de=this.$todo,Fe=(0,oe.default)(de).call(de,"input");return Fe},pe.prototype.getInputContainer=function(){var de=this.getInput().parent();return de},pe.prototype.getTodo=function(){return this.$todo},pe}();g.todo=le;function ue(pe){var de=new le(pe);return de.init(),de}g.default=ue},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2);$(146),$(148),$(152),$(154),$(156),$(158),$(160);var re=oe.__importDefault($(87));oe.__exportStar($(442),g);try{}catch{throw new Error("\u8BF7\u5728\u6D4F\u89C8\u5668\u73AF\u5883\u4E0B\u8FD0\u884C")}g.default=re.default},function(r,g,$){var L=$(143);r.exports=L},function(r,g,$){$(144);var L=$(9),k=L.Object,oe=r.exports=function(ae,le,ue){return k.defineProperty(ae,le,ue)};k.defineProperty.sham&&(oe.sham=!0)},function(r,g,$){var L=$(5),k=$(14),oe=$(18);L({target:"Object",stat:!0,forced:!k,sham:!k},{defineProperty:oe.f})},function(r,g){var $;$=function(){return this}();try{$=$||new Function("return this")()}catch{typeof window=="object"&&($=window)}r.exports=$},function(r,g,$){var L=$(20),k=$(147);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21);g=L(!1),g.push([r.i,`.w-e-toolbar, +.w-e-text-container, +.w-e-menu-panel { + padding: 0; + margin: 0; + box-sizing: border-box; + background-color: #fff; + /*\u8868\u60C5\u83DC\u5355\u6837\u5F0F*/ + /*\u5206\u5272\u7EBF\u6837\u5F0F*/ +} +.w-e-toolbar h1, +.w-e-text-container h1, +.w-e-menu-panel h1 { + font-size: 32px !important; +} +.w-e-toolbar h2, +.w-e-text-container h2, +.w-e-menu-panel h2 { + font-size: 24px !important; +} +.w-e-toolbar h3, +.w-e-text-container h3, +.w-e-menu-panel h3 { + font-size: 18.72px !important; +} +.w-e-toolbar h4, +.w-e-text-container h4, +.w-e-menu-panel h4 { + font-size: 16px !important; +} +.w-e-toolbar h5, +.w-e-text-container h5, +.w-e-menu-panel h5 { + font-size: 13.28px !important; +} +.w-e-toolbar p, +.w-e-text-container p, +.w-e-menu-panel p { + font-size: 16px !important; +} +.w-e-toolbar .eleImg, +.w-e-text-container .eleImg, +.w-e-menu-panel .eleImg { + cursor: pointer; + display: inline-block; + font-size: 18px; + padding: 0 3px; +} +.w-e-toolbar *, +.w-e-text-container *, +.w-e-menu-panel * { + padding: 0; + margin: 0; + box-sizing: border-box; +} +.w-e-toolbar hr, +.w-e-text-container hr, +.w-e-menu-panel hr { + cursor: pointer; + display: block; + height: 0px; + border: 0; + border-top: 3px solid #ccc; + margin: 20px 0; +} +.w-e-clear-fix:after { + content: ""; + display: table; + clear: both; +} +.w-e-drop-list-item { + position: relative; + top: 1px; + padding-right: 7px; + color: #333 !important; +} +.w-e-drop-list-tl { + padding-left: 10px; + text-align: left; +} +`,""]),r.exports=g},function(r,g,$){var L=$(20),k=$(149);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21),k=$(150),oe=$(151);g=L(!1);var re=k(oe);g.push([r.i,`@font-face { + font-family: 'w-e-icon'; + src: url(`+re+`) format('truetype'); + font-weight: normal; + font-style: normal; +} +[class^="w-e-icon-"], +[class*=" w-e-icon-"] { + /* use !important to prevent issues with browser extensions that change fonts */ + font-family: 'w-e-icon' !important; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + line-height: 1; + /* Better Font Rendering =========== */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.w-e-icon-close:before { + content: "\\f00d"; +} +.w-e-icon-upload2:before { + content: "\\e9c6"; +} +.w-e-icon-trash-o:before { + content: "\\f014"; +} +.w-e-icon-header:before { + content: "\\f1dc"; +} +.w-e-icon-pencil2:before { + content: "\\e906"; +} +.w-e-icon-paint-brush:before { + content: "\\f1fc"; +} +.w-e-icon-image:before { + content: "\\e90d"; +} +.w-e-icon-play:before { + content: "\\e912"; +} +.w-e-icon-location:before { + content: "\\e947"; +} +.w-e-icon-undo:before { + content: "\\e965"; +} +.w-e-icon-redo:before { + content: "\\e966"; +} +.w-e-icon-quotes-left:before { + content: "\\e977"; +} +.w-e-icon-list-numbered:before { + content: "\\e9b9"; +} +.w-e-icon-list2:before { + content: "\\e9bb"; +} +.w-e-icon-link:before { + content: "\\e9cb"; +} +.w-e-icon-happy:before { + content: "\\e9df"; +} +.w-e-icon-bold:before { + content: "\\ea62"; +} +.w-e-icon-underline:before { + content: "\\ea63"; +} +.w-e-icon-italic:before { + content: "\\ea64"; +} +.w-e-icon-strikethrough:before { + content: "\\ea65"; +} +.w-e-icon-table2:before { + content: "\\ea71"; +} +.w-e-icon-paragraph-left:before { + content: "\\ea77"; +} +.w-e-icon-paragraph-center:before { + content: "\\ea78"; +} +.w-e-icon-paragraph-right:before { + content: "\\ea79"; +} +.w-e-icon-paragraph-justify:before { + content: "\\ea7a"; +} +.w-e-icon-terminal:before { + content: "\\f120"; +} +.w-e-icon-page-break:before { + content: "\\ea68"; +} +.w-e-icon-cancel-circle:before { + content: "\\ea0d"; +} +.w-e-icon-font:before { + content: "\\ea5c"; +} +.w-e-icon-text-heigh:before { + content: "\\ea5f"; +} +.w-e-icon-paint-format:before { + content: "\\e90c"; +} +.w-e-icon-indent-increase:before { + content: "\\ea7b"; +} +.w-e-icon-indent-decrease:before { + content: "\\ea7c"; +} +.w-e-icon-row-height:before { + content: "\\e9be"; +} +.w-e-icon-fullscreen_exit:before { + content: "\\e900"; +} +.w-e-icon-fullscreen:before { + content: "\\e901"; +} +.w-e-icon-split-line:before { + content: "\\ea0b"; +} +.w-e-icon-checkbox-checked:before { + content: "\\ea52"; +} +`,""]),r.exports=g},function(r,g,$){r.exports=function(L,k){return k||(k={}),L=L&&L.__esModule?L.default:L,typeof L!="string"?L:(/^['"].*['"]$/.test(L)&&(L=L.slice(1,-1)),k.hash&&(L+=k.hash),/["'() \t\n]/.test(L)||k.needQuotes?'"'.concat(L.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):L)}},function(r,g,$){$.r(g),g.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(r,g,$){var L=$(20),k=$(153);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21);g=L(!1),g.push([r.i,`.w-e-toolbar { + display: flex; + padding: 0 6px; + flex-wrap: wrap; + position: relative; + /* \u5355\u4E2A\u83DC\u5355 */ +} +.w-e-toolbar .w-e-menu { + position: relative; + display: flex; + width: 40px; + height: 40px; + align-items: center; + justify-content: center; + text-align: center; + cursor: pointer; +} +.w-e-toolbar .w-e-menu i { + color: #999; +} +.w-e-toolbar .w-e-menu:hover { + background-color: #F6F6F6; +} +.w-e-toolbar .w-e-menu:hover i { + color: #333; +} +.w-e-toolbar .w-e-active i { + color: #1e88e5; +} +.w-e-toolbar .w-e-active:hover i { + color: #1e88e5; +} +.w-e-menu-tooltip { + position: absolute; + display: flex; + color: #f1f1f1; + background-color: rgba(0, 0, 0, 0.75); + box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15); + border-radius: 4px; + padding: 4px 5px 6px; + justify-content: center; + align-items: center; +} +.w-e-menu-tooltip-up::after { + content: ""; + position: absolute; + top: 100%; + left: 50%; + margin-left: -5px; + border: 5px solid rgba(0, 0, 0, 0); + border-top-color: rgba(0, 0, 0, 0.73); +} +.w-e-menu-tooltip-down::after { + content: ""; + position: absolute; + bottom: 100%; + left: 50%; + margin-left: -5px; + border: 5px solid rgba(0, 0, 0, 0); + border-bottom-color: rgba(0, 0, 0, 0.73); +} +.w-e-menu-tooltip-item-wrapper { + font-size: 14px; + margin: 0 5px; +} +`,""]),r.exports=g},function(r,g,$){var L=$(20),k=$(155);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21);g=L(!1),g.push([r.i,`.w-e-text-container { + position: relative; + height: 100%; +} +.w-e-text-container .w-e-progress { + position: absolute; + background-color: #1e88e5; + top: 0; + left: 0; + height: 1px; +} +.w-e-text-container .placeholder { + color: #D4D4D4; + position: absolute; + font-size: 11pt; + line-height: 22px; + left: 10px; + top: 10px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + z-index: -1; +} +.w-e-text { + padding: 0 10px; + overflow-y: auto; +} +.w-e-text p, +.w-e-text h1, +.w-e-text h2, +.w-e-text h3, +.w-e-text h4, +.w-e-text h5, +.w-e-text table, +.w-e-text pre { + margin: 10px 0; + line-height: 1.5; +} +.w-e-text ul, +.w-e-text ol { + margin: 10px 0 10px 20px; +} +.w-e-text blockquote { + display: block; + border-left: 8px solid #d0e5f2; + padding: 5px 10px; + margin: 10px 0; + line-height: 1.4; + font-size: 100%; + background-color: #f1f1f1; +} +.w-e-text code { + display: inline-block; + background-color: #f1f1f1; + border-radius: 3px; + padding: 3px 5px; + margin: 0 3px; +} +.w-e-text pre code { + display: block; +} +.w-e-text table { + border-top: 1px solid #ccc; + border-left: 1px solid #ccc; +} +.w-e-text table td, +.w-e-text table th { + border-bottom: 1px solid #ccc; + border-right: 1px solid #ccc; + padding: 3px 5px; + min-height: 30px; + height: 30px; +} +.w-e-text table th { + border-bottom: 2px solid #ccc; + text-align: center; + background-color: #f1f1f1; +} +.w-e-text:focus { + outline: none; +} +.w-e-text img { + cursor: pointer; +} +.w-e-text img:hover { + box-shadow: 0 0 5px #333; +} +.w-e-text .w-e-todo { + margin: 0 0 0 20px; +} +.w-e-text .w-e-todo li { + list-style: none; + font-size: 1em; +} +.w-e-text .w-e-todo li span:nth-child(1) { + position: relative; + left: -18px; +} +.w-e-text .w-e-todo li span:nth-child(1) input { + position: absolute; + margin-right: 3px; +} +.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] { + top: 50%; + margin-top: -6px; +} +.w-e-tooltip { + position: absolute; + display: flex; + color: #f1f1f1; + background-color: rgba(0, 0, 0, 0.75); + box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15); + border-radius: 4px; + padding: 4px 5px 6px; + justify-content: center; + align-items: center; +} +.w-e-tooltip-up::after { + content: ""; + position: absolute; + top: 100%; + left: 50%; + margin-left: -5px; + border: 5px solid rgba(0, 0, 0, 0); + border-top-color: rgba(0, 0, 0, 0.73); +} +.w-e-tooltip-down::after { + content: ""; + position: absolute; + bottom: 100%; + left: 50%; + margin-left: -5px; + border: 5px solid rgba(0, 0, 0, 0); + border-bottom-color: rgba(0, 0, 0, 0.73); +} +.w-e-tooltip-item-wrapper { + cursor: pointer; + font-size: 14px; + margin: 0 5px; +} +.w-e-tooltip-item-wrapper:hover { + color: #ccc; + text-decoration: underline; +} +`,""]),r.exports=g},function(r,g,$){var L=$(20),k=$(157);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21);g=L(!1),g.push([r.i,`.w-e-menu .w-e-panel-container { + position: absolute; + top: 0; + left: 50%; + border: 1px solid #ccc; + border-top: 0; + box-shadow: 1px 1px 2px #ccc; + color: #333; + background-color: #fff; + text-align: left; + /* \u4E3A emotion panel \u5B9A\u5236\u7684\u6837\u5F0F */ + /* \u4E0A\u4F20\u56FE\u7247\u3001\u4E0A\u4F20\u89C6\u9891\u7684 panel \u5B9A\u5236\u6837\u5F0F */ +} +.w-e-menu .w-e-panel-container .w-e-panel-close { + position: absolute; + right: 0; + top: 0; + padding: 5px; + margin: 2px 5px 0 0; + cursor: pointer; + color: #999; +} +.w-e-menu .w-e-panel-container .w-e-panel-close:hover { + color: #333; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-title { + list-style: none; + display: flex; + font-size: 14px; + margin: 2px 10px 0 10px; + border-bottom: 1px solid #f1f1f1; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item { + padding: 3px 5px; + color: #999; + cursor: pointer; + margin: 0 3px; + position: relative; + top: 1px; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active { + color: #333; + border-bottom: 1px solid #333; + cursor: default; + font-weight: 700; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content { + padding: 10px 15px 10px 15px; + font-size: 16px; + /* \u8F93\u5165\u6846\u7684\u6837\u5F0F */ + /* \u6309\u94AE\u7684\u6837\u5F0F */ +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus, +.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus, +.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus { + outline: none; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea { + width: 100%; + border: 1px solid #ccc; + padding: 5px; + margin-top: 10px; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus { + border-color: #1e88e5; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] { + border: none; + border-bottom: 1px solid #ccc; + font-size: 14px; + height: 20px; + color: #333; + text-align: left; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small { + width: 30px; + text-align: center; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block { + display: block; + width: 100%; + margin: 10px 0; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus { + border-bottom: 2px solid #1e88e5; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button { + font-size: 14px; + color: #1e88e5; + border: none; + padding: 5px 10px; + background-color: #fff; + cursor: pointer; + border-radius: 3px; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left { + float: left; + margin-right: 10px; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right { + float: right; + margin-left: 10px; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray { + color: #999; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red { + color: #c24f4a; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover { + background-color: #f1f1f1; +} +.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after { + content: ""; + display: table; + clear: both; +} +.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item { + cursor: pointer; + font-size: 18px; + padding: 0 3px; + display: inline-block; +} +.w-e-menu .w-e-panel-container .w-e-up-img-container, +.w-e-menu .w-e-panel-container .w-e-up-video-container { + text-align: center; +} +.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn, +.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn { + display: inline-block; + color: #999; + cursor: pointer; + font-size: 60px; + line-height: 1; +} +.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover, +.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover { + color: #333; +} +`,""]),r.exports=g},function(r,g,$){var L=$(20),k=$(159);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21);g=L(!1),g.push([r.i,`.w-e-toolbar .w-e-droplist { + position: absolute; + left: 0; + top: 0; + background-color: #fff; + border: 1px solid #f1f1f1; + border-right-color: #ccc; + border-bottom-color: #ccc; +} +.w-e-toolbar .w-e-droplist .w-e-dp-title { + text-align: center; + color: #999; + line-height: 2; + border-bottom: 1px solid #f1f1f1; + font-size: 13px; +} +.w-e-toolbar .w-e-droplist ul.w-e-list { + list-style: none; + line-height: 1; +} +.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item { + color: #333; + padding: 5px 0; +} +.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover { + background-color: #f1f1f1; +} +.w-e-toolbar .w-e-droplist ul.w-e-block { + list-style: none; + text-align: left; + padding: 5px; +} +.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item { + display: inline-block; + padding: 3px 5px; +} +.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover { + background-color: #f1f1f1; +} +`,""]),r.exports=g},function(r,g,$){var L=$(0),k=L($(161));Element.prototype.matches||(Element.prototype.matches=function(oe){var re=this.ownerDocument.querySelectorAll(oe),ae=re.length;for(ae;ae>=0&&re.item(ae)!==this;ae--);return ae>-1}),k.default||(window.Promise=k.default)},function(r,g,$){r.exports=$(162)},function(r,g,$){var L=$(163);r.exports=L},function(r,g,$){$(61),$(50),$(54),$(175),$(178),$(179);var L=$(9);r.exports=L.Promise},function(r,g,$){var L=$(62),k=$(49),oe=function(re){return function(ae,le){var ue=String(k(ae)),pe=L(le),de=ue.length,Fe,ze;return pe<0||pe>=de?re?"":void 0:(Fe=ue.charCodeAt(pe),Fe<55296||Fe>56319||pe+1===de||(ze=ue.charCodeAt(pe+1))<56320||ze>57343?re?ue.charAt(pe):Fe:re?ue.slice(pe,pe+2):(Fe-55296<<10)+(ze-56320)+65536)}};r.exports={codeAt:oe(!1),charAt:oe(!0)}},function(r,g,$){var L=$(8),k=$(102),oe=L.WeakMap;r.exports=typeof oe=="function"&&/native code/.test(k(oe))},function(r,g,$){var L=$(8),k=$(19);r.exports=function(oe,re){try{k(L,oe,re)}catch{L[oe]=re}return re}},function(r,g,$){var L=$(104).IteratorPrototype,k=$(77),oe=$(48),re=$(37),ae=$(44),le=function(){return this};r.exports=function(ue,pe,de){var Fe=pe+" Iterator";return ue.prototype=k(L,{next:oe(1,de)}),re(ue,Fe,!1,!0),ae[Fe]=le,ue}},function(r,g,$){var L=$(11);r.exports=!L(function(){function k(){}return k.prototype.constructor=null,Object.getPrototypeOf(new k)!==k.prototype})},function(r,g,$){var L=$(14),k=$(18),oe=$(25),re=$(52);r.exports=L?Object.defineProperties:function(le,ue){oe(le);for(var pe=re(ue),de=pe.length,Fe=0,ze;de>Fe;)k.f(le,ze=pe[Fe++],ue[ze]);return le}},function(r,g,$){var L=$(81),k=$(65);r.exports=L?{}.toString:function(){return"[object "+k(this)+"]"}},function(r,g,$){var L=$(25),k=$(172);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var oe=!1,re={},ae;try{ae=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,ae.call(re,[]),oe=re instanceof Array}catch{}return function(ue,pe){return L(ue),k(pe),oe?ae.call(ue,pe):ue.__proto__=pe,ue}}():void 0)},function(r,g,$){var L=$(13);r.exports=function(k){if(!L(k)&&k!==null)throw TypeError("Can't set "+String(k)+" as a prototype");return k}},function(r,g,$){var L=$(30),k=$(82),oe=$(44),re=$(42),ae=$(75),le="Array Iterator",ue=re.set,pe=re.getterFor(le);r.exports=ae(Array,"Array",function(de,Fe){ue(this,{type:le,target:L(de),index:0,kind:Fe})},function(){var de=pe(this),Fe=de.target,ze=de.kind,Ce=de.index++;return!Fe||Ce>=Fe.length?(de.target=void 0,{value:void 0,done:!0}):ze=="keys"?{value:Ce,done:!1}:ze=="values"?{value:Fe[Ce],done:!1}:{value:[Ce,Fe[Ce]],done:!1}},"values"),oe.Arguments=oe.Array,k("keys"),k("values"),k("entries")},function(r,g){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(r,g,$){var L=$(5),k=$(43),oe=$(8),re=$(36),ae=$(109),le=$(53),ue=$(110),pe=$(37),de=$(111),Fe=$(13),ze=$(41),Ce=$(83),Ie=$(34),_e=$(102),At=$(66),qe=$(115),xe=$(116),Ve=$(117).set,he=$(176),Oe=$(119),$e=$(177),Ne=$(85),Ue=$(120),kt=$(42),Et=$(101),Pt=$(10),Lt=$(86),vn=Pt("species"),hn="Promise",Dt=kt.get,jt=kt.set,bn=kt.getterFor(hn),Sn=ae,Cn=oe.TypeError,On=oe.document,En=oe.process,An=re("fetch"),In=Ne.f,$n=In,Pn=Ie(En)=="process",Dn=!!(On&&On.createEvent&&oe.dispatchEvent),Mn="unhandledrejection",Fn="rejectionhandled",kn=0,Nn=1,Rn=2,wn=1,Tn=2,xn,Bn,Ln,Hn,zn=Et(hn,function(){var Qn=_e(Sn)!==String(Sn);if(!Qn&&(Lt===66||!Pn&&typeof PromiseRejectionEvent!="function")||k&&!Sn.prototype.finally)return!0;if(Lt>=51&&/native code/.test(Sn))return!1;var jn=Sn.resolve(1),Un=function(Zn){Zn(function(){},function(){})},Xn=jn.constructor={};return Xn[vn]=Un,!(jn.then(function(){})instanceof Un)}),Jn=zn||!qe(function(Qn){Sn.all(Qn).catch(function(){})}),co=function(Qn){var jn;return Fe(Qn)&&typeof(jn=Qn.then)=="function"?jn:!1},Gn=function(Qn,jn,Un){if(!jn.notified){jn.notified=!0;var Xn=jn.reactions;he(function(){for(var Zn=jn.value,to=jn.state==Nn,ro=0;Xn.length>ro;){var lo=Xn[ro++],uo=to?lo.ok:lo.fail,yo=lo.resolve,oo=lo.reject,go=lo.domain,Co,Kn,io;try{uo?(to||(jn.rejection===Tn&&Yn(Qn,jn),jn.rejection=wn),uo===!0?Co=Zn:(go&&go.enter(),Co=uo(Zn),go&&(go.exit(),io=!0)),Co===lo.promise?oo(Cn("Promise-chain cycle")):(Kn=co(Co))?Kn.call(Co,yo,oo):yo(Co)):oo(Zn)}catch(fo){go&&!io&&go.exit(),oo(fo)}}jn.reactions=[],jn.notified=!1,Un&&!jn.rejection&&ao(Qn,jn)})}},eo=function(Qn,jn,Un){var Xn,Zn;Dn?(Xn=On.createEvent("Event"),Xn.promise=jn,Xn.reason=Un,Xn.initEvent(Qn,!1,!0),oe.dispatchEvent(Xn)):Xn={promise:jn,reason:Un},(Zn=oe["on"+Qn])?Zn(Xn):Qn===Mn&&$e("Unhandled promise rejection",Un)},ao=function(Qn,jn){Ve.call(oe,function(){var Un=jn.value,Xn=ho(jn),Zn;if(Xn&&(Zn=Ue(function(){Pn?En.emit("unhandledRejection",Un,Qn):eo(Mn,Qn,Un)}),jn.rejection=Pn||ho(jn)?Tn:wn,Zn.error))throw Zn.value})},ho=function(Qn){return Qn.rejection!==wn&&!Qn.parent},Yn=function(Qn,jn){Ve.call(oe,function(){Pn?En.emit("rejectionHandled",Qn):eo(Fn,Qn,jn.value)})},Wn=function(Qn,jn,Un,Xn){return function(Zn){Qn(jn,Un,Zn,Xn)}},Vn=function(Qn,jn,Un,Xn){jn.done||(jn.done=!0,Xn&&(jn=Xn),jn.value=Un,jn.state=Rn,Gn(Qn,jn,!0))},_n=function(Qn,jn,Un,Xn){if(!jn.done){jn.done=!0,Xn&&(jn=Xn);try{if(Qn===Un)throw Cn("Promise can't be resolved itself");var Zn=co(Un);Zn?he(function(){var to={done:!1};try{Zn.call(Un,Wn(_n,Qn,to,jn),Wn(Vn,Qn,to,jn))}catch(ro){Vn(Qn,to,ro,jn)}}):(jn.value=Un,jn.state=Nn,Gn(Qn,jn,!1))}catch(to){Vn(Qn,{done:!1},to,jn)}}};zn&&(Sn=function(jn){Ce(this,Sn,hn),ze(jn),xn.call(this);var Un=Dt(this);try{jn(Wn(_n,this,Un),Wn(Vn,this,Un))}catch(Xn){Vn(this,Un,Xn)}},xn=function(jn){jt(this,{type:hn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:kn,value:void 0})},xn.prototype=ue(Sn.prototype,{then:function(jn,Un){var Xn=bn(this),Zn=In(xe(this,Sn));return Zn.ok=typeof jn=="function"?jn:!0,Zn.fail=typeof Un=="function"&&Un,Zn.domain=Pn?En.domain:void 0,Xn.parent=!0,Xn.reactions.push(Zn),Xn.state!=kn&&Gn(this,Xn,!1),Zn.promise},catch:function(Qn){return this.then(void 0,Qn)}}),Bn=function(){var Qn=new xn,jn=Dt(Qn);this.promise=Qn,this.resolve=Wn(_n,Qn,jn),this.reject=Wn(Vn,Qn,jn)},Ne.f=In=function(Qn){return Qn===Sn||Qn===Ln?new Bn(Qn):$n(Qn)},!k&&typeof ae=="function"&&(Hn=ae.prototype.then,le(ae.prototype,"then",function(jn,Un){var Xn=this;return new Sn(function(Zn,to){Hn.call(Xn,Zn,to)}).then(jn,Un)},{unsafe:!0}),typeof An=="function"&&L({global:!0,enumerable:!0,forced:!0},{fetch:function(jn){return Oe(Sn,An.apply(oe,arguments))}}))),L({global:!0,wrap:!0,forced:zn},{Promise:Sn}),pe(Sn,hn,!1,!0),de(hn),Ln=re(hn),L({target:hn,stat:!0,forced:zn},{reject:function(jn){var Un=In(this);return Un.reject.call(void 0,jn),Un.promise}}),L({target:hn,stat:!0,forced:k||zn},{resolve:function(jn){return Oe(k&&this===Ln?Sn:this,jn)}}),L({target:hn,stat:!0,forced:Jn},{all:function(jn){var Un=this,Xn=In(Un),Zn=Xn.resolve,to=Xn.reject,ro=Ue(function(){var lo=ze(Un.resolve),uo=[],yo=0,oo=1;At(jn,function(go){var Co=yo++,Kn=!1;uo.push(void 0),oo++,lo.call(Un,go).then(function(io){Kn||(Kn=!0,uo[Co]=io,--oo||Zn(uo))},to)}),--oo||Zn(uo)});return ro.error&&to(ro.value),Xn.promise},race:function(jn){var Un=this,Xn=In(Un),Zn=Xn.reject,to=Ue(function(){var ro=ze(Un.resolve);At(jn,function(lo){ro.call(Un,lo).then(Xn.resolve,Zn)})});return to.error&&Zn(to.value),Xn.promise}})},function(r,g,$){var L=$(8),k=$(71).f,oe=$(34),re=$(117).set,ae=$(118),le=L.MutationObserver||L.WebKitMutationObserver,ue=L.process,pe=L.Promise,de=oe(ue)=="process",Fe=k(L,"queueMicrotask"),ze=Fe&&Fe.value,Ce,Ie,_e,At,qe,xe,Ve,he;ze||(Ce=function(){var Oe,$e;for(de&&(Oe=ue.domain)&&Oe.exit();Ie;){$e=Ie.fn,Ie=Ie.next;try{$e()}catch(Ne){throw Ie?At():_e=void 0,Ne}}_e=void 0,Oe&&Oe.enter()},de?At=function(){ue.nextTick(Ce)}:le&&!ae?(qe=!0,xe=document.createTextNode(""),new le(Ce).observe(xe,{characterData:!0}),At=function(){xe.data=qe=!qe}):pe&&pe.resolve?(Ve=pe.resolve(void 0),he=Ve.then,At=function(){he.call(Ve,Ce)}):At=function(){re.call(L,Ce)}),r.exports=ze||function(Oe){var $e={fn:Oe,next:void 0};_e&&(_e.next=$e),Ie||(Ie=$e,At()),_e=$e}},function(r,g,$){var L=$(8);r.exports=function(k,oe){var re=L.console;re&&re.error&&(arguments.length===1?re.error(k):re.error(k,oe))}},function(r,g,$){var L=$(5),k=$(41),oe=$(85),re=$(120),ae=$(66);L({target:"Promise",stat:!0},{allSettled:function(ue){var pe=this,de=oe.f(pe),Fe=de.resolve,ze=de.reject,Ce=re(function(){var Ie=k(pe.resolve),_e=[],At=0,qe=1;ae(ue,function(xe){var Ve=At++,he=!1;_e.push(void 0),qe++,Ie.call(pe,xe).then(function(Oe){he||(he=!0,_e[Ve]={status:"fulfilled",value:Oe},--qe||Fe(_e))},function(Oe){he||(he=!0,_e[Ve]={status:"rejected",reason:Oe},--qe||Fe(_e))})}),--qe||Fe(_e)});return Ce.error&&ze(Ce.value),de.promise}})},function(r,g,$){var L=$(5),k=$(43),oe=$(109),re=$(11),ae=$(36),le=$(116),ue=$(119),pe=$(53),de=!!oe&&re(function(){oe.prototype.finally.call({then:function(){}},function(){})});L({target:"Promise",proto:!0,real:!0,forced:de},{finally:function(Fe){var ze=le(this,ae("Promise")),Ce=typeof Fe=="function";return this.then(Ce?function(Ie){return ue(ze,Fe()).then(function(){return Ie})}:Fe,Ce?function(Ie){return ue(ze,Fe()).then(function(){throw Ie})}:Fe)}}),!k&&typeof oe=="function"&&!oe.prototype.finally&&pe(oe.prototype,"finally",ae("Promise").prototype.finally)},function(r,g,$){$(54);var L=$(181),k=$(65),oe=Array.prototype,re={DOMTokenList:!0,NodeList:!0};r.exports=function(ae){var le=ae.forEach;return ae===oe||ae instanceof Array&&le===oe.forEach||re.hasOwnProperty(k(ae))?L:le}},function(r,g,$){var L=$(182);r.exports=L},function(r,g,$){$(183);var L=$(15);r.exports=L("Array").forEach},function(r,g,$){var L=$(5),k=$(184);L({target:"Array",proto:!0,forced:[].forEach!=k},{forEach:k})},function(r,g,$){var L=$(32).forEach,k=$(67),oe=$(22),re=k("forEach"),ae=oe("forEach");r.exports=!re||!ae?function(ue){return L(this,ue,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(r,g,$){var L=$(186);r.exports=L},function(r,g,$){$(187);var L=$(9);r.exports=L.Array.isArray},function(r,g,$){var L=$(5),k=$(55);L({target:"Array",stat:!0},{isArray:k})},function(r,g,$){var L=$(189);r.exports=L},function(r,g,$){var L=$(190),k=Array.prototype;r.exports=function(oe){var re=oe.map;return oe===k||oe instanceof Array&&re===k.map?L:re}},function(r,g,$){$(191);var L=$(15);r.exports=L("Array").map},function(r,g,$){var L=$(5),k=$(32).map,oe=$(56),re=$(22),ae=oe("map"),le=re("map");L({target:"Array",proto:!0,forced:!ae||!le},{map:function(pe){return k(this,pe,arguments.length>1?arguments[1]:void 0)}})},function(r,g,$){var L=$(193);r.exports=L},function(r,g,$){var L=$(194),k=String.prototype;r.exports=function(oe){var re=oe.trim;return typeof oe=="string"||oe===k||oe instanceof String&&re===k.trim?L:re}},function(r,g,$){$(195);var L=$(15);r.exports=L("String").trim},function(r,g,$){var L=$(5),k=$(90).trim,oe=$(196);L({target:"String",proto:!0,forced:oe("trim")},{trim:function(){return k(this)}})},function(r,g,$){var L=$(11),k=$(68),oe="\u200B\x85\u180E";r.exports=function(re){return L(function(){return!!k[re]()||oe[re]()!=oe||k[re].name!==re})}},function(r,g,$){var L=$(198);r.exports=L},function(r,g,$){$(199),$(61),$(50),$(54);var L=$(9);r.exports=L.Map},function(r,g,$){var L=$(122),k=$(124);r.exports=L("Map",function(oe){return function(){return oe(this,arguments.length?arguments[0]:void 0)}},k)},function(r,g,$){var L=$(11);r.exports=!L(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(r,g,$){var L=$(202);r.exports=L},function(r,g,$){var L=$(203),k=Array.prototype;r.exports=function(oe){var re=oe.indexOf;return oe===k||oe instanceof Array&&re===k.indexOf?L:re}},function(r,g,$){$(204);var L=$(15);r.exports=L("Array").indexOf},function(r,g,$){var L=$(5),k=$(78).indexOf,oe=$(67),re=$(22),ae=[].indexOf,le=!!ae&&1/[1].indexOf(1,-0)<0,ue=oe("indexOf"),pe=re("indexOf",{ACCESSORS:!0,1:0});L({target:"Array",proto:!0,forced:le||!ue||!pe},{indexOf:function(Fe){return le?ae.apply(this,arguments)||0:k(this,Fe,arguments.length>1?arguments[1]:void 0)}})},function(r,g,$){var L=$(206);r.exports=L},function(r,g,$){var L=$(207),k=Array.prototype;r.exports=function(oe){var re=oe.splice;return oe===k||oe instanceof Array&&re===k.splice?L:re}},function(r,g,$){$(208);var L=$(15);r.exports=L("Array").splice},function(r,g,$){var L=$(5),k=$(79),oe=$(62),re=$(35),ae=$(31),le=$(88),ue=$(69),pe=$(56),de=$(22),Fe=pe("splice"),ze=de("splice",{ACCESSORS:!0,0:0,1:2}),Ce=Math.max,Ie=Math.min,_e=9007199254740991,At="Maximum allowed length exceeded";L({target:"Array",proto:!0,forced:!Fe||!ze},{splice:function(xe,Ve){var he=ae(this),Oe=re(he.length),$e=k(xe,Oe),Ne=arguments.length,Ue,kt,Et,Pt,Lt,vn;if(Ne===0?Ue=kt=0:Ne===1?(Ue=0,kt=Oe-$e):(Ue=Ne-2,kt=Ie(Ce(oe(Ve),0),Oe-$e)),Oe+Ue-kt>_e)throw TypeError(At);for(Et=le(he,kt),Pt=0;PtOe-kt+Ue;Pt--)delete he[Pt-1]}else if(Ue>kt)for(Pt=Oe-kt;Pt>$e;Pt--)Lt=Pt+kt-1,vn=Pt+Ue-1,Lt in he?he[vn]=he[Lt]:delete he[vn];for(Pt=0;Pt1?arguments[1]:void 0)}})},function(r,g,$){var L=$(214);r.exports=L},function(r,g,$){var L=$(215),k=$(217),oe=Array.prototype,re=String.prototype;r.exports=function(ae){var le=ae.includes;return ae===oe||ae instanceof Array&&le===oe.includes?L:typeof ae=="string"||ae===re||ae instanceof String&&le===re.includes?k:le}},function(r,g,$){$(216);var L=$(15);r.exports=L("Array").includes},function(r,g,$){var L=$(5),k=$(78).includes,oe=$(82),re=$(22),ae=re("indexOf",{ACCESSORS:!0,1:0});L({target:"Array",proto:!0,forced:!ae},{includes:function(ue){return k(this,ue,arguments.length>1?arguments[1]:void 0)}}),oe("includes")},function(r,g,$){$(218);var L=$(15);r.exports=L("String").includes},function(r,g,$){var L=$(5),k=$(219),oe=$(49),re=$(221);L({target:"String",proto:!0,forced:!re("includes")},{includes:function(le){return!!~String(oe(this)).indexOf(k(le),arguments.length>1?arguments[1]:void 0)}})},function(r,g,$){var L=$(220);r.exports=function(k){if(L(k))throw TypeError("The method doesn't accept regular expressions");return k}},function(r,g,$){var L=$(13),k=$(34),oe=$(10),re=oe("match");r.exports=function(ae){var le;return L(ae)&&((le=ae[re])!==void 0?!!le:k(ae)=="RegExp")}},function(r,g,$){var L=$(10),k=L("match");r.exports=function(oe){var re=/./;try{"/./"[oe](re)}catch{try{return re[k]=!1,"/./"[oe](re)}catch{}}return!1}},function(r,g,$){var L=$(223);r.exports=L},function(r,g,$){var L=$(224),k=Function.prototype;r.exports=function(oe){var re=oe.bind;return oe===k||oe instanceof Function&&re===k.bind?L:re}},function(r,g,$){$(225);var L=$(15);r.exports=L("Function").bind},function(r,g,$){var L=$(5),k=$(226);L({target:"Function",proto:!0},{bind:k})},function(r,g,$){var L=$(41),k=$(13),oe=[].slice,re={},ae=function(le,ue,pe){if(!(ue in re)){for(var de=[],Fe=0;Fe=51||!k(function(){var he=[];return he[Ce]=!1,he.concat()[0]!==he}),qe=de("concat"),xe=function(he){if(!re(he))return!1;var Oe=he[Ce];return Oe!==void 0?!!Oe:oe(he)},Ve=!At||!qe;L({target:"Array",proto:!0,forced:Ve},{concat:function(Oe){var $e=ae(this),Ne=pe($e,0),Ue=0,kt,Et,Pt,Lt,vn;for(kt=-1,Pt=arguments.length;ktIe)throw TypeError(_e);for(Et=0;Et=Ie)throw TypeError(_e);ue(Ne,Ue++,vn)}return Ne.length=Ue,Ne}})},function(r,g,$){var L=$(5),k=$(8),oe=$(36),re=$(43),ae=$(14),le=$(76),ue=$(106),pe=$(11),de=$(16),Fe=$(55),ze=$(13),Ce=$(25),Ie=$(31),_e=$(30),At=$(60),qe=$(48),xe=$(77),Ve=$(52),he=$(126),Oe=$(235),$e=$(127),Ne=$(71),Ue=$(18),kt=$(59),Et=$(19),Pt=$(53),Lt=$(74),vn=$(63),hn=$(51),Dt=$(64),jt=$(10),bn=$(93),Sn=$(12),Cn=$(37),On=$(42),En=$(32).forEach,An=vn("hidden"),In="Symbol",$n="prototype",Pn=jt("toPrimitive"),Dn=On.set,Mn=On.getterFor(In),Fn=Object[$n],kn=k.Symbol,Nn=oe("JSON","stringify"),Rn=Ne.f,wn=Ue.f,Tn=Oe.f,xn=kt.f,Bn=Lt("symbols"),Ln=Lt("op-symbols"),Hn=Lt("string-to-symbol-registry"),zn=Lt("symbol-to-string-registry"),Jn=Lt("wks"),co=k.QObject,Gn=!co||!co[$n]||!co[$n].findChild,eo=ae&&pe(function(){return xe(wn({},"a",{get:function(){return wn(this,"a",{value:7}).a}})).a!=7})?function(Zn,to,ro){var lo=Rn(Fn,to);lo&&delete Fn[to],wn(Zn,to,ro),lo&&Zn!==Fn&&wn(Fn,to,lo)}:wn,ao=function(Zn,to){var ro=Bn[Zn]=xe(kn[$n]);return Dn(ro,{type:In,tag:Zn,description:to}),ae||(ro.description=to),ro},ho=ue?function(Zn){return typeof Zn=="symbol"}:function(Zn){return Object(Zn)instanceof kn},Yn=function(to,ro,lo){to===Fn&&Yn(Ln,ro,lo),Ce(to);var uo=At(ro,!0);return Ce(lo),de(Bn,uo)?(lo.enumerable?(de(to,An)&&to[An][uo]&&(to[An][uo]=!1),lo=xe(lo,{enumerable:qe(0,!1)})):(de(to,An)||wn(to,An,qe(1,{})),to[An][uo]=!0),eo(to,uo,lo)):wn(to,uo,lo)},Wn=function(to,ro){Ce(to);var lo=_e(ro),uo=Ve(lo).concat(Un(lo));return En(uo,function(yo){(!ae||_n.call(lo,yo))&&Yn(to,yo,lo[yo])}),to},Vn=function(to,ro){return ro===void 0?xe(to):Wn(xe(to),ro)},_n=function(to){var ro=At(to,!0),lo=xn.call(this,ro);return this===Fn&&de(Bn,ro)&&!de(Ln,ro)?!1:lo||!de(this,ro)||!de(Bn,ro)||de(this,An)&&this[An][ro]?lo:!0},Qn=function(to,ro){var lo=_e(to),uo=At(ro,!0);if(!(lo===Fn&&de(Bn,uo)&&!de(Ln,uo))){var yo=Rn(lo,uo);return yo&&de(Bn,uo)&&!(de(lo,An)&&lo[An][uo])&&(yo.enumerable=!0),yo}},jn=function(to){var ro=Tn(_e(to)),lo=[];return En(ro,function(uo){!de(Bn,uo)&&!de(hn,uo)&&lo.push(uo)}),lo},Un=function(to){var ro=to===Fn,lo=Tn(ro?Ln:_e(to)),uo=[];return En(lo,function(yo){de(Bn,yo)&&(!ro||de(Fn,yo))&&uo.push(Bn[yo])}),uo};if(le||(kn=function(){if(this instanceof kn)throw TypeError("Symbol is not a constructor");var to=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ro=Dt(to),lo=function(uo){this===Fn&&lo.call(Ln,uo),de(this,An)&&de(this[An],ro)&&(this[An][ro]=!1),eo(this,ro,qe(1,uo))};return ae&&Gn&&eo(Fn,ro,{configurable:!0,set:lo}),ao(ro,to)},Pt(kn[$n],"toString",function(){return Mn(this).tag}),Pt(kn,"withoutSetter",function(Zn){return ao(Dt(Zn),Zn)}),kt.f=_n,Ue.f=Yn,Ne.f=Qn,he.f=Oe.f=jn,$e.f=Un,bn.f=function(Zn){return ao(jt(Zn),Zn)},ae&&(wn(kn[$n],"description",{configurable:!0,get:function(){return Mn(this).description}}),re||Pt(Fn,"propertyIsEnumerable",_n,{unsafe:!0}))),L({global:!0,wrap:!0,forced:!le,sham:!le},{Symbol:kn}),En(Ve(Jn),function(Zn){Sn(Zn)}),L({target:In,stat:!0,forced:!le},{for:function(Zn){var to=String(Zn);if(de(Hn,to))return Hn[to];var ro=kn(to);return Hn[to]=ro,zn[ro]=to,ro},keyFor:function(to){if(!ho(to))throw TypeError(to+" is not a symbol");if(de(zn,to))return zn[to]},useSetter:function(){Gn=!0},useSimple:function(){Gn=!1}}),L({target:"Object",stat:!0,forced:!le,sham:!ae},{create:Vn,defineProperty:Yn,defineProperties:Wn,getOwnPropertyDescriptor:Qn}),L({target:"Object",stat:!0,forced:!le},{getOwnPropertyNames:jn,getOwnPropertySymbols:Un}),L({target:"Object",stat:!0,forced:pe(function(){$e.f(1)})},{getOwnPropertySymbols:function(to){return $e.f(Ie(to))}}),Nn){var Xn=!le||pe(function(){var Zn=kn();return Nn([Zn])!="[null]"||Nn({a:Zn})!="{}"||Nn(Object(Zn))!="{}"});L({target:"JSON",stat:!0,forced:Xn},{stringify:function(to,ro,lo){for(var uo=[to],yo=1,oo;arguments.length>yo;)uo.push(arguments[yo++]);if(oo=ro,!(!ze(ro)&&to===void 0||ho(to)))return Fe(ro)||(ro=function(go,Co){if(typeof oo=="function"&&(Co=oo.call(this,go,Co)),!ho(Co))return Co}),uo[1]=ro,Nn.apply(null,uo)}})}kn[$n][Pn]||Et(kn[$n],Pn,kn[$n].valueOf),Cn(kn,In),hn[An]=!0},function(r,g,$){var L=$(30),k=$(126).f,oe={}.toString,re=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ae=function(le){try{return k(le)}catch{return re.slice()}};r.exports.f=function(ue){return re&&oe.call(ue)=="[object Window]"?ae(ue):k(L(ue))}},function(r,g,$){var L=$(12);L("asyncIterator")},function(r,g){},function(r,g,$){var L=$(12);L("hasInstance")},function(r,g,$){var L=$(12);L("isConcatSpreadable")},function(r,g,$){var L=$(12);L("match")},function(r,g,$){var L=$(12);L("matchAll")},function(r,g,$){var L=$(12);L("replace")},function(r,g,$){var L=$(12);L("search")},function(r,g,$){var L=$(12);L("species")},function(r,g,$){var L=$(12);L("split")},function(r,g,$){var L=$(12);L("toPrimitive")},function(r,g,$){var L=$(12);L("toStringTag")},function(r,g,$){var L=$(12);L("unscopables")},function(r,g,$){var L=$(37);L(Math,"Math",!0)},function(r,g,$){var L=$(8),k=$(37);k(L.JSON,"JSON",!0)},function(r,g,$){var L=$(12);L("asyncDispose")},function(r,g,$){var L=$(12);L("dispose")},function(r,g,$){var L=$(12);L("observable")},function(r,g,$){var L=$(12);L("patternMatch")},function(r,g,$){var L=$(12);L("replaceAll")},function(r,g,$){r.exports=$(257)},function(r,g,$){var L=$(258);r.exports=L},function(r,g,$){$(259);var L=$(9);r.exports=L.parseInt},function(r,g,$){var L=$(5),k=$(260);L({global:!0,forced:parseInt!=k},{parseInt:k})},function(r,g,$){var L=$(8),k=$(90).trim,oe=$(68),re=L.parseInt,ae=/^[+-]?0[Xx]/,le=re(oe+"08")!==8||re(oe+"0x16")!==22;r.exports=le?function(pe,de){var Fe=k(String(pe));return re(Fe,de>>>0||(ae.test(Fe)?16:10))}:re},function(r,g,$){var L=$(262);r.exports=L},function(r,g,$){var L=$(263),k=Array.prototype;r.exports=function(oe){var re=oe.slice;return oe===k||oe instanceof Array&&re===k.slice?L:re}},function(r,g,$){$(264);var L=$(15);r.exports=L("Array").slice},function(r,g,$){var L=$(5),k=$(13),oe=$(55),re=$(79),ae=$(35),le=$(30),ue=$(69),pe=$(10),de=$(56),Fe=$(22),ze=de("slice"),Ce=Fe("slice",{ACCESSORS:!0,0:0,1:2}),Ie=pe("species"),_e=[].slice,At=Math.max;L({target:"Array",proto:!0,forced:!ze||!Ce},{slice:function(xe,Ve){var he=le(this),Oe=ae(he.length),$e=re(xe,Oe),Ne=re(Ve===void 0?Oe:Ve,Oe),Ue,kt,Et;if(oe(he)&&(Ue=he.constructor,typeof Ue=="function"&&(Ue===Array||oe(Ue.prototype))?Ue=void 0:k(Ue)&&(Ue=Ue[Ie],Ue===null&&(Ue=void 0)),Ue===Array||Ue===void 0))return _e.call(he,$e,Ne);for(kt=new(Ue===void 0?Array:Ue)(At(Ne-$e,0)),Et=0;$e2,ze=Fe?re.call(arguments,2):void 0;return ue(Fe?function(){(typeof pe=="function"?pe:Function(pe)).apply(this,ze)}:pe,de)}};L({global:!0,bind:!0,forced:ae},{setTimeout:le(k.setTimeout),setInterval:le(k.setInterval)})},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(128));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(272)),le=re.__importDefault($(273)),ue=re.__importDefault($(129)),pe=re.__importDefault($(274)),de=re.__importDefault($(275)),Fe=re.__importDefault($(276)),ze=re.__importDefault($(130)),Ce=re.__importDefault($(277)),Ie=re.__importDefault($(278)),_e=re.__importDefault($(279)),At=(0,oe.default)({},ae.default,le.default,ue.default,de.default,pe.default,Fe.default,ze.default,Ce.default,Ie.default,_e.default,{linkCheck:function(xe,Ve){return!0}});g.default=At},function(r,g,$){var L=$(269);r.exports=L},function(r,g,$){$(270);var L=$(9);r.exports=L.Object.assign},function(r,g,$){var L=$(5),k=$(271);L({target:"Object",stat:!0,forced:Object.assign!==k},{assign:k})},function(r,g,$){var L=$(14),k=$(11),oe=$(52),re=$(127),ae=$(59),le=$(31),ue=$(72),pe=Object.assign,de=Object.defineProperty;r.exports=!pe||k(function(){if(L&&pe({b:1},pe(de({},"a",{enumerable:!0,get:function(){de(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Fe={},ze={},Ce=Symbol(),Ie="abcdefghijklmnopqrst";return Fe[Ce]=7,Ie.split("").forEach(function(_e){ze[_e]=_e}),pe({},Fe)[Ce]!=7||oe(pe({},ze)).join("")!=Ie})?function(ze,Ce){for(var Ie=le(ze),_e=arguments.length,At=1,qe=re.f,xe=ae.f;_e>At;)for(var Ve=ue(arguments[At++]),he=qe?oe(Ve).concat(qe(Ve)):oe(Ve),Oe=he.length,$e=0,Ne;Oe>$e;)Ne=he[$e++],(!L||xe.call(Ve,Ne))&&(Ie[Ne]=Ve[Ne]);return Ie}:pe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["\u9ED1\u4F53","\u4EFF\u5B8B","\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53","\u5B8B\u4F53","\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"\u3000\u3000\u3000\u3000",emotions:[{title:"\u8868\u60C5",type:"emoji",content:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463}".split(/\s/)},{title:"\u624B\u52BF",type:"emoji",content:"\u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(7);function re(ae,le,ue){window.alert(ae),ue&&console.error("wangEditor: "+ue)}g.default={onchangeTimeout:200,onchange:null,onfocus:oe.EMPTY_FN,onblur:oe.EMPTY_FN,onCatalogChange:null,customAlert:re}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(re){return re}}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.default={styleWithCSS:!1}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(7);g.default={linkImgCheck:function(ae,le,ue){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:oe.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5*1024*1024,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:10*1e3,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{\u91CD\u7F6E:"\u91CD\u7F6E",\u63D2\u5165:"\u63D2\u5165",\u9ED8\u8BA4:"\u9ED8\u8BA4",\u521B\u5EFA:"\u521B\u5EFA",\u4FEE\u6539:"\u4FEE\u6539",\u5982:"\u5982",\u8BF7\u8F93\u5165\u6B63\u6587:"\u8BF7\u8F93\u5165\u6B63\u6587",menus:{title:{\u6807\u9898:"\u6807\u9898",\u52A0\u7C97:"\u52A0\u7C97",\u5B57\u53F7:"\u5B57\u53F7",\u5B57\u4F53:"\u5B57\u4F53",\u659C\u4F53:"\u659C\u4F53",\u4E0B\u5212\u7EBF:"\u4E0B\u5212\u7EBF",\u5220\u9664\u7EBF:"\u5220\u9664\u7EBF",\u7F29\u8FDB:"\u7F29\u8FDB",\u884C\u9AD8:"\u884C\u9AD8",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u80CC\u666F\u8272:"\u80CC\u666F\u8272",\u94FE\u63A5:"\u94FE\u63A5",\u5E8F\u5217:"\u5E8F\u5217",\u5BF9\u9F50:"\u5BF9\u9F50",\u5F15\u7528:"\u5F15\u7528",\u8868\u60C5:"\u8868\u60C5",\u56FE\u7247:"\u56FE\u7247",\u89C6\u9891:"\u89C6\u9891",\u8868\u683C:"\u8868\u683C",\u4EE3\u7801:"\u4EE3\u7801",\u5206\u5272\u7EBF:"\u5206\u5272\u7EBF",\u6062\u590D:"\u6062\u590D",\u64A4\u9500:"\u64A4\u9500",\u5168\u5C4F:"\u5168\u5C4F",\u53D6\u6D88\u5168\u5C4F:"\u53D6\u6D88\u5168\u5C4F",\u5F85\u529E\u4E8B\u9879:"\u5F85\u529E\u4E8B\u9879"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"\u8BBE\u7F6E\u6807\u9898",\u80CC\u666F\u989C\u8272:"\u80CC\u666F\u989C\u8272",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u8BBE\u7F6E\u5B57\u53F7:"\u8BBE\u7F6E\u5B57\u53F7",\u8BBE\u7F6E\u5B57\u4F53:"\u8BBE\u7F6E\u5B57\u4F53",\u8BBE\u7F6E\u7F29\u8FDB:"\u8BBE\u7F6E\u7F29\u8FDB",\u5BF9\u9F50\u65B9\u5F0F:"\u5BF9\u9F50\u65B9\u5F0F",\u8BBE\u7F6E\u884C\u9AD8:"\u8BBE\u7F6E\u884C\u9AD8",\u5E8F\u5217:"\u5E8F\u5217",head:{\u6B63\u6587:"\u6B63\u6587"},indent:{\u589E\u52A0\u7F29\u8FDB:"\u589E\u52A0\u7F29\u8FDB",\u51CF\u5C11\u7F29\u8FDB:"\u51CF\u5C11\u7F29\u8FDB"},justify:{\u9760\u5DE6:"\u9760\u5DE6",\u5C45\u4E2D:"\u5C45\u4E2D",\u9760\u53F3:"\u9760\u53F3",\u4E24\u7AEF:"\u4E24\u7AEF"},list:{\u65E0\u5E8F\u5217\u8868:"\u65E0\u5E8F\u5217\u8868",\u6709\u5E8F\u5217\u8868:"\u6709\u5E8F\u5217\u8868"}},panelMenus:{emoticon:{\u9ED8\u8BA4:"\u9ED8\u8BA4",\u65B0\u6D6A:"\u65B0\u6D6A",emoji:"emoji",\u624B\u52BF:"\u624B\u52BF"},image:{\u4E0A\u4F20\u56FE\u7247:"\u4E0A\u4F20\u56FE\u7247",\u7F51\u7EDC\u56FE\u7247:"\u7F51\u7EDC\u56FE\u7247",\u56FE\u7247\u5730\u5740:"\u56FE\u7247\u5730\u5740",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"\u56FE\u7247\u6587\u5B57\u8BF4\u660E",\u8DF3\u8F6C\u94FE\u63A5:"\u8DF3\u8F6C\u94FE\u63A5"},link:{\u94FE\u63A5:"\u94FE\u63A5",\u94FE\u63A5\u6587\u5B57:"\u94FE\u63A5\u6587\u5B57",\u53D6\u6D88\u94FE\u63A5:"\u53D6\u6D88\u94FE\u63A5",\u67E5\u770B\u94FE\u63A5:"\u67E5\u770B\u94FE\u63A5"},video:{\u63D2\u5165\u89C6\u9891:"\u63D2\u5165\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891:"\u4E0A\u4F20\u89C6\u9891"},table:{\u884C:"\u884C",\u5217:"\u5217",\u7684:"\u7684",\u8868\u683C:"\u8868\u683C",\u6DFB\u52A0\u884C:"\u6DFB\u52A0\u884C",\u5220\u9664\u884C:"\u5220\u9664\u884C",\u6DFB\u52A0\u5217:"\u6DFB\u52A0\u5217",\u5220\u9664\u5217:"\u5220\u9664\u5217",\u8BBE\u7F6E\u8868\u5934:"\u8BBE\u7F6E\u8868\u5934",\u53D6\u6D88\u8868\u5934:"\u53D6\u6D88\u8868\u5934",\u63D2\u5165\u8868\u683C:"\u63D2\u5165\u8868\u683C",\u5220\u9664\u8868\u683C:"\u5220\u9664\u8868\u683C"},code:{\u5220\u9664\u4EE3\u7801:"\u5220\u9664\u4EE3\u7801",\u4FEE\u6539\u4EE3\u7801:"\u4FEE\u6539\u4EE3\u7801",\u63D2\u5165\u4EE3\u7801:"\u63D2\u5165\u4EE3\u7801"}}},validate:{\u5F20\u56FE\u7247:"\u5F20\u56FE\u7247",\u5927\u4E8E:"\u5927\u4E8E",\u56FE\u7247\u94FE\u63A5:"\u56FE\u7247\u94FE\u63A5",\u4E0D\u662F\u56FE\u7247:"\u4E0D\u662F\u56FE\u7247",\u8FD4\u56DE\u7ED3\u679C:"\u8FD4\u56DE\u7ED3\u679C",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"\u4E0A\u4F20\u56FE\u7247\u5931\u8D25",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"\u63D2\u5165\u56FE\u7247\u9519\u8BEF",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"\u4E00\u6B21\u6700\u591A\u4E0A\u4F20",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"\u63D2\u5165\u89C6\u9891\u9519\u8BEF",\u89C6\u9891\u94FE\u63A5:"\u89C6\u9891\u94FE\u63A5",\u4E0D\u662F\u89C6\u9891:"\u4E0D\u662F\u89C6\u9891",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7",\u4E2A\u89C6\u9891:"\u4E2A\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"\u4E0A\u4F20\u89C6\u9891\u5931\u8D25",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF"}}},en:{wangEditor:{\u91CD\u7F6E:"reset",\u63D2\u5165:"insert",\u9ED8\u8BA4:"default",\u521B\u5EFA:"create",\u4FEE\u6539:"edit",\u5982:"like",\u8BF7\u8F93\u5165\u6B63\u6587:"please enter the text",menus:{title:{\u6807\u9898:"head",\u52A0\u7C97:"bold",\u5B57\u53F7:"font size",\u5B57\u4F53:"font family",\u659C\u4F53:"italic",\u4E0B\u5212\u7EBF:"underline",\u5220\u9664\u7EBF:"strikethrough",\u7F29\u8FDB:"indent",\u884C\u9AD8:"line heihgt",\u6587\u5B57\u989C\u8272:"font color",\u80CC\u666F\u8272:"background",\u94FE\u63A5:"link",\u5E8F\u5217:"numbered list",\u5BF9\u9F50:"align",\u5F15\u7528:"quote",\u8868\u60C5:"emoticons",\u56FE\u7247:"image",\u89C6\u9891:"media",\u8868\u683C:"table",\u4EE3\u7801:"code",\u5206\u5272\u7EBF:"split line",\u6062\u590D:"redo",\u64A4\u9500:"undo",\u5168\u5C4F:"fullscreen",\u53D6\u6D88\u5168\u5C4F:"cancel fullscreen",\u5F85\u529E\u4E8B\u9879:"todo"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"title",\u80CC\u666F\u989C\u8272:"background",\u6587\u5B57\u989C\u8272:"font color",\u8BBE\u7F6E\u5B57\u53F7:"font size",\u8BBE\u7F6E\u5B57\u4F53:"font family",\u8BBE\u7F6E\u7F29\u8FDB:"indent",\u5BF9\u9F50\u65B9\u5F0F:"align",\u8BBE\u7F6E\u884C\u9AD8:"line heihgt",\u5E8F\u5217:"list",head:{\u6B63\u6587:"text"},indent:{\u589E\u52A0\u7F29\u8FDB:"indent",\u51CF\u5C11\u7F29\u8FDB:"outdent"},justify:{\u9760\u5DE6:"left",\u5C45\u4E2D:"center",\u9760\u53F3:"right",\u4E24\u7AEF:"justify"},list:{\u65E0\u5E8F\u5217\u8868:"unordered",\u6709\u5E8F\u5217\u8868:"ordered"}},panelMenus:{emoticon:{\u8868\u60C5:"emoji",\u624B\u52BF:"gesture"},image:{\u4E0A\u4F20\u56FE\u7247:"upload image",\u7F51\u7EDC\u56FE\u7247:"network image",\u56FE\u7247\u5730\u5740:"image link",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"image alt",\u8DF3\u8F6C\u94FE\u63A5:"hyperlink"},link:{\u94FE\u63A5:"link",\u94FE\u63A5\u6587\u5B57:"link text",\u53D6\u6D88\u94FE\u63A5:"unlink",\u67E5\u770B\u94FE\u63A5:"view links"},video:{\u63D2\u5165\u89C6\u9891:"insert video",\u4E0A\u4F20\u89C6\u9891:"upload local video"},table:{\u884C:"rows",\u5217:"columns",\u7684:" ",\u8868\u683C:"table",\u6DFB\u52A0\u884C:"insert row",\u5220\u9664\u884C:"delete row",\u6DFB\u52A0\u5217:"insert column",\u5220\u9664\u5217:"delete column",\u8BBE\u7F6E\u8868\u5934:"set header",\u53D6\u6D88\u8868\u5934:"cancel header",\u63D2\u5165\u8868\u683C:"insert table",\u5220\u9664\u8868\u683C:"delete table"},code:{\u5220\u9664\u4EE3\u7801:"delete code",\u4FEE\u6539\u4EE3\u7801:"edit code",\u63D2\u5165\u4EE3\u7801:"insert code"}}},validate:{\u5F20\u56FE\u7247:"images",\u5927\u4E8E:"greater than",\u56FE\u7247\u94FE\u63A5:"image link",\u4E0D\u662F\u56FE\u7247:"is not image",\u8FD4\u56DE\u7ED3\u679C:"return results",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"upload image timeout",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"upload image error",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"upload image failed",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"insert image error",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"once most at upload",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"download link failed",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"image validate failed",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"server return status",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload image return results error",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"please replace with a supported image type",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"the network picture you inserted is not recognized",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"the image link you just inserted did not pass the editor verification",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"insert video error",\u89C6\u9891\u94FE\u63A5:"video link",\u4E0D\u662F\u89C6\u9891:"is not video",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"video validate failed",\u4E2A\u89C6\u9891:"videos",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"upload video timeout",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"upload video error",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"upload video failed",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload video return results error"}}}}}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(6);function re(){return!!(oe.UA.isIE()||oe.UA.isOldEdge)}g.default={compatibleMode:re,historyMaxSize:30}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(7);g.default={onlineVideoCheck:function(ae){return!0},onlineVideoCallback:oe.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1*1024*1024*1024,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:1e3*60*60*2,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(17));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=$(6),ue=$(7),pe=function(){function de(Fe){this._currentRange=null,this.editor=Fe}return de.prototype.getRange=function(){return this._currentRange},de.prototype.saveRange=function(Fe){if(Fe){this._currentRange=Fe;return}var ze=window.getSelection();if(ze.rangeCount!==0){var Ce=ze.getRangeAt(0),Ie=this.getSelectionContainerElem(Ce);if(!!Ie?.length&&!(Ie.attr("contenteditable")==="false"||Ie.parentUntil("[contenteditable=false]"))){var _e=this.editor,At=_e.$textElem;if(At.isContain(Ie)){if(At.elems[0]===Ie.elems[0]){var qe;if((0,oe.default)(qe=At.html()).call(qe)===ue.EMPTY_P){var xe=At.children(),Ve=xe?.last();_e.selection.createRangeByElem(Ve,!0,!0),_e.selection.restoreSelection()}}this._currentRange=Ce}}}},de.prototype.collapseRange=function(Fe){Fe===void 0&&(Fe=!1);var ze=this._currentRange;ze&&ze.collapse(Fe)},de.prototype.getSelectionText=function(){var Fe=this._currentRange;return Fe?Fe.toString():""},de.prototype.getSelectionContainerElem=function(Fe){var ze;ze=Fe||this._currentRange;var Ce;if(ze)return Ce=ze.commonAncestorContainer,ae.default(Ce.nodeType===1?Ce:Ce.parentNode)},de.prototype.getSelectionStartElem=function(Fe){var ze;ze=Fe||this._currentRange;var Ce;if(ze)return Ce=ze.startContainer,ae.default(Ce.nodeType===1?Ce:Ce.parentNode)},de.prototype.getSelectionEndElem=function(Fe){var ze;ze=Fe||this._currentRange;var Ce;if(ze)return Ce=ze.endContainer,ae.default(Ce.nodeType===1?Ce:Ce.parentNode)},de.prototype.isSelectionEmpty=function(){var Fe=this._currentRange;return!!(Fe&&Fe.startContainer&&Fe.startContainer===Fe.endContainer&&Fe.startOffset===Fe.endOffset)},de.prototype.restoreSelection=function(){var Fe=window.getSelection(),ze=this._currentRange;Fe&&ze&&(Fe.removeAllRanges(),Fe.addRange(ze))},de.prototype.createEmptyRange=function(){var Fe=this.editor,ze=this.getRange(),Ce;if(!!ze&&!!this.isSelectionEmpty())try{le.UA.isWebkit()?(Fe.cmd.do("insertHTML","​"),ze.setEnd(ze.endContainer,ze.endOffset+1),this.saveRange(ze)):(Ce=ae.default(""),Fe.cmd.do("insertElem",Ce),this.createRangeByElem(Ce,!0))}catch{}},de.prototype.createRangeByElems=function(Fe,ze){var Ce=window.getSelection?window.getSelection():document.getSelection();Ce?.removeAllRanges();var Ie=document.createRange();Ie.setStart(Fe,0),Ie.setEnd(ze,ze.childNodes.length||1),this.saveRange(Ie),this.restoreSelection()},de.prototype.createRangeByElem=function(Fe,ze,Ce){if(!!Fe.length){var Ie=Fe.elems[0],_e=document.createRange();Ce?_e.selectNodeContents(Ie):_e.selectNode(Ie),ze!=null&&(_e.collapse(ze),ze||(this.saveRange(_e),this.editor.selection.moveCursor(Ie))),this.saveRange(_e)}},de.prototype.getSelectionRangeTopNodes=function(){var Fe,ze,Ce,Ie=(Fe=this.getSelectionStartElem())===null||Fe===void 0?void 0:Fe.getNodeTop(this.editor),_e=(ze=this.getSelectionEndElem())===null||ze===void 0?void 0:ze.getNodeTop(this.editor);return Ce=this.recordSelectionNodes(ae.default(Ie),ae.default(_e)),Ce},de.prototype.moveCursor=function(Fe,ze){var Ce,Ie=this.getRange(),_e=Fe.nodeType===3?(Ce=Fe.nodeValue)===null||Ce===void 0?void 0:Ce.length:Fe.childNodes.length;(le.UA.isFirefox||le.UA.isIE())&&_e!==0&&(Fe.nodeType===3||Fe.childNodes[_e-1].nodeName==="BR")&&(_e=_e-1);var At=ze??_e;!Ie||Fe&&(Ie.setStart(Fe,At),Ie.setEnd(Fe,At),this.restoreSelection())},de.prototype.getCursorPos=function(){var Fe=window.getSelection();return Fe?.anchorOffset},de.prototype.clearWindowSelectionRange=function(){var Fe=window.getSelection();Fe&&Fe.removeAllRanges()},de.prototype.recordSelectionNodes=function(Fe,ze){var Ce=[],Ie=!0;try{for(var _e=Fe,At=this.editor.$textElem;Ie;){var qe=_e?.getNodeTop(this.editor);qe.getNodeName()==="BODY"&&(Ie=!1),qe.length>0&&(Ce.push(ae.default(_e)),ze?.equal(qe)||At.equal(qe)?Ie=!1:_e=qe.getNextSibling())}}catch{Ie=!1}return Ce},de.prototype.setRangeToElem=function(Fe){var ze=this.getRange();ze?.setStart(Fe,0),ze?.setEnd(Fe,0)},de}();g.default=pe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(3)),ae=function(){function le(ue){this.editor=ue}return le.prototype.do=function(ue,pe){var de=this.editor;de.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var Fe=de.selection;if(!!Fe.getRange()){switch(Fe.restoreSelection(),ue){case"insertHTML":this.insertHTML(pe);break;case"insertElem":this.insertElem(pe);break;default:this.execCommand(ue,pe);break}de.menus.changeActive(),Fe.saveRange(),Fe.restoreSelection()}},le.prototype.insertHTML=function(ue){var pe=this.editor,de=pe.selection.getRange();if(de!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",ue);else if(de.insertNode){if(de.deleteContents(),re.default(ue).elems.length>0)de.insertNode(re.default(ue).elems[0]);else{var Fe=document.createElement("p");Fe.appendChild(document.createTextNode(ue)),de.insertNode(Fe)}pe.selection.collapseRange()}}},le.prototype.insertElem=function(ue){var pe=this.editor,de=pe.selection.getRange();de!=null&&de.insertNode&&(de.deleteContents(),de.insertNode(ue.elems[0]))},le.prototype.execCommand=function(ue,pe){document.execCommand(ue,!1,pe)},le.prototype.queryCommandValue=function(ue){return document.queryCommandValue(ue)},le.prototype.queryCommandState=function(ue){return document.queryCommandState(ue)},le.prototype.queryCommandSupported=function(ue){return document.queryCommandSupported(ue)},le}();g.default=ae},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(29)),re=L($(4)),ae=L($(17)),le=L($(27)),ue=L($(46));(0,k.default)(g,"__esModule",{value:!0});var pe=$(2),de=pe.__importDefault($(3)),Fe=pe.__importDefault($(287)),ze=$(6),Ce=pe.__importDefault($(299)),Ie=pe.__importDefault($(300)),_e=$(7),At=function(){function qe(xe){this.editor=xe,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return qe.prototype.init=function(){this._saveRange(),this._bindEventHooks(),Fe.default(this)},qe.prototype.togglePlaceholder=function(){var xe,Ve=this.html(),he=(0,oe.default)(xe=this.editor.$textContainerElem).call(xe,".placeholder");he.hide(),!this.editor.isComposing&&(!Ve||Ve===" ")&&he.show()},qe.prototype.clear=function(){this.html(_e.EMPTY_P)},qe.prototype.html=function(xe){var Ve=this.editor,he=Ve.$textElem;if(xe==null){var Oe=he.html();Oe=Oe.replace(/\u200b/gm,""),Oe=Oe.replace(/

      <\/p>/gim,""),Oe=Oe.replace(_e.EMPTY_P_LAST_REGEX,""),Oe=Oe.replace(_e.EMPTY_P_REGEX,"

      ");var $e=Oe.match(/<(img|br|hr|input)[^>]*>/gi);return $e!==null&&(0,re.default)($e).call($e,function(Ne){Ne.match(/\/>/)||(Oe=Oe.replace(Ne,Ne.substring(0,Ne.length-1)+"/>"))}),Oe}xe=(0,ae.default)(xe).call(xe),xe===""&&(xe=_e.EMPTY_P),(0,le.default)(xe).call(xe,"<")!==0&&(xe="

      "+xe+"

      "),he.html(xe),Ve.initSelection()},qe.prototype.setJSON=function(xe){var Ve=Ie.default(xe).children(),he=this.editor,Oe=he.$textElem;!Ve||Oe.replaceChildAll(Ve)},qe.prototype.getJSON=function(){var xe=this.editor,Ve=xe.$textElem;return Ce.default(Ve)},qe.prototype.text=function(xe){var Ve=this.editor,he=Ve.$textElem;if(xe==null){var Oe=he.text();return Oe=Oe.replace(/\u200b/gm,""),Oe}he.text("

      "+xe+"

      "),Ve.initSelection()},qe.prototype.append=function(xe){var Ve=this.editor;(0,le.default)(xe).call(xe,"<")!==0&&(xe="

      "+xe+"

      "),this.html(this.html()+xe),Ve.initSelection()},qe.prototype._saveRange=function(){var xe=this.editor,Ve=xe.$textElem,he=de.default(document);function Oe(){xe.selection.saveRange(),xe.menus.changeActive()}Ve.on("keyup",Oe);function $e(){Oe(),Ve.off("click",$e)}Ve.on("click",$e);function Ne(){Oe(),he.off("mouseup",Ne)}function Ue(){he.on("mouseup",Ne),Ve.off("mouseleave",Ue)}Ve.on("mousedown",function(){Ve.on("mouseleave",Ue)}),Ve.on("mouseup",function(kt){Ve.off("mouseleave",Ue),(0,ue.default)(function(){var Et=xe.selection,Pt=Et.getRange();Pt!==null&&Oe()},0)})},qe.prototype._bindEventHooks=function(){var xe=this.editor,Ve=xe.$textElem,he=this.eventHooks;Ve.on("click",function($e){var Ne=he.clickEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}),Ve.on("keyup",function($e){if($e.keyCode===13){var Ne=he.enterUpEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}}),Ve.on("keyup",function($e){var Ne=he.keyupEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}),Ve.on("keydown",function($e){var Ne=he.keydownEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}),Ve.on("keyup",function($e){if(!($e.keyCode!==8&&$e.keyCode!==46)){var Ne=he.deleteUpEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}}),Ve.on("keydown",function($e){if(!($e.keyCode!==8&&$e.keyCode!==46)){var Ne=he.deleteDownEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}}),Ve.on("paste",function($e){if(!ze.UA.isIE()){$e.preventDefault();var Ne=he.pasteEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}}),Ve.on("keydown",function($e){(xe.isFocus||xe.isCompatibleMode)&&($e.ctrlKey||$e.metaKey)&&$e.keyCode===90&&($e.preventDefault(),$e.shiftKey?xe.history.restore():xe.history.revoke())}),Ve.on("keyup",function($e){if($e.keyCode===9){$e.preventDefault();var Ne=he.tabUpEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}}),Ve.on("keydown",function($e){if($e.keyCode===9){$e.preventDefault();var Ne=he.tabDownEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}}),Ve.on("scroll",ze.throttle(function($e){var Ne=he.textScrollEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})},100));function Oe($e){$e.preventDefault()}de.default(document).on("dragleave",Oe).on("drop",Oe).on("dragenter",Oe).on("dragover",Oe),xe.beforeDestroy(function(){de.default(document).off("dragleave",Oe).off("drop",Oe).off("dragenter",Oe).off("dragover",Oe)}),Ve.on("drop",function($e){$e.preventDefault();var Ne=he.dropEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}),Ve.on("click",function($e){var Ne=null,Ue=$e.target,kt=de.default(Ue);if(kt.getNodeName()==="A")Ne=kt;else{var Et=kt.parentUntil("a");Et!=null&&(Ne=Et)}if(!!Ne){var Pt=he.linkClickEvents;(0,re.default)(Pt).call(Pt,function(Lt){return Lt(Ne)})}}),Ve.on("click",function($e){var Ne=null,Ue=$e.target,kt=de.default(Ue);if(kt.getNodeName()==="IMG"&&!kt.elems[0].getAttribute("data-emoji")&&($e.stopPropagation(),Ne=kt),!!Ne){var Et=he.imgClickEvents;(0,re.default)(Et).call(Et,function(Pt){return Pt(Ne)})}}),Ve.on("click",function($e){var Ne=null,Ue=$e.target,kt=de.default(Ue);if(kt.getNodeName()==="PRE")Ne=kt;else{var Et=kt.parentUntil("pre");Et!==null&&(Ne=Et)}if(!!Ne){var Pt=he.codeClickEvents;(0,re.default)(Pt).call(Pt,function(Lt){return Lt(Ne)})}}),Ve.on("click",function($e){var Ne=null,Ue=$e.target,kt=de.default(Ue);if(kt.getNodeName()==="HR"&&(Ne=kt),!!Ne){xe.selection.createRangeByElem(Ne),xe.selection.restoreSelection();var Et=he.splitLineEvents;(0,re.default)(Et).call(Et,function(Pt){return Pt(Ne)})}}),xe.$toolbarElem.on("click",function($e){var Ne=he.toolbarClickEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}),xe.$textContainerElem.on("mousedown",function($e){var Ne=$e.target,Ue=de.default(Ne);if(Ue.hasClass("w-e-img-drag-rb")){var kt=he.imgDragBarMouseDownEvents;(0,re.default)(kt).call(kt,function(Et){return Et()})}}),Ve.on("click",function($e){var Ne=null,Ue=$e.target;if(Ne=de.default(Ue).parentUntilEditor("TABLE",xe,Ue),!!Ne){var kt=he.tableClickEvents;(0,re.default)(kt).call(kt,function(Et){return Et(Ne,$e)})}}),Ve.on("keydown",function($e){if($e.keyCode===13){var Ne=he.enterDownEvents;(0,re.default)(Ne).call(Ne,function(Ue){return Ue($e)})}}),Ve.on("click",function($e){var Ne=null,Ue=$e.target,kt=de.default(Ue);if(kt.getNodeName()==="VIDEO"&&($e.stopPropagation(),Ne=kt),!!Ne){var Et=he.videoClickEvents;(0,re.default)(Et).call(Et,function(Pt){return Pt(Ne)})}})},qe}();g.default=At},function(r,g,$){var L=$(284);r.exports=L},function(r,g,$){var L=$(285),k=Array.prototype;r.exports=function(oe){var re=oe.find;return oe===k||oe instanceof Array&&re===k.find?L:re}},function(r,g,$){$(286);var L=$(15);r.exports=L("Array").find},function(r,g,$){var L=$(5),k=$(32).find,oe=$(82),re=$(22),ae="find",le=!0,ue=re(ae);ae in[]&&Array(1)[ae](function(){le=!1}),L({target:"Array",proto:!0,forced:le||!ue},{find:function(de){return k(this,de,arguments.length>1?arguments[1]:void 0)}}),oe(ae)},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(288)),ae=oe.__importStar($(289)),le=oe.__importDefault($(290)),ue=oe.__importDefault($(291)),pe=oe.__importDefault($(298));function de(Fe){var ze=Fe.editor,Ce=Fe.eventHooks;re.default(ze,Ce.enterUpEvents,Ce.enterDownEvents),ae.default(ze,Ce.deleteUpEvents,Ce.deleteDownEvents),ae.cutToKeepP(ze,Ce.keyupEvents),le.default(ze,Ce.tabDownEvents),ue.default(ze,Ce.pasteEvents),pe.default(ze,Ce.imgClickEvents)}g.default=de},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(27));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=$(7),le=re.__importDefault($(3));function ue(pe,de,Fe){function ze(_e){var At,qe=le.default(ae.EMPTY_P);if(qe.insertBefore(_e),(0,oe.default)(At=_e.html()).call(At,"=0){qe.remove();return}pe.selection.createRangeByElem(qe,!0,!0),pe.selection.restoreSelection(),_e.remove()}function Ce(){var _e=pe.$textElem,At=pe.selection.getSelectionContainerElem(),qe=At.parent();if(qe.html()==="
      "){ze(qe);return}if(At.getNodeName()==="FONT"&&At.text()===""&&At.attr("face")==="monospace"){ze(qe);return}if(!!qe.equal(_e)){var xe=At.getNodeName();xe==="P"&&At.attr("data-we-empty-p")===null||At.text()||ze(At)}}de.push(Ce);function Ie(_e){var At;pe.selection.saveRange((At=getSelection())===null||At===void 0?void 0:At.getRangeAt(0));var qe=pe.selection.getSelectionContainerElem();qe.id===pe.textElemId&&(_e.preventDefault(),pe.cmd.do("insertHTML","


      "))}Fe.push(Ie)}g.default=ue},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(17)),re=L($(28));(0,k.default)(g,"__esModule",{value:!0}),g.cutToKeepP=void 0;var ae=$(2),le=$(7),ue=ae.__importDefault($(3));function pe(Fe,ze,Ce){function Ie(){var At=Fe.$textElem,qe=Fe.$textElem.html(),xe=Fe.$textElem.text(),Ve=(0,oe.default)(qe).call(qe),he=["


      ","
      ",'

      ',le.EMPTY_P];if(/^\s*$/.test(xe)&&(!Ve||(0,re.default)(he).call(he,Ve))){At.html(le.EMPTY_P);var Oe=At.getNode();Fe.selection.createRangeByElems(Oe.childNodes[0],Oe.childNodes[0]);var $e=Fe.selection.getSelectionContainerElem();Fe.selection.restoreSelection(),Fe.selection.moveCursor($e.getNode(),0)}}ze.push(Ie);function _e(At){var qe,xe=Fe.$textElem,Ve=(0,oe.default)(qe=xe.html().toLowerCase()).call(qe);if(Ve===le.EMPTY_P){At.preventDefault();return}}Ce.push(_e)}function de(Fe,ze){function Ce(Ie){var _e;if(Ie.keyCode===88){var At=Fe.$textElem,qe=(0,oe.default)(_e=At.html().toLowerCase()).call(_e);if(!qe||qe==="
      "){var xe=ue.default(le.EMPTY_P);At.html(" "),At.append(xe),Fe.selection.createRangeByElem(xe,!1,!0),Fe.selection.restoreSelection(),Fe.selection.moveCursor(xe.getNode(),0)}}}ze.push(Ce)}g.cutToKeepP=de,g.default=pe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});function oe(re,ae){function le(){if(!!re.cmd.queryCommandSupported("insertHTML")){var ue=re.selection.getSelectionContainerElem();if(!!ue){var pe=ue.parent(),de=ue.getNodeName(),Fe=pe.getNodeName();de=="CODE"||Fe==="CODE"||Fe==="PRE"||/hljs/.test(Fe)?re.cmd.do("insertHTML",re.config.languageTab):re.cmd.do("insertHTML","    ")}}}ae.push(le)}g.default=oe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(17)),re=L($(4));(0,k.default)(g,"__esModule",{value:!0});var ae=$(131),le=$(6),ue=$(7);function pe(Ie){var _e,At=(0,oe.default)(_e=Ie.replace(/
      /gim,"

      ").replace(/<\/div>/gim,"

      ")).call(_e),qe=document.createElement("div");return qe.innerHTML=At,qe.innerHTML.replace(/

      <\/p>/gim,"")}function de(Ie){var _e=Ie.replace(/
      |/gm,` +`).replace(/<[^>]+>/gm,"");return _e}function Fe(Ie){var _e;if(Ie==="")return!1;var At=document.createElement("div");return At.innerHTML=Ie,((_e=At.firstChild)===null||_e===void 0?void 0:_e.nodeName)==="P"}function ze(Ie){if(!Ie?.length)return!1;var _e=Ie.elems[0];return _e.nodeName==="P"&&_e.innerHTML==="
      "}function Ce(Ie,_e){function At(qe){var xe=Ie.config,Ve=xe.pasteFilterStyle,he=xe.pasteIgnoreImg,Oe=xe.pasteTextHandle,$e=ae.getPasteHtml(qe,Ve,he),Ne=ae.getPasteText(qe);Ne=Ne.replace(/\n/gm,"
      ");var Ue=Ie.selection.getSelectionContainerElem();if(!!Ue){var kt=Ue?.getNodeName(),Et=Ue?.getNodeTop(Ie),Pt="";if(Et.elems[0]&&(Pt=Et?.getNodeName()),kt==="CODE"||Pt==="PRE"){Oe&&le.isFunction(Oe)&&(Ne=""+(Oe(Ne)||"")),Ie.cmd.do("insertHTML",de(Ne));return}if(ue.urlRegex.test(Ne)&&Ve){Oe&&le.isFunction(Oe)&&(Ne=""+(Oe(Ne)||""));var Lt=Ne.replace(ue.urlRegex,function(On){return''+On+""}),vn=Ie.selection.getRange(),hn=document.createElement("div"),Dt=document.createDocumentFragment();if(hn.innerHTML=Lt,vn==null)return;for(;hn.childNodes.length;)Dt.append(hn.childNodes[0]);var jt=Dt.querySelectorAll("a");(0,re.default)(jt).call(jt,function(On){On.innerText=On.href}),vn.insertNode&&(vn.deleteContents(),vn.insertNode(Dt)),Ie.selection.clearWindowSelectionRange();return}if(!!$e)try{Oe&&le.isFunction(Oe)&&($e=""+(Oe($e)||""));var bn=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test($e);if(bn&&Ve)Ie.cmd.do("insertHTML",""+pe(Ne));else{var Sn=pe($e);if(Fe(Sn)){var Cn=Ie.$textElem;if(Ie.cmd.do("insertHTML",Sn),Cn.equal(Ue)){Ie.selection.createEmptyRange();return}ze(Et)&&Et.remove()}else Ie.cmd.do("insertHTML",Sn)}}catch{Oe&&le.isFunction(Oe)&&(Ne=""+(Oe(Ne)||"")),Ie.cmd.do("insertHTML",""+pe(Ne))}}}_e.push(At)}g.default=Ce},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(17)),re=L($(4)),ae=L($(28));(0,k.default)(g,"__esModule",{value:!0});var le=$(2),ue=$(293),pe=le.__importDefault($(297));function de(_e){var At=/.*?<\/span>/gi,qe=/(.*?)<\/span>/;return _e.replace(At,function(xe){var Ve=xe.match(qe);return Ve==null?"":Ve[1]})}function Fe(_e,At){var qe;return _e=(0,oe.default)(qe=_e.toLowerCase()).call(qe),!!(ue.IGNORE_TAGS.has(_e)||At&&_e==="img")}function ze(_e,At){var qe="";qe="<"+_e;var xe=[];(0,re.default)(At).call(At,function(he){xe.push(he.name+'="'+he.value+'"')}),xe.length>0&&(qe=qe+" "+xe.join(" "));var Ve=ue.EMPTY_TAGS.has(_e);return qe=qe+(Ve?"/":"")+">",qe}function Ce(_e){return""}function Ie(_e,At,qe){At===void 0&&(At=!0),qe===void 0&&(qe=!1);var xe=[],Ve="";function he(Ue){Ue=(0,oe.default)(Ue).call(Ue),Ue&&(ue.EMPTY_TAGS.has(Ue)||(Ve=Ue))}function Oe(){Ve=""}var $e=new pe.default;$e.parse(_e,{startElement:function(kt,Et){if(he(kt),!Fe(kt,qe)){var Pt=ue.NECESSARY_ATTRS.get(kt)||[],Lt=[];(0,re.default)(Et).call(Et,function(hn){var Dt=hn.name;if(Dt==="style"){At||Lt.push(hn);return}(0,ae.default)(Pt).call(Pt,Dt)!==!1&&Lt.push(hn)});var vn=ze(kt,Lt);xe.push(vn)}},characters:function(kt){!kt||Fe(Ve,qe)||xe.push(kt)},endElement:function(kt){if(!Fe(kt,qe)){var Et=Ce(kt);xe.push(Et),Oe()}},comment:function(kt){he(kt)}});var Ne=xe.join("");return Ne=de(Ne),Ne}g.default=Ie},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(132)),re=L($(121));(0,k.default)(g,"__esModule",{value:!0}),g.TOP_LEVEL_TAGS=g.EMPTY_TAGS=g.NECESSARY_ATTRS=g.IGNORE_TAGS=void 0,g.IGNORE_TAGS=new oe.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),g.NECESSARY_ATTRS=new re.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),g.EMPTY_TAGS=new oe.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),g.TOP_LEVEL_TAGS=new oe.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(r,g,$){var L=$(295);r.exports=L},function(r,g,$){$(296),$(61),$(50),$(54);var L=$(9);r.exports=L.Set},function(r,g,$){var L=$(122),k=$(124);r.exports=L("Set",function(oe){return function(){return oe(this,arguments.length?arguments[0]:void 0)}},k)},function(r,g){function $(){}$.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(L,k){k&&(this.contentHandler=k);for(var oe,re,ae,le=!1,ue=this;L.length>0;)L.substring(0,4)==""),ae!=-1?(this.contentHandler.comment(L.substring(4,ae)),L=L.substring(ae+3),le=!1):le=!0):L.substring(0,2)=="0&&ue(ze.children,Ce.getRootNode())}Ce&&Fe.appendChild(Ce)}),le.default(Fe)}g.default=ue},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(89)),re=L($(70)),ae=L($(28)),le=L($(302)),ue=L($(4)),pe=L($(94)),de=L($(133)),Fe=L($(46)),ze=L($(57));(0,k.default)(g,"__esModule",{value:!0});var Ce=$(2),Ie=Ce.__importDefault($(87)),_e=Ce.__importDefault($(314)),At=Ce.__importDefault($(3)),qe=function(){function xe(Ve){this.editor=Ve,this.menuList=[],this.constructorList=_e.default}return xe.prototype.extend=function(Ve,he){!he||typeof he!="function"||(this.constructorList[Ve]=he)},xe.prototype.init=function(){var Ve,he,Oe=this,$e=this.editor.config,Ne=$e.excludeMenus;(0,oe.default)(Ne)===!1&&(Ne=[]),$e.menus=(0,re.default)(Ve=$e.menus).call(Ve,function(Dt){return(0,ae.default)(Ne).call(Ne,Dt)===!1});var Ue=(0,le.default)(Ie.default.globalCustomMenuConstructorList);Ue=(0,re.default)(Ue).call(Ue,function(Dt){return(0,ae.default)(Ne).call(Ne,Dt)}),(0,ue.default)(Ue).call(Ue,function(Dt){delete Ie.default.globalCustomMenuConstructorList[Dt]}),(0,ue.default)(he=$e.menus).call(he,function(Dt){var jt=Oe.constructorList[Dt];Oe._initMenuList(Dt,jt)});for(var kt=0,Et=(0,pe.default)(Ie.default.globalCustomMenuConstructorList);kt +

      +
      +
      +
      `);Ne.css("visibility","hidden"),he.append(Ne),Ne.css("z-index",Ve.zIndex.get("tooltip"));var Ue=0;function kt(){Ue&&clearTimeout(Ue)}function Et(){kt(),Ne.css("visibility","hidden")}he.on("mouseover",function(Pt){var Lt=Pt.target,vn=At.default(Lt),hn,Dt;if(vn.isContain(he)){Et();return}if(vn.parentUntil(".w-e-droplist")!=null)Et();else if(vn.attr("data-title"))hn=vn.attr("data-title"),Dt=vn;else{var jt=vn.parentUntil(".w-e-menu");jt!=null&&(hn=jt.attr("data-title"),Dt=jt)}if(hn&&Dt){kt();var bn=Dt.getOffsetData();Ne.text(Ve.i18next.t("menus.title."+hn));var Sn=Ne.getOffsetData(),Cn=bn.left+bn.width/2-Sn.width/2;Ne.css("left",Cn+"px"),$e==="up"?Ne.css("top",bn.top-Sn.height-8+"px"):$e==="down"&&Ne.css("top",bn.top+bn.height+8+"px"),Ue=(0,Fe.default)(function(){Ne.css("visibility","visible")},200)}else Et()}).on("mouseleave",function(){Et()})},xe.prototype._addToToolbar=function(){var Ve,he=this.editor,Oe=he.$toolbarElem;(0,ue.default)(Ve=this.menuList).call(Ve,function($e){var Ne=$e.$elem;Ne&&Oe.append(Ne)})},xe.prototype.menuFind=function(Ve){for(var he=this.menuList,Oe=0,$e=he.length;Oe<$e;Oe++)if(he[Oe].key===Ve)return he[Oe];return he[0]},xe.prototype.changeActive=function(){var Ve;(0,ue.default)(Ve=this.menuList).call(Ve,function(he){var Oe;(0,Fe.default)((0,ze.default)(Oe=he.tryChangeActive).call(Oe,he),100)})},xe}();g.default=qe},function(r,g,$){r.exports=$(303)},function(r,g,$){var L=$(304);r.exports=L},function(r,g,$){$(305);var L=$(9);r.exports=L.Object.keys},function(r,g,$){var L=$(5),k=$(31),oe=$(52),re=$(11),ae=re(function(){oe(1)});L({target:"Object",stat:!0,forced:ae},{keys:function(ue){return oe(k(ue))}})},function(r,g,$){var L=$(307);r.exports=L},function(r,g,$){$(308);var L=$(9);r.exports=L.Object.entries},function(r,g,$){var L=$(5),k=$(309).entries;L({target:"Object",stat:!0},{entries:function(re){return k(re)}})},function(r,g,$){var L=$(14),k=$(52),oe=$(30),re=$(59).f,ae=function(le){return function(ue){for(var pe=oe(ue),de=k(pe),Fe=de.length,ze=0,Ce=[],Ie;Fe>ze;)Ie=de[ze++],(!L||re.call(pe,Ie))&&Ce.push(le?[Ie,pe[Ie]]:pe[Ie]);return Ce}};r.exports={entries:ae(!0),values:ae(!1)}},function(r,g,$){var L=$(311);r.exports=L},function(r,g,$){var L=$(312),k=Array.prototype;r.exports=function(oe){var re=oe.some;return oe===k||oe instanceof Array&&re===k.some?L:re}},function(r,g,$){$(313);var L=$(15);r.exports=L("Array").some},function(r,g,$){var L=$(5),k=$(32).some,oe=$(67),re=$(22),ae=oe("some"),le=re("some");L({target:"Array",proto:!0,forced:!ae||!le},{some:function(pe){return k(this,pe,arguments.length>1?arguments[1]:void 0)}})},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(315)),ae=oe.__importDefault($(316)),le=oe.__importDefault($(321)),ue=oe.__importDefault($(326)),pe=oe.__importDefault($(327)),de=oe.__importDefault($(328)),Fe=oe.__importDefault($(329)),ze=oe.__importDefault($(331)),Ce=oe.__importDefault($(333)),Ie=oe.__importDefault($(334)),_e=oe.__importDefault($(337)),At=oe.__importDefault($(338)),qe=oe.__importDefault($(339)),xe=oe.__importDefault($(350)),Ve=oe.__importDefault($(365)),he=oe.__importDefault($(369)),Oe=oe.__importDefault($(137)),$e=oe.__importDefault($(378)),Ne=oe.__importDefault($(380)),Ue=oe.__importDefault($(381)),kt=oe.__importDefault($(382)),Et=oe.__importDefault($(401)),Pt=oe.__importDefault($(406)),Lt=oe.__importDefault($(409));g.default={bold:re.default,head:ae.default,italic:ue.default,link:le.default,underline:pe.default,strikeThrough:de.default,fontName:Fe.default,fontSize:ze.default,justify:Ce.default,quote:Ie.default,backColor:_e.default,foreColor:At.default,video:qe.default,image:xe.default,indent:Ve.default,emoticon:he.default,list:Oe.default,lineHeight:$e.default,undo:Ne.default,redo:Ue.default,table:kt.default,code:Et.default,splitLine:Pt.default,todo:Lt.default}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(23)),ae=oe.__importDefault($(3)),le=function(ue){oe.__extends(pe,ue);function pe(de){var Fe=this,ze=ae.default(`
      + +
      `);return Fe=ue.call(this,ze,de)||this,Fe}return pe.prototype.clickHandler=function(){var de=this.editor,Fe=de.selection.isSelectionEmpty();Fe&&de.selection.createEmptyRange(),de.cmd.do("bold"),Fe&&(de.selection.collapseRange(),de.selection.restoreSelection())},pe.prototype.tryChangeActive=function(){var de=this.editor;de.cmd.queryCommandState("bold")?this.active():this.unActive()},pe}(re.default);g.default=le},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(27)),re=L($(29)),ae=L($(4)),le=L($(317)),ue=L($(28));(0,k.default)(g,"__esModule",{value:!0});var pe=$(2),de=pe.__importDefault($(24)),Fe=pe.__importDefault($(3)),ze=$(6),Ce=$(7),Ie=function(_e){pe.__extends(At,_e);function At(qe){var xe=this,Ve=Fe.default('
      '),he={width:100,title:"\u8BBE\u7F6E\u6807\u9898",type:"list",list:[{$elem:Fe.default("

      H1

      "),value:"

      "},{$elem:Fe.default("

      H2

      "),value:"

      "},{$elem:Fe.default("

      H3

      "),value:"

      "},{$elem:Fe.default("

      H4

      "),value:"

      "},{$elem:Fe.default("

      H5
      "),value:"
      "},{$elem:Fe.default("

      "+qe.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"

      "),value:"

      "}],clickHandler:function(Ne){xe.command(Ne)}};xe=_e.call(this,Ve,qe,he)||this;var Oe=qe.config.onCatalogChange;return Oe&&(xe.oldCatalogs=[],xe.addListenerCatalog(),xe.getCatalogs()),xe}return At.prototype.command=function(qe){var xe=this.editor,Ve=xe.selection.getSelectionContainerElem();if(Ve&&xe.$textElem.equal(Ve))this.setMultilineHead(qe);else{var he;if((0,oe.default)(he=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(he,Fe.default(Ve).getNodeName())>-1)return;xe.cmd.do("formatBlock",qe)}qe!=="

      "&&this.addUidForSelectionElem()},At.prototype.addUidForSelectionElem=function(){var qe=this.editor,xe=qe.selection.getSelectionContainerElem(),Ve=ze.getRandomCode();Fe.default(xe).attr("id",Ve)},At.prototype.addListenerCatalog=function(){var qe=this,xe=this.editor;xe.txt.eventHooks.changeEvents.push(function(){qe.getCatalogs()})},At.prototype.getCatalogs=function(){var qe=this.editor,xe=this.editor.$textElem,Ve=qe.config.onCatalogChange,he=(0,re.default)(xe).call(xe,"h1,h2,h3,h4,h5"),Oe=[];(0,ae.default)(he).call(he,function($e,Ne){var Ue=Fe.default($e),kt=Ue.attr("id"),Et=Ue.getNodeName(),Pt=Ue.text();kt||(kt=ze.getRandomCode(),Ue.attr("id",kt)),Pt&&Oe.push({tag:Et,id:kt,text:Pt})}),(0,le.default)(this.oldCatalogs)!==(0,le.default)(Oe)&&(this.oldCatalogs=Oe,Ve&&Ve(Oe))},At.prototype.setMultilineHead=function(qe){var xe=this,Ve,he,Oe=this.editor,$e=Oe.selection,Ne=(Ve=$e.getSelectionContainerElem())===null||Ve===void 0?void 0:Ve.elems[0],Ue=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],kt=Fe.default($e.getSelectionStartElem()),Et=Fe.default($e.getSelectionEndElem());Et.elems[0].outerHTML===Fe.default(Ce.EMPTY_P).elems[0].outerHTML&&!Et.elems[0].nextSibling&&(Et=Et.prev());var Pt=[];Pt.push(kt.getNodeTop(Oe));var Lt=[],vn=(he=$e.getRange())===null||he===void 0?void 0:he.commonAncestorContainer.childNodes;vn==null||(0,ae.default)(vn).call(vn,function(jt,bn){jt===Pt[0].getNode()&&Lt.push(bn),jt===Et.getNodeTop(Oe).getNode()&&Lt.push(bn)});for(var hn=0;Pt[hn].getNode()!==Et.getNodeTop(Oe).getNode();){if(!Pt[hn].elems[0])return;var Dt=Fe.default(Pt[hn].next().getNode());Pt.push(Dt),hn++}Pt==null||(0,ae.default)(Pt).call(Pt,function(jt,bn){if(!xe.hasTag(jt,Ue)){var Sn=Fe.default(qe),Cn=jt.parent().getNode();Sn.html(""+jt.html()),Cn.insertBefore(Sn.getNode(),jt.getNode()),jt.remove()}}),$e.createRangeByElems(Ne.children[Lt[0]],Ne.children[Lt[1]])},At.prototype.hasTag=function(qe,xe){var Ve=this,he;if(!qe)return!1;if((0,ue.default)(xe).call(xe,qe?.getNodeName()))return!0;var Oe=!1;return(he=qe.children())===null||he===void 0||(0,ae.default)(he).call(he,function($e){Oe=Ve.hasTag(Fe.default($e),xe)}),Oe},At.prototype.tryChangeActive=function(){var qe=this.editor,xe=/^h/i,Ve=qe.cmd.queryCommandValue("formatBlock");xe.test(Ve)?this.active():this.unActive()},At}(de.default);g.default=Ie},function(r,g,$){r.exports=$(318)},function(r,g,$){var L=$(319);r.exports=L},function(r,g,$){$(320);var L=$(9);L.JSON||(L.JSON={stringify:JSON.stringify}),r.exports=function(oe,re,ae){return L.JSON.stringify.apply(null,arguments)}},function(r,g,$){var L=$(5),k=$(36),oe=$(11),re=k("JSON","stringify"),ae=/[\uD800-\uDFFF]/g,le=/^[\uD800-\uDBFF]$/,ue=/^[\uDC00-\uDFFF]$/,pe=function(Fe,ze,Ce){var Ie=Ce.charAt(ze-1),_e=Ce.charAt(ze+1);return le.test(Fe)&&!ue.test(_e)||ue.test(Fe)&&!le.test(Ie)?"\\u"+Fe.charCodeAt(0).toString(16):Fe},de=oe(function(){return re("\uDF06\uD834")!=='"\\udf06\\ud834"'||re("\uDEAD")!=='"\\udead"'});re&&L({target:"JSON",stat:!0,forced:de},{stringify:function(ze,Ce,Ie){var _e=re.apply(null,arguments);return typeof _e=="string"?_e.replace(ae,pe):_e}})},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(17));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(38)),le=re.__importDefault($(3)),ue=re.__importDefault($(322)),pe=re.__importStar($(96)),de=re.__importDefault($(33)),Fe=re.__importDefault($(324)),ze=$(7),Ce=function(Ie){re.__extends(_e,Ie);function _e(At){var qe=this,xe=le.default('

      ');return qe=Ie.call(this,xe,At)||this,Fe.default(At),qe}return _e.prototype.clickHandler=function(){var At=this.editor,qe,xe=At.selection.getSelectionContainerElem(),Ve=At.$textElem,he=Ve.html(),Oe=(0,oe.default)(he).call(he);if(Oe===ze.EMPTY_P){var $e=Ve.children();At.selection.createRangeByElem($e,!0,!0),xe=At.selection.getSelectionContainerElem()}if(!(xe&&At.$textElem.equal(xe)))if(this.isActive){var Ne="",Ue="";if(qe=At.selection.getSelectionContainerElem(),!qe)return;if(qe.getNodeName()!=="A"){var kt=pe.getParentNodeA(qe);qe=le.default(kt)}Ne=qe.elems[0].innerText,Ue=qe.attr("href"),this.createPanel(Ne,Ue)}else At.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(At.selection.getSelectionText(),"")},_e.prototype.createPanel=function(At,qe){var xe=ue.default(this.editor,At,qe),Ve=new de.default(this,xe);Ve.create()},_e.prototype.tryChangeActive=function(){var At=this.editor;pe.default(At)?this.active():this.unActive()},_e}(ae.default);g.default=Ce},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(28)),re=L($(17)),ae=L($(29));(0,k.default)(g,"__esModule",{value:!0});var le=$(2),ue=$(6),pe=le.__importDefault($(3)),de=le.__importStar($(96)),Fe=$(323);function ze(Ce,Ie,_e){var At=ue.getRandom("input-link"),qe=ue.getRandom("input-text"),xe=ue.getRandom("btn-ok"),Ve=ue.getRandom("btn-del"),he=de.default(Ce)?"inline-block":"none",Oe;function $e(){if(!!de.default(Ce)){var Pt=Ce.selection.getSelectionContainerElem();!Pt||(Ce.selection.createRangeByElem(Pt),Ce.selection.restoreSelection(),Oe=Pt)}}function Ne(Pt,Lt){var vn=Pt.replace(//g,">"),hn=pe.default(''+vn+""),Dt=hn.elems[0];Dt.innerText=Pt,Dt.href=Lt,de.default(Ce)&&$e(),Ce.cmd.do("insertElem",hn)}function Ue(){if(!!de.default(Ce))if($e(),Oe.getNodeName()==="A"){var Pt,Lt=Oe.elems[0],vn=Lt.parentElement;vn&&(0,oe.default)(Pt=de.EXTRA_TAG).call(Pt,vn.nodeName)?vn.innerHTML=Lt.innerHTML:Ce.cmd.do("insertHTML",""+Lt.innerHTML+"")}else{var hn=de.getParentNodeA(Oe),Dt=hn.innerHTML;Ce.cmd.do("insertHTML",""+Dt+"")}}function kt(Pt,Lt){var vn=Ce.config.linkCheck(Pt,Lt);if(vn!==void 0){if(vn===!0)return!0;Ce.config.customAlert(vn,"warning")}return!1}var Et={width:300,height:0,tabs:[{title:Ce.i18next.t("menus.panelMenus.link.\u94FE\u63A5"),tpl:`
      + + + + +
      + + +
      +
      `,events:[{selector:"#"+xe,type:"click",fn:function(){var Lt,vn,hn,Dt,jt,bn=Ce.selection.getSelectionContainerElem(),Sn=bn?.elems[0];Ce.selection.restoreSelection();var Cn=Ce.selection.getSelectionRangeTopNodes()[0].getNode(),On=window.getSelection(),En=pe.default("#"+At),An=pe.default("#"+qe),In=(0,re.default)(Lt=En.val()).call(Lt),$n=(0,re.default)(vn=An.val()).call(vn),Pn="";On&&!On?.isCollapsed&&(Pn=(Dt=Fe.insertHtml(On,Cn))===null||Dt===void 0?void 0:(0,re.default)(Dt).call(Dt));var Dn=Pn?.replace(/<.*?>/g,""),Mn=(jt=Dn?.length)!==null&&jt!==void 0?jt:0;if(Mn<=$n.length){var Fn=$n.substring(0,Mn),kn=$n.substring(Mn);Dn===Fn&&($n=Dn+kn)}if(!!In&&($n||($n=In),!!kt($n,In))){if(Sn?.nodeName==="A")return Sn.setAttribute("href",In),Sn.innerText=$n,!0;if(Sn?.nodeName!=="A"&&(0,oe.default)(hn=de.EXTRA_TAG).call(hn,Sn.nodeName)){var Nn=de.getParentNodeA(bn);if(Nn)return Nn.setAttribute("href",In),Sn.innerText=$n,!0}return Ne($n,In),!0}},bindEnter:!0},{selector:"#"+Ve,type:"click",fn:function(){return Ue(),!0}}]}],setLinkValue:function(Lt,vn){var hn="",Dt="",jt;vn==="text"&&(hn="#"+qe,Dt=Ie),vn==="link"&&(hn="#"+At,Dt=_e),jt=(0,ae.default)(Lt).call(Lt,hn).elems[0],jt.value=Dt}};return Et}g.default=ze},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0}),g.insertHtml=g.createPartHtml=g.makeHtmlString=g.getTopNode=void 0;function re(Fe,ze){var Ce=Fe,Ie=Fe;do{if(Ce.textContent===ze)break;Ie=Ce,Ce.parentNode&&(Ce=Ce?.parentNode)}while(Ce?.nodeName!=="P");return Ie}g.getTopNode=re;function ae(Fe,ze){var Ce=Fe.nodeName,Ie="";if(Fe.nodeType===3||/^(h|H)[1-6]$/.test(Ce))return ze;if(Fe.nodeType===1){var _e=Fe.getAttribute("style"),At=Fe.getAttribute("face"),qe=Fe.getAttribute("color");_e&&(Ie=Ie+(' style="'+_e+'"')),At&&(Ie=Ie+(' face="'+At+'"')),qe&&(Ie=Ie+(' color="'+qe+'"'))}return Ce=Ce.toLowerCase(),"<"+Ce+Ie+">"+ze+""}g.makeHtmlString=ae;function le(Fe,ze,Ce,Ie){var _e,At=(_e=ze.textContent)===null||_e===void 0?void 0:_e.substring(Ce,Ie),qe=ze,xe="";do xe=ae(qe,At??""),At=xe,qe=qe?.parentElement;while(qe&&qe.textContent!==Fe);return xe}g.createPartHtml=le;function ue(Fe,ze){var Ce,Ie,_e,At,qe,xe=Fe.anchorNode,Ve=Fe.focusNode,he=Fe.anchorOffset,Oe=Fe.focusOffset,$e=(Ce=ze.textContent)!==null&&Ce!==void 0?Ce:"",Ne=pe(ze),Ue="",kt="",Et="",Pt="",Lt=xe,vn=Ve,hn=xe;if(xe?.isEqualNode(Ve??null)){var Dt=le($e,xe,he,Oe);return Dt=de(Ne,Dt),Dt}for(xe&&(kt=le($e,xe,he??0)),Ve&&(Pt=le($e,Ve,0,Oe)),xe&&(Lt=re(xe,$e)),Ve&&(vn=re(Ve,$e)),hn=(Ie=Lt?.nextSibling)!==null&&Ie!==void 0?Ie:xe;!hn?.isEqualNode(vn??null);){var jt=hn?.nodeName;if(jt==="#text")Et=Et+hn?.textContent;else{var bn=(At=(_e=hn?.firstChild)===null||_e===void 0?void 0:_e.parentElement)===null||At===void 0?void 0:At.innerHTML;hn&&(Et=Et+ae(hn,bn??""))}var Sn=(qe=hn?.nextSibling)!==null&&qe!==void 0?qe:hn;if(Sn===hn)break;hn=Sn}return Ue=""+kt+Et+Pt,Ue=de(Ne,Ue),Ue}g.insertHtml=ue;function pe(Fe){for(var ze,Ce=(ze=Fe.textContent)!==null&&ze!==void 0?ze:"",Ie=[];Fe?.textContent===Ce;)Fe.nodeName!=="P"&&Fe.nodeName!=="TABLE"&&Ie.push(Fe),Fe=Fe.childNodes[0];return Ie}function de(Fe,ze){return(0,oe.default)(Fe).call(Fe,function(Ce){ze=ae(Ce,ze)}),ze}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(325));function ae(le){re.default(le)}g.default=ae},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(28));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=re.__importDefault($(39)),ue=$(96);function pe(Fe){var ze;function Ce(_e){var At=[{$elem:ae.default(""+Fe.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+""),onClick:function(xe,Ve){var he=Ve.attr("href");return window.open(he,"_target"),!0}},{$elem:ae.default(""+Fe.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+""),onClick:function(xe,Ve){var he,Oe;xe.selection.createRangeByElem(Ve),xe.selection.restoreSelection();var $e=Ve.childNodes();if($e?.getNodeName()==="IMG"){var Ne=(Oe=(he=xe.selection.getSelectionContainerElem())===null||he===void 0?void 0:he.children())===null||Oe===void 0?void 0:Oe.elems[0].children[0];xe.cmd.do("insertHTML",`")}else{var Ue,kt=Ve.elems[0],Et=kt.innerHTML,Pt=kt.parentElement;Pt&&(0,oe.default)(Ue=ue.EXTRA_TAG).call(Ue,Pt.nodeName)?Pt.innerHTML=Et:xe.cmd.do("insertHTML",""+Et+"")}return!0}}];ze=new le.default(Fe,_e,At),ze.create()}function Ie(){ze&&(ze.remove(),ze=null)}return{showLinkTooltip:Ce,hideLinkTooltip:Ie}}function de(Fe){var ze=pe(Fe),Ce=ze.showLinkTooltip,Ie=ze.hideLinkTooltip;Fe.txt.eventHooks.linkClickEvents.push(Ce),Fe.txt.eventHooks.clickEvents.push(Ie),Fe.txt.eventHooks.keyupEvents.push(Ie),Fe.txt.eventHooks.toolbarClickEvents.push(Ie),Fe.txt.eventHooks.menuClickEvents.push(Ie),Fe.txt.eventHooks.textScrollEvents.push(Ie)}g.default=de},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(23)),ae=oe.__importDefault($(3)),le=function(ue){oe.__extends(pe,ue);function pe(de){var Fe=this,ze=ae.default(`
      + +
      `);return Fe=ue.call(this,ze,de)||this,Fe}return pe.prototype.clickHandler=function(){var de=this.editor,Fe=de.selection.isSelectionEmpty();Fe&&de.selection.createEmptyRange(),de.cmd.do("italic"),Fe&&(de.selection.collapseRange(),de.selection.restoreSelection())},pe.prototype.tryChangeActive=function(){var de=this.editor;de.cmd.queryCommandState("italic")?this.active():this.unActive()},pe}(re.default);g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(23)),ae=oe.__importDefault($(3)),le=function(ue){oe.__extends(pe,ue);function pe(de){var Fe=this,ze=ae.default(`
      + +
      `);return Fe=ue.call(this,ze,de)||this,Fe}return pe.prototype.clickHandler=function(){var de=this.editor,Fe=de.selection.isSelectionEmpty();Fe&&de.selection.createEmptyRange(),de.cmd.do("underline"),Fe&&(de.selection.collapseRange(),de.selection.restoreSelection())},pe.prototype.tryChangeActive=function(){var de=this.editor;de.cmd.queryCommandState("underline")?this.active():this.unActive()},pe}(re.default);g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(23)),ae=oe.__importDefault($(3)),le=function(ue){oe.__extends(pe,ue);function pe(de){var Fe=this,ze=ae.default(`
      + +
      `);return Fe=ue.call(this,ze,de)||this,Fe}return pe.prototype.clickHandler=function(){var de=this.editor,Fe=de.selection.isSelectionEmpty();Fe&&de.selection.createEmptyRange(),de.cmd.do("strikeThrough"),Fe&&(de.selection.collapseRange(),de.selection.restoreSelection())},pe.prototype.tryChangeActive=function(){var de=this.editor;de.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},pe}(re.default);g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(24)),ae=oe.__importDefault($(3)),le=oe.__importDefault($(330)),ue=function(pe){oe.__extends(de,pe);function de(Fe){var ze=this,Ce=ae.default(`
      + +
      `),Ie=new le.default(Fe.config.fontNames),_e={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:Ie.getItemList(),clickHandler:function(qe){ze.command(qe)}};return ze=pe.call(this,Ce,Fe,_e)||this,ze}return de.prototype.command=function(Fe){var ze,Ce=this.editor,Ie=Ce.selection.isSelectionEmpty(),_e=(ze=Ce.selection.getSelectionContainerElem())===null||ze===void 0?void 0:ze.elems[0];if(_e!=null){var At=_e?.nodeName.toLowerCase()!=="p",qe=_e?.getAttribute("face")===Fe;if(Ie){if(At&&!qe){var xe=Ce.selection.getSelectionRangeTopNodes();Ce.selection.createRangeByElem(xe[0]),Ce.selection.moveCursor(xe[0].elems[0])}Ce.selection.setRangeToElem(_e),Ce.selection.createEmptyRange()}Ce.cmd.do("fontName",Fe),Ie&&(Ce.selection.collapseRange(),Ce.selection.restoreSelection())}},de.prototype.tryChangeActive=function(){},de}(re.default);g.default=ue},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=function(){function ue(pe){var de=this;this.itemList=[],(0,oe.default)(pe).call(pe,function(Fe){var ze=typeof Fe=="string"?Fe:Fe.value,Ce=typeof Fe=="string"?Fe:Fe.name;de.itemList.push({$elem:ae.default(`

      `+Ce+"

      "),value:Ce})})}return ue.prototype.getItemList=function(){return this.itemList},ue}();g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(24)),ae=oe.__importDefault($(3)),le=oe.__importDefault($(332)),ue=function(pe){oe.__extends(de,pe);function de(Fe){var ze=this,Ce=ae.default(`
      + +
      `),Ie=new le.default(Fe.config.fontSizes),_e={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:Ie.getItemList(),clickHandler:function(qe){ze.command(qe)}};return ze=pe.call(this,Ce,Fe,_e)||this,ze}return de.prototype.command=function(Fe){var ze,Ce=this.editor,Ie=Ce.selection.isSelectionEmpty(),_e=(ze=Ce.selection.getSelectionContainerElem())===null||ze===void 0?void 0:ze.elems[0];_e!=null&&(Ce.cmd.do("fontSize",Fe),Ie&&(Ce.selection.collapseRange(),Ce.selection.restoreSelection()))},de.prototype.tryChangeActive=function(){},de}(re.default);g.default=ue},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(3)),ae=function(){function le(ue){this.itemList=[];for(var pe in ue){var de=ue[pe];this.itemList.push({$elem:re.default('

      '+de.name+"

      "),value:de.value})}}return le.prototype.getItemList=function(){return this.itemList},le}();g.default=ae},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4)),re=L($(27));(0,k.default)(g,"__esModule",{value:!0});var ae=$(2),le=ae.__importDefault($(24)),ue=ae.__importDefault($(3)),pe=["LI"],de=["BLOCKQUOTE"],Fe=function(ze){ae.__extends(Ce,ze);function Ce(Ie){var _e=this,At=ue.default('
      '),qe={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem:ue.default(`

      + + `+Ie.i18next.t("menus.dropListMenu.justify.\u9760\u5DE6")+` +

      `),value:"left"},{$elem:ue.default(`

      + + `+Ie.i18next.t("menus.dropListMenu.justify.\u5C45\u4E2D")+` +

      `),value:"center"},{$elem:ue.default(`

      + + `+Ie.i18next.t("menus.dropListMenu.justify.\u9760\u53F3")+` +

      `),value:"right"},{$elem:ue.default(`

      + + `+Ie.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF")+` +

      `),value:"justify"}],clickHandler:function(Ve){_e.command(Ve)}};return _e=ze.call(this,At,Ie,qe)||this,_e}return Ce.prototype.command=function(Ie){var _e=this.editor,At=_e.selection,qe=At.getSelectionContainerElem();At.saveRange();var xe=_e.selection.getSelectionRangeTopNodes();if(qe?.length)if(this.isSpecialNode(qe,xe[0])||this.isSpecialTopNode(xe[0])){var Ve=this.getSpecialNodeUntilTop(qe,xe[0]);if(Ve==null)return;ue.default(Ve).css("text-align",Ie)}else(0,oe.default)(xe).call(xe,function(he){he.css("text-align",Ie)});At.restoreSelection()},Ce.prototype.getSpecialNodeUntilTop=function(Ie,_e){for(var At=Ie.elems[0],qe=_e.elems[0];At!=null;){if((0,re.default)(pe).call(pe,At?.nodeName)!==-1||At.parentNode===qe)return At;At=At.parentNode}return At},Ce.prototype.isSpecialNode=function(Ie,_e){var At=this.getSpecialNodeUntilTop(Ie,_e);return At==null?!1:(0,re.default)(pe).call(pe,At.nodeName)!==-1},Ce.prototype.isSpecialTopNode=function(Ie){var _e;return Ie==null?!1:(0,re.default)(de).call(de,(_e=Ie.elems[0])===null||_e===void 0?void 0:_e.nodeName)!==-1},Ce.prototype.tryChangeActive=function(){},Ce}(le.default);g.default=Fe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=re.__importDefault($(23)),ue=re.__importDefault($(335)),pe=re.__importDefault($(336)),de=$(7),Fe=function(ze){re.__extends(Ce,ze);function Ce(Ie){var _e=this,At=ae.default(`
      + +
      `);return _e=ze.call(this,At,Ie)||this,ue.default(Ie),_e}return Ce.prototype.clickHandler=function(){var Ie,_e,At=this.editor,qe=At.selection.isSelectionEmpty(),xe=At.selection.getSelectionRangeTopNodes(),Ve=xe[xe.length-1],he=this.getTopNodeName();if(he==="BLOCKQUOTE"){var Oe=ae.default(Ve.childNodes()),$e=Oe.length,Ne=Ve;(0,oe.default)(Oe).call(Oe,function(Pt){var Lt=ae.default(Pt);Lt.insertAfter(Ne),Ne=Lt}),Ve.remove(),At.selection.moveCursor(Oe.elems[$e-1]),this.tryChangeActive()}else{var Ue=pe.default(xe);if(At.$textElem.equal(Ve)){var kt=(Ie=At.selection.getSelectionContainerElem())===null||Ie===void 0?void 0:Ie.elems[0];At.selection.createRangeByElems(kt.children[0],kt.children[0]),xe=At.selection.getSelectionRangeTopNodes(),Ue=pe.default(xe),Ve.append(Ue)}else Ue.insertAfter(Ve);this.delSelectNode(xe);var Et=(_e=Ue.childNodes())===null||_e===void 0?void 0:_e.last().getNode();if(Et==null)return;Et.textContent?At.selection.moveCursor(Et):At.selection.moveCursor(Et,0),this.tryChangeActive(),ae.default(de.EMPTY_P).insertAfter(Ue);return}qe&&(At.selection.collapseRange(),At.selection.restoreSelection())},Ce.prototype.tryChangeActive=function(){var Ie,_e=this.editor,At=(Ie=_e.selection.getSelectionRangeTopNodes()[0])===null||Ie===void 0?void 0:Ie.getNodeName();At==="BLOCKQUOTE"?this.active():this.unActive()},Ce.prototype.getTopNodeName=function(){var Ie=this.editor,_e=Ie.selection.getSelectionRangeTopNodes()[0],At=_e?.getNodeName();return At},Ce.prototype.delSelectNode=function(Ie){(0,oe.default)(Ie).call(Ie,function(_e){_e.remove()})},Ce}(le.default);g.default=Fe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=$(7),ae=oe.__importDefault($(3));function le(ue){function pe(de){var Fe,ze=ue.selection.getSelectionContainerElem(),Ce=ue.selection.getSelectionRangeTopNodes()[0];if(Ce?.getNodeName()==="BLOCKQUOTE"){if(ze.getNodeName()==="BLOCKQUOTE"){var Ie=(Fe=ze.childNodes())===null||Fe===void 0?void 0:Fe.getNode();ue.selection.moveCursor(Ie)}if(ze.text()===""){de.preventDefault(),ze.remove();var _e=ae.default(re.EMPTY_P);_e.insertAfter(Ce),ue.selection.moveCursor(_e.getNode(),0)}Ce.text()===""&&Ce.remove()}}ue.txt.eventHooks.enterDownEvents.push(pe)}g.default=le},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3));function le(ue){var pe=ae.default("
      ");return(0,oe.default)(ue).call(ue,function(de){pe.append(de.clone(!0))}),pe}g.default=le},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(26));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(24)),le=re.__importDefault($(3)),ue=$(6),pe=function(de){re.__extends(Fe,de);function Fe(ze){var Ce,Ie=this,_e=le.default(`
      + +
      `),At={width:120,title:"\u80CC\u666F\u989C\u8272",type:"inline-block",list:(0,oe.default)(Ce=ze.config.colors).call(Ce,function(qe){return{$elem:le.default(''),value:qe}}),clickHandler:function(xe){Ie.command(xe)}};return Ie=de.call(this,_e,ze,At)||this,Ie}return Fe.prototype.command=function(ze){var Ce,Ie=this.editor,_e=Ie.selection.isSelectionEmpty(),At=(Ce=Ie.selection.getSelectionContainerElem())===null||Ce===void 0?void 0:Ce.elems[0];if(At!=null){var qe=At?.nodeName.toLowerCase()!=="p",xe=At?.style.backgroundColor,Ve=ue.hexToRgb(ze)===xe;if(_e){if(qe&&!Ve){var he=Ie.selection.getSelectionRangeTopNodes();Ie.selection.createRangeByElem(he[0]),Ie.selection.moveCursor(he[0].elems[0])}Ie.selection.createEmptyRange()}Ie.cmd.do("backColor",ze),_e&&(Ie.selection.collapseRange(),Ie.selection.restoreSelection())}},Fe.prototype.tryChangeActive=function(){},Fe}(ae.default);g.default=pe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(26));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(24)),le=re.__importDefault($(3)),ue=function(pe){re.__extends(de,pe);function de(Fe){var ze,Ce=this,Ie=le.default(`
      + +
      `),_e={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,oe.default)(ze=Fe.config.colors).call(ze,function(At){return{$elem:le.default(''),value:At}}),clickHandler:function(qe){Ce.command(qe)}};return Ce=pe.call(this,Ie,Fe,_e)||this,Ce}return de.prototype.command=function(Fe){var ze,Ce=this.editor,Ie=Ce.selection.isSelectionEmpty(),_e=(ze=Ce.selection.getSelectionContainerElem())===null||ze===void 0?void 0:ze.elems[0];if(_e!=null){var At=Ce.selection.getSelectionText();if(_e.nodeName==="A"&&_e.textContent===At){var qe=le.default("").getNode();_e.appendChild(qe)}Ce.cmd.do("foreColor",Fe),Ie&&(Ce.selection.collapseRange(),Ce.selection.restoreSelection())}},de.prototype.tryChangeActive=function(){},de}(ae.default);g.default=ue},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(33)),le=oe.__importDefault($(38)),ue=oe.__importDefault($(340)),pe=oe.__importDefault($(346)),de=function(Fe){oe.__extends(ze,Fe);function ze(Ce){var Ie=this,_e=re.default(`
      + +
      `);return Ie=Fe.call(this,_e,Ce)||this,pe.default(Ce),Ie}return ze.prototype.clickHandler=function(){this.createPanel("")},ze.prototype.createPanel=function(Ce){var Ie=ue.default(this.editor,Ce),_e=new ae.default(this,Ie);_e.create()},ze.prototype.tryChangeActive=function(){},ze}(le.default);g.default=de},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(17));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=$(6),le=re.__importDefault($(3)),ue=re.__importDefault($(341)),pe=$(7);function de(Fe,ze){var Ce=Fe.config,Ie=new ue.default(Fe),_e=ae.getRandom("input-iframe"),At=ae.getRandom("btn-ok"),qe=ae.getRandom("input-upload"),xe=ae.getRandom("btn-local-ok");function Ve(Ne){Fe.cmd.do("insertHTML",Ne+pe.EMPTY_P),Fe.config.onlineVideoCallback(Ne)}function he(Ne){var Ue=Fe.config.onlineVideoCheck(Ne);return Ue===!0?!0:(typeof Ue=="string"&&Fe.config.customAlert(Ue,"error"),!1)}var Oe=[{title:Fe.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`
      +
      + +
      +
      + +
      +
      `,events:[{selector:"#"+xe,type:"click",fn:function(){var Ue=le.default("#"+qe),kt=Ue.elems[0];if(kt)kt.click();else return!0}},{selector:"#"+qe,type:"change",fn:function(){var Ue=le.default("#"+qe),kt=Ue.elems[0];if(!kt)return!0;var Et=kt.files;return Et.length&&Ie.uploadVideo(Et),!0}}]},{title:Fe.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`
      + "/> + +
      + +
      +
      `,events:[{selector:"#"+At,type:"click",fn:function(){var Ue,kt=le.default("#"+_e),Et=(0,oe.default)(Ue=kt.val()).call(Ue);if(!!Et&&!!he(Et))return Ve(Et),!0},bindEnter:!0}]}],$e={width:300,height:0,tabs:[]};return window.FileReader&&(Ce.uploadVideoServer||Ce.customUploadVideo)&&$e.tabs.push(Oe[0]),Ce.showLinkVideo&&$e.tabs.push(Oe[1]),$e}g.default=de},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(133)),re=L($(57)),ae=L($(4)),le=L($(27));(0,k.default)(g,"__esModule",{value:!0});var ue=$(2),pe=$(6),de=ue.__importDefault($(135)),Fe=ue.__importDefault($(136)),ze=$(7),Ce=$(6),Ie=function(){function _e(At){this.editor=At}return _e.prototype.uploadVideo=function(At){var qe=this;if(!!At.length){var xe=this.editor,Ve=xe.config,he="validate.",Oe=function(Dn){return xe.i18next.t(he+Dn)},$e=Ve.uploadVideoServer,Ne=Ve.uploadVideoMaxSize,Ue=Ne/1024,kt=Ve.uploadVideoName,Et=Ve.uploadVideoParams,Pt=Ve.uploadVideoParamsWithUrl,Lt=Ve.uploadVideoHeaders,vn=Ve.uploadVideoHooks,hn=Ve.uploadVideoTimeout,Dt=Ve.withVideoCredentials,jt=Ve.customUploadVideo,bn=Ve.uploadVideoAccept,Sn=[],Cn=[];if(pe.arrForEach(At,function(Pn){var Dn=Pn.name,Mn=Pn.size/1024/1024;if(!(!Dn||!Mn)){if(!(bn instanceof Array)){Cn.push("\u3010"+bn+"\u3011"+Oe("uploadVideoAccept \u4E0D\u662FArray"));return}if(!(0,oe.default)(bn).call(bn,function(Fn){return Fn===Dn.split(".")[Dn.split(".").length-1]})){Cn.push("\u3010"+Dn+"\u3011"+Oe("\u4E0D\u662F\u89C6\u9891"));return}if(Ue1&&(Mn=Mn+(Dn+1)),En.append(Mn,Pn)}),$e){var An=$e.split("#");$e=An[0];var In=An[1]||"";(0,ae.default)(pe).call(pe,Et,function(Pn,Dn){Pt&&((0,le.default)($e).call($e,"?")>0?$e+="&":$e+="?",$e=$e+Pn+"="+Dn),En.append(Pn,Dn)}),In&&($e+="#"+In);var $n=de.default($e,{timeout:hn,formData:En,headers:Lt,withCredentials:!!Dt,beforeSend:function(Dn){if(vn.before)return vn.before(Dn,xe,Sn)},onTimeout:function(Dn){Ve.customAlert(Oe("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),vn.timeout&&vn.timeout(Dn,xe)},onProgress:function(Dn,Mn){var Fn=new Fe.default(xe);Mn.lengthComputable&&(Dn=Mn.loaded/Mn.total,Fn.show(Dn))},onError:function(Dn){Ve.customAlert(Oe("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"),"error",Oe("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+Oe("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+Dn.status),vn.error&&vn.error(Dn,xe)},onFail:function(Dn,Mn){Ve.customAlert(Oe("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",Oe("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+Oe("\u8FD4\u56DE\u7ED3\u679C")+": ")+Mn),vn.fail&&vn.fail(Dn,xe,Mn)},onSuccess:function(Dn,Mn){if(vn.customInsert){var Fn;vn.customInsert((0,re.default)(Fn=qe.insertVideo).call(Fn,qe),Mn,xe);return}if(Mn.errno!="0"){Ve.customAlert(Oe("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",Oe("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+Oe("\u8FD4\u56DE\u7ED3\u679C")+" errno="+Mn.errno),vn.fail&&vn.fail(Dn,xe,Mn);return}var kn=Mn.data;qe.insertVideo(kn.url),vn.success&&vn.success(Dn,xe,Mn)}});typeof $n=="string"&&Ve.customAlert($n,"error")}}},_e.prototype.insertVideo=function(At){var qe=this.editor,xe=qe.config,Ve="validate.",he=function(Ne,Ue){return Ue===void 0&&(Ue=Ve),qe.i18next.t(Ue+Ne)};if(!xe.customInsertVideo)Ce.UA.isFirefox?qe.cmd.do("insertHTML",'

      '):qe.cmd.do("insertHTML",''+ze.EMPTY_P);else{xe.customInsertVideo(At);return}var Oe=document.createElement("video");Oe.onload=function(){Oe=null},Oe.onerror=function(){xe.customAlert(he("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+he("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+he("\u89C6\u9891\u94FE\u63A5")+' "'+At+'"\uFF0C'+he("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),Oe=null},Oe.onabort=function(){return Oe=null},Oe.src=At},_e}();g.default=Ie},function(r,g,$){r.exports=$(343)},function(r,g,$){var L=$(344);r.exports=L},function(r,g,$){$(345);var L=$(9);r.exports=L.Date.now},function(r,g,$){var L=$(5);L({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(347)),ae=oe.__importDefault($(349));function le(ue){re.default(ue),ae.default(ue)}g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.createShowHideFn=void 0;var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(39)),le=oe.__importDefault($(348));function ue(de){var Fe,ze=function(At,qe){return qe===void 0&&(qe=""),de.i18next.t(qe+At)};function Ce(_e){var At=[{$elem:re.default(""),onClick:function(xe,Ve){return Ve.remove(),!0}},{$elem:re.default("100%"),onClick:function(xe,Ve){return Ve.attr("width","100%"),Ve.removeAttr("height"),!0}},{$elem:re.default("50%"),onClick:function(xe,Ve){return Ve.attr("width","50%"),Ve.removeAttr("height"),!0}},{$elem:re.default("30%"),onClick:function(xe,Ve){return Ve.attr("width","30%"),Ve.removeAttr("height"),!0}},{$elem:re.default(""+ze("\u91CD\u7F6E")+""),onClick:function(xe,Ve){return Ve.removeAttr("width"),Ve.removeAttr("height"),!0}},{$elem:re.default(""+ze("menus.justify.\u9760\u5DE6")+""),onClick:function(xe,Ve){return le.default(Ve,"left"),!0}},{$elem:re.default(""+ze("menus.justify.\u5C45\u4E2D")+""),onClick:function(xe,Ve){return le.default(Ve,"center"),!0}},{$elem:re.default(""+ze("menus.justify.\u9760\u53F3")+""),onClick:function(xe,Ve){return le.default(Ve,"right"),!0}}];Fe=new ae.default(de,_e,At),Fe.create()}function Ie(){Fe&&(Fe.remove(),Fe=null)}return{showVideoTooltip:Ce,hideVideoTooltip:Ie}}g.createShowHideFn=ue;function pe(de){var Fe=ue(de),ze=Fe.showVideoTooltip,Ce=Fe.hideVideoTooltip;de.txt.eventHooks.videoClickEvents.push(ze),de.txt.eventHooks.clickEvents.push(Ce),de.txt.eventHooks.keyupEvents.push(Ce),de.txt.eventHooks.toolbarClickEvents.push(Ce),de.txt.eventHooks.menuClickEvents.push(Ce),de.txt.eventHooks.textScrollEvents.push(Ce),de.txt.eventHooks.changeEvents.push(Ce)}g.default=pe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(28));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3));function le(pe,de){var Fe=["P"],ze=ue(pe,Fe);ze&&ae.default(ze).css("text-align",de)}g.default=le;function ue(pe,de){for(var Fe,ze=pe.elems[0];ze!=null;){if((0,oe.default)(de).call(de,ze?.nodeName))return ze;if(((Fe=ze?.parentNode)===null||Fe===void 0?void 0:Fe.nodeName)==="BODY")return null;ze=ze.parentNode}return ze}},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(6);function re(ae){if(!!oe.UA.isFirefox){var le=ae.txt,ue=ae.selection,pe=le.eventHooks.keydownEvents;pe.push(function(de){var Fe=ue.getSelectionContainerElem();if(Fe){var ze=Fe.getNodeTop(ae),Ce=ze.length&&ze.prev().length?ze.prev():null;Ce&&Ce.attr("data-we-video-p")&&ue.getCursorPos()===0&&de.keyCode===8&&Ce.remove()}})}}g.default=re},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(26));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=$(7),le=re.__importDefault($(3)),ue=re.__importDefault($(33)),pe=re.__importDefault($(38)),de=re.__importDefault($(351)),Fe=re.__importDefault($(364)),ze=function(Ce){re.__extends(Ie,Ce);function Ie(_e){var At=this,qe=le.default('
      '),xe=Fe.default(_e);if(xe.onlyUploadConf){var Ve;qe=xe.onlyUploadConf.$elem,(0,oe.default)(Ve=xe.onlyUploadConf.events).call(Ve,function(he){var Oe=he.type,$e=he.fn||ae.EMPTY_FN;qe.on(Oe,function(Ne){Ne.stopPropagation(),$e(Ne)})})}return At=Ce.call(this,qe,_e)||this,At.imgPanelConfig=xe,de.default(_e),At}return Ie.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},Ie.prototype.createPanel=function(){var _e=this.imgPanelConfig,At=new ue.default(this,_e);this.setPanel(At),At.create()},Ie.prototype.tryChangeActive=function(){},Ie}(pe.default);g.default=ze},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(352)),ae=oe.__importDefault($(353)),le=oe.__importDefault($(354)),ue=oe.__importDefault($(362)),pe=oe.__importDefault($(363));function de(Fe){re.default(Fe),ae.default(Fe),le.default(Fe),ue.default(Fe),pe.default(Fe)}g.default=de},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=$(131),ae=oe.__importDefault($(97));function le(Fe,ze){var Ce=Fe.config,Ie=Ce.pasteFilterStyle,_e=Ce.pasteIgnoreImg,At=re.getPasteHtml(ze,Ie,_e);if(At)return!0;var qe=re.getPasteText(ze);return!!qe}function ue(Fe,ze){for(var Ce,Ie=((Ce=ze.clipboardData)===null||Ce===void 0?void 0:Ce.types)||[],_e=0;_e +
      +
      + `);return At.hide(),_e.append(At),At}function Fe(Ie,_e,At){var qe=Ie.getBoundingClientRect(),xe=At.getBoundingClientRect(),Ve=xe.width.toFixed(2),he=xe.height.toFixed(2);(0,oe.default)(_e).call(_e,".w-e-img-drag-show-size").text(Ve+"px * "+he+"px"),pe(_e,(0,re.default)(Ve),(0,re.default)(he),xe.left-qe.left,xe.top-qe.top),_e.show()}function ze(Ie){var _e=Ie.$textContainerElem,At,qe=de(Ie,_e);function xe(Oe,$e){Oe.on("click",function(Ne){Ne.stopPropagation()}),Oe.on("mousedown",".w-e-img-drag-rb",function(Ne){if(Ne.preventDefault(),!At)return;var Ue=Ne.clientX,kt=Ne.clientY,Et=$e.getBoundingClientRect(),Pt=At.getBoundingClientRect(),Lt=Pt.width,vn=Pt.height,hn=Pt.left-Et.left,Dt=Pt.top-Et.top,jt=Lt/vn,bn=Lt,Sn=vn,Cn=le.default(document);function On(){Cn.off("mousemove",En),Cn.off("mouseup",An)}function En(In){In.stopPropagation(),In.preventDefault(),bn=Lt+(In.clientX-Ue),Sn=vn+(In.clientY-kt),bn/Sn!=jt&&(Sn=bn/jt),bn=(0,re.default)(bn.toFixed(2)),Sn=(0,re.default)(Sn.toFixed(2)),(0,oe.default)(Oe).call(Oe,".w-e-img-drag-show-size").text(bn.toFixed(2).replace(".00","")+"px * "+Sn.toFixed(2).replace(".00","")+"px"),pe(Oe,bn,Sn,hn,Dt)}Cn.on("mousemove",En);function An(){At.attr("width",bn+""),At.attr("height",Sn+"");var In=At.getBoundingClientRect();pe(Oe,bn,Sn,In.left-Et.left,In.top-Et.top),On()}Cn.on("mouseup",An),Cn.on("mouseleave",On)})}function Ve(Oe){if(ue.UA.isIE())return!1;Oe&&(At=Oe,Fe(_e,qe,At))}function he(){(0,oe.default)(_e).call(_e,".w-e-img-drag-mask").hide()}return xe(qe,_e),le.default(document).on("click",he),Ie.beforeDestroy(function(){le.default(document).off("click",he)}),{showDrag:Ve,hideDrag:he}}g.createShowHideFn=ze;function Ce(Ie){var _e=ze(Ie),At=_e.showDrag,qe=_e.hideDrag;Ie.txt.eventHooks.imgClickEvents.push(At),Ie.txt.eventHooks.textScrollEvents.push(qe),Ie.txt.eventHooks.keyupEvents.push(qe),Ie.txt.eventHooks.toolbarClickEvents.push(qe),Ie.txt.eventHooks.menuClickEvents.push(qe),Ie.txt.eventHooks.changeEvents.push(qe)}g.default=Ce},function(r,g,$){r.exports=$(356)},function(r,g,$){var L=$(357);r.exports=L},function(r,g,$){$(358);var L=$(9);r.exports=L.parseFloat},function(r,g,$){var L=$(5),k=$(359);L({global:!0,forced:parseFloat!=k},{parseFloat:k})},function(r,g,$){var L=$(8),k=$(90).trim,oe=$(68),re=L.parseFloat,ae=1/re(oe+"-0")!==-1/0;r.exports=ae?function(ue){var pe=k(String(ue)),de=re(pe);return de===0&&pe.charAt(0)=="-"?-0:de}:re},function(r,g,$){var L=$(20),k=$(361);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21);g=L(!1),g.push([r.i,`.w-e-text-container { + overflow: hidden; +} +.w-e-img-drag-mask { + position: absolute; + z-index: 1; + border: 1px dashed #ccc; + box-sizing: border-box; +} +.w-e-img-drag-mask .w-e-img-drag-rb { + position: absolute; + right: -5px; + bottom: -5px; + width: 16px; + height: 16px; + border-radius: 50%; + background: #ccc; + cursor: se-resize; +} +.w-e-img-drag-mask .w-e-img-drag-show-size { + min-width: 110px; + height: 22px; + line-height: 22px; + font-size: 14px; + color: #999; + position: absolute; + left: 0; + top: 0; + background-color: #999; + color: #fff; + border-radius: 2px; + padding: 0 5px; +} +`,""]),r.exports=g},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.createShowHideFn=void 0;var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(39));function le(pe){var de,Fe=function(_e,At){return At===void 0&&(At=""),pe.i18next.t(At+_e)};function ze(Ie){var _e=[{$elem:re.default(""),onClick:function(qe,xe){return qe.selection.createRangeByElem(xe),qe.selection.restoreSelection(),qe.cmd.do("delete"),!0}},{$elem:re.default("30%"),onClick:function(qe,xe){return xe.attr("width","30%"),xe.removeAttr("height"),!0}},{$elem:re.default("50%"),onClick:function(qe,xe){return xe.attr("width","50%"),xe.removeAttr("height"),!0}},{$elem:re.default("100%"),onClick:function(qe,xe){return xe.attr("width","100%"),xe.removeAttr("height"),!0}}];_e.push({$elem:re.default(""+Fe("\u91CD\u7F6E")+""),onClick:function(qe,xe){return xe.removeAttr("width"),xe.removeAttr("height"),!0}}),Ie.attr("data-href")&&_e.push({$elem:re.default(""+Fe("\u67E5\u770B\u94FE\u63A5")+""),onClick:function(qe,xe){var Ve=xe.attr("data-href");return Ve&&(Ve=decodeURIComponent(Ve),window.open(Ve,"_target")),!0}}),de=new ae.default(pe,Ie,_e),de.create()}function Ce(){de&&(de.remove(),de=null)}return{showImgTooltip:ze,hideImgTooltip:Ce}}g.createShowHideFn=le;function ue(pe){var de=le(pe),Fe=de.showImgTooltip,ze=de.hideImgTooltip;pe.txt.eventHooks.imgClickEvents.push(Fe),pe.txt.eventHooks.clickEvents.push(ze),pe.txt.eventHooks.keyupEvents.push(ze),pe.txt.eventHooks.toolbarClickEvents.push(ze),pe.txt.eventHooks.menuClickEvents.push(ze),pe.txt.eventHooks.textScrollEvents.push(ze),pe.txt.eventHooks.imgDragBarMouseDownEvents.push(ze),pe.txt.eventHooks.changeEvents.push(ze)}g.default=ue},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});function oe(re){var ae=re.txt,le=re.selection,ue=ae.eventHooks.keydownEvents;ue.push(function(pe){var de=le.getSelectionContainerElem(),Fe=le.getRange();if(!(!Fe||!de||pe.keyCode!==8||!le.isSelectionEmpty())){var ze=Fe.startContainer,Ce=Fe.startOffset,Ie=null;if(Ce===0)for(;ze!==de.elems[0]&&de.elems[0].contains(ze)&&ze.parentNode&&!Ie;){if(ze.previousSibling){Ie=ze.previousSibling;break}ze=ze.parentNode}else ze.nodeType!==3&&(Ie=ze.childNodes[Ce-1]);if(!!Ie){for(var _e=Ie;_e.childNodes.length;)_e=_e.childNodes[_e.childNodes.length-1];_e instanceof HTMLElement&&_e.tagName==="IMG"&&(_e.remove(),pe.preventDefault())}}})}g.default=oe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(26)),re=L($(17));(0,k.default)(g,"__esModule",{value:!0});var ae=$(2),le=ae.__importDefault($(3)),ue=$(6),pe=ae.__importDefault($(97));function de(Fe){var ze,Ce=Fe.config,Ie=new pe.default(Fe),_e=ue.getRandom("up-trigger-id"),At=ue.getRandom("up-file-id"),qe=ue.getRandom("input-link-url"),xe=ue.getRandom("input-link-url-alt"),Ve=ue.getRandom("input-link-url-href"),he=ue.getRandom("btn-link"),Oe="menus.panelMenus.image.",$e=function(jt,bn){return bn===void 0&&(bn=Oe),Fe.i18next.t(bn+jt)};function Ne(Dt,jt,bn){var Sn=Ce.linkImgCheck(Dt);return Sn===!0?!0:(typeof Sn=="string"&&Ce.customAlert(Sn,"error"),!1)}var Ue=Ce.uploadImgMaxLength===1?"":'multiple="multiple"',kt=(0,oe.default)(ze=Ce.uploadImgAccept).call(ze,function(Dt){return"image/"+Dt}).join(","),Et=function(jt,bn,Sn){return'
      +
      + +
      +
      + +
      +
      `},Pt=[{selector:"#"+_e,type:"click",fn:function(){var jt=Ce.uploadImgFromMedia;if(jt&&typeof jt=="function")return jt(),!0;var bn=le.default("#"+At),Sn=bn.elems[0];if(Sn)Sn.click();else return!0}},{selector:"#"+At,type:"change",fn:function(){var jt=le.default("#"+At),bn=jt.elems[0];if(!bn)return!0;var Sn=bn.files;return Sn?.length&&Ie.uploadImg(Sn),bn&&(bn.value=""),!0}}],Lt=[`'];Ce.showLinkImgAlt&&Lt.push(` + '),Ce.showLinkImgHref&&Lt.push(` + ');var vn=[{title:$e("\u4E0A\u4F20\u56FE\u7247"),tpl:Et("w-e-up-img-container","w-e-icon-upload2",""),events:Pt},{title:$e("\u7F51\u7EDC\u56FE\u7247"),tpl:`
      + `+Lt.join("")+` +
      + +
      +
      `,events:[{selector:"#"+he,type:"click",fn:function(){var jt,bn=le.default("#"+qe),Sn=(0,re.default)(jt=bn.val()).call(jt);if(!!Sn){var Cn;if(Ce.showLinkImgAlt){var On;Cn=(0,re.default)(On=le.default("#"+xe).val()).call(On)}var En;if(Ce.showLinkImgHref){var An;En=(0,re.default)(An=le.default("#"+Ve).val()).call(An)}if(!!Ne(Sn))return Ie.insertImg(Sn,Cn,En),!0}},bindEnter:!0}]}],hn={width:300,height:0,tabs:[],onlyUploadConf:{$elem:le.default(Et("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:Pt}};return window.FileReader&&(Ce.uploadImgShowBase64||Ce.uploadImgServer||Ce.customUploadImg||Ce.uploadImgFromMedia)&&hn.tabs.push(vn[0]),Ce.showLinkImg&&(hn.tabs.push(vn[1]),hn.onlyUploadConf=void 0),hn}g.default=de},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=re.__importDefault($(24)),ue=re.__importDefault($(366)),pe=function(de){re.__extends(Fe,de);function Fe(ze){var Ce=this,Ie=ae.default(`
      + +
      `),_e={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:ae.default(`

      + + `+ze.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+` +

      `),value:"increase"},{$elem:ae.default(`

      + + `+ze.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+` +

      `),value:"decrease"}],clickHandler:function(qe){Ce.command(qe)}};return Ce=de.call(this,Ie,ze,_e)||this,Ce}return Fe.prototype.command=function(ze){var Ce=this.editor,Ie=Ce.selection.getSelectionContainerElem();if(Ie&&Ce.$textElem.equal(Ie)){var _e=Ce.selection.getSelectionRangeTopNodes();_e.length>0&&(0,oe.default)(_e).call(_e,function(At){ue.default(ae.default(At),ze,Ce)})}else Ie&&Ie.length>0&&(0,oe.default)(Ie).call(Ie,function(At){ue.default(ae.default(At),ze,Ce)});Ce.selection.restoreSelection(),this.tryChangeActive()},Fe.prototype.tryChangeActive=function(){var ze=this.editor,Ce=ze.selection.getSelectionStartElem(),Ie=ae.default(Ce).getNodeTop(ze);Ie.length<=0||(Ie.elems[0].style.paddingLeft!=""?this.active():this.unActive())},Fe}(le.default);g.default=pe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(45)),re=L($(17));(0,k.default)(g,"__esModule",{value:!0});var ae=$(2),le=ae.__importDefault($(367)),ue=ae.__importDefault($(368)),pe=/^(\d+)(\w+)$/,de=/^(\d+)%$/;function Fe(Ce){var Ie=Ce.config.indentation;if(typeof Ie=="string"){if(pe.test(Ie)){var _e,At=(0,oe.default)(_e=(0,re.default)(Ie).call(Ie).match(pe)).call(_e,1,3),qe=At[0],xe=At[1];return{value:Number(qe),unit:xe}}else if(de.test(Ie))return{value:Number((0,re.default)(Ie).call(Ie).match(de)[1]),unit:"%"}}else if(Ie.value!==void 0&&Ie.unit)return Ie;return{value:2,unit:"em"}}function ze(Ce,Ie,_e){var At=Ce.getNodeTop(_e),qe=/^(P|H[0-9]*)$/;qe.test(At.getNodeName())&&(Ie==="increase"?le.default(At,Fe(_e)):Ie==="decrease"&&ue.default(At,Fe(_e)))}g.default=ze},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(45));(0,k.default)(g,"__esModule",{value:!0});function re(ae,le){var ue=ae.elems[0];if(ue.style.paddingLeft==="")ae.css("padding-left",le.value+le.unit);else{var pe=ue.style.paddingLeft,de=(0,oe.default)(pe).call(pe,0,pe.length-le.unit.length),Fe=Number(de)+le.value;ae.css("padding-left",""+Fe+le.unit)}}g.default=re},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(45));(0,k.default)(g,"__esModule",{value:!0});function re(ae,le){var ue=ae.elems[0];if(ue.style.paddingLeft!==""){var pe=ue.style.paddingLeft,de=(0,oe.default)(pe).call(pe,0,pe.length-le.unit.length),Fe=Number(de)-le.value;Fe>0?ae.css("padding-left",""+Fe+le.unit):ae.css("padding-left","")}}g.default=re},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(38)),le=oe.__importDefault($(33)),ue=oe.__importDefault($(370)),pe=function(de){oe.__extends(Fe,de);function Fe(ze){var Ce=this,Ie=re.default(`

      + +
      `);return Ce=de.call(this,Ie,ze)||this,Ce}return Fe.prototype.createPanel=function(){var ze=ue.default(this.editor),Ce=new le.default(this,ze);Ce.create()},Fe.prototype.clickHandler=function(){this.createPanel()},Fe.prototype.tryChangeActive=function(){},Fe}(ae.default);g.default=pe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(26)),re=L($(70)),ae=L($(17));(0,k.default)(g,"__esModule",{value:!0});var le=$(2),ue=le.__importDefault($(3));function pe(de){var Fe=de.config.emotions;function ze(_e){var At=[];if(_e.type=="image"){var qe;At=(0,oe.default)(qe=_e.content).call(qe,function(Ve){return typeof Ve=="string"?"":' + ['+Ve.alt+`] + `}),At=(0,re.default)(At).call(At,function(Ve){return Ve!==""})}else{var xe;At=(0,oe.default)(xe=_e.content).call(xe,function(Ve){return''+Ve+""})}return At.join("").replace(/ /g,"")}var Ce=(0,oe.default)(Fe).call(Fe,function(_e){return{title:de.i18next.t("menus.panelMenus.emoticon."+_e.title),tpl:"
      "+ze(_e)+"
      ",events:[{selector:".eleImg",type:"click",fn:function(qe){var xe=ue.default(qe.target),Ve=xe.getNodeName(),he;if(Ve==="IMG"){var Oe;he=(0,ae.default)(Oe=xe.parent().html()).call(Oe)}else he=""+xe.html()+"";return de.cmd.do("insertHTML",he),!0}}]}}),Ie={width:300,height:230,tabs:Ce};return Ie}g.default=pe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.createListHandle=g.ClassType=void 0;var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(372)),le=oe.__importDefault($(374)),ue=oe.__importDefault($(375)),pe=oe.__importDefault($(376)),de=oe.__importDefault($(377)),Fe;(function(_e){_e.Wrap="WrapListHandle",_e.Join="JoinListHandle",_e.StartJoin="StartJoinListHandle",_e.EndJoin="EndJoinListHandle",_e.Other="OtherListHandle"})(Fe=g.ClassType||(g.ClassType={}));var ze={WrapListHandle:ae.default,JoinListHandle:le.default,StartJoinListHandle:ue.default,EndJoinListHandle:pe.default,OtherListHandle:de.default};function Ce(_e,At,qe){if(_e===Fe.Other&&qe===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return _e!==Fe.Other?new ze[_e](At):new ze[_e](At,qe)}g.createListHandle=Ce;var Ie=function(){function _e(At){this.handle=At,this.handle.exec()}return _e.prototype.getSelectionRangeElem=function(){return re.default(this.handle.selectionRangeElem.get())},_e}();g.default=Ie},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=$(58),ue=$(47),pe=function(de){re.__extends(Fe,de);function Fe(ze){return de.call(this,ze)||this}return Fe.prototype.exec=function(){var ze=this.options,Ce=ze.listType,Ie=ze.listTarget,_e=ze.$selectionElem,At=ze.$startElem,qe=ze.$endElem,xe,Ve=[],he=_e?.getNodeName(),Oe=At.prior,$e=qe.prior;if(!At.prior&&!qe.prior||!Oe?.prev().length&&!$e?.next().length){var Ne;(0,oe.default)(Ne=_e?.children()).call(Ne,function(hn){Ve.push(ae.default(hn))}),he===Ce?xe=ue.createElementFragment(Ve,ue.createDocumentFragment(),"p"):(xe=ue.createElement(Ie),(0,oe.default)(Ve).call(Ve,function(hn){xe.appendChild(hn.elems[0])})),this.selectionRangeElem.set(xe),ue.insertBefore(_e,xe,_e.elems[0]),_e.remove()}else{for(var Ue=Oe;Ue.length;)Ve.push(Ue),$e?.equal(Ue)?Ue=ae.default(void 0):Ue=Ue.next();var kt=Oe.prev(),Et=$e.next();if(he===Ce?xe=ue.createElementFragment(Ve,ue.createDocumentFragment(),"p"):(xe=ue.createElement(Ie),(0,oe.default)(Ve).call(Ve,function(hn){xe.append(hn.elems[0])})),kt.length&&Et.length){for(var Pt=[];Et.length;)Pt.push(Et),Et=Et.next();var Lt=ue.createElement(he);(0,oe.default)(Pt).call(Pt,function(hn){Lt.append(hn.elems[0])}),ae.default(Lt).insertAfter(_e),this.selectionRangeElem.set(xe);var vn=_e.next();vn.length?ue.insertBefore(_e,xe,vn.elems[0]):_e.parent().elems[0].append(xe)}else if(!kt.length)this.selectionRangeElem.set(xe),ue.insertBefore(_e,xe,_e.elems[0]);else{this.selectionRangeElem.set(xe);var vn=_e.next();vn.length?ue.insertBefore(_e,xe,vn.elems[0]):_e.parent().elems[0].append(xe)}}},Fe}(le.ListHandle);g.default=pe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=function(){function ae(){this._element=null}return ae.prototype.set=function(le){if(le instanceof DocumentFragment){var ue,pe=[];(0,oe.default)(ue=le.childNodes).call(ue,function(de){pe.push(de)}),le=pe}this._element=le},ae.prototype.get=function(){return this._element},ae.prototype.clear=function(){this._element=null},ae}();g.default=re},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=$(58),ue=$(47),pe=function(de){re.__extends(Fe,de);function Fe(ze){return de.call(this,ze)||this}return Fe.prototype.exec=function(){var ze,Ce,Ie,_e,At,qe,xe,Ve=this.options,he=Ve.editor,Oe=Ve.listType,$e=Ve.listTarget,Ne=Ve.$startElem,Ue=Ve.$endElem,kt,Et=he.selection.getSelectionRangeTopNodes(),Pt=Ne?.getNodeName(),Lt=Ue?.getNodeName();if(Pt===Lt)if(Et.length>2)if(Et.shift(),Et.pop(),kt=ue.createElementFragment(ue.filterSelectionNodes(Et),ue.createDocumentFragment()),Pt===Oe)(ze=Ue.children())===null||ze===void 0||(0,oe.default)(ze).call(ze,function(In){kt.append(In)}),Ue.remove(),this.selectionRangeElem.set(kt),Ne.elems[0].append(kt);else{for(var vn=document.createDocumentFragment(),hn=document.createDocumentFragment(),Dt=ue.getStartPoint(Ne);Dt.length;){var jt=Dt.elems[0];Dt=Dt.next(),vn.append(jt)}for(var bn=ue.getEndPoint(Ue),Sn=[];bn.length;)Sn.unshift(bn.elems[0]),bn=bn.prev();(0,oe.default)(Sn).call(Sn,function(In){hn.append(In)});var Cn=ue.createElement($e);Cn.append(vn),Cn.append(kt),Cn.append(hn),kt=Cn,this.selectionRangeElem.set(kt),ae.default(Cn).insertAfter(Ne),!(!((Ce=Ne.children())===null||Ce===void 0)&&Ce.length)&&Ne.remove(),!(!((Ie=Ue.children())===null||Ie===void 0)&&Ie.length)&&Ue.remove()}else{Et.length=0;for(var Dt=ue.getStartPoint(Ne);Dt.length;)Et.push(Dt),Dt=Dt.next();for(var bn=ue.getEndPoint(Ue),Sn=[];bn.length;)Sn.unshift(bn),bn=bn.prev();Et.push.apply(Et,Sn),Pt===Oe?(kt=ue.createElementFragment(Et,ue.createDocumentFragment(),"p"),this.selectionRangeElem.set(kt),ue.insertBefore(Ne,kt,Ue.elems[0])):(kt=ue.createElement($e),(0,oe.default)(Et).call(Et,function(Dn){kt.append(Dn.elems[0])}),this.selectionRangeElem.set(kt),ae.default(kt).insertAfter(Ne)),!(!((_e=Ne.children())===null||_e===void 0)&&_e.length)&&Ue.remove(),!(!((At=Ue.children())===null||At===void 0)&&At.length)&&Ue.remove()}else{for(var On=[],bn=ue.getEndPoint(Ue);bn.length;)On.unshift(bn),bn=bn.prev();for(var En=[],Dt=ue.getStartPoint(Ne);Dt.length;)En.push(Dt),Dt=Dt.next();if(kt=ue.createDocumentFragment(),Et.shift(),Et.pop(),(0,oe.default)(En).call(En,function(Pn){return kt.append(Pn.elems[0])}),kt=ue.createElementFragment(ue.filterSelectionNodes(Et),kt),(0,oe.default)(On).call(On,function(Pn){return kt.append(Pn.elems[0])}),this.selectionRangeElem.set(kt),Pt===Oe)Ne.elems[0].append(kt),!(!((qe=Ue.children())===null||qe===void 0)&&qe.length)&&Ue.remove();else if(!((xe=Ue.children())===null||xe===void 0)&&xe.length){var An=Ue.children();ue.insertBefore(An,kt,An.elems[0])}else Ue.elems[0].append(kt)}},Fe}(le.ListHandle);g.default=pe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=$(58),ue=$(47),pe=function(de){re.__extends(Fe,de);function Fe(ze){return de.call(this,ze)||this}return Fe.prototype.exec=function(){var ze,Ce=this.options,Ie=Ce.editor,_e=Ce.listType,At=Ce.listTarget,qe=Ce.$startElem,xe,Ve=Ie.selection.getSelectionRangeTopNodes(),he=qe?.getNodeName();Ve.shift();for(var Oe=[],$e=ue.getStartPoint(qe);$e.length;)Oe.push($e),$e=$e.next();he===_e?(xe=ue.createDocumentFragment(),(0,oe.default)(Oe).call(Oe,function(Ne){return xe.append(Ne.elems[0])}),xe=ue.createElementFragment(ue.filterSelectionNodes(Ve),xe),this.selectionRangeElem.set(xe),qe.elems[0].append(xe)):(xe=ue.createElement(At),(0,oe.default)(Oe).call(Oe,function(Ne){return xe.append(Ne.elems[0])}),xe=ue.createElementFragment(ue.filterSelectionNodes(Ve),xe),this.selectionRangeElem.set(xe),ae.default(xe).insertAfter(qe),!(!((ze=qe.children())===null||ze===void 0)&&ze.length)&&qe.remove())},Fe}(le.ListHandle);g.default=pe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=$(58),ue=$(47),pe=function(de){re.__extends(Fe,de);function Fe(ze){return de.call(this,ze)||this}return Fe.prototype.exec=function(){var ze,Ce,Ie=this.options,_e=Ie.editor,At=Ie.listType,qe=Ie.listTarget,xe=Ie.$endElem,Ve,he=_e.selection.getSelectionRangeTopNodes(),Oe=xe?.getNodeName();he.pop();for(var $e=[],Ne=ue.getEndPoint(xe);Ne.length;)$e.unshift(Ne),Ne=Ne.prev();if(Oe===At)if(Ve=ue.createElementFragment(ue.filterSelectionNodes(he),ue.createDocumentFragment()),(0,oe.default)($e).call($e,function(Et){return Ve.append(Et.elems[0])}),this.selectionRangeElem.set(Ve),!((ze=xe.children())===null||ze===void 0)&&ze.length){var Ue=xe.children();ue.insertBefore(Ue,Ve,Ue.elems[0])}else xe.elems[0].append(Ve);else{var kt=ue.filterSelectionNodes(he);kt.push.apply(kt,$e),Ve=ue.createElementFragment(kt,ue.createElement(qe)),this.selectionRangeElem.set(Ve),ae.default(Ve).insertBefore(xe),!(!((Ce=xe.children())===null||Ce===void 0)&&Ce.length)&&xe.remove()}},Fe}(le.ListHandle);g.default=pe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=$(58),ae=$(47),le=function(ue){oe.__extends(pe,ue);function pe(de,Fe){var ze=ue.call(this,de)||this;return ze.range=Fe,ze}return pe.prototype.exec=function(){var de=this.options,Fe=de.editor,ze=de.listTarget,Ce=Fe.selection.getSelectionRangeTopNodes(),Ie=ae.createElementFragment(ae.filterSelectionNodes(Ce),ae.createElement(ze));this.selectionRangeElem.set(Ie),this.range.insertNode(Ie)},pe}(re.ListHandle);g.default=le},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4)),re=L($(27));(0,k.default)(g,"__esModule",{value:!0});var ae=$(2),le=ae.__importDefault($(24)),ue=ae.__importDefault($(3)),pe=ae.__importDefault($(379)),de=function(Fe){ae.__extends(ze,Fe);function ze(Ce){var Ie=this,_e=ue.default(`
      + +
      `),At=new pe.default(Ce,Ce.config.lineHeights),qe={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:At.getItemList(),clickHandler:function(Ve){Ce.selection.saveRange(),Ie.command(Ve)}};return Ie=Fe.call(this,_e,Ce,qe)||this,Ie}return ze.prototype.command=function(Ce){var Ie=this.editor;Ie.selection.restoreSelection();var _e=ue.default(Ie.selection.getSelectionContainerElem());if(!!_e.elems.length){if(_e&&Ie.$textElem.equal(_e)){for(var At=!1,qe=ue.default(Ie.selection.getSelectionStartElem()).elems[0],xe=ue.default(Ie.selection.getSelectionEndElem()).elems[0],Ve=this.getDom(qe),he=this.getDom(xe),Oe=_e.elems[0].children,$e=0;$e"+pe.i18next.t("\u9ED8\u8BA4")+""),value:""}],(0,oe.default)(de).call(de,function(ze){Fe.itemList.push({$elem:ae.default(""+ze+""),value:ze})})}return ue.prototype.getItemList=function(){return this.itemList},ue}();g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(23)),le=function(ue){oe.__extends(pe,ue);function pe(de){var Fe=this,ze=re.default(`
      + +
      `);return Fe=ue.call(this,ze,de)||this,Fe}return pe.prototype.clickHandler=function(){var de=this.editor;de.history.revoke();var Fe=de.$textElem.children();if(!!Fe?.length){var ze=Fe.last();de.selection.createRangeByElem(ze,!1,!0),de.selection.restoreSelection()}},pe.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},pe}(ae.default);g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(23)),le=function(ue){oe.__extends(pe,ue);function pe(de){var Fe=this,ze=re.default(`
      + +
      `);return Fe=ue.call(this,ze,de)||this,Fe}return pe.prototype.clickHandler=function(){var de=this.editor;de.history.restore();var Fe=de.$textElem.children();if(!!Fe?.length){var ze=Fe.last();de.selection.createRangeByElem(ze,!1,!0),de.selection.restoreSelection()}},pe.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},pe}(ae.default);g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(38)),ae=oe.__importDefault($(3)),le=oe.__importDefault($(383)),ue=oe.__importDefault($(33)),pe=oe.__importDefault($(392)),de=function(Fe){oe.__extends(ze,Fe);function ze(Ce){var Ie=this,_e=ae.default('
      ');return Ie=Fe.call(this,_e,Ce)||this,pe.default(Ce),Ie}return ze.prototype.clickHandler=function(){this.createPanel()},ze.prototype.createPanel=function(){var Ce=le.default(this.editor),Ie=new ue.default(this,Ce);Ie.create()},ze.prototype.tryChangeActive=function(){},ze}(re.default);g.default=de},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(384));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=$(6),le=re.__importDefault($(3));$(389);var ue=re.__importDefault($(391));function pe(Fe){return Fe>0&&(0,oe.default)(Fe)}function de(Fe){var ze=new ue.default(Fe),Ce=ae.getRandom("w-col-id"),Ie=ae.getRandom("w-row-id"),_e=ae.getRandom("btn-link"),At="menus.panelMenus.table.",qe=function(Oe){return Fe.i18next.t(Oe)},xe=[{title:qe(At+"\u63D2\u5165\u8868\u683C"),tpl:`
      +
      + `+qe("\u521B\u5EFA")+` + + `+qe(At+"\u884C")+` + + `+(qe(At+"\u5217")+qe(At+"\u7684")+qe(At+"\u8868\u683C"))+` +
      +
      + +
      +
      `,events:[{selector:"#"+_e,type:"click",fn:function(){var Oe=Number(le.default("#"+Ce).val()),$e=Number(le.default("#"+Ie).val());return pe($e)&&pe(Oe)?(ze.createAction($e,Oe),!0):(Fe.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570","warning"),!1)},bindEnter:!0}]}],Ve={width:330,height:0,tabs:[]};return Ve.tabs.push(xe[0]),Ve}g.default=de},function(r,g,$){r.exports=$(385)},function(r,g,$){var L=$(386);r.exports=L},function(r,g,$){$(387);var L=$(9);r.exports=L.Number.isInteger},function(r,g,$){var L=$(5),k=$(388);L({target:"Number",stat:!0},{isInteger:k})},function(r,g,$){var L=$(13),k=Math.floor;r.exports=function(re){return!L(re)&&isFinite(re)&&k(re)===re}},function(r,g,$){var L=$(20),k=$(390);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21);g=L(!1),g.push([r.i,`.w-e-table { + display: flex; +} +.w-e-table .w-e-table-input { + width: 40px; + text-align: center!important; + margin: 0 5px; +} +`,""]),r.exports=g},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=$(7),ae=oe.__importDefault($(3)),le=function(){function ue(pe){this.editor=pe}return ue.prototype.createAction=function(pe,de){var Fe=this.editor,ze=ae.default(Fe.selection.getSelectionContainerElem()),Ce=ae.default(ze.elems[0]).parentUntilEditor("UL",Fe),Ie=ae.default(ze.elems[0]).parentUntilEditor("OL",Fe);if(!(Ce||Ie)){var _e=this.createTableHtml(pe,de);Fe.cmd.do("insertHTML",_e)}},ue.prototype.createTableHtml=function(pe,de){for(var Fe="",ze="",Ce=0;Ce":ze=ze+"";Fe=Fe+""+ze+""}var _e=''+Fe+("
      "+re.EMPTY_P);return _e},ue}();g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(393)),ae=$(400);function le(ue){re.default(ue),ae.bindEventKeyboardEvent(ue),ae.bindClickEvent(ue)}g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(39)),le=oe.__importDefault($(394)),ue=oe.__importDefault($(399)),pe=$(7);function de(Ie){var _e;function At(xe){var Ve=new ue.default(Ie),he="menus.panelMenus.table.",Oe=function(Ue,kt){return kt===void 0&&(kt=he),Ie.i18next.t(kt+Ue)},$e=[{$elem:re.default(""+Oe("\u5220\u9664\u8868\u683C")+""),onClick:function(Ue,kt){return Ue.selection.createRangeByElem(kt),Ue.selection.restoreSelection(),Ue.cmd.do("insertHTML",pe.EMPTY_P),!0}},{$elem:re.default(""+Oe("\u6DFB\u52A0\u884C")+""),onClick:function(Ue,kt){var Et=Fe(Ue);if(Et)return!0;var Pt=re.default(Ue.selection.getSelectionStartElem()),Lt=Ve.getRowNode(Pt.elems[0]);if(!Lt)return!0;var vn=Number(Ve.getCurrentRowIndex(kt.elems[0],Lt)),hn=Ve.getTableHtml(kt.elems[0]),Dt=Ve.getTableHtml(le.default.ProcessingRow(re.default(hn),vn).elems[0]);return Dt=Ce(kt,Dt),Ue.selection.createRangeByElem(kt),Ue.selection.restoreSelection(),Ue.cmd.do("insertHTML",Dt),!0}},{$elem:re.default(""+Oe("\u5220\u9664\u884C")+""),onClick:function(Ue,kt){var Et=Fe(Ue);if(Et)return!0;var Pt=re.default(Ue.selection.getSelectionStartElem()),Lt=Ve.getRowNode(Pt.elems[0]);if(!Lt)return!0;var vn=Number(Ve.getCurrentRowIndex(kt.elems[0],Lt)),hn=Ve.getTableHtml(kt.elems[0]),Dt=le.default.DeleteRow(re.default(hn),vn).elems[0].children[0].children.length,jt="";return Ue.selection.createRangeByElem(kt),Ue.selection.restoreSelection(),Dt===0?jt=pe.EMPTY_P:jt=Ve.getTableHtml(le.default.DeleteRow(re.default(hn),vn).elems[0]),jt=Ce(kt,jt),Ue.cmd.do("insertHTML",jt),!0}},{$elem:re.default(""+Oe("\u6DFB\u52A0\u5217")+""),onClick:function(Ue,kt){var Et=Fe(Ue);if(Et)return!0;var Pt=re.default(Ue.selection.getSelectionStartElem()),Lt=Ve.getCurrentColIndex(Pt.elems[0]),vn=Ve.getTableHtml(kt.elems[0]),hn=Ve.getTableHtml(le.default.ProcessingCol(re.default(vn),Lt).elems[0]);return hn=Ce(kt,hn),Ue.selection.createRangeByElem(kt),Ue.selection.restoreSelection(),Ue.cmd.do("insertHTML",hn),!0}},{$elem:re.default(""+Oe("\u5220\u9664\u5217")+""),onClick:function(Ue,kt){var Et=Fe(Ue);if(Et)return!0;var Pt=re.default(Ue.selection.getSelectionStartElem()),Lt=Ve.getCurrentColIndex(Pt.elems[0]),vn=Ve.getTableHtml(kt.elems[0]),hn=le.default.DeleteCol(re.default(vn),Lt),Dt=hn.elems[0].children[0].children[0].children.length,jt="";return Ue.selection.createRangeByElem(kt),Ue.selection.restoreSelection(),Dt===0?jt=pe.EMPTY_P:jt=Ve.getTableHtml(hn.elems[0]),jt=Ce(kt,jt),Ue.cmd.do("insertHTML",jt),!0}},{$elem:re.default(""+Oe("\u8BBE\u7F6E\u8868\u5934")+""),onClick:function(Ue,kt){var Et=Fe(Ue);if(Et)return!0;var Pt=re.default(Ue.selection.getSelectionStartElem()),Lt=Ve.getRowNode(Pt.elems[0]);if(!Lt)return!0;var vn=Number(Ve.getCurrentRowIndex(kt.elems[0],Lt));vn!==0&&(vn=0);var hn=Ve.getTableHtml(kt.elems[0]),Dt=Ve.getTableHtml(le.default.setTheHeader(re.default(hn),vn,"th").elems[0]);return Dt=Ce(kt,Dt),Ue.selection.createRangeByElem(kt),Ue.selection.restoreSelection(),Ue.cmd.do("insertHTML",Dt),!0}},{$elem:re.default(""+Oe("\u53D6\u6D88\u8868\u5934")+""),onClick:function(Ue,kt){var Et=re.default(Ue.selection.getSelectionStartElem()),Pt=Ve.getRowNode(Et.elems[0]);if(!Pt)return!0;var Lt=Number(Ve.getCurrentRowIndex(kt.elems[0],Pt));Lt!==0&&(Lt=0);var vn=Ve.getTableHtml(kt.elems[0]),hn=Ve.getTableHtml(le.default.setTheHeader(re.default(vn),Lt,"td").elems[0]);return hn=Ce(kt,hn),Ue.selection.createRangeByElem(kt),Ue.selection.restoreSelection(),Ue.cmd.do("insertHTML",hn),!0}}];_e=new ae.default(Ie,xe,$e),_e.create()}function qe(){_e&&(_e.remove(),_e=null)}return{showTableTooltip:At,hideTableTooltip:qe}}function Fe(Ie){var _e=Ie.selection.getSelectionStartElem(),At=Ie.selection.getSelectionEndElem();return _e?.elems[0]!==At?.elems[0]}function ze(Ie){var _e=de(Ie),At=_e.showTableTooltip,qe=_e.hideTableTooltip;Ie.txt.eventHooks.tableClickEvents.push(At),Ie.txt.eventHooks.clickEvents.push(qe),Ie.txt.eventHooks.keyupEvents.push(qe),Ie.txt.eventHooks.toolbarClickEvents.push(qe),Ie.txt.eventHooks.menuClickEvents.push(qe),Ie.txt.eventHooks.textScrollEvents.push(qe)}g.default=ze;function Ce(Ie,_e){var At=Ie.elems[0].nextSibling;return(!At||At.innerHTML==="
      ")&&(_e+=""+pe.EMPTY_P),_e}},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(45)),re=L($(91)),ae=L($(4)),le=L($(138));(0,k.default)(g,"__esModule",{value:!0});var ue=$(2),pe=ue.__importDefault($(3));function de(qe,xe){for(var Ve=At(qe),he=(0,oe.default)(Array.prototype).apply(Ve.children),Oe=he[0].children.length,$e=document.createElement("tr"),Ne=0;Ne1?arguments[1]:void 0,_e=Ie!==void 0,At=ue(Fe),qe=0,xe,Ve,he,Oe,$e,Ne;if(_e&&(Ie=L(Ie,Ce>2?arguments[2]:void 0,2)),At!=null&&!(ze==Array&&re(At)))for(Oe=At.call(Fe),$e=Oe.next,Ve=new ze;!(he=$e.call(Oe)).done;qe++)Ne=_e?oe(Oe,Ie,[he.value,qe],!0):he.value,le(Ve,qe,Ne);else for(xe=ae(Fe.length),Ve=new ze(xe);xe>qe;qe++)Ne=_e?Ie(Fe[qe],qe):Fe[qe],le(Ve,qe,Ne);return Ve.length=qe,Ve}},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4)),re=L($(138));(0,k.default)(g,"__esModule",{value:!0});var ae=$(2),le=ae.__importDefault($(3)),ue=function(){function pe(de){this.editor=de}return pe.prototype.getRowNode=function(de){var Fe,ze=le.default(de).elems[0];return ze.parentNode&&(ze=(Fe=le.default(ze).parentUntil("TR",ze))===null||Fe===void 0?void 0:Fe.elems[0]),ze},pe.prototype.getCurrentRowIndex=function(de,Fe){var ze,Ce=0,Ie=de.children[0];return Ie.nodeName==="COLGROUP"&&(Ie=de.children[de.children.length-1]),(0,oe.default)(ze=(0,re.default)(Ie.children)).call(ze,function(_e,At){_e===Fe&&(Ce=At)}),Ce},pe.prototype.getCurrentColIndex=function(de){var Fe,ze,Ce=0,Ie=le.default(de).getNodeName()==="TD"||le.default(de).getNodeName()==="TH"?de:(ze=le.default(de).parentUntil("TD",de))===null||ze===void 0?void 0:ze.elems[0],_e=le.default(Ie).parent();return(0,oe.default)(Fe=(0,re.default)(_e.elems[0].children)).call(Fe,function(At,qe){At===Ie&&(Ce=qe)}),Ce},pe.prototype.getTableHtml=function(de){var Fe=''+le.default(de).html()+"
      ";return Fe},pe}();g.default=ue},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.bindEventKeyboardEvent=g.bindClickEvent=void 0;var oe=$(2),re=oe.__importDefault($(3));function ae(pe){if(!pe.length)return!1;var de=pe.elems[0];return de.nodeName==="P"&&de.innerHTML==="
      "}function le(pe){function de(Fe,ze){if(ze.detail>=3){var Ce=window.getSelection();if(Ce){var Ie=Ce.focusNode,_e=Ce.anchorNode,At=re.default(_e?.parentElement);if(!Fe.isContain(re.default(Ie))){var qe=At.elems[0].tagName==="TD"?At:At.parentUntilEditor("td",pe);if(qe){var xe=pe.selection.getRange();xe?.setEnd(qe.elems[0],qe.elems[0].childNodes.length),pe.selection.restoreSelection()}}}}}pe.txt.eventHooks.tableClickEvents.push(de)}g.bindClickEvent=le;function ue(pe){var de=pe.txt,Fe=pe.selection,ze=de.eventHooks.keydownEvents;ze.push(function(Ce){pe.selection.saveRange();var Ie=Fe.getSelectionContainerElem();if(Ie){var _e=Ie.getNodeTop(pe),At=_e.length&&_e.prev().length?_e.prev():null;if(At&&At.getNodeName()==="TABLE"&&Fe.isSelectionEmpty()&&Fe.getCursorPos()===0&&Ce.keyCode===8){var qe=_e.next(),xe=!!qe.length;xe&&ae(_e)&&(_e.remove(),pe.selection.setRangeToElem(qe.elems[0])),Ce.preventDefault()}}})}g.bindEventKeyboardEvent=ue},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(26));(0,k.default)(g,"__esModule",{value:!0}),g.formatCodeHtml=void 0;var re=$(2),ae=re.__importDefault($(38)),le=re.__importDefault($(3)),ue=$(6),pe=re.__importDefault($(402)),de=re.__importDefault($(139)),Fe=re.__importDefault($(33)),ze=re.__importDefault($(403));function Ce(_e,At){if(!At)return At;return At=xe(At),At=qe(At),At=ue.replaceSpecialSymbol(At),At;function qe(Ve){var he=Ve.match(//g);return he===null||(0,oe.default)(he).call(he,function(Oe){Ve=Ve.replace(Oe,Oe.replace(/<\/code>/g,` +`).replace(/
      /g,""))}),Ve}function xe(Ve){var he,Oe=Ve.match(//gm);if(!Oe||!Oe.length)return Ve;for(var $e=(0,oe.default)(he=ue.deepClone(Oe)).call(he,function(Ue){return Ue=Ue.replace(/]+>/,""),Ue.replace(/<\/span>/,"")}),Ne=0;Ne');return xe=_e.call(this,Ve,qe)||this,ze.default(qe),xe}return At.prototype.insertLineCode=function(qe){var xe=this.editor,Ve=le.default(""+qe+"");xe.cmd.do("insertElem",Ve),xe.selection.createRangeByElem(Ve,!1),xe.selection.restoreSelection()},At.prototype.clickHandler=function(){var qe=this.editor,xe=qe.selection.getSelectionText();this.isActive||(qe.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(xe))},At.prototype.createPanel=function(qe,xe){var Ve=pe.default(this.editor,qe,xe),he=new Fe.default(this,Ve);he.create()},At.prototype.tryChangeActive=function(){var qe=this.editor;de.default(qe)?this.active():this.unActive()},At}(ae.default);g.default=Ie},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(26));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=$(6),le=re.__importDefault($(3)),ue=re.__importDefault($(139)),pe=$(7);function de(Fe,ze,Ce){var Ie,_e=ae.getRandom("input-iframe"),At=ae.getRandom("select"),qe=ae.getRandom("btn-ok");function xe($e,Ne){var Ue,kt=ue.default(Fe);kt&&Ve();var Et=(Ue=Fe.selection.getSelectionStartElem())===null||Ue===void 0?void 0:Ue.elems[0].innerHTML;Et&&Fe.cmd.do("insertHTML",pe.EMPTY_P);var Pt=Ne.replace(//g,">");Fe.highlight&&(Pt=Fe.highlight.highlightAuto(Pt).value),Fe.cmd.do("insertHTML",'
      '+Pt+"
      ");var Lt=Fe.selection.getSelectionStartElem(),vn=Lt?.getNodeTop(Fe);vn?.getNextSibling().elems.length===0&&le.default(pe.EMPTY_P).insertAfter(vn)}function Ve(){if(!!ue.default(Fe)){var $e=Fe.selection.getSelectionStartElem(),Ne=$e?.getNodeTop(Fe);!Ne||(Fe.selection.createRangeByElem(Ne),Fe.selection.restoreSelection())}}var he=function(Ne){return Fe.i18next.t(Ne)},Oe={width:500,height:0,tabs:[{title:he("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`
      + + +
      + +
      +
      `,events:[{selector:"#"+qe,type:"click",fn:function(){var Ne=document.getElementById(_e),Ue=le.default("#"+At),kt=Ue.val(),Et=Ne.value;if(!!Et)return ue.default(Fe)?!1:(xe(kt,Et),!0)}}]}]};return Oe}g.default=de},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(404)),ae=oe.__importDefault($(405));function le(ue){re.default(ue),ae.default(ue)}g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.createShowHideFn=void 0;var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(39));function le(pe){var de;function Fe(Ce){var Ie="menus.panelMenus.code.",_e=function(xe,Ve){return Ve===void 0&&(Ve=Ie),pe.i18next.t(Ve+xe)},At=[{$elem:re.default(""+_e("\u5220\u9664\u4EE3\u7801")+""),onClick:function(xe,Ve){return Ve.remove(),!0}}];de=new ae.default(pe,Ce,At),de.create()}function ze(){de&&(de.remove(),de=null)}return{showCodeTooltip:Fe,hideCodeTooltip:ze}}g.createShowHideFn=le;function ue(pe){var de=le(pe),Fe=de.showCodeTooltip,ze=de.hideCodeTooltip;pe.txt.eventHooks.codeClickEvents.push(Fe),pe.txt.eventHooks.clickEvents.push(ze),pe.txt.eventHooks.toolbarClickEvents.push(ze),pe.txt.eventHooks.menuClickEvents.push(ze),pe.txt.eventHooks.textScrollEvents.push(ze)}g.default=ue},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=$(7),ae=oe.__importDefault($(3));function le(ue){var pe=ue.$textElem,de=ue.selection,Fe=ue.txt,ze=Fe.eventHooks.keydownEvents;ze.push(function(Ce){var Ie;if(Ce.keyCode===40){var _e=de.getSelectionContainerElem(),At=(Ie=pe.children())===null||Ie===void 0?void 0:Ie.last();if(_e?.elems[0].tagName==="XMP"&&At?.elems[0].tagName==="PRE"){var qe=ae.default(re.EMPTY_P);pe.append(qe)}}}),ze.push(function(Ce){ue.selection.saveRange();var Ie=de.getSelectionContainerElem();if(Ie){var _e=Ie.getNodeTop(ue),At=_e?.prev(),qe=_e?.getNextSibling();if(At.length&&At?.getNodeName()==="PRE"&&qe.length===0&&de.getCursorPos()===0&&Ce.keyCode===8){var xe=ae.default(re.EMPTY_P);pe.append(xe)}}})}g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(23)),ae=oe.__importDefault($(3)),le=oe.__importDefault($(407)),ue=$(6),pe=$(7),de=function(Fe){oe.__extends(ze,Fe);function ze(Ce){var Ie=this,_e=ae.default('
      ');return Ie=Fe.call(this,_e,Ce)||this,le.default(Ce),Ie}return ze.prototype.clickHandler=function(){var Ce=this.editor,Ie=Ce.selection.getRange(),_e=Ce.selection.getSelectionContainerElem();if(!!_e?.length){var At=ae.default(_e.elems[0]),qe=At.parentUntil("TABLE",_e.elems[0]),xe=At.children();At.getNodeName()!=="CODE"&&(qe&&ae.default(qe.elems[0]).getNodeName()==="TABLE"||xe&&xe.length!==0&&ae.default(xe.elems[0]).getNodeName()==="IMG"&&!Ie?.collapsed||this.createSplitLine())}},ze.prototype.createSplitLine=function(){var Ce="
      "+pe.EMPTY_P;ue.UA.isFirefox&&(Ce="

      "),this.editor.cmd.do("insertHTML",Ce)},ze.prototype.tryChangeActive=function(){},ze}(re.default);g.default=de},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(408));function ae(le){re.default(le)}g.default=ae},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(3)),ae=oe.__importDefault($(39));function le(pe){var de;function Fe(Ce){var Ie=[{$elem:re.default(""+pe.i18next.t("menus.panelMenus.\u5220\u9664")+""),onClick:function(At,qe){return At.selection.createRangeByElem(qe),At.selection.restoreSelection(),At.cmd.do("delete"),!0}}];de=new ae.default(pe,Ce,Ie),de.create()}function ze(){de&&(de.remove(),de=null)}return{showSplitLineTooltip:Fe,hideSplitLineTooltip:ze}}function ue(pe){var de=le(pe),Fe=de.showSplitLineTooltip,ze=de.hideSplitLineTooltip;pe.txt.eventHooks.splitLineEvents.push(Fe),pe.txt.eventHooks.clickEvents.push(ze),pe.txt.eventHooks.keyupEvents.push(ze),pe.txt.eventHooks.toolbarClickEvents.push(ze),pe.txt.eventHooks.menuClickEvents.push(ze),pe.txt.eventHooks.textScrollEvents.push(ze)}g.default=ue},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=re.__importDefault($(23)),ue=$(98),pe=re.__importDefault($(415)),de=re.__importDefault($(140)),Fe=function(ze){re.__extends(Ce,ze);function Ce(Ie){var _e=this,At=ae.default(`
      + +
      `);return _e=ze.call(this,At,Ie)||this,pe.default(Ie),_e}return Ce.prototype.clickHandler=function(){var Ie=this.editor;ue.isAllTodo(Ie)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},Ce.prototype.tryChangeActive=function(){ue.isAllTodo(this.editor)?this.active():this.unActive()},Ce.prototype.setTodo=function(){var Ie=this.editor,_e=Ie.selection.getSelectionRangeTopNodes();(0,oe.default)(_e).call(_e,function(At){var qe,xe=At?.getNodeName();if(xe==="P"){var Ve=de.default(At),he=Ve.getTodo(),Oe=(qe=he.children())===null||qe===void 0?void 0:qe.getNode();he.insertAfter(At),Ie.selection.moveCursor(Oe),At.remove()}}),this.tryChangeActive()},Ce.prototype.cancelTodo=function(){var Ie=this.editor,_e=Ie.selection.getSelectionRangeTopNodes();(0,oe.default)(_e).call(_e,function(At){var qe,xe,Ve,he=(xe=(qe=At.childNodes())===null||qe===void 0?void 0:qe.childNodes())===null||xe===void 0?void 0:xe.clone(!0),Oe=ae.default("

      ");Oe.append(he),Oe.insertAfter(At),(Ve=Oe.childNodes())===null||Ve===void 0||Ve.get(0).remove(),Ie.selection.moveCursor(Oe.getNode()),At.remove()})},Ce}(le.default);g.default=Fe},function(r,g,$){r.exports=$(411)},function(r,g,$){var L=$(412);r.exports=L},function(r,g,$){var L=$(413),k=Array.prototype;r.exports=function(oe){var re=oe.every;return oe===k||oe instanceof Array&&re===k.every?L:re}},function(r,g,$){$(414);var L=$(15);r.exports=L("Array").every},function(r,g,$){var L=$(5),k=$(32).every,oe=$(67),re=$(22),ae=oe("every"),le=re("every");L({target:"Array",proto:!0,forced:!ae||!le},{every:function(pe){return k(this,pe,arguments.length>1?arguments[1]:void 0)}})},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3)),le=$(98),ue=re.__importDefault($(140)),pe=$(98),de=$(7);function Fe(ze){function Ce(qe){var xe,Ve;if(le.isAllTodo(ze)){qe.preventDefault();var he=ze.selection,Oe=he.getSelectionRangeTopNodes()[0],$e=(xe=Oe.childNodes())===null||xe===void 0?void 0:xe.get(0),Ne=(Ve=window.getSelection())===null||Ve===void 0?void 0:Ve.anchorNode,Ue=he.getRange();if(!Ue?.collapsed){var kt=Ue?.commonAncestorContainer.childNodes,Et=Ue?.startContainer,Pt=Ue?.endContainer,Lt=Ue?.startOffset,vn=Ue?.endOffset,hn=0,Dt=0,jt=[];kt==null||(0,oe.default)(kt).call(kt,function(Dn,Mn){Dn.contains(Et)&&(hn=Mn),Dn.contains(Pt)&&(Dt=Mn)}),Dt-hn>1&&(kt==null||(0,oe.default)(kt).call(kt,function(Dn,Mn){Mn<=hn||Mn>=Dt||jt.push(Dn)}),(0,oe.default)(jt).call(jt,function(Dn){Dn.remove()})),pe.dealTextNode(Et,Lt),pe.dealTextNode(Pt,vn,!1),ze.selection.moveCursor(Pt,0)}if(Oe.text()===""){var bn=ae.default(de.EMPTY_P);bn.insertAfter(Oe),he.moveCursor(bn.getNode()),Oe.remove();return}var Sn=he.getCursorPos(),Cn=le.getCursorNextNode($e?.getNode(),Ne,Sn),On=ue.default(ae.default(Cn)),En=On.getInputContainer(),An=En.parent().getNode(),In=On.getTodo(),$n=En.getNode().nextSibling;if($e?.text()===""&&$e?.append(ae.default("
      ")),In.insertAfter(Oe),!$n||$n?.textContent===""){if($n?.nodeName!=="BR"){var Pn=ae.default("
      ");Pn.insertAfter(En)}he.moveCursor(An,1)}else he.moveCursor(An)}}function Ie(qe){var xe,Ve;if(le.isAllTodo(ze)){var he=ze.selection,Oe=he.getSelectionRangeTopNodes()[0],$e=(xe=Oe.childNodes())===null||xe===void 0?void 0:xe.getNode(),Ne=ae.default("

      "),Ue=Ne.getNode(),kt=(Ve=window.getSelection())===null||Ve===void 0?void 0:Ve.anchorNode,Et=he.getCursorPos(),Pt=kt.previousSibling;if(Oe.text()===""){qe.preventDefault();var Lt=ae.default(de.EMPTY_P);Lt.insertAfter(Oe),Oe.remove(),he.moveCursor(Lt.getNode(),0);return}if(Pt?.nodeName==="SPAN"&&Pt.childNodes[0].nodeName==="INPUT"&&Et===0){var vn;qe.preventDefault(),$e==null||(0,oe.default)(vn=$e.childNodes).call(vn,function(hn,Dt){Dt!==0&&Ue.appendChild(hn.cloneNode(!0))}),Ne.insertAfter(Oe),Oe.remove()}}}function _e(){var qe=ze.selection,xe=qe.getSelectionRangeTopNodes()[0];xe&&pe.isTodo(xe)&&xe.text()===""&&(ae.default(de.EMPTY_P).insertAfter(xe),xe.remove())}function At(qe){qe&&qe.target instanceof HTMLInputElement&&qe.target.type==="checkbox"&&(qe.target.checked?qe.target.setAttribute("checked","true"):qe.target.removeAttribute("checked"))}ze.txt.eventHooks.enterDownEvents.push(Ce),ze.txt.eventHooks.deleteUpEvents.push(_e),ze.txt.eventHooks.deleteDownEvents.push(Ie),ze.txt.eventHooks.clickEvents.push(At)}g.default=Fe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.selectorValidator=void 0;var oe=$(2),re=oe.__importDefault($(3)),ae=$(6),le=$(7),ue=oe.__importDefault($(130)),pe={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function de(ze){var Ce=ze.toolbarSelector,Ie=re.default(Ce),_e=ze.textSelector,At=ze.config,qe=At.height,xe=ze.i18next,Ve=re.default("
      "),he=re.default("
      "),Oe,$e,Ne=null;_e==null?($e=Ie.children(),Ie.append(Ve).append(he),Ve.css("background-color",pe.toolbarBgColor).css("border",pe.border).css("border-bottom",pe.toolbarBottomBorder),he.css("border",pe.border).css("border-top","none").css("height",qe+"px")):(Ie.append(Ve),Ne=re.default(_e).children(),re.default(_e).append(he),$e=he.children()),Oe=re.default("
      "),Oe.attr("contenteditable","true").css("width","100%").css("height","100%");var Ue,kt=ze.config.placeholder;kt!==ue.default.placeholder?Ue=re.default("
      "+kt+"
      "):Ue=re.default("
      "+xe.t(kt)+"
      "),Ue.addClass("placeholder"),$e&&$e.length?(Oe.append($e),Ue.hide()):Oe.append(re.default(le.EMPTY_P)),Ne&&Ne.length&&(Oe.append(Ne),Ue.hide()),he.append(Oe),he.append(Ue),Ve.addClass("w-e-toolbar").css("z-index",ze.zIndex.get("toolbar")),he.addClass("w-e-text-container"),he.css("z-index",ze.zIndex.get()),Oe.addClass("w-e-text");var Et=ae.getRandom("toolbar-elem");Ve.attr("id",Et);var Pt=ae.getRandom("text-elem");Oe.attr("id",Pt);var Lt=he.getBoundingClientRect().height,vn=Oe.getBoundingClientRect().height;Lt!==vn&&Oe.css("min-height",Lt+"px"),ze.$toolbarElem=Ve,ze.$textContainerElem=he,ze.$textElem=Oe,ze.toolbarElemId=Et,ze.textElemId=Pt}g.default=de;function Fe(ze){var Ce="data-we-id",Ie=/^wangEditor-\d+$/,_e=ze.textSelector,At=ze.toolbarSelector,qe={bar:re.default("
      "),text:re.default("
      ")};if(At==null)throw new Error("\u9519\u8BEF\uFF1A\u521D\u59CB\u5316\u7F16\u8F91\u5668\u65F6\u5019\u672A\u4F20\u5165\u4EFB\u4F55\u53C2\u6570\uFF0C\u8BF7\u67E5\u9605\u6587\u6863");if(qe.bar=re.default(At),!qe.bar.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+At);if(Ie.test(qe.bar.attr(Ce)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668");if(_e){if(qe.text=re.default(_e),!qe.text.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+_e);if(Ie.test(qe.text.attr(Ce)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668")}qe.bar.attr(Ce,ze.id),qe.text.attr(Ce,ze.id),ze.beforeDestroy(function(){qe.bar.removeAttr(Ce),qe.text.removeAttr(Ce)})}g.selectorValidator=Fe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(3)),ae=$(7);function le(ue,pe){var de=ue.$textElem,Fe=de.children();if(!Fe||!Fe.length){de.append(re.default(ae.EMPTY_P)),le(ue);return}var ze=Fe.last();if(pe){var Ce=ze.html().toLowerCase(),Ie=ze.getNodeName();if(Ce!=="
      "&&Ce!=="
      "||Ie!=="P"){de.append(re.default(ae.EMPTY_P)),le(ue);return}}ue.selection.createRangeByElem(ze,!1,!0),ue.config.focus?ue.selection.restoreSelection():ue.selection.clearWindowSelectionRange()}g.default=le},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3));function le(Ce){ue(Ce),pe(Ce),de(Ce)}function ue(Ce){Ce.txt.eventHooks.changeEvents.push(function(){var Ie=Ce.config.onchange;if(Ie){var _e=Ce.txt.html()||"";Ce.isFocus=!0,Ie(_e)}Ce.txt.togglePlaceholder()})}function pe(Ce){Ce.isFocus=!1;function Ie(_e){var At=_e.target,qe=ae.default(At),xe=Ce.$textElem,Ve=Ce.$toolbarElem,he=xe.isContain(qe),Oe=Ve.isContain(qe),$e=Ve.elems[0]==_e.target;if(he)Ce.isFocus||ze(Ce),Ce.isFocus=!0;else{if(Oe&&!$e||!Ce.isFocus)return;Fe(Ce),Ce.isFocus=!1}}document.activeElement===Ce.$textElem.elems[0]&&Ce.config.focus&&(ze(Ce),Ce.isFocus=!0),ae.default(document).on("click",Ie),Ce.beforeDestroy(function(){ae.default(document).off("click",Ie)})}function de(Ce){Ce.$textElem.on("compositionstart",function(){Ce.isComposing=!0,Ce.txt.togglePlaceholder()}).on("compositionend",function(){Ce.isComposing=!1,Ce.txt.togglePlaceholder()})}function Fe(Ce){var Ie,_e=Ce.config,At=_e.onblur,qe=Ce.txt.html()||"";(0,oe.default)(Ie=Ce.txt.eventHooks.onBlurEvents).call(Ie,function(xe){return xe()}),At(qe)}function ze(Ce){var Ie=Ce.config,_e=Ie.onfocus,At=Ce.txt.html()||"";_e(At)}g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});function oe(re){var ae=re.config,le=ae.lang,ue=ae.languages;if(re.i18next!=null){try{re.i18next.init({ns:"wangEditor",lng:le,defaultNS:"wangEditor",resources:ue})}catch(pe){throw new Error("i18next:"+pe)}return}re.i18next={t:function(de){var Fe=de.split(".");return Fe[Fe.length-1]}}}g.default=oe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(29));(0,k.default)(g,"__esModule",{value:!0}),g.setUnFullScreen=g.setFullScreen=void 0;var re=$(2),ae=re.__importDefault($(3));$(421);var le="w-e-icon-fullscreen",ue="w-e-icon-fullscreen_exit",pe="w-e-full-screen-editor";g.setFullScreen=function(Fe){var ze=ae.default(Fe.toolbarSelector),Ce=Fe.$textContainerElem,Ie=Fe.$toolbarElem,_e=(0,oe.default)(Ie).call(Ie,"i."+le),At=Fe.config;_e.removeClass(le),_e.addClass(ue),ze.addClass(pe),ze.css("z-index",At.zIndexFullScreen);var qe=Ie.getBoundingClientRect();Ce.css("height","calc(100% - "+qe.height+"px)")},g.setUnFullScreen=function(Fe){var ze=ae.default(Fe.toolbarSelector),Ce=Fe.$textContainerElem,Ie=Fe.$toolbarElem,_e=(0,oe.default)(Ie).call(Ie,"i."+ue),At=Fe.config;_e.removeClass(ue),_e.addClass(le),ze.removeClass(pe),ze.css("z-index","auto"),Ce.css("height",At.height+"px")};var de=function(ze){if(!ze.textSelector&&!!ze.config.showFullScreen){var Ce=ze.$toolbarElem,Ie=ae.default(`
      + +
      `);Ie.on("click",function(_e){var At,qe=(0,oe.default)(At=ae.default(_e.currentTarget)).call(At,"i");qe.hasClass(le)?(Ie.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),g.setFullScreen(ze)):(Ie.attr("data-title","\u5168\u5C4F"),g.setUnFullScreen(ze))}),Ce.append(Ie)}};g.default=de},function(r,g,$){var L=$(20),k=$(422);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21);g=L(!1),g.push([r.i,`.w-e-full-screen-editor { + position: fixed; + width: 100%!important; + height: 100%!important; + left: 0; + top: 0; +} +`,""]),r.exports=g},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(29));(0,k.default)(g,"__esModule",{value:!0});var re=function(le,ue){var pe,de=le.isEnable?le.$textElem:(0,oe.default)(pe=le.$textContainerElem).call(pe,".w-e-content-mantle"),Fe=(0,oe.default)(de).call(de,"[id='"+ue+"']"),ze=Fe.getOffsetData().top;de.scrollTop(ze)};g.default=re},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(129)),ae={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},le=function(){function ue(){this.tier=ae,this.baseZIndex=re.default.zIndex}return ue.prototype.get=function(pe){return pe&&this.tier[pe]?this.baseZIndex+this.tier[pe]:this.baseZIndex},ue.prototype.init=function(pe){this.baseZIndex==re.default.zIndex&&(this.baseZIndex=pe.config.zIndex)},ue}();g.default=le},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(70)),re=L($(4));(0,k.default)(g,"__esModule",{value:!0});var ae=$(2),le=ae.__importDefault($(426)),ue=$(6),pe=$(7);function de(ze,Ce){return(0,oe.default)(ze).call(ze,function(Ie){var _e=Ie.type,At=Ie.target,qe=Ie.attributeName;return _e!="attributes"||_e=="attributes"&&(qe=="contenteditable"||At!=Ce)})}var Fe=function(ze){ae.__extends(Ce,ze);function Ce(Ie){var _e=ze.call(this,function(At,qe){var xe;if(At=de(At,qe.target),(xe=_e.data).push.apply(xe,At),Ie.isCompatibleMode)_e.asyncSave();else if(!Ie.isComposing)return _e.asyncSave()})||this;return _e.editor=Ie,_e.data=[],_e.asyncSave=pe.EMPTY_FN,_e}return Ce.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},Ce.prototype.emit=function(){var Ie;(0,re.default)(Ie=this.editor.txt.eventHooks.changeEvents).call(Ie,function(_e){return _e()})},Ce.prototype.observe=function(){var Ie=this;ze.prototype.observe.call(this,this.editor.$textElem.elems[0]);var _e=this.editor.config.onchangeTimeout;this.asyncSave=ue.debounce(function(){Ie.save()},_e),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){Ie.asyncSave()})},Ce}(le.default);g.default=Fe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=function(){function re(ae,le){var ue=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(pe){ae(pe,ue)},this.observer=new MutationObserver(this.callback),le&&(this.options=le)}return(0,k.default)(re.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),re.prototype.observe=function(ae){this.node instanceof Node||(this.node=ae,this.connect())},re.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("\u8FD8\u672A\u521D\u59CB\u5316\u7ED1\u5B9A\uFF0C\u8BF7\u60A8\u5148\u7ED1\u5B9A\u6709\u6548\u7684 Node \u8282\u70B9")},re.prototype.disconnect=function(){var ae=this.observer.takeRecords();ae.length&&this.callback(ae),this.observer.disconnect()},re}();g.default=oe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(428)),ae=oe.__importDefault($(435)),le=oe.__importDefault($(436)),ue=function(){function pe(de){this.editor=de,this.content=new re.default(de),this.scroll=new ae.default(de),this.range=new le.default(de)}return(0,k.default)(pe.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),pe.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},pe.prototype.save=function(de){de.length&&(this.content.save(de),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},pe.prototype.revoke=function(){this.editor.change.disconnect();var de=this.content.revoke();de&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),de&&this.editor.change.emit()},pe.prototype.restore=function(){this.editor.change.disconnect();var de=this.content.restore();de&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),de&&this.editor.change.emit()},pe}();g.default=ue},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(429)),ae=oe.__importDefault($(433)),le=function(){function ue(pe){this.editor=pe}return ue.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new ae.default(this.editor):this.cache=new re.default(this.editor),this.cache.observe()},ue.prototype.save=function(pe){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(pe)},ue.prototype.revoke=function(){var pe;return(pe=this.cache)===null||pe===void 0?void 0:pe.revoke()},ue.prototype.restore=function(){var pe;return(pe=this.cache)===null||pe===void 0?void 0:pe.restore()},ue}();g.default=le},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(99)),ae=oe.__importDefault($(431)),le=$(432),ue=function(pe){oe.__extends(de,pe);function de(Fe){var ze=pe.call(this,Fe.config.historyMaxSize)||this;return ze.editor=Fe,ze}return de.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},de.prototype.compile=function(Fe){return this.save(ae.default(Fe)),this},de.prototype.revoke=function(){return pe.prototype.revoke.call(this,function(Fe){le.revoke(Fe)})},de.prototype.restore=function(){return pe.prototype.restore.call(this,function(Fe){le.restore(Fe)})},de}(re.default);g.default=ue},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0}),g.CeilStack=void 0;var oe=function(){function re(ae){ae===void 0&&(ae=0),this.data=[],this.max=0,this.reset=!1,ae=Math.abs(ae),ae&&(this.max=ae)}return re.prototype.resetMax=function(ae){ae=Math.abs(ae),!this.reset&&!isNaN(ae)&&(this.max=ae,this.reset=!0)},(0,k.default)(re.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),re.prototype.instack=function(ae){return this.data.unshift(ae),this.max&&this.size>this.max&&(this.data.length=this.max),this},re.prototype.outstack=function(){return this.data.shift()},re.prototype.clear=function(){return this.data.length=0,this},re}();g.CeilStack=oe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4)),re=L($(27));(0,k.default)(g,"__esModule",{value:!0}),g.compliePosition=g.complieNodes=g.compileValue=g.compileType=void 0;var ae=$(6);function le(Ie){switch(Ie){case"childList":return"node";case"attributes":return"attr";default:return"text"}}g.compileType=le;function ue(Ie){switch(Ie.type){case"attributes":return Ie.target.getAttribute(Ie.attributeName)||"";case"characterData":return Ie.target.textContent;default:return""}}g.compileValue=ue;function pe(Ie){var _e={};return Ie.addedNodes.length&&(_e.add=ae.toArray(Ie.addedNodes)),Ie.removedNodes.length&&(_e.remove=ae.toArray(Ie.removedNodes)),_e}g.complieNodes=pe;function de(Ie){var _e;return Ie.previousSibling?_e={type:"before",target:Ie.previousSibling}:Ie.nextSibling?_e={type:"after",target:Ie.nextSibling}:_e={type:"parent",target:Ie.target},_e}g.compliePosition=de;var Fe=["UL","OL","H1","H2","H3","H4","H5","H6"];function ze(Ie){var _e=[],At=!1,qe=[];return(0,oe.default)(Ie).call(Ie,function(xe,Ve){var he={type:le(xe.type),target:xe.target,attr:xe.attributeName||"",value:ue(xe)||"",oldValue:xe.oldValue||"",nodes:pe(xe),position:de(xe)};if(_e.push(he),!!ae.UA.isFirefox){if(At&&xe.addedNodes.length&&xe.addedNodes[0].nodeType==1){var Oe=xe.addedNodes[0],$e={type:"node",target:Oe,attr:"",value:"",oldValue:"",nodes:{add:[At]},position:{type:"parent",target:Oe}};(0,re.default)(Fe).call(Fe,Oe.nodeName)!=-1?($e.nodes.add=ae.toArray(Oe.childNodes),_e.push($e)):At.nodeType==3?(Ce(Oe,qe)&&($e.nodes.add=ae.toArray(Oe.childNodes)),_e.push($e)):(0,re.default)(Fe).call(Fe,xe.target.nodeName)==-1&&Ce(Oe,qe)&&($e.nodes.add=ae.toArray(Oe.childNodes),_e.push($e))}he.type=="node"&&xe.removedNodes.length==1?(At=xe.removedNodes[0],qe.push(At)):(At=!1,qe.length=0)}}),_e}g.default=ze;function Ce(Ie,_e){for(var At=0,qe=_e.length-1;qe>0&&Ie.contains(_e[qe]);qe--)At++;return At}},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(4)),re=L($(94));(0,k.default)(g,"__esModule",{value:!0}),g.restore=g.revoke=void 0;function ae(qe,xe){var Ve=qe.position.target;switch(qe.position.type){case"before":Ve.nextSibling?(Ve=Ve.nextSibling,(0,oe.default)(xe).call(xe,function(he){qe.target.insertBefore(he,Ve)})):(0,oe.default)(xe).call(xe,function(he){qe.target.appendChild(he)});break;case"after":(0,oe.default)(xe).call(xe,function(he){qe.target.insertBefore(he,Ve)});break;default:(0,oe.default)(xe).call(xe,function(he){Ve.appendChild(he)});break}}function le(qe){for(var xe=0,Ve=(0,re.default)(qe.nodes);xe-1;xe--){var Ve=qe[xe];de[Ve.type](Ve)}}g.revoke=Fe;function ze(qe){for(var xe=0,Ve=(0,re.default)(qe.nodes);xethis.max;)this.data.shift();return this.point=this.size-1,this},ae.prototype.current=function(){return this.data[this.point]},ae.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,this.point<0){this.point=0;return}return this.current()},ae.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,this.point>=this.size){this.point=this.size-1;return}return this.current()},ae}();g.TailChain=re},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(99)),ae=function(le){oe.__extends(ue,le);function ue(pe){var de=le.call(this,pe.config.historyMaxSize)||this;return de.editor=pe,de.last=0,de.target=pe.$textElem.elems[0],de}return ue.prototype.observe=function(){var pe=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){pe.last=pe.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},ue.prototype.save=function(){return le.prototype.save.call(this,[this.last,this.target.scrollTop]),this},ue.prototype.revoke=function(){var pe=this;return le.prototype.revoke.call(this,function(de){pe.target.scrollTop=de[0]})},ue.prototype.restore=function(){var pe=this;return le.prototype.restore.call(this,function(de){pe.target.scrollTop=de[1]})},ue}(re.default);g.default=ae},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=$(2),re=oe.__importDefault($(99)),ae=oe.__importDefault($(3)),le=$(6);function ue(de){return{start:[de.startContainer,de.startOffset],end:[de.endContainer,de.endOffset],root:de.commonAncestorContainer,collapsed:de.collapsed}}var pe=function(de){oe.__extends(Fe,de);function Fe(ze){var Ce=de.call(this,ze.config.historyMaxSize)||this;return Ce.editor=ze,Ce.lastRange=ue(document.createRange()),Ce.root=ze.$textElem.elems[0],Ce.updateLastRange=le.debounce(function(){Ce.lastRange=ue(Ce.rangeHandle)},ze.config.onchangeTimeout),Ce}return(0,k.default)(Fe.prototype,"rangeHandle",{get:function(){var Ce=document.getSelection();return Ce&&Ce.rangeCount?Ce.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),Fe.prototype.observe=function(){var ze=this;this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize);function Ce(){var _e=ze.rangeHandle;(ze.root===_e.commonAncestorContainer||ze.root.contains(_e.commonAncestorContainer))&&(ze.editor.isComposing||ze.updateLastRange())}function Ie(_e){(_e.key=="Backspace"||_e.key=="Delete")&&ze.updateLastRange()}ae.default(document).on("selectionchange",Ce),this.editor.beforeDestroy(function(){ae.default(document).off("selectionchange",Ce)}),ze.editor.$textElem.on("keydown",Ie)},Fe.prototype.save=function(){var ze=ue(this.rangeHandle);return de.prototype.save.call(this,[this.lastRange,ze]),this.lastRange=ze,this},Fe.prototype.set=function(ze){try{if(ze){var Ce=this.rangeHandle;return Ce.setStart.apply(Ce,ze.start),Ce.setEnd.apply(Ce,ze.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},Fe.prototype.revoke=function(){var ze=this;return de.prototype.revoke.call(this,function(Ce){ze.set(Ce[0])})},Fe.prototype.restore=function(){var ze=this;return de.prototype.restore.call(this,function(Ce){ze.set(Ce[1])})},Fe}(re.default);g.default=pe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(29));(0,k.default)(g,"__esModule",{value:!0});var re=$(2),ae=re.__importDefault($(3));$(438);function le(ue){var pe=!1,de,Fe;ue.txt.eventHooks.changeEvents.push(function(){pe&&(0,oe.default)(de).call(de,".w-e-content-preview").html(ue.$textElem.html())});function ze(){if(!pe){ue.$textElem.hide();var Ie=ue.zIndex.get("textContainer"),_e=ue.txt.html();de=ae.default('
      +
      `+_e+`
      +
      `),ue.$textContainerElem.append(de);var At=ue.zIndex.get("menu");Fe=ae.default('
      '),ue.$toolbarElem.append(Fe),pe=!0,ue.isEnable=!1}}function Ce(){!pe||(de.remove(),Fe.remove(),ue.$textElem.show(),pe=!1,ue.isEnable=!0)}return{disable:ze,enable:Ce}}g.default=le},function(r,g,$){var L=$(20),k=$(439);k=k.__esModule?k.default:k,typeof k=="string"&&(k=[[r.i,k,""]]);var oe={};oe.insert="head",oe.singleton=!1,L(k,oe),r.exports=k.locals||{}},function(r,g,$){var L=$(21);g=L(!1),g.push([r.i,`.w-e-content-mantle { + width: 100%; + height: 100%; + overflow-y: auto; +} +.w-e-content-mantle .w-e-content-preview { + width: 100%; + min-height: 100%; + padding: 0 10px; + line-height: 1.5; +} +.w-e-content-mantle .w-e-content-preview img { + cursor: default; +} +.w-e-content-mantle .w-e-content-preview img:hover { + box-shadow: none; +} +.w-e-menue-mantle { + position: absolute; + height: 100%; + width: 100%; + top: 0; + left: 0; +} +`,""]),r.exports=g},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0});var oe=function(){function re(ae){var le=this;this.editor=ae;var ue=function(){var de=document.activeElement;de===ae.$textElem.elems[0]&&le.emit()};window.document.addEventListener("selectionchange",ue),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",ue)})}return re.prototype.emit=function(){var ae,le=this.editor.config.onSelectionChange;if(le){var ue=this.editor.selection;ue.saveRange(),ue.isSelectionEmpty()||le({text:ue.getSelectionText(),html:(ae=ue.getSelectionContainerElem())===null||ae===void 0?void 0:ae.elems[0].innerHTML,selection:ue})}},re}();g.default=oe},function(r,g,$){var L=$(0),k=L($(1)),oe=L($(128)),re=L($(94)),ae=L($(4));(0,k.default)(g,"__esModule",{value:!0}),g.registerPlugin=void 0;var le=$(2),ue=le.__importDefault($(87)),pe=$(6);function de(ze,Ce,Ie){if(!ze)throw new TypeError("name is not define");if(!Ce)throw new TypeError("options is not define");if(!Ce.intention)throw new TypeError("options.intention is not define");if(Ce.intention&&typeof Ce.intention!="function")throw new TypeError("options.intention is not function");Ie[ze]&&console.warn("plugin "+ze+" \u5DF2\u5B58\u5728\uFF0C\u5DF2\u8986\u76D6\u3002"),Ie[ze]=Ce}g.registerPlugin=de;function Fe(ze){var Ce=(0,oe.default)({},pe.deepClone(ue.default.globalPluginsFunctionList),pe.deepClone(ze.pluginsFunctionList)),Ie=(0,re.default)(Ce);(0,ae.default)(Ie).call(Ie,function(_e){var At=_e[0],qe=_e[1];console.info("plugin "+At+" initializing");var xe=qe.intention,Ve=qe.config;xe(ze,Ve),console.info("plugin "+At+" initialization complete")})}g.default=Fe},function(r,g,$){var L=$(0),k=L($(1));(0,k.default)(g,"__esModule",{value:!0})}]).default})})(wangEditor);const E=getDefaultExportFromCjs(wangEditor.exports),beforeBaseFormCofig=function(){return[{ControlType:"Text",data:{fieldName:"fieldName",tip:"",label:"\u5B57\u6BB5\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u5B57\u6BB5\u540D\u79F0",value:"",showRule:"{}",required:!0,rule:"[]"}},{ControlType:"Text",data:{fieldName:"label",tip:"",label:"\u6807\u7B7E\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u6807\u7B7E\u540D\u79F0",value:"\u6807\u7B7E\u540D\u79F0",showRule:"{}",required:!0,rule:"[]"}}]},afterBaseFormConfig=function(){return[{ControlType:"Switch",data:{fieldName:"required",tip:"",label:"\u662F\u5426\u5FC5\u586B",showRule:"{}",required:!1,rule:"[]"}},{ControlType:"TextArea",data:{fieldName:"tip",tip:"",label:"\u63D0\u793A",placeholder:"\u8BF7\u8F93\u5165\u63D0\u793A",value:"\u6807\u7B7E\u540D\u79F0",showRule:"{}",required:!1,rule:"[]"}},{ControlType:"Rule",data:{fieldName:"rule",tip:"",label:"\u6821\u9A8C\u89C4\u5219",showRule:"{}",required:!1,rule:"[]",default:"[]"}},{ControlType:"ShowRule",data:{fieldName:"showRule",tip:"",label:"\u663E\u793A\u6761\u4EF6",showRule:"{}",required:!1,rule:"[]",default:"[]"}},{ControlType:"Action",data:{fieldName:"action",tip:"",label:"\u52A8\u4F5C\u9762\u677F",showRule:"{}",required:!1,rule:"[]",default:"{}"}}]},fieldsMap={Text:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:""},Info:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",title:"\u6807\u9898",desc:"\u6587\u5B57\u63CF\u8FF0",labelShow:!1,closable:!0,showIcon:!0,effect:"light",infotype:"success",showRule:"{}",rule:"[]"},TextArea:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:""},Switch:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",value:"",showRule:"{}",required:!1,rule:"[]",default:!1},Slider:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",showRule:"{}",required:!1,rule:"[]",default:0,min:0,max:100},Grid:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",gutter:0,showRule:"{}",columns:[{span:12,list:[]},{span:12,list:[]}]},TableLayout:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",showRule:"{}",borderShow:!1,borderWidth:1,trs:[{tds:[{colspan:1,rowspan:1,list:[]},{colspan:1,rowspan:1,list:[]}]},{tds:[{colspan:1,rowspan:1,list:[]},{colspan:1,rowspan:1,list:[]}]}]},Collapse:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",accordion:!1,name:"\u6298\u53E0\u9762\u677F",items:[{name:"\u6298\u53E0\u9762\u677F",list:[]}]},Tabs:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",name:"\u6807\u7B7E",items:[{name:"tab",list:[]}]},Selected:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",itemConfig:{value:"\u9009\u98791",items:[{label:"\u9009\u98791",value:"\u9009\u98791",select:!0,id:1},{label:"\u9009\u98792",value:"\u9009\u98792",select:!1,id:2}]}},Selecteds:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",itemConfig:{value:["\u9009\u98791"],items:[{label:"\u9009\u98791",value:"\u9009\u98791",select:!0,id:1},{label:"\u9009\u98792",value:"\u9009\u98792",select:!1,id:2}]}},RichText:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:""},Radio:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",value:"",showRule:"{}",required:!1,rule:"[]",default:!1,itemConfig:{value:"\u9009\u98791",id:1,items:[{label:"\u9009\u98791",value:"\u9009\u98791",select:!0,id:1},{label:"\u9009\u98792",value:"\u9009\u98792",select:!1,id:2}]}},KeyValueConfigMult:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",value:"",showRule:"{}",required:!1,rule:"[]"},KeyValueConfig:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",value:"",showRule:"{}",required:!1,rule:"[]"},JsonEditor:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",showRule:"{}",required:!1,rule:"[]",default:"[]",json:!0},InputNumber:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:0,type:"1",size:"large"},Divider:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",showRule:"{}",required:!1,rule:"[]",color:"#000",dividerColor:"#000"},DateTime:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"1",showRule:"{}",required:!1,rule:"[]",default:"1"},Date:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"\u8BF7\u8F93\u5165",showRule:"{}",required:!1,rule:"[]",default:""},ColorSelect:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:"#409EFF"},CheckBox:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",value:"",showRule:"{}",required:!1,rule:"[]",default:!1,itemConfig:{value:["\u9009\u98791"],items:[{label:"\u9009\u98791",value:"\u9009\u98791",select:!0,id:1},{label:"\u9009\u98792",value:"\u9009\u98792",select:!1,id:2}]}}};function getMoren(e,n,r){const g={default:{ControlType:"Text",data:{fieldName:"default",tip:"",label:"\u9ED8\u8BA4\u503C",placeholder:"",showRule:"{}",required:!1,rule:"[]"}},placeholder:{ControlType:"Text",data:{fieldName:"placeholder",tip:"",label:"\u8F93\u5165\u5360\u4F4D\u6587\u5B57",placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u6587\u5B57",showRule:"{}",required:!1,rule:"[]"}},multiple:{ControlType:"Switch",data:{fieldName:"multiple",tip:"",label:"\u662F\u5426\u591A\u9009",showRule:"{}",required:!1,rule:"[]"}},min:{ControlType:"Text",data:{fieldName:"min",tip:"",label:"\u6700\u5C0F\u8303\u56F4",placeholder:"",showRule:"{}",required:!1,rule:"[]"}},max:{ControlType:"Text",data:{fieldName:"max",tip:"",label:"\u6700\u5927\u8303\u56F4",placeholder:"",showRule:"{}",required:!1,rule:"[]"}},itemConfig:{ControlType:"KeyValueConfigMult",data:{fieldName:"itemConfig",tip:"",label:"\u9ED8\u8BA4\u503C",placeholder:"",showRule:"{}",required:!1,rule:"[]"}},type:{ControlType:"Radio",data:{fieldName:"type",tip:"",label:"\u6309\u94AE\u4F4D\u7F6E",placeholder:"",showRule:"{}",required:!1,rule:"[]",itemConfig:{value:"1",id:1,items:[{label:"\u9ED8\u8BA4",value:"1",select:!0,id:1},{label:"\u53F3\u8FB9",value:"2",select:!1,id:2}]}}},infotype:{ControlType:"Selected",data:{fieldName:"infotype",tip:"",label:"\u98CE\u683C\u7C7B\u578B",placeholder:"",showRule:"{}",required:!1,rule:"[]",itemConfig:{value:"success",id:1,items:[{label:"success",value:"success",select:!0,id:1},{label:"info",value:"info",select:!1,id:2},{label:"warning",value:"warning",select:!1,id:3},{label:"error",value:"error",select:!1,id:4}]}}},effect:{ControlType:"Selected",data:{fieldName:"effect",tip:"",label:"\u98CE\u683C\u7C7B\u578B",placeholder:"",showRule:"{}",required:!1,rule:"[]",itemConfig:{value:"light",id:1,items:[{label:"light",value:"light",select:!0,id:1},{label:"dark",value:"dark",select:!1,id:2}]}}},size:{ControlType:"Radio",data:{fieldName:"size",tip:"",label:"\u8BA1\u6570\u5668\u5C3A\u5BF8\u7C7B\u578B",placeholder:"",showRule:"{}",required:!1,rule:"[]",itemConfig:{value:"large",id:1,items:[{label:"large",value:"large",select:!0,id:1},{label:"medium",value:"medium",select:!1,id:2},{label:"small",value:"small",select:!1,id:3},{label:"mini",value:"mini",select:!1,id:4}]}}},InputNumber:{ControlType:"InputNumber",data:{fieldName:"",label:"\u6807\u7B7E\u540D\u79F0",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:0,type:1,size:"large"}},gutter:{ControlType:"InputNumber",data:{fieldName:"gutter",label:"\u6805\u683C\u95F4\u8DDD",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:0,type:1,size:"small"}},columns:{ControlType:"ListConfig",data:{fieldName:"columns",label:"\u5217\u914D\u7F6E\u9879",tip:"",showRule:"{}",required:!1,rule:"[]"}}};return g[e]&&g[e].ControlType==n?g[e]:g[e]?(g[e].ControlType=n,g[e]):{ControlType:n,data:{fieldName:e,tip:"",label:r||"\u8F93\u5165\u5360\u4F4D\u6587\u5B57",placeholder:"\u8BF7\u8F93\u5165\u5360\u4F4D\u6587\u5B57",showRule:"{}",required:!1,rule:"[]"}}}function getFormConfig(e,n=[],r=[]){if(!fieldsMap[e])return{data(){return{}},morenConfig(){return[]}};const g=[];return n&&n.length>0&&n.forEach($=>{g.push(getMoren($.fieldName,$.component,$.label))}),{data(){return JSON.parse(JSON.stringify(fieldsMap[e]))},morenConfig(){const $=beforeBaseFormCofig().filter(k=>{if(!r.includes(k.data.fieldName))return k}),L=afterBaseFormConfig().filter(k=>{if(!r.includes(k.data.fieldName))return k});return[...$,...g,...L]}}}var fieldProps={drag:{type:Boolean,default:!1},data:{type:Object,required:!0,default(){return{}}},item:{type:Object,default(){return{}}},labelalign:{type:String,default:"top"},labelWidth:{type:Number},suffix:{type:String,default:":"},size:{type:String,default:"small"},styles:{type:String,default:""},csslist:{type:Object,default(){return[]}}};function useWatch(e){const n=getCurrentInstance();!e.data.fieldName&&!e.item.controlItems&&watch(()=>e.data[e.item.data.fieldName],(r,g)=>{e.item.data.action&&e.item.data.action.onChange&&window.VApp.$Flex.funcExec(e.item.data.action.onChange,n.proxy,[r,g,e.data]),n.emit("change")},{deep:!0})}var _export_sfc$1=(e,n)=>{const r=e.__vccOpts||e;for(const[g,$]of n)r[g]=$;return r};const _sfc_main$u=defineComponent({ControlType:"Text",nameCn:"\u6587\u672C\u6846",icon:"icon-wenbenkuang",formConfig:getFormConfig("Text",[{fieldName:"default",component:"Text"},{fieldName:"placeholder",component:"Text"}]),actionType:["onChange","onFocus","onBlur"],props:{...fieldProps},setup(e){const n=getCurrentInstance();return useWatch(e),{execFunc(r){e.item.data.action&&e.item.data.action[r]&&window.VApp.$Flex.funcExec(e.item.data.action[r],n.proxy,[e.item.data.fieldName])}}}}),_hoisted_1$u={key:0,class:"item_require"},_hoisted_2$o=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$u(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-input");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$u,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$o]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(oe,{key:0,modelValue:e.item.data.default,"onUpdate:modelValue":n[0]||(n[0]=re=>e.item.data.default=re),placeholder:e.item.data.placeholder,size:e.size,clearable:""},null,8,["modelValue","placeholder","size"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(oe,{key:1,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=re=>e.data[e.item.data.fieldName]=re),placeholder:e.item.data.placeholder,size:e.size,clearable:"",onFocus:n[2]||(n[2]=re=>e.execFunc("onFocus")),onBlur:n[3]||(n[3]=re=>e.execFunc("onBlur"))},null,8,["modelValue","placeholder","size"]))],4)],2)}var Text=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$u]]);const _sfc_main$t=defineComponent({ControlType:"TextArea",nameCn:"\u6587\u672C\u57DF",icon:"icon-textarea",formConfig:getFormConfig("TextArea",[{fieldName:"default",component:"Text"},{fieldName:"placeholder",component:"Text"}]),actionType:["onChange","onFocus","onBlur"],props:{...fieldProps},setup(e){const n=getCurrentInstance();return useWatch(e),{execFunc(r){e.item.data.action&&e.item.data.action[r]&&window.VApp.$Flex.funcExec(e.item.data.action[r],n.proxy,[e.item.data.fieldName])}}}}),_hoisted_1$t={key:0,class:"item_require"},_hoisted_2$n=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$t(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-input");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$t,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$n]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(oe,{key:0,type:"textarea",modelValue:e.item.data.default,"onUpdate:modelValue":n[0]||(n[0]=re=>e.item.data.default=re),placeholder:e.item.data.placeholder,size:e.size},null,8,["modelValue","placeholder","size"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(oe,{key:1,type:"textarea",modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=re=>e.data[e.item.data.fieldName]=re),placeholder:e.item.data.placeholder,size:e.size,onFocus:n[2]||(n[2]=re=>e.execFunc("onFocus")),onBlur:n[3]||(n[3]=re=>e.execFunc("onBlur"))},null,8,["modelValue","placeholder","size"]))],4)],2)}var TextArea=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$t]]);const _sfc_main$s=defineComponent({ControlType:"Switch",nameCn:"\u5F00\u5173",icon:"icon-kaiguanguan",formConfig:getFormConfig("Switch",[{fieldName:"default",component:"Switch"}]),props:{...fieldProps},actionType:["onChange"],setup(e){useWatch(e)}}),_hoisted_1$s={key:0,class:"item_require"},_hoisted_2$m=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$s(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-switch");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$s,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$m]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(oe,{key:0,modelValue:e.item.data.default,"onUpdate:modelValue":n[0]||(n[0]=re=>e.item.data.default=re),size:e.size},null,8,["modelValue","size"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(oe,{key:1,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=re=>e.data[e.item.data.fieldName]=re),size:e.size},null,8,["modelValue","size"]))],4)],2)}var Switch=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$s]]);const _sfc_main$r=defineComponent({ControlType:"Radio",nameCn:"\u5355\u9009\u6846",icon:"icon-danxuankuang",formConfig:getFormConfig("Radio",[{fieldName:"itemConfig",component:"KeyValueConfig"}]),props:{...fieldProps},actionType:["onChange"],setup(e){useWatch(e)}}),_hoisted_1$r={key:0,class:"item_require"},_hoisted_2$l=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$r(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-radio"),re=resolveComponent("el-radio-group");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$r,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$l]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?createCommentVNode("",!0):(openBlock(),createBlock(re,{key:0,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[0]||(n[0]=ae=>e.data[e.item.data.fieldName]=ae),size:e.size},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.itemConfig.items,(ae,le)=>(openBlock(),createBlock(oe,{key:le,label:ae.value},{default:withCtx(()=>[createTextVNode(toDisplayString(ae.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","size"])),e.drag?(openBlock(),createBlock(re,{key:1,modelValue:e.item.data.itemConfig.value,"onUpdate:modelValue":n[1]||(n[1]=ae=>e.item.data.itemConfig.value=ae),size:e.size},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.itemConfig.items,(ae,le)=>(openBlock(),createBlock(oe,{key:le,label:ae.value},{default:withCtx(()=>[createTextVNode(toDisplayString(ae.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","size"])):createCommentVNode("",!0)],4)],2)}var Radio=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$r]]);const _sfc_main$q=defineComponent({ControlType:"KeyValueConfig",nameCn:"\u952E\u503C\u5BF9\u5339\u914D",icon:"icon-danxuankuang",isHide:!0,formConfig:getFormConfig("KeyValueConfig"),props:{...fieldProps},setup(e){function n(){let r=0;const g=e.data,$=e.item;return g[$.data.fieldName].items.forEach(k=>{r=Math.max(k.id,r)}),r+1}return{getChangeValue(r){const g=e.data,$=e.item,L=g[$.data.fieldName];L.value=r.value,L.id=r.id},getChangeSelect(r){const g=e.data,$=e.item,L=g[$.data.fieldName];if(r.select)L.value=r.value,L.id=r.id,L.items.forEach(k=>{k.id!==r.id&&(k.select=!1)});else{let k=!1;L.items.forEach(oe=>{oe.select&&(k=!0)}),k||(L.value="",L.id="")}},removeItem(r){const g=e.data,$=e.item,L=g[$.data.fieldName];L.items.length<=1||L.items.splice(r,1)},handleTop(r){if(r>0){const g=e.data,$=e.item,L=g[$.data.fieldName].items,k=L.splice(r,1)[0];L.splice(r-1,0,k)}},handleBottom(r){const g=e.data,$=e.item,L=g[$.data.fieldName].items;if(r[_hoisted_2$k]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.data[e.item.data.fieldName].items,(ae,le)=>(openBlock(),createElementBlock("div",{class:"keyValueItem",key:le},[createBaseVNode("div",_hoisted_3$b$1,[createVNode(oe,{modelValue:ae.select,"onUpdate:modelValue":ue=>ae.select=ue,onChange:ue=>e.getChangeSelect(ae)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),createBaseVNode("div",_hoisted_4$8$1,[createBaseVNode("div",_hoisted_5$5$1,[_hoisted_6$5$1,createBaseVNode("div",null,[createVNode(re,{modelValue:ae.label,"onUpdate:modelValue":ue=>ae.label=ue,size:"small",onInput:ue=>e.getChangeValue(ae)},null,8,["modelValue","onUpdate:modelValue","onInput"])])]),createBaseVNode("div",_hoisted_7$4$1,[_hoisted_8$4,createBaseVNode("div",null,[createVNode(re,{modelValue:ae.value,"onUpdate:modelValue":ue=>ae.value=ue,size:"small",onInput:ue=>e.getChangeValue(ae)},null,8,["modelValue","onUpdate:modelValue","onInput"])])])]),createBaseVNode("div",_hoisted_9$3,[createBaseVNode("div",{class:"add",onClick:ue=>e.addItem(le)},_hoisted_12$3,8,_hoisted_10$3),createBaseVNode("div",{class:"remove",onClick:ue=>e.removeItem(le)},_hoisted_15$3,8,_hoisted_13$3),createBaseVNode("div",{class:"top",onClick:ue=>e.handleTop(le)},_hoisted_18$3,8,_hoisted_16$3),createBaseVNode("div",{class:"bottom",onClick:ue=>e.handleBottom(le)},_hoisted_21$1,8,_hoisted_19$3)])]))),128))],4)],2)}var KeyValueConfig=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$q]]);const _sfc_main$p=defineComponent({ControlType:"KeyValueConfigMult",nameCn:"\u591A\u9009\u952E\u503C\u5BF9\u5339\u914D",icon:"icon-danxuankuang",isHide:!0,props:{...fieldProps},getFormConfig:getFormConfig("KeyValueConfigMult"),setup(e){function n(){let r=0;const g=e.data,$=e.item;return g[$.data.fieldName].items.forEach(k=>{r=Math.max(k.id,r)}),r+1}return{getChangeValue(){const r=e.data,g=e.item,$=r[g.data.fieldName];$.value=[],$.items.forEach(L=>{L.select&&$.value.push(L.value)})},getChangeSelect(r){const g=e.data,$=e.item,L=g[$.data.fieldName];r.select?L.value.push(r.value):(L.value=[],L.items.forEach(k=>{k.select&&L.value.push(k.value)}))},removeItem(r){const g=e.data,$=e.item,L=g[$.data.fieldName];L.items.length<=1||L.items.splice(r,1)},handleTop(r){if(r>0){const g=e.data,$=e.item,L=g[$.data.fieldName].items,k=L.splice(r,1)[0];L.splice(r-1,0,k)}},handleBottom(r){const g=e.data,$=e.item,L=g[$.data.fieldName].items;if(r[_hoisted_2$j]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.data[e.item.data.fieldName].items,(ae,le)=>(openBlock(),createElementBlock("div",{class:"starfish-keyValueItem",key:le},[createBaseVNode("div",_hoisted_3$a$1,[createVNode(oe,{modelValue:ae.select,"onUpdate:modelValue":ue=>ae.select=ue,onChange:ue=>e.getChangeSelect(ae)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),createBaseVNode("div",_hoisted_4$7$1,[createBaseVNode("div",_hoisted_5$4$1,[_hoisted_6$4$1,createBaseVNode("div",null,[createVNode(re,{modelValue:ae.label,"onUpdate:modelValue":ue=>ae.label=ue,size:"small",onInput:n[0]||(n[0]=ue=>e.getChangeValue())},null,8,["modelValue","onUpdate:modelValue"])])]),createBaseVNode("div",_hoisted_7$3$1,[_hoisted_8$3$1,createBaseVNode("div",null,[createVNode(re,{modelValue:ae.value,"onUpdate:modelValue":ue=>ae.value=ue,size:"small",onInput:n[1]||(n[1]=ue=>e.getChangeValue())},null,8,["modelValue","onUpdate:modelValue"])])])]),createBaseVNode("div",_hoisted_9$2,[createBaseVNode("div",{class:"add",onClick:ue=>e.addItem(le)},_hoisted_12$2,8,_hoisted_10$2),createBaseVNode("div",{class:"remove",onClick:ue=>e.removeItem(le)},_hoisted_15$2,8,_hoisted_13$2),createBaseVNode("div",{class:"top",onClick:ue=>e.handleTop(le)},_hoisted_18$2,8,_hoisted_16$2),createBaseVNode("div",{class:"bottom",onClick:ue=>e.handleBottom(le)},_hoisted_21,8,_hoisted_19$2)])]))),128))],4)],2)}var KeyValueConfigMult=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$p]]);const _sfc_main$o=defineComponent({ControlType:"CheckBox",nameCn:"\u590D\u9009\u6846",icon:"icon-fuxuankuang_xuanzhong",formConfig:getFormConfig("CheckBox",[{fieldName:"itemConfig",component:"KeyValueConfigMult"}]),props:{...fieldProps},actionType:["onChange"],setup(e){useWatch(e)}}),_hoisted_1$o={key:0,class:"item_require"},_hoisted_2$i=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$o(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-checkbox"),re=resolveComponent("el-checkbox-group");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$o,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$i]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[!e.drag&&e.data[e.item.data.fieldName]?(openBlock(),createBlock(re,{key:0,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[0]||(n[0]=ae=>e.data[e.item.data.fieldName]=ae),size:e.size},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.itemConfig.items,(ae,le)=>(openBlock(),createBlock(oe,{key:le,label:ae.value},{default:withCtx(()=>[createTextVNode(toDisplayString(ae.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","size"])):createCommentVNode("",!0),e.drag?(openBlock(),createBlock(re,{key:1,modelValue:e.item.data.itemConfig.value,"onUpdate:modelValue":n[1]||(n[1]=ae=>e.item.data.itemConfig.value=ae),size:e.size},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.itemConfig.items,(ae,le)=>(openBlock(),createBlock(oe,{key:le,label:ae.value},{default:withCtx(()=>[createTextVNode(toDisplayString(ae.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","size"])):createCommentVNode("",!0)],4)],2)}var CheckBox=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$o]]);let nanoid$1=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((n,r)=>(r&=63,r<36?n+=r.toString(36):r<62?n+=(r-26).toString(36).toUpperCase():r>62?n+="-":n+="_",n),"");const state$1$1=reactive({historyList:[],index:-1,maxStep:20,historyFlag:!1});class History$1{setValue(n){state$1$1.historyList.push(n),state$1$1.historyList.length>state$1$1.maxStep&&(state$1$1.historyList=state$1$1.historyList.slice(state$1$1.historyList.length-state$1$1.maxStep)),state$1$1.index=state$1$1.historyList.length-1}back(){state$1$1.index!=-1&&(state$1$1.index-=1,state$1$1.index>-1?(state$1$1.historyFlag=!0,formStore$1?.set("allFormList",state$1$1.historyList[state$1$1.index].allFormList),formStore$1?.set("currentIndex",state$1$1.historyList[state$1$1.index].currentIndex),formStore$1?.set("curControl",state$1$1.historyList[state$1$1.index].curControl),formStore$1?.set("currentId",state$1$1.historyList[state$1$1.index].currentId)):(state$1$1.historyFlag=!0,formStore$1?.set("allFormList",[]),formStore$1?.set("currentIndex",-1),formStore$1?.set("curControl",{}),formStore$1?.set("currentId","")))}go(){state$1$1.index>=state$1$1.historyList.length-1||(state$1$1.index+=1,state$1$1.historyFlag=!0,formStore$1?.set("allFormList",state$1$1.historyList[state$1$1.index].allFormList),formStore$1?.set("currentIndex",state$1$1.historyList[state$1$1.index].currentIndex),formStore$1?.set("curControl",state$1$1.historyList[state$1$1.index].curControl))}get(n){return state$1$1[n]}set(n,r){state$1$1[n]=r}}var history$2=new History$1;const state$5=reactive({allFormList:[],curControl:{},currentIndex:-1,currentId:"",preview:!1,previewShow:!1,save:!1,formUpdate:!1,AllFormResult:[],formResult:{},globalDatas:{},globalFormList:[]});class Form$1{updateAllFormList(n){console.log("allForm",n),state$5.allFormList=n,state$5.currentIndex!=-1&&(state$5.curControl=n[state$5.currentIndex])}setHistory(){history$2?.setValue({allFormList:window.VueContext.$Flex.deepClone(state$5.allFormList),currentIndex:state$5.currentIndex,currentId:state$5.currentId,curControl:window.VueContext.$Flex.deepClone(state$5.allFormList[state$5.currentIndex])})}setFormCurrentIndex(n){state$5.currentIndex=n}setFormCurrentId(n){if(state$5.currentId=n,n){const r=this.getCurrentItem(n);state$5.curControl=r||{}}else state$5.curControl={}}getCurrentItem(n){let r;return state$5.allFormList.find(g=>{if(g.id==n)return r=g,g;if(g.layout){const $=this.getLayoutCurCtrol(g,n);if($)return r=$,g}}),r}getLayoutCurCtrol(n,r){let g;if(n.ControlType=="TableLayout"){const $=n.data.trs;$&&$.length>0&&$.find(L=>L.tds.find(k=>k.list.find(oe=>{if(oe.layout)return oe.id==r?g=oe:g=this.getLayoutCurCtrol(oe,r),g;if(oe.id==r)return g=oe,g})))}else if(n.ControlType=="Grid"){const $=n.data.columns;$&&$.length>0&&$.find(L=>L.list.find(k=>{if(k.layout)return k.id==r?g=k:g=this.getLayoutCurCtrol(k,r),g;if(k.id==r)return g=k,g}))}else if(n.ControlType=="Collapse"||n.ControlType=="Tabs"){const $=n.data.items;$&&$.length>0&&$.find(L=>L.list.find(k=>{if(k.layout)return k.id==r?g=k:g=this.getLayoutCurCtrol(k,r),g;if(k.id==r)return g=k,g}))}return g}handleDynamicForm(){state$5.formResult=this.getDynamicForm(state$5.AllFormResult),console.log("formResult",state$5.formResult)}getDynamicForm(n){const r={};return n.forEach(g=>{if(g.layout){if(g.ControlType=="Grid"&&g.data.columns)g.data.columns.forEach($=>{Object.assign(r,this.getDynamicForm($.list))});else if(g.ControlType=="TableLayout"){const $=g.data.trs;$&&$.length>0&&$.forEach(L=>{L.tds.forEach(k=>{Object.assign(r,this.getDynamicForm(k.list))})})}else if(g.ControlType=="Collapse"||g.ControlType=="Tabs"){const $=g.data.items;$&&$.forEach(L=>{Object.assign(r,this.getDynamicForm(L.list))})}}else g.layout||(g.data.itemConfig?typeof g.data.itemConfig.value=="string"?r[g.data.fieldName]=g.data.itemConfig.value:r[g.data.fieldName]=[...g.data.itemConfig.value]:r[g.data.fieldName]=g.data.default)}),r}openPreview(n){state$5.preview=n}setSave(n){state$5.save=n}setFormUpdate(n){state$5.formUpdate=n}getControlItems(){return state$5.curControl&&state$5.curControl.controlItems}getAllFormList(){return state$5.allFormList}setAllFormList(n){state$5.allFormList.push(n)}set(n,r){state$5[n]=r}get(n){return state$5[n]}}var formStore$1=new Form$1;const fieldlist$1=[];class Flex$1{constructor(){this.lastClickTime=0,this.openTanc=!1}clickCountLimit(){let e=!1;if(window.clickCountLimitMock)return!0;if(!this.lastClickTime)this.lastClickTime=new Date().getTime(),e=!0;else{const n=new Date().getTime()-this.lastClickTime;this.lastClickTime=new Date().getTime(),e=n>=1e3}return e||console.log("\u624B\u6B8B\u515A\u70B9\u51FB\u592A\u5FEB\u4E86"),e}generateMixed(e){return nanoid$1(e)}controlFormRule(e){const n={};return e.forEach(r=>{const g=[];r.data.required&&(g.push({required:!0,message:"\u8BF7\u8F93\u5165"+r.data.label,trigger:"blur"}),n[r.data.fieldName]=g),r.ControlType==="JsonEditor"&&(n[r.data.fieldName]=this.getJsonValidate())}),n}deepClone(e){let n;if(typeof e=="object")if(Array.isArray(e)){n=[];for(let r=0;r{try{JSON.parse(n),r()}catch(g){return console.error(g),r(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684json\u683C\u5F0F"))}},trigger:"blur"}])}getDataType(e){const n=Object.prototype.toString.call(e),r=/\[object (.*)\]/;return n.match(r)[1]}jsonToForm(e){if(!e.data||!e.controlItems){e=this.deepClone(e);const n=window.VApp.$formcomponents[e.ControlType];e.formConfig=window.VApp.$formcomponents[e.ControlType]?.formConfig||{},e.data||(e.data=e.formConfig.data()),e.data.fieldName||(e.data.fieldName=e.ControlType+"_"+this.generateMixed()),fieldlist$1.includes(e.data.fieldName)?e.data.fieldName=e.ControlType+"_"+this.generateMixed():fieldlist$1.push(e.data.fieldName),e.layout&&(e.ControlType=="Grid"&&e.data.columns&&e.data.columns.length>0?e.data.columns=e.data.columns.map($=>($.list&&$.list.length>0&&($.list=this.jsonToForm($.list)),$)):e.ControlType=="TableLayout"&&e.data.trs&&e.data.trs.length>0?e.data.trs=e.data.trs.map($=>($.tds.forEach(L=>(L.list&&L.list.length>0&&(L.list=this.jsonToForm(L.list)),L)),$)):(e.ControlType=="Collapse"||e.ControlType=="Tabs")&&e.data.items&&e.data.items.length>0&&(e.data.items=e.data.items.map($=>($.list&&$.list.length>0&&($.list=this.jsonToForm($.list)),$))));const r=formStore$1?.get("globalFormList")?.filter($=>{if($.dynamic)return $});e.id=this.generateMixed();let g=e.formConfig.morenConfig().concat(r);n.actionType&&n.actionType.length>0?(console.log(g),g.find($=>{$.ControlType=="Action"&&($.data.formConfig={value:{},items:[]},n.actionType.forEach((L,k)=>{$.data.formConfig.items.push({label:L,value:L,id:k+1})}))})):g=g.filter($=>{if($.ControlType!=="Action")return $}),e.rules=this.controlFormRule(g),e.controlItems=g}return e}initFormToJson(e){const n=[];return e.forEach(r=>{r.layout&&(r.ControlType=="Grid"&&r.data.columns&&r.data.columns.length>0?r.data.columns=r.data.columns.map($=>($.list=this.initFormToJson($.list),$)):r.ControlType=="TableLayout"&&r.data.trs&&r.data.trs.length>0?r.data.trs=r.data.trs.map($=>($.tds.forEach(L=>(L.list&&L.list.length>0&&(L.list=this.initFormToJson(L.list)),L)),$)):(r.ControlType=="Collapse"||r.ControlType=="Tabs")&&r.data.items&&r.data.items.length>0&&(r.data.items=r.data.items.map($=>($.list=this.initFormToJson($.list),$))));const g={ControlType:r.ControlType,nameCn:r.nameCn,id:r.id,layout:!!r.layout,data:r.data};n.push(g)}),n}funcExec(action,proxy,argus=[]){const actionObj=JSON.parse(action||"{}"),funcStr=actionObj.funcStr;eval(`(function(${this.getField(actionObj.methods)}){${funcStr}}).apply(proxy, argus)`)}getField(e){return e=="onChange"?"value, oldValue, subFormData":["onForce","onBlur","onClick"].includes(e)?"field":""}getFormDataList(e,n=[],r){if(e.layout)e.data.fieldName!=r&&(n.push({value:e?.data?.fieldName,label:e?.data?.label+"-"+e?.data?.fieldName}),e.ControlType=="Grid"&&e.data.columns?e.data.columns.forEach(g=>{g.list.forEach($=>{this.getFormDataList($,n,r)})}):e.ControlType=="TableLayout"&&e.data.trs?e.data.trs.forEach(g=>{g.tds.forEach($=>{$.list.forEach(L=>{this.getFormDataList(L,n,r)})})}):(e.ControlType=="Collapse"||e.ControlType=="Tabs")&&e.data.items&&e.data.items.forEach(g=>{g.list.forEach($=>{this.getFormDataList($,n,r)})}));else if(e.data.fieldName!=r){if(e.nameCn=="\u5F00\u5173"){n.push({value:e?.data?.fieldName,label:e?.data?.label+"-"+e?.data?.fieldName,switch:!0});return}if(e.data.itemConfig){let g=!1;Array.isArray(e.data.itemConfig.value)&&(g=!0);const $=e.data.itemConfig.items;n.push({value:e?.data?.fieldName,label:e?.data?.label+"-"+e?.data?.fieldName,multiple:g,options:$});return}n.push({value:e?.data?.fieldName,label:e?.data?.label+"-"+e?.data?.fieldName})}}}var _=new Flex$1;const _sfc_main$n=defineComponent({ControlType:"JsonEditor",nameCn:"JSON\u7F16\u8F91",icon:"icon-json-full",rule:_.getJsonValidate(),formConfig:getFormConfig("JsonEditor",[{fieldName:"default",component:"JsonEditor"}]),props:{...fieldProps},actionType:["onChange"],setup(e){const n=ref({});let r=null,g=null;const $=ref(),L=ref();useWatch(e);function k(){const oe=n.value,re=e.data,ae=e.item,le=ae.data.fieldName,ue={modes:["text","code","view"],mode:"code",search:!1,onChange(){re[le]=g?.getText()}};g=new window.JSONEditor(oe,ue),e.drag?g?.set(_.tryParseJson(ae.data.default)):g?.set(_.tryParseJson(re[ae.data.fieldName]))}return onMounted(()=>{k()}),watch(()=>e.item,oe=>{if(e.drag)g?.set(_.tryParseJson(oe.data.default));else{const re=e.data,ae=e.item;g?.set(_.tryParseJson(re[ae.data.fieldName]))}}),{myDialog:L,jsoneditor:n,JsonViewerDialogDom:$,async showCustomDialog(){const oe=L.value;oe.show(),oe.init("JSON\u7F16\u8F91","icon-json-full"),await nextTick();const re=$.value,ae={modes:["text","code","view"],mode:"code",search:!1};r=new window.JSONEditor(re,ae),r?.set(_.tryParseJson(g.getText()))},closeDialog(){L.value.close()},saveJson(){g?.set(_.tryParseJson(r.getText()));const oe=e.data,ae=e.item.data.fieldName;oe[ae]=g?.getText(),L.value.close()}}}}),_hoisted_1$n={key:0,class:"item_require"},_hoisted_2$h=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1),_hoisted_3$9$1={id:"jsoneditor",ref:"jsoneditor"},_hoisted_4$6$1=createBaseVNode("i",{class:"iconfont icon-quanping"},null,-1),_hoisted_5$3$1=[_hoisted_4$6$1],_hoisted_6$3$1={ref:"JsonViewerDialogDom",style:{height:"calc(100% - 24px)"}},_hoisted_7$2$1=createTextVNode("\u4FDD\u5B58"),_hoisted_8$2$1=createTextVNode("\u5173\u95ED");function _sfc_render$n(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-main"),re=resolveComponent("el-button"),ae=resolveComponent("el-footer"),le=resolveComponent("el-container"),ue=resolveComponent("CustomDialog");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$n,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$h]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[createBaseVNode("div",_hoisted_3$9$1,[createBaseVNode("div",{class:"fullScreen",onClick:n[0]||(n[0]=(...pe)=>e.showCustomDialog&&e.showCustomDialog(...pe))},_hoisted_5$3$1)],512)],4),createVNode(ue,{ref:"myDialog",width:"60%"},{default:withCtx(()=>[createVNode(oe,{style:{padding:"0"}},{default:withCtx(()=>[createVNode(le,{style:{height:"100%"}},{default:withCtx(()=>[createVNode(oe,{class:"my-pageMain"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_6$3$1,null,512)]),_:1}),createVNode(ae,{class:"my-Footer",style:{height:"60px","padding-top":"10px","text-align":"right"}},{default:withCtx(()=>[createVNode(re,{type:"primary",onClick:e.saveJson},{default:withCtx(()=>[_hoisted_7$2$1]),_:1},8,["onClick"]),createVNode(re,{onClick:e.closeDialog},{default:withCtx(()=>[_hoisted_8$2$1]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},512)],2)}var JsonEditor=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$n]]);const validateNumber=`(rule, value, callback) => { + console.log(rule); + + if (value === "" || value == null) { + callback(new Error("\u8BF7\u8F93\u5165")); + } else if (!/^[0-9]*$/.test(value)) { + callback(new Error("\u5FC5\u987B\u4E3A\u6570\u5B57")); + } + callback(); +}`,validateNumberD2=`(rule, value, callback) => { + if (value === "" || value == null) { + callback(new Error("\u8BF7\u8F93\u5165")); + } else if (!/^([1-9]+[d]*(.[0-9]{1,2})?)$/.test(value)) { + callback(new Error("\u5FC5\u987B\u4E3A\u6570\u5B57,\u4E14\u5C0F\u6570\u70B9\u6700\u591A\u4E24\u4F4D")); + } + callback(); + }`,validatePhone=`(rule, value, callback) => { + if (value === "" || value == null) { + callback(new Error("\u8BF7\u8F93\u5165")); + } else if (!/^1(?:3d|4[4-9]|5[0-35-9]|6[67]|7[013-8]|8d|9d)d{8}$/.test(value)) { + callback(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u503C")); + } + callback(); + }`,validateIdCard=`(rule, value, callback) => { + if (value === "" || value == null) { + callback(new Error("\u8BF7\u8F93\u5165")); + } else if (!/^[1-9]d{5}(18|19|20)d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)d{3}[0-9Xx]$/.test(value)) { + callback(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684")); + } + callback(); + }`,validateEmail=` + (rule, value, callback) => { + if (value === "" || value == null) { + callback(new Error("\u8BF7\u8F93\u5165")); + } else if (!/^[A-Za-z0-9\u4E00-\u9FA5]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$/.test(value)) { + callback(new Error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u503C")); + } + callback(); + }`,validateBigEn=` + (rule, value, callback) => { + if (value === "" || value == null) { + callback(new Error("\u8BF7\u8F93\u5165")); + } else if (!/^[A-Z]$/.test(value)) { + callback(new Error("\u53EA\u80FD\u662F\u5927\u5199\u5B57\u6BCD")); + } + callback(); + }`,ruleList=[{label:"\u6570\u5B57\u6821\u9A8C\u89C4\u5219",validator:validateNumber},{label:"\u6570\u5B57\u6821\u9A8C\u89C4\u5219\uFF08\u5C0F\u6570\u70B9\u4FDD\u7559\u4E24\u4F4D\uFF09",validator:validateNumberD2},{label:"\u8EAB\u4EFD\u8BC1\u6821\u9A8C\u89C4\u5219",validator:validateIdCard},{label:"\u7535\u8BDD\u53F7\u7801\u6821\u9A8C\u89C4\u5219",validator:validatePhone},{label:"\u90AE\u7BB1\u6821\u9A8C\u89C4\u5219",validator:validateEmail},{label:"\u5927\u5199\u5B57\u6BCD\u5355\u4E2A\u6821\u9A8C",validator:validateBigEn}],ruleJson=[{ControlType:"Radio",nameCn:"\u5355\u9009\u6846",id:"fzeXda7JLr_Ji5rHr-p3v",layout:!1,data:{fieldName:"ruleType",label:"\u89C4\u5219\u79CD\u7C7B",tip:"",value:"",showRule:"{}",required:!1,rule:"[]",default:!1,itemConfig:{value:"5",id:5,items:[{label:"\u5FC5\u586B\u7C7B",value:"1",select:!0,id:1},{label:"\u5B57\u7B26\u957F\u5EA6\u7C7B(\u8FD8\u8981\u8868\u5355\u5FC5\u586B\u624D\u80FD\u751F\u6548)",value:"2",select:!1,id:2},{label:"\u5B57\u7B26\u7C7B\u578B\u7C7B",value:"3",select:!1,id:3},{label:"\u6B63\u5219\u7C7B",value:"4",select:!1,id:4},{label:"\u6570\u5B57\u5927\u5C0F",value:"5",select:!1,id:5}]},csslist:[]}},{ControlType:"Switch",nameCn:"\u5F00\u5173",id:"9cZ6kCMBldaXKMOn6plsX",layout:!1,data:{fieldName:"required",label:"\u662F\u5426\u5FC5\u586B",tip:"",value:"",showRule:{type:"andgroup",result:[{type:"data",data:{field:"ruleType",logic:"!=",type:"\u9009\u9879",value:"2"}},{type:"data",data:{field:"ruleType",logic:"!=",type:"\u9009\u9879",value:"5"}}],control:!0},required:!1,rule:"[]",default:!1,csslist:[]}},{ControlType:"Text",nameCn:"\u6587\u672C\u6846",id:"zsnvN-ISlawlqmQ2zKy4_",layout:!1,data:{fieldName:"message",label:"\u6587\u6848\u63D0\u793A",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",default:"",csslist:[]}},{ControlType:"Selected",nameCn:"\u9009\u62E9\u5668",id:"IyJ0vsvwI2JUUA3mx8rDV",layout:!1,data:{fieldName:"trigger",label:"\u89E6\u53D1\u65B9\u5F0F",tip:"",placeholder:"",showRule:"{}",required:!1,rule:"[]",itemConfig:{value:"change",items:[{label:"blur",value:"blur",select:!0,id:1},{label:"change",value:"change",select:!1,id:2}],id:2}}},{ControlType:"Text",nameCn:"\u6587\u672C\u6846",id:"jrA_d3cgGvu2ihn_FalPb",layout:!1,data:{fieldName:"min",label:"\u5B57\u7B26\u6700\u5C0F\u957F\u5EA6",tip:"",placeholder:"",showRule:{type:"data",data:{field:"ruleType",logic:"=",type:"\u9009\u9879",value:"2"}},required:!1,rule:"[]",default:"",csslist:[]}},{ControlType:"Text",nameCn:"\u6587\u672C\u6846",id:"OgCNEDeLUtRqe1PyLjnrm",layout:!1,data:{fieldName:"max",label:"\u5B57\u7B26\u6700\u5927\u957F\u5EA6",tip:"",placeholder:"",showRule:{type:"data",data:{field:"ruleType",logic:"=",type:"\u9009\u9879",value:"2"}},required:!1,rule:"[]",default:""}},{ControlType:"Text",nameCn:"\u6587\u672C\u6846",id:"ebsL0k6iGC5iq_8uwsIsg",layout:!1,data:{fieldName:"minValue",label:"\u6700\u5C0F\u503C",tip:"",placeholder:"",showRule:{type:"data",data:{field:"ruleType",logic:"=",type:"\u9009\u9879",value:"5"}},required:!1,rule:"[]",default:""}},{ControlType:"Text",nameCn:"\u6587\u672C\u6846",id:"194TgvN1pDO7jQgHq9Uqe",layout:!1,data:{fieldName:"maxValue",label:"\u6700\u5927\u503C",tip:"",placeholder:"",showRule:{type:"data",data:{field:"ruleType",logic:"=",type:"\u9009\u9879",value:"5"}},required:!1,rule:"[]",default:""}},{ControlType:"Selected",nameCn:"\u9009\u62E9\u5668",id:"-f-r3Nb9ARNbgrEyVrHc5",layout:!1,data:{fieldName:"type",label:"\u5B57\u7B26\u7C7B\u578B",tip:"",placeholder:"",showRule:{type:"data",data:{field:"ruleType",logic:"=",type:"\u9009\u9879",value:"3"}},required:!1,rule:"[]",itemConfig:{value:"number",items:[{label:"date",value:"date",select:!0,id:1},{label:"array",value:"array",select:!1,id:2},{label:"number",value:"number",select:!1,id:3}],id:3}}},{ControlType:"Text",nameCn:"\u6587\u672C\u6846",id:"2q4KrUCOegiGiU7OnIaa6",layout:!1,data:{fieldName:"patternTemp",label:"\u81EA\u5B9A\u4E49\u6B63\u5219",tip:"",placeholder:"^\\d{6}$",showRule:{type:"data",data:{field:"ruleType",logic:"=",type:"\u9009\u9879",value:"4"}},required:!1,rule:"[]",default:""}}];var ruleJsonData={ruleJson};const _sfc_main$m=defineComponent({name:"Dynamicform",props:{allFormList:{type:Array,default(){return[]}},formResult:{type:Object,default(){return{}}},globalConfig:{type:Object,default(){return{}}}},setup(props,{emit}){const{proxy}=getCurrentInstance(),rules=ref({}),ruleForm=ref(),controlObj=ref();props.allFormList?.forEach(e=>{getRules(e)});function getFormListRules(rules){const result=[];return Array.isArray(rules)&&rules&&rules.length>0&&rules.forEach(item=>{if(item.type=="enum"){const func=eval(`(${item.value})`);result.push({validator:func,trigger:"blur"})}else if(item.type=="func"){const mainData=props.formResult,func=eval(`((rule, value, callback, mainData = mainData) => {${item.value.func}})`);result.push({validator:func,trigger:"blur"}),console.log("mainData",mainData)}else if(item.type=="high"){if(item.value.ruleType==5){result.push({validator:eval(item.value.validor),trigger:item.value.trigger});return}result.push(item.value)}}),result}function getRules(e){if(e.layout)e.layout&&(e.ControlType=="Grid"?e.data.columns.forEach(n=>{n.list.forEach(r=>{getRules(r)})}):e.ControlType=="TableLayout"?e.data.trs.forEach(r=>{r.tds.forEach(g=>{g.list.forEach($=>{getRules($)})})}):(e.ControlType=="Collapse"||e.ControlType=="Tabs")&&e.data.items.forEach(r=>{r.list.forEach(g=>{getRules(g)})}));else{let n=[];e.data.required&&n.push({required:!0,message:"\u8BF7\u8F93\u5165"+e.data.label,trigger:"blur"}),typeof e.data.rule=="string"?n=n.concat(proxy.$Flex.tryParseJson(e.data.rule)):n=n.concat(getFormListRules(e.data.rule));debugger;e.data.json&&n.push(...proxy.$Flex.getJsonValidate()),rules.value[e.data.fieldName]=n}}const handleControlChange=()=>{props.allFormList.forEach(n=>{if(n.data.showRule==="{}")n.show=!0;else try{Array.isArray(n.data.showRule)?n.show=conditionChange(transformData(toRaw(n.data.showRule))):n.show=conditionChange(toRaw(n.data.showRule))}catch{n.show=!0}}),executeFunc("updated"),emit("change")};function transformData(e){const n=[];return e.forEach(g=>{n.push({type:"andgroup",result:g.map($=>({type:"data",data:$}))})}),{type:"orgroup",result:n}}function conditionChange(e){if(e.type=="andgroup"){const n=e.result.map(r=>conditionChange(r)).find(r=>r==!1);return n===void 0?!0:n}else if(e.type=="orgroup"){const n=e.result.map(r=>conditionChange(r)).find(r=>r==!0);return n===void 0?!1:n}else if(e.type=="data"){const n=e.data,g=props.formResult[n.field];let $=!1;switch(n.logic){case"=":$=g==n.value;break;case"!=":$=g!=n.value;break;case"in":Array.isArray(g)?g.find(L=>{if(n.value.include(L))return $=n.value.includes(L),L}):$=n.value.includes(g);break;case"not in":Array.isArray(g)?g.find(L=>{if(!n.value.include(L))return $=!n.value.includes(L),L}):$=!n.value.includes(g);break}return $}}function reset(){ruleForm.value.resetFields()}function getValidate(){return new Promise(e=>{ruleForm.value.validate(n=>{e(n)})})}onMounted(()=>{handleControlChange(),executeFunc("mounted")});function executeFunc(funcName){const mountedAction=props.globalConfig.action?.find(e=>{if(e.type==funcName)return e});mountedAction&&eval(`(function(){${mountedAction.funcStr}}).call(proxy)`)}return{rules,ruleForm,controlObj,handleControlChange,reset,getValidate}}}),_hoisted_1$m={class:"starfish-dynamicform"};function _sfc_render$m(e,n,r,g,$,L){const k=resolveComponent("el-form-item"),oe=resolveComponent("el-form");return openBlock(),createElementBlock("div",_hoisted_1$m,[createVNode(oe,{ref:"ruleForm",model:e.formResult,rules:e.rules,"label-width":"120px",class:"demo-ruleForm",size:e.globalConfig.size||"large","validate-on-rule-change":!1},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.allFormList,re=>(openBlock(),createElementBlock(Fragment,null,[!re.layout&&re.show?(openBlock(),createBlock(k,{prop:re.data.fieldName,key:re.id},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(re.ControlType),mergeProps({ref_for:!0,ref:"controlObj",onChange:e.handleControlChange},e.globalConfig,{item:re,data:e.formResult||"{}",drag:!1}),null,16,["onChange","item","data"]))]),_:2},1032,["prop"])):re.show?(openBlock(),createBlock(resolveDynamicComponent(re.ControlType),mergeProps({key:1,ref_for:!0,ref:"controlObj",onChange:e.handleControlChange,key:re.id},e.globalConfig,{item:re,data:e.formResult||"{}",drag:!1}),null,16,["onChange","item","data"])):createCommentVNode("",!0)],64))),256))]),_:1},8,["model","rules","size"])])}var Dynamicform=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$m]]);const _sfc_main$l=defineComponent({ControlType:"Rule",rule:_.getJsonValidate(),props:{...fieldProps},components:{Delete:delete_default,Dynamicform},setup(e){const{proxy:n}=getCurrentInstance(),{formStore:r}=inject("control")||{},g=computed(()=>r?.get("globalDatas")),$=ref([]),L=ref(ruleList),k=ref({}),oe=ref({}),re=ref({}),ae=ref({}),le=ref(ruleJsonData.ruleJson),ue=ref(!0),pe=ref(),de=ref(),Fe=ref();return{IsShow:ue,rules:$,ruleList:L,globalDatas:g,funcItem:k,funcValue:oe,highItem:re,formValue:ae,ruleJson:le,codeMyDialog:pe,formRuleDialog:de,formdragger:Fe,handleDropdown(ze){let Ce="";ze=="enum"?Ce="\u81EA\u5B9A\u4E49\u679A\u4E3E":ze=="func"?Ce="\u81EA\u5B9A\u4E49\u51FD\u6570\u89C4\u5219":ze=="high"&&(Ce="\u9AD8\u7EA7\u6A21\u5F0F"),Array.isArray(e.data[e.item.data.fieldName])?e.data[e.item.data.fieldName].push({type:ze,title:Ce,value:""}):(e.data[e.item.data.fieldName]=[],e.data[e.item.data.fieldName].push({type:ze,title:Ce,value:""}))},handleFuncEdit(ze){k.value=ze,oe.value=ze.value?JSON.parse(JSON.stringify(ze.value)):{trigger:"blur",func:`/** if (value === "" || value == null) { +* callback(new Error("\u8BF7\u8F93\u5165")); +*} else if (!/^[0-9]*$/.test(value)) { +* callback(new Error("\u5FC5\u987B\u4E3A\u6570\u5B57")); +*} +*callback(); +*/`},pe.value.init("\u51FD\u6570\u7F16\u8F91","icon-bianji"),pe.value.show()},saveFunc(){k.value.value=oe.value,n.closeDialog()},closeDialog(){pe.value.close(),de.value.close()},deleteRule(ze){e.data[e.item.data.fieldName].splice(ze,1)},async handleFormEdit(ze){re.value=ze,de.value.init("\u89C4\u5219\u8868\u5355\u7F16\u8F91","icon-bianji"),de.value.show(),ae.value=ze.value||n.getDefaultData(le.value)},getDefaultData(ze){const Ce={};return ze.forEach(Ie=>{Ce[Ie.data.fieldName]=Ie.data.default,Ie.data.getDefault&&(Ce[Ie.data.fieldName]=Ie.data.getDefault()),Ie.data.itemConfig&&(Ce[Ie.data.fieldName]=Ie.data.itemConfig.value),Ce[Ie.data.fieldName]=Ce[Ie.data.fieldName]!=null?JSON.parse(JSON.stringify(Ce[Ie.data.fieldName])):void 0}),Ce},saveField(){const ze={},Ce={1:{fields:["required","trigger","message"]},2:{fields:["trigger","min","max","message"]},3:{fields:["required","trigger","type","message"]},4:{fields:["required","trigger","patternTemp","message"]},5:{fields:["trigger","minValue","maxValue","message"]}};for(const Ie in ae.value)Ce[ae.value.ruleType||"1"].fields.includes(Ie)&&(ze[Ie]=ae.value[Ie]);ae.value.ruleType==2?(ze.min=parseInt(ze.min),ze.max=parseInt(ze.max)):ae.value.ruleType==4?ze.pattern=new RegExp(ze.patternTemp):ae.value.ruleType==5&&(ze.validor=`(rule, value, callback) => { + if (!/(^[1-9]*$)/.test(value)) { + callback(new Error("\u8BF7\u8F93\u5165\u6570\u5B57\u503C")) + } else { + if (value > ${ze.maxValue}) { + callback(new Error("${ze.message}")) + } else if(value < ${ze.minValue}){ + callback(new Error("${ze.message}")) + }else { + callback() + } + } + }`),ze.ruleType=ae.value.ruleType,re.value.value=ze,de.value.close()}}}}),_hoisted_1$l={key:0,class:"weight"},_hoisted_2$g=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1),_hoisted_3$8$1={key:0,class:"collapse_enums"},_hoisted_4$5$1={key:1},_hoisted_5$2$1=createTextVNode("\u51FD\u6570\u7F16\u8F91"),_hoisted_6$2$1={key:2},_hoisted_7$1$1=createTextVNode("\u89C4\u5219\u8868\u5355\u7F16\u8F91"),_hoisted_8$1$1=createTextVNode(" \u65B0\u589E\u89C4\u5219"),_hoisted_9$1=createBaseVNode("i",{class:"el-icon-arrow-down el-icon--right"},null,-1),_hoisted_10$1=createTextVNode("\u9ED8\u8BA4\u679A\u4E3E"),_hoisted_11$1=createTextVNode("\u81EA\u5B9A\u4E49\u51FD\u6570\u89C4\u5219"),_hoisted_12$1=createTextVNode("\u9AD8\u7EA7\u6A21\u5F0F"),_hoisted_13$1={key:0,class:"sqlDialog",style:{padding:"20px",height:"100%"}},_hoisted_14$1=createBaseVNode("div",null,"(rule, value, callback, mainData) => {",-1),_hoisted_15$1=createBaseVNode("div",null,"}",-1),_hoisted_16$1=createTextVNode("\u4FDD\u5B58"),_hoisted_17$1=createTextVNode("\u5173\u95ED"),_hoisted_18$1=createTextVNode("\u4FDD\u5B58"),_hoisted_19$1=createTextVNode("\u5173\u95ED");function _sfc_render$l(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-option"),re=resolveComponent("el-select"),ae=resolveComponent("el-button"),le=resolveComponent("Delete"),ue=resolveComponent("el-icon"),pe=resolveComponent("el-collapse-item"),de=resolveComponent("el-collapse"),Fe=resolveComponent("el-dropdown-item"),ze=resolveComponent("el-dropdown-menu"),Ce=resolveComponent("el-dropdown"),Ie=resolveComponent("el-alert"),_e=resolveComponent("codemirror"),At=resolveComponent("el-footer"),qe=resolveComponent("CustomDialog"),xe=resolveComponent("Dynamicform"),Ve=resolveComponent("el-main"),he=resolveComponent("el-container");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem starfish-formitem-rule",{formCover:e.drag,"starfish-vertical":e.labelalign!="top"}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$l,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"bottom-start"},{default:withCtx(()=>[_hoisted_2$g]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[Array.isArray(e.data[e.item.data.fieldName])&&e.data[e.item.data.fieldName].length>0?(openBlock(),createBlock(de,{key:0},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.data[e.item.data.fieldName],(Oe,$e)=>(openBlock(),createBlock(pe,{title:Oe.title,name:Oe.title,key:$e},{default:withCtx(()=>[Oe.type=="enum"?(openBlock(),createElementBlock("div",_hoisted_3$8$1,[createVNode(re,{modelValue:Oe.value,"onUpdate:modelValue":Ne=>Oe.value=Ne,placeholder:"\u8BF7\u9009\u62E9",style:{width:"100%"},size:"mini"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.ruleList,Ne=>(openBlock(),createBlock(oe,{key:Ne.label,label:Ne.label,value:Ne.validator},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])])):createCommentVNode("",!0),Oe.type=="func"?(openBlock(),createElementBlock("div",_hoisted_4$5$1,[createVNode(ae,{type:"primary",onClick:Ne=>e.handleFuncEdit(Oe),size:"mini"},{default:withCtx(()=>[_hoisted_5$2$1]),_:2},1032,["onClick"])])):createCommentVNode("",!0),Oe.type=="high"?(openBlock(),createElementBlock("div",_hoisted_6$2$1,[createVNode(ae,{type:"primary",onClick:Ne=>e.handleFormEdit(Oe),size:"mini"},{default:withCtx(()=>[_hoisted_7$1$1]),_:2},1032,["onClick"])])):createCommentVNode("",!0),createVNode(ae,{type:"danger",circle:"",onClick:Ne=>e.deleteRule($e),style:{"margin-left":"10px"}},{default:withCtx(()=>[createVNode(ue,null,{default:withCtx(()=>[createVNode(le)]),_:1})]),_:2},1032,["onClick"])]),_:2},1032,["title","name"]))),128))]),_:1})):createCommentVNode("",!0),createVNode(Ce,{onCommand:e.handleDropdown,style:{"margin-top":"10px"}},{dropdown:withCtx(()=>[createVNode(ze,null,{default:withCtx(()=>[createVNode(Fe,{command:"enum"},{default:withCtx(()=>[_hoisted_10$1]),_:1}),createVNode(Fe,{command:"func"},{default:withCtx(()=>[_hoisted_11$1]),_:1}),createVNode(Fe,{command:"high"},{default:withCtx(()=>[_hoisted_12$1]),_:1})]),_:1})]),default:withCtx(()=>[createVNode(ae,{type:"success"},{default:withCtx(()=>[_hoisted_8$1$1,_hoisted_9$1]),_:1})]),_:1},8,["onCommand"])],4),createVNode(qe,{ref:"codeMyDialog"},{default:withCtx(()=>[e.funcItem?(openBlock(),createElementBlock("div",_hoisted_13$1,[createVNode(re,{modelValue:e.funcValue.trigger,"onUpdate:modelValue":n[0]||(n[0]=Oe=>e.funcValue.trigger=Oe),placeholder:"\u8BF7\u9009\u62E9",size:"mini",style:{"margin-bottom":"20px"}},{default:withCtx(()=>[createVNode(oe,{label:"blur",value:"blur"}),createVNode(oe,{label:"change",value:"change"})]),_:1},8,["modelValue"]),createVNode(Ie,{title:"rule\u662F\u5B58\u653E\u63A5\u6536\u53C2\u6570\u7684\u5BF9\u8C61;value\u662F\u5F85\u6821\u9A8C\u7684\u503C;callback\u662F\u56DE\u8C03\u51FD\u6570(\u6821\u9A8C\u5B8C\u540E\uFF0C\u8981\u6267\u884C\u7684\u64CD\u4F5C\uFF0C\u5982\u629B\u9519),mainData\u4E3A\u8868\u5355\u6570\u636E",type:"success",style:{"margin-bottom":"15px"}}),_hoisted_14$1,createVNode(_e,{modelValue:e.funcValue.func,"onUpdate:modelValue":n[1]||(n[1]=Oe=>e.funcValue.func=Oe),ref:"cm",placeholder:"",mode:"text/javascript",style:{height:"320px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2},null,8,["modelValue"]),_hoisted_15$1])):createCommentVNode("",!0),createVNode(At,{class:"my-Footer",style:{height:"60px","text-align":"right"}},{default:withCtx(()=>[createVNode(ae,{onClick:e.saveFunc,type:"primary"},{default:withCtx(()=>[_hoisted_16$1]),_:1},8,["onClick"]),createVNode(ae,{onClick:e.closeDialog},{default:withCtx(()=>[_hoisted_17$1]),_:1},8,["onClick"])]),_:1})]),_:1},512),createVNode(qe,{ref:"formRuleDialog"},{default:withCtx(()=>[createVNode(Ve,{style:{padding:"0"}},{default:withCtx(()=>[createVNode(he,{style:{height:"100%"}},{default:withCtx(()=>[createVNode(Ve,{class:"my-pageMain",style:{overflow:"hidden"}},{default:withCtx(()=>[createVNode(xe,{ref:"formdragger",modelValue:e.formValue,"onUpdate:modelValue":n[2]||(n[2]=Oe=>e.formValue=Oe),allFormList:e.ruleJson,globalConfig:Object.assign({},e.globalDatas,{size:"large"})},null,8,["modelValue","allFormList","globalConfig"])]),_:1}),createVNode(At,{class:"my-Footer",style:{height:"60px","text-align":"right"}},{default:withCtx(()=>[createVNode(ae,{type:"primary",onClick:e.saveField},{default:withCtx(()=>[_hoisted_18$1]),_:1},8,["onClick"]),createVNode(ae,{onClick:e.closeDialog},{default:withCtx(()=>[_hoisted_19$1]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},512)],2)}var Rule=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$l]]);const _sfc_main$k=defineComponent({ControlType:"ColorSelect",nameCn:"\u989C\u8272\u9009\u62E9",icon:"icon-sen103",formConfig:getFormConfig("ColorSelect",[{fieldName:"default",component:"ColorSelect"}]),props:{...fieldProps},actionType:["onChange"],setup(e){useWatch(e)}}),_withScopeId=e=>(pushScopeId("data-v-345ba6b9"),e=e(),popScopeId(),e),_hoisted_1$k={key:0,class:"item_require"},_hoisted_2$f$1=_withScopeId(()=>createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1)),_hoisted_3$7$1={key:0},_hoisted_4$4$1={key:1};function _sfc_render$k(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-input"),re=resolveComponent("el-color-picker");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$k,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$f$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createElementBlock("div",_hoisted_3$7$1,[createVNode(oe,{modelValue:e.item.data.default,"onUpdate:modelValue":n[0]||(n[0]=ae=>e.item.data.default=ae),placeholder:e.item.data.placeholder,size:"small",style:{width:"150px"}},null,8,["modelValue","placeholder"]),createVNode(re,{modelValue:e.item.data.default,"onUpdate:modelValue":n[1]||(n[1]=ae=>e.item.data.default=ae),"show-alpha":"",size:e.size},null,8,["modelValue","size"])])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4$4$1,[createVNode(oe,{modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[2]||(n[2]=ae=>e.data[e.item.data.fieldName]=ae),placeholder:e.item.data.placeholder,size:"small",style:{width:"150px"}},null,8,["modelValue","placeholder"]),createVNode(re,{modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[3]||(n[3]=ae=>e.data[e.item.data.fieldName]=ae),"show-alpha":"",size:e.size},null,8,["modelValue","size"])]))],4)],2)}var ColorSelect=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$k],["__scopeId","data-v-345ba6b9"]]);const _sfc_main$j=defineComponent({ControlType:"Date",nameCn:"\u65E5\u671F\u9009\u62E9",icon:"icon-24gl-calendar",formConfig:getFormConfig("Date",[{fieldName:"default",component:"Date"},{fieldName:"placeholder",component:"Text"}]),actionType:["onChange"],props:{...fieldProps},setup(e){useWatch(e)}}),_hoisted_1$j={key:0,class:"item_require"},_hoisted_2$e$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$j(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-date-picker");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$j,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$e$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(oe,{key:0,modelValue:e.item.data.default,"onUpdate:modelValue":n[0]||(n[0]=re=>e.item.data.default=re),type:"date",placeholder:e.item.data.placeholder,size:e.size},null,8,["modelValue","placeholder","size"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(oe,{key:1,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=re=>e.data[e.item.data.fieldName]=re),type:"date",placeholder:e.item.data.placeholder,size:e.size},null,8,["modelValue","placeholder","size"]))],4)],2)}var Date$1=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$j]]);const _sfc_main$i=defineComponent({ControlType:"Time",nameCn:"\u65F6\u95F4\u9009\u62E9",icon:"icon-shijian",formConfig:getFormConfig("DateTime",[{fieldName:"default",component:"Time"},{fieldName:"placeholder",component:"Text"}]),props:{...fieldProps},setup(e){useWatch(e)}}),_hoisted_1$i={key:0,class:"item_require"},_hoisted_2$d$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$i(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-time-select");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$i,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$d$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(oe,{key:0,modelValue:e.item.data.default,"onUpdate:modelValue":n[0]||(n[0]=re=>e.item.data.default=re),start:"08:30",step:"00:15",end:"18:30",size:e.size,placeholder:e.item.data.placeholder},null,8,["modelValue","size","placeholder"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(oe,{key:1,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=re=>e.data[e.item.data.fieldName]=re),start:"08:30",step:"00:15",end:"18:30",size:e.size,placeholder:e.item.data.placeholder},null,8,["modelValue","size","placeholder"]))],4)],2)}var Time=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$i]]);const _sfc_main$h$1=defineComponent({ControlType:"DateTime",nameCn:"\u65E5\u671F\u65F6\u95F4\u9009\u62E9",icon:"icon-riqishijian",formConfig:getFormConfig("DateTime",[{fieldName:"default",component:"DateTime"},{fieldName:"placeholder",component:"Text"}]),actionType:["onChange"],props:{...fieldProps},setup(e){useWatch(e)}}),_hoisted_1$h={key:0,class:"item_require"},_hoisted_2$c$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$h$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-date-picker");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$h,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$c$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(oe,{key:0,modelValue:e.item.data.default,"onUpdate:modelValue":n[0]||(n[0]=re=>e.item.data.default=re),type:"datetime",placeholder:e.item.data.placeholder,size:e.size},null,8,["modelValue","placeholder","size"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(oe,{key:1,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=re=>e.data[e.item.data.fieldName]=re),type:"datetime",placeholder:e.item.data.placeholder,size:e.size},null,8,["modelValue","placeholder","size"]))],4)],2)}var DateTime=_export_sfc$1(_sfc_main$h$1,[["render",_sfc_render$h$1]]);const _sfc_main$g$1=defineComponent({ControlType:"InputNumber",nameCn:"\u8BA1\u6570\u5668",icon:"icon-jishuqi",formConfig:getFormConfig("InputNumber",[{fieldName:"default",component:"InputNumber"},{fieldName:"type",component:"Radio"},{fieldName:"size",component:"Radio"}]),props:{...fieldProps},actionType:["onChange","onFocus","onBlur"],setup(e){const n=getCurrentInstance();return useWatch(e),{execFunc(r){e.item.data.action&&e.item.data.action[r]&&window.VApp.$Flex.funcExec(e.item.data.action[r],n.proxy,[e.item.data.fieldName])}}}}),_hoisted_1$g$1={key:0,class:"item_require"},_hoisted_2$b$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$g$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-input-number");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$g$1,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$b$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(oe,{key:0,modelValue:e.item.data.default,"onUpdate:modelValue":n[0]||(n[0]=re=>e.item.data.default=re),"controls-position":e.item.data.type==2?"right":"",size:e.item.data.size},null,8,["modelValue","controls-position","size"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(oe,{key:1,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=re=>e.data[e.item.data.fieldName]=re),"controls-position":e.item.data.type==2?"right":"",size:e.item.data.size,onFocus:n[2]||(n[2]=re=>e.execFunc("onFocus")),onBlur:n[3]||(n[3]=re=>e.execFunc("onBlur"))},null,8,["modelValue","controls-position","size"]))],4)],2)}var InputNumber=_export_sfc$1(_sfc_main$g$1,[["render",_sfc_render$g$1]]);const _sfc_main$f$1=defineComponent({ControlType:"Slider",nameCn:"\u6ED1\u5757",icon:"icon-icon_huakuai",formConfig:getFormConfig("Slider",[{fieldName:"default",component:"InputNumber"},{fieldName:"min",component:"Text"},{fieldName:"max",component:"Text"}]),props:{...fieldProps},actionType:["onChange"],setup(e){useWatch(e)}}),_hoisted_1$f$1={key:0,class:"item_require"},_hoisted_2$a$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$f$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-slider");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$f$1,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$a$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(oe,{key:0,modelValue:e.item.data.default,"onUpdate:modelValue":n[0]||(n[0]=re=>e.item.data.default=re),min:Number(e.item.data.min),max:Number(e.item.data.max),size:e.size},null,8,["modelValue","min","max","size"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(oe,{key:1,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=re=>e.data[e.item.data.fieldName]=re),min:Number(e.item.data.min),max:Number(e.item.data.max),size:e.size},null,8,["modelValue","min","max","size"]))],4)],2)}var Slider=_export_sfc$1(_sfc_main$f$1,[["render",_sfc_render$f$1]]);const _sfc_main$e$1=defineComponent({ControlType:"Selected",nameCn:"\u9009\u62E9\u5668",icon:"icon-xuanzeqi",formConfig:getFormConfig("Selected",[{fieldName:"placeholder",component:"Text"},{fieldName:"itemConfig",component:"KeyValueConfig"}]),props:{...fieldProps},actionType:["onChange","onFocus","onBlur"],setup(e){const n=getCurrentInstance();return useWatch(e),{execFunc(r){e.item.data.action&&e.item.data.action[r]&&window.VApp.$Flex.funcExec(e.item.data.action[r],n.proxy,[e.item.data.fieldName])}}}}),_hoisted_1$e$1={key:0,class:"item_require"},_hoisted_2$9$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$e$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-option"),re=resolveComponent("el-select");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$e$1,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$9$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(re,{key:0,modelValue:e.item.data.itemConfig.value,"onUpdate:modelValue":n[0]||(n[0]=ae=>e.item.data.itemConfig.value=ae),placeholder:e.item.data.placeholder,size:e.size},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.itemConfig.items,ae=>(openBlock(),createBlock(oe,{key:ae.value,label:ae.label,value:ae.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","size"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(re,{key:1,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=ae=>e.data[e.item.data.fieldName]=ae),placeholder:e.item.data.placeholder,size:e.size,onFocus:n[2]||(n[2]=ae=>e.execFunc("onFocus")),onBlur:n[3]||(n[3]=ae=>e.execFunc("onBlur"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.itemConfig.items,ae=>(openBlock(),createBlock(oe,{key:ae.value,label:ae.label,value:ae.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","size"]))],4)],2)}var Selected=_export_sfc$1(_sfc_main$e$1,[["render",_sfc_render$e$1]]);const _sfc_main$d$1=defineComponent({ControlType:"Selecteds",nameCn:"\u9009\u62E9\u5668\u591A\u9009",icon:"icon-xuanzeqi",formConfig:getFormConfig("Selecteds",[{fieldName:"placeholder",component:"Text"},{fieldName:"itemConfig",component:"KeyValueConfigMult"}]),actionType:["onChange","onFocus","onBlur"],props:{...fieldProps},setup(e){const n=getCurrentInstance();return useWatch(e),{execFunc(r){e.item.data.action&&e.item.data.action[r]&&window.VApp.$Flex.funcExec(e.item.data.action[r],n.proxy,[e.item.data.fieldName])}}}}),_hoisted_1$d$1={key:0,class:"item_require"},_hoisted_2$8$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1);function _sfc_render$d$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-option"),re=resolveComponent("el-select");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$d$1,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$8$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createBlock(re,{key:0,modelValue:e.item.data.itemConfig.value,"onUpdate:modelValue":n[0]||(n[0]=ae=>e.item.data.itemConfig.value=ae),placeholder:e.item.data.placeholder,multiple:"",size:e.size},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.itemConfig.items,ae=>(openBlock(),createBlock(oe,{key:ae.value,label:ae.label,value:ae.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","size"])):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createBlock(re,{key:1,modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[1]||(n[1]=ae=>e.data[e.item.data.fieldName]=ae),placeholder:e.item.data.placeholder,multiple:"",size:e.size,onFocus:n[2]||(n[2]=ae=>e.execFunc("onFocus")),onBlur:n[3]||(n[3]=ae=>e.execFunc("onBlur"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.itemConfig.items,ae=>(openBlock(),createBlock(oe,{key:ae.value,label:ae.label,value:ae.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder","size"]))],4)],2)}var Selecteds=_export_sfc$1(_sfc_main$d$1,[["render",_sfc_render$d$1]]);const _sfc_main$c$1=defineComponent({ControlType:"RichText",nameCn:"\u5BCC\u6587\u672C",icon:"icon-textEdit",formConfig:getFormConfig("RichText"),props:{...fieldProps},actionType:["onChange"],setup(e){const n=ref();let r=null;return useWatch(e),onMounted(()=>{if(e.drag)r=new E(n.value),r.config.focus=!1,r.create();else{r=new E(n.value),r.config.focus=!1,r.create();const g=e.data,$=e.item;r.config.onchange=function(L){console.log("onblur",L),g[$.data.fieldName]=L}}}),onUnmounted(()=>{r.destroy(),r=null}),{richText:n}}}),_hoisted_1$c$1={key:0,class:"item_require"},_hoisted_2$7$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1),_hoisted_3$6$1={key:0,ref:"richText"},_hoisted_4$3$1={key:1,ref:"richText"};function _sfc_render$c$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$c$1,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$7$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.drag?(openBlock(),createElementBlock("div",_hoisted_3$6$1,null,512)):createCommentVNode("",!0),e.drag?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_4$3$1,null,512))],4)],2)}var RichText=_export_sfc$1(_sfc_main$c$1,[["render",_sfc_render$c$1]]);const _sfc_main$b$1=defineComponent({ControlType:"ShowRule",props:{...fieldProps},setup(e){const n=ref(),r=ref();return useWatch(e),{ConditionSelect:n,highSelect:r,onConditionSet(){n.value?.show()},onHighConditionSet(){r.value?.show()},dataChange(g){e.data[e.item?.data.fieldName]=g}}}}),_hoisted_1$b$1={key:0,class:"item_require"},_hoisted_2$6$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1),_hoisted_3$5$1=createTextVNode("\u5DF2\u8BBE\u7F6E"),_hoisted_4$2$1=createTextVNode("\u672A\u8BBE\u7F6E"),_hoisted_5$1$1=createTextVNode("\u666E\u901A\u8BBE\u7F6E"),_hoisted_6$1$1=createTextVNode("\u9AD8\u7EA7\u8BBE\u7F6E");function _sfc_render$b$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-button"),re=resolveComponent("ConditionSelect"),ae=resolveComponent("HighConditionSelect");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem starfish-editor-showrule",{formCover:e.drag,"starfish-vertical":e.labelalign!="top"}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$b$1,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$6$1]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.data.showRule!="{}"?(openBlock(),createBlock(oe,{key:0,text:"",type:"primary",size:e.size},{default:withCtx(()=>[_hoisted_3$5$1]),_:1},8,["size"])):(openBlock(),createBlock(oe,{key:1,text:"",type:"primary",size:e.size},{default:withCtx(()=>[_hoisted_4$2$1]),_:1},8,["size"])),createBaseVNode("div",null,[createVNode(oe,{type:"primary",size:e.size,onClick:e.onConditionSet},{default:withCtx(()=>[_hoisted_5$1$1]),_:1},8,["size","onClick"]),createVNode(oe,{type:"primary",size:e.size,onClick:e.onHighConditionSet},{default:withCtx(()=>[_hoisted_6$1$1]),_:1},8,["size","onClick"]),createVNode(re,{ref:"ConditionSelect",data:e.data,item:e.item,onChange:e.dataChange},null,8,["data","item","onChange"]),createVNode(ae,{ref:"highSelect",data:e.data,item:e.item,onChange:e.dataChange},null,8,["data","item","onChange"])])],4)],2)}var ShowRule=_export_sfc$1(_sfc_main$b$1,[["render",_sfc_render$b$1]]);const _sfc_main$a$1=defineComponent({ControlType:"Grid",nameCn:"\u6805\u683C\u5E03\u5C40",icon:"icon-35zhage",layout:!0,formConfig:getFormConfig("Grid",[{fieldName:"gutter",component:"InputNumber"},{fieldName:"columns",component:"ListConfig"}],["required","rule","tip"]),props:{...fieldProps},setup(e){console.log(e);const n=computed(()=>e.item.data.columns),{proxy:r}=getCurrentInstance(),{formStore:g,store:$}=inject("control")||{},L=(oe,re)=>{g.setFormCurrentId(n.value[re].list[oe.oldIndex]?.id),g.setFormCurrentIndex(oe.oldIndex),$.set("curList",n.value[re].list)},k=computed(()=>g.get("currentId"));return useWatch(e),{gridList:n,chooseClick:L,currentId:k,changePos(oe,re){g.setFormCurrentId(n.value[re].list[oe.newIndex]?.id),g.setFormCurrentIndex(oe.newIndex),$.set("curList",n.value[re].list)},async addControl(oe,re){n.value.forEach(ae=>{ae.list=ae.list.map(le=>r.$Flex.jsonToForm(le))}),await nextTick(),g.setFormCurrentId(n.value[re].list[oe.newIndex].id),g.setFormCurrentIndex(oe.newIndex),$.set("curList",n.value[re].list)}}}}),_hoisted_1$a$1={class:"starfish-grid_box"};function _sfc_render$a$1(e,n,r,g,$,L){const k=resolveComponent("Shape"),oe=resolveComponent("draggable"),re=resolveComponent("el-col"),ae=resolveComponent("el-form-item"),le=resolveComponent("el-row");return openBlock(),createElementBlock("div",_hoisted_1$a$1,[createVNode(le,{gutter:e.item.data.gutter},{default:withCtx(()=>[e.drag?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(e.gridList,(ue,pe)=>(openBlock(),createBlock(re,{class:"grid-col",key:pe,span:ue.span},{default:withCtx(()=>[createVNode(oe,{class:"draggable-box",animation:"300",ghostClass:"itemGhost",modelValue:ue.list,"onUpdate:modelValue":de=>ue.list=de,onAdd:de=>e.addControl(de,pe),group:"starfish-form",onChoose:de=>e.chooseClick(de,pe),"item-key":"id",onUpdate:de=>e.changePos(de,pe)},{item:withCtx(({element:de,index:Fe})=>[de.data?(openBlock(),createBlock(k,{key:0,active:e.currentId==de.id,currentId:de.id,currentIndex:Fe,list:ue.list},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{drag:!0,item:de,data:{}},null,8,["item"]))]),_:2},1032,["active","currentId","currentIndex","list"])):createCommentVNode("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","onAdd","onChoose","onUpdate"])]),_:2},1032,["span"]))),128)):!e.drag&&e.item.data.columns.length>0?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(e.item.data.columns,(ue,pe)=>(openBlock(),createBlock(re,{class:"grid-col",key:pe,span:ue.span},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(ue.list,de=>(openBlock(),createElementBlock(Fragment,null,[de.layout?(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{ref_for:!0,ref:"controlObj",onChange:n[1]||(n[1]=Fe=>e.$emit("change")),key:de.id,item:de,data:e.data||"{}",drag:!1},null,40,["item","data"])):(openBlock(),createBlock(ae,{prop:de.data.fieldName,key:de.id},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{ref_for:!0,ref:"controlObj",onChange:n[0]||(n[0]=Fe=>e.$emit("change")),item:de,data:e.data||"{}",drag:!1},null,40,["item","data"]))]),_:2},1032,["prop"]))],64))),256))]),_:2},1032,["span"]))),128)):createCommentVNode("",!0)]),_:1},8,["gutter"])])}var Grid=_export_sfc$1(_sfc_main$a$1,[["render",_sfc_render$a$1]]);const _sfc_main$9$1=defineComponent({ControlType:"TableLayout",nameCn:"\u8868\u683C\u5E03\u5C40",icon:"icon-biaoge1",layout:!0,props:{...fieldProps},formConfig:getFormConfig("TableLayout",[],["required","rule","tip"]),setup(e){const{proxy:n}=getCurrentInstance(),{formStore:r,store:g}=inject("control")||{},$=computed(()=>r.get("currentId"));return useWatch(e),{currentId:$,chooseClick(L,k){r.setFormCurrentId(k[L.oldIndex].id),r.setFormCurrentIndex(L.oldIndex),g.set("curList",k)},changePos(L,k){r.setFormCurrentId(k[L.newIndex]?.id),r.setFormCurrentIndex(L.newIndex),g.set("curList",k)},addControl(L,k,oe,re){e.item.data.trs[oe].tds[re].list=k.map(ae=>n.$Flex.jsonToForm(ae)),r.setFormCurrentId(e.item.data.trs[oe].tds[re].list[L.newIndex].id),r.setFormCurrentIndex(L.newIndex),g.set("curList",e.item.data.trs[oe].tds[re].list)}}}}),_hoisted_1$9$1={class:"starfish-table_box"};function _sfc_render$9$1(e,n,r,g,$,L){const k=resolveComponent("Shape"),oe=resolveComponent("draggable"),re=resolveComponent("el-form-item");return openBlock(),createElementBlock("div",_hoisted_1$9$1,[createBaseVNode("table",{class:normalizeClass(["table_layout",e.item.data.borderShow?"table_layout_border":""])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.trs,(ae,le)=>(openBlock(),createElementBlock("tr",{key:le},[(openBlock(!0),createElementBlock(Fragment,null,renderList(ae.tds,(ue,pe)=>(openBlock(),createElementBlock("td",{key:pe},[e.drag?(openBlock(),createBlock(oe,{key:0,class:"draggable-box",animation:"300",ghostClass:"itemGhost",modelValue:ue.list,"onUpdate:modelValue":de=>ue.list=de,onAdd:de=>e.addControl(de,ue.list,le,pe),group:"starfish-form",onChoose:de=>e.chooseClick(de,ue.list),"item-key":"id",onUpdate:de=>e.changePos(de,ue.list)},{item:withCtx(({element:de,index:Fe})=>[de.data?(openBlock(),createBlock(k,{key:0,active:e.currentId==de.id,currentIndex:Fe,currentId:de.id,len:ue.list.length,item:de},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{drag:!0,item:de,data:{}},null,8,["item"]))]),_:2},1032,["active","currentIndex","currentId","len","item"])):createCommentVNode("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","onAdd","onChoose","onUpdate"])):!e.drag&&ue.list.length>0?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(ue.list,de=>(openBlock(),createElementBlock(Fragment,null,[de.layout?(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{ref_for:!0,ref:"controlObj",onChange:n[1]||(n[1]=Fe=>e.$emit("change")),key:de.id,item:de,data:e.data||"{}",drag:!1},null,40,["item","data"])):(openBlock(),createBlock(re,{prop:de.data.fieldName,key:de.id},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{ref_for:!0,ref:"controlObj",onChange:n[0]||(n[0]=Fe=>e.$emit("change")),item:de,data:e.data||"{}",drag:!1},null,40,["item","data"]))]),_:2},1032,["prop"]))],64))),256)):createCommentVNode("",!0)]))),128))]))),128))],2)])}var TableLayout=_export_sfc$1(_sfc_main$9$1,[["render",_sfc_render$9$1]]);const _sfc_main$8$1=defineComponent({ControlType:"Info",nameCn:"\u63D0\u793A",icon:"icon-jinggao",layout:!0,formConfig:getFormConfig("Info",[{fieldName:"title",component:"Text",label:"\u6807\u9898"},{fieldName:"desc",component:"Text",label:"\u6587\u5B57\u63CF\u8FF0"},{fieldName:"labelShow",component:"Switch",label:"\u6807\u7B7E\u9690\u85CF"},{fieldName:"center",component:"Switch",label:"\u6587\u5B57\u662F\u5426\u5C45\u4E2D"},{fieldName:"closable",component:"Switch",label:"\u662F\u5426\u53EF\u5173\u95ED"},{fieldName:"showIcon",component:"Switch",label:" \u662F\u5426\u663E\u793A\u7C7B\u578B\u56FE\u6807"},{fieldName:"effect",component:"Selected"},{fieldName:"infotype",component:"Selected"}],["required","tip","rule"]),actionType:["onClose"],props:{...fieldProps},setup(e){const n=getCurrentInstance();return useWatch(e),{execFunc(r){e.item.data.action&&e.item.data.action[r]&&window.VApp.$Flex.funcExec(e.item.data.action[r],n.proxy,[e.item.data.fieldName])}}}}),_hoisted_1$8$1={key:0,class:"label"},_hoisted_2$5$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1),_hoisted_3$4$1={class:"control"};function _sfc_render$8$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-alert");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag}])},[e.item.data.labelShow?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_1$8$1,[createBaseVNode("label",null,toDisplayString(e.item.data.label),1),e.item.data.tip?(openBlock(),createBlock(k,{key:0,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$5$1]),_:1},8,["content"])):createCommentVNode("",!0)])),createBaseVNode("div",_hoisted_3$4$1,[createVNode(oe,{title:e.item.data.title,type:e.item.data.infotype,effect:e.item.data.effect,"show-icon":e.item.data.showIcon,closable:e.item.data.closable,center:e.item.data.center,description:e.item.data.desc,onClose:n[0]||(n[0]=re=>e.execFunc("onClose"))},null,8,["title","type","effect","show-icon","closable","center","description"])])],2)}var Info=_export_sfc$1(_sfc_main$8$1,[["render",_sfc_render$8$1]]);const _sfc_main$7$1=defineComponent({ControlType:"Divider",nameCn:"\u5206\u5272\u6807\u9898",icon:"icon-fengexian1",layout:!0,formConfig:getFormConfig("Divider",[{fieldName:"color",component:"ColorSelect",label:"\u989C\u8272\u8BBE\u7F6E"},{fieldName:"dividerColor",component:"ColorSelect",label:"\u7EBF\u6761\u989C\u8272\u8BBE\u7F6E"}],["required","tip","rule"]),props:{...fieldProps},setup(e){useWatch(e)}}),_hoisted_1$7$1={class:"control"};function _sfc_render$7$1(e,n,r,g,$,L){const k=resolveComponent("el-divider");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem starfish-form-divider",e.drag?"formCover":""])},[createBaseVNode("div",_hoisted_1$7$1,[createBaseVNode("div",{style:normalizeStyle({color:e.item.data.color})},toDisplayString(e.item.data.label),5),createVNode(k,{class:"divider",style:normalizeStyle({background:e.item.data.dividerColor})},null,8,["style"])])],2)}var Divider=_export_sfc$1(_sfc_main$7$1,[["render",_sfc_render$7$1]]);const _sfc_main$6$1=defineComponent({ControlType:"Collapse",nameCn:"\u6298\u53E0\u9762\u677F",icon:"icon-zhediemianban",layout:!0,formConfig:getFormConfig("Collapse",[{fieldName:"items",component:"Panel",label:"\u6298\u53E0\u9762\u677F"},{fieldName:"accordion",component:"Switch",label:"\u624B\u98CE\u7434\u6A21\u5F0F"}]),props:{...fieldProps},setup(e){const n=ref(e.item.data.items[0].name),{formStore:r,store:g}=inject("control")||{},{proxy:$}=getCurrentInstance(),L=computed(()=>r.get("currentId"));return useWatch(e),{activeName:n,currentId:L,addControl(k,oe,re){e.item.data.items[re].list=oe.map(ae=>$.$Flex.jsonToForm(ae)),r.setFormCurrentId(e.item.data.items[re].list[k.newIndex].id),r.setFormCurrentIndex(k.newIndex),g.set("curList",e.item.data.items[re].list)},chooseClick(k,oe){r.setFormCurrentId(oe[k.oldIndex].id),r.setFormCurrentIndex(k.oldIndex),g.set("curList",oe)},changePos(k,oe){r.setFormCurrentId(oe[k.newIndex]?.id),r.setFormCurrentIndex(k.newIndex),g.set("curList",oe)}}}}),_hoisted_1$6$1={class:"collapse_box"},_hoisted_2$4$1={class:"control"};function _sfc_render$6$1(e,n,r,g,$,L){const k=resolveComponent("Shape"),oe=resolveComponent("draggable"),re=resolveComponent("el-form-item"),ae=resolveComponent("el-collapse-item"),le=resolveComponent("el-collapse");return openBlock(),createElementBlock("div",_hoisted_1$6$1,[createBaseVNode("div",_hoisted_2$4$1,[createVNode(le,{modelValue:e.activeName,"onUpdate:modelValue":n[2]||(n[2]=ue=>e.activeName=ue),accordion:e.item.data.accordion},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.items,(ue,pe)=>(openBlock(),createBlock(ae,{title:ue.name,name:ue.name,key:pe},{default:withCtx(()=>[e.drag?(openBlock(),createBlock(oe,{key:0,class:"draggable-box",animation:"300",ghostClass:"itemGhost",modelValue:ue.list,"onUpdate:modelValue":de=>ue.list=de,onAdd:de=>e.addControl(de,ue.list,pe),group:"starfish-form",onChoose:de=>e.chooseClick(de,ue.list),"item-key":"id",onUpdate:de=>e.changePos(de,ue.list)},{item:withCtx(({element:de,index:Fe})=>[de.data?(openBlock(),createBlock(k,{key:0,active:e.currentId==de.id,currentIndex:Fe,currentId:de.id,len:ue.list.length,item:de},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{drag:!0,item:de,data:{}},null,8,["item"]))]),_:2},1032,["active","currentIndex","currentId","len","item"])):createCommentVNode("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","onAdd","onChoose","onUpdate"])):!e.drag&&ue.list.length>0?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(ue.list,de=>(openBlock(),createElementBlock(Fragment,null,[de.layout?(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{ref_for:!0,ref:"controlObj",onChange:n[1]||(n[1]=Fe=>e.$emit("change")),item:de,data:e.data||"{}",key:de.id,drag:!1},null,40,["item","data"])):(openBlock(),createBlock(re,{prop:de.data.fieldName,key:de.id},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{ref_for:!0,ref:"controlObj",onChange:n[0]||(n[0]=Fe=>e.$emit("change")),item:de,data:e.data||"{}",drag:!1},null,40,["item","data"]))]),_:2},1032,["prop"]))],64))),256)):createCommentVNode("",!0)]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue","accordion"])])])}var Collapse=_export_sfc$1(_sfc_main$6$1,[["render",_sfc_render$6$1]]);const _sfc_main$5$1=defineComponent({ControlType:"Tabs",nameCn:"\u6807\u7B7E\u9875",icon:"icon-zhediemianban",layout:!0,formConfig:getFormConfig("Tabs",[{fieldName:"items",component:"Panel",label:"\u6298\u53E0\u9762\u677F"},{fieldName:"accordion",component:"Switch",label:"\u624B\u98CE\u7434\u6A21\u5F0F"}]),props:{...fieldProps},setup(e){const n=ref(e.item.data.items[0].name),{formStore:r,store:g}=inject("control")||{},{proxy:$}=getCurrentInstance(),L=computed(()=>r.get("currentId"));return useWatch(e),{activeName:n,currentId:L,addControl(k,oe,re){e.item.data.items[re].list=oe.map(ae=>$.$Flex.jsonToForm(ae)),r.setFormCurrentId(e.item.data.items[re].list[k.newIndex].id),r.setFormCurrentIndex(k.newIndex),g.set("curList",e.item.data.items[re].list)},chooseClick(k,oe){r.setFormCurrentId(oe[k.oldIndex].id),r.setFormCurrentIndex(k.oldIndex),g.set("curList",oe)},changePos(k,oe){r.setFormCurrentId(oe[k.newIndex]?.id),r.setFormCurrentIndex(k.newIndex),g.set("curList",oe)}}}}),_hoisted_1$5$1={class:"starfish-tabs_box"};function _sfc_render$5$1(e,n,r,g,$,L){const k=resolveComponent("Shape"),oe=resolveComponent("draggable"),re=resolveComponent("el-form-item"),ae=resolveComponent("el-tab-pane"),le=resolveComponent("el-tabs");return openBlock(),createElementBlock("div",_hoisted_1$5$1,[createVNode(le,{modelValue:e.activeName,"onUpdate:modelValue":n[2]||(n[2]=ue=>e.activeName=ue)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.items,(ue,pe)=>(openBlock(),createBlock(ae,{label:ue.name,name:ue.name,key:pe},{default:withCtx(()=>[e.drag?(openBlock(),createBlock(oe,{key:0,class:"draggable-box",animation:"300",ghostClass:"itemGhost",modelValue:ue.list,"onUpdate:modelValue":de=>ue.list=de,onAdd:de=>e.addControl(de,ue.list,pe),group:"starfish-form",onChoose:de=>e.chooseClick(de,ue.list),"item-key":"id",onUpdate:de=>e.changePos(de,ue.list)},{item:withCtx(({element:de,index:Fe})=>[de.data?(openBlock(),createBlock(k,{key:0,active:e.currentId==de.id,currentIndex:Fe,currentId:de.id,len:ue.list.length,item:de},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{drag:!0,item:de,data:{}},null,8,["item"]))]),_:2},1032,["active","currentIndex","currentId","len","item"])):createCommentVNode("",!0)]),_:2},1032,["modelValue","onUpdate:modelValue","onAdd","onChoose","onUpdate"])):!e.drag&&ue.list.length>0?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(ue.list,de=>(openBlock(),createElementBlock(Fragment,null,[de.layout?(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{ref_for:!0,ref:"controlObj",key:de.id,onChange:n[1]||(n[1]=Fe=>e.$emit("change")),item:de,data:e.data||"{}",drag:!1},null,40,["item","data"])):(openBlock(),createBlock(re,{prop:de.data.fieldName,key:de.id},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(de.ControlType),{ref_for:!0,ref:"controlObj",onChange:n[0]||(n[0]=Fe=>e.$emit("change")),item:de,data:e.data||"{}",drag:!1},null,40,["item","data"]))]),_:2},1032,["prop"]))],64))),256)):createCommentVNode("",!0)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])}var Tabs=_export_sfc$1(_sfc_main$5$1,[["render",_sfc_render$5$1]]);const _sfc_main$4$1=defineComponent({ControlType:"ListConfig",nameCn:"\u6805\u683C\u5217\u8868\u914D\u7F6E",isHide:!0,props:{...fieldProps},components:{Delete:delete_default},setup(e){return{onAdd(){e.data[e.item.data.fieldName].push({span:12,list:[]})},onDelete(n){e.data[e.item.data.fieldName].splice(n,1)}}}}),_hoisted_1$4$1=createTextVNode("\u6DFB\u52A0");function _sfc_render$4$1(e,n,r,g,$,L){const k=resolveComponent("el-input-number"),oe=resolveComponent("Delete"),re=resolveComponent("el-icon"),ae=resolveComponent("el-button"),le=resolveComponent("el-row");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem starfish-formitem-nomiddle",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.data[e.item.data.fieldName],(ue,pe)=>(openBlock(),createBlock(le,{key:pe,gutter:10,style:{"margin-bottom":"10px"}},{default:withCtx(()=>[createVNode(k,{modelValue:ue.span,"onUpdate:modelValue":de=>ue.span=de,min:0,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),createVNode(ae,{type:"danger",circle:"",size:"small",onClick:de=>e.onDelete(pe),style:{"margin-left":"5px"}},{default:withCtx(()=>[createVNode(re,null,{default:withCtx(()=>[createVNode(oe)]),_:1})]),_:2},1032,["onClick"])]),_:2},1024))),128)),createVNode(ae,{plain:"",onClick:e.onAdd,size:"small"},{default:withCtx(()=>[_hoisted_1$4$1]),_:1},8,["onClick"])],4)],2)}var ListConfig=_export_sfc$1(_sfc_main$4$1,[["render",_sfc_render$4$1]]);const _sfc_main$3$1=defineComponent({ControlType:"Panel",isHide:!0,components:{Delete:delete_default},props:{...fieldProps},setup(e){return{removeAt(n){e.data[e.item.data.fieldName].splice(n,1)},add:function(){debugger;const n=e.data[e.item.data.fieldName].length+1;e.data[e.item.data.fieldName].push({name:e.data.name+n,list:[]})}}}}),_hoisted_1$3$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1),_hoisted_2$3$1=createBaseVNode("i",{class:"iconfont icon-bars handle"},null,-1),_hoisted_3$3$1=createTextVNode("\u6DFB\u52A0\u9762\u677F");function _sfc_render$3$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-col"),re=resolveComponent("el-input"),ae=resolveComponent("Delete"),le=resolveComponent("el-icon"),ue=resolveComponent("el-button"),pe=resolveComponent("el-row"),de=resolveComponent("draggable");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem starfish-formitem-nomiddle",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),createVNode(k,{class:"item",effect:"dark",content:"\u53EF\u62D6\u62FD\u8C03\u6574\u987A\u5E8F",placement:"top"},{default:withCtx(()=>[_hoisted_1$3$1]),_:1})],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[createVNode(pe,null,{default:withCtx(()=>[createVNode(oe,{span:24},{default:withCtx(()=>[createVNode(de,{list:e.data[e.item.data.fieldName],class:"list-group",handle:".handle","item-key":"name",ghostClass:"itemGhost"},{item:withCtx(({element:Fe,index:ze})=>[createVNode(pe,{gutter:10},{default:withCtx(()=>[createVNode(oe,{span:1.5},{default:withCtx(()=>[_hoisted_2$3$1]),_:1},8,["span"]),createVNode(oe,{class:"list-group-item",span:14},{default:withCtx(()=>[createVNode(re,{size:"small",modelValue:Fe.name,"onUpdate:modelValue":Ce=>Fe.name=Ce,clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),createVNode(oe,{span:2},{default:withCtx(()=>[createVNode(ue,{type:"danger",circle:"",size:"small",onClick:Ce=>e.removeAt(ze)},{default:withCtx(()=>[createVNode(le,null,{default:withCtx(()=>[createVNode(ae)]),_:1})]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:1},8,["list"])]),_:1}),createVNode(ue,{type:"primary",text:"",onClick:e.add,size:"small"},{default:withCtx(()=>[_hoisted_3$3$1]),_:1},8,["onClick"])]),_:1})],4)],2)}var Panel=_export_sfc$1(_sfc_main$3$1,[["render",_sfc_render$3$1]]);const _sfc_main$2$1=defineComponent({ControlType:"RadioGroup",isHide:!0,props:{...fieldProps},setup(e){useWatch(e)}}),_hoisted_1$2$1={class:"label"},_hoisted_2$2$1={key:0,class:"item_require"},_hoisted_3$2$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1),_hoisted_4$1$1={class:"control"};function _sfc_render$2$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-radio-button"),re=resolveComponent("el-radio-group");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",e.drag?"formCover":""])},[createBaseVNode("div",_hoisted_1$2$1,[createBaseVNode("label",null,toDisplayString(e.item.data.label),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_2$2$1,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_3$2$1]),_:1},8,["content"])):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_4$1$1,[createVNode(re,{modelValue:e.data[e.item.data.fieldName],"onUpdate:modelValue":n[0]||(n[0]=ae=>e.data[e.item.data.fieldName]=ae),size:"mini"},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.itemConfig.items,(ae,le)=>(openBlock(),createBlock(oe,{key:le,label:ae.value},null,8,["label"]))),128))]),_:1},8,["modelValue"])])],2)}var RadioGroup=_export_sfc$1(_sfc_main$2$1,[["render",_sfc_render$2$1]]);const _sfc_main$1$1=defineComponent({ControlType:"FormAction",isHide:!0,props:{item:{type:Object,default:()=>({})},data:{type:Object,default:()=>({})},drag:{type:Boolean,default:!1},labelalign:{type:String,default:"top"},labelWidth:{type:Number},size:{type:String},isForm:{type:Boolean,default:!1}},setup(e){const{actionContrl:n}=inject("control")||{},r=ref(),{proxy:g}=getCurrentInstance(),$=ref(window.VApp.$Flex.deepClone(n?.get("action"))),L=ref(window.VApp.$Flex.deepClone(n?.get("currentAction")));let k="";const oe=reactive({funcName:[{required:!0,message:"\u51FD\u6570\u540D\u79F0\u5FC5\u586B",trigger:"change"}]});return console.log(e),onMounted(()=>{}),{rules:oe,actionRef:r,action:$,currentAction:L,getField(re){return window.VApp.$Flex.getField(re)},onAction(re){if($.value=window.VApp.$Flex.deepClone(n?.get("action")),r.value.init("\u52A8\u4F5C\u8BBE\u7F6E","icon-bianji"),r.value.show(),re){k=re;const ae=$.value.find(le=>{if(le.type==re)return le});ae?L.value=ae:g.addAction(re)}},onEditAction(re,ae){k=re,$.value=window.VApp.$Flex.deepClone(n?.get("action")),r.value.init("\u52A8\u4F5C\u8BBE\u7F6E","icon-bianji"),r.value.show();const le=$.value.find(ue=>{if(ue.type==ae)return ue});le&&(L.value=le)},handleAction(re){L.value=re},onSave(){n?.set("action",$.value),r.value.close()},onCancel(){r.value.close()},copyAction(re){const ae=window.VApp.$Flex.deepClone(re);ae.funcName=ae.funcName+"_copy",ae.type=window.VApp.$Flex.generateMixed(5),$.value.push(ae),L.value=ae},deleteAction(re){$.value=$.value.filter(ae=>{if(ae.type!==re.type)return ae}),L.value&&re.type==L.value.type&&(L.value=null)},addAction(re){const ae={funcName:(re||"func")+"_"+window.VApp.$Flex.generateMixed(5),type:window.VApp.$Flex.generateMixed(5),funcStr:"",methods:re};$.value.push(ae),re&&(L.value=ae)},onConfirm(){e.data[e.item.data.fieldName]||(e.data[e.item.data.fieldName]={}),e.data[e.item.data.fieldName][k]=JSON.stringify(L.value),g.onSave()}}}}),_hoisted_1$1$1={key:0,class:"item_require"},_hoisted_2$1$1=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1),_hoisted_3$1$1=createTextVNode(" \u8BBE\u7F6E "),_hoisted_4$c={class:"common-layout"},_hoisted_5$9={class:"action-header"},_hoisted_6$8=createTextVNode(" +\u6DFB\u52A0\u52A8\u4F5C"),_hoisted_7$6={class:"action-list"},_hoisted_8$5=["onClick"],_hoisted_9$4=createBaseVNode("span",{class:"event-script-menu-i"},"Function",-1),_hoisted_10$4={class:"event-script-menu-label"},_hoisted_11$4={key:0,class:"event-script-menu-action"},_hoisted_12$4=["onClick"],_hoisted_13$4=["onClick"],_hoisted_14$4={class:"action-header event-script-main-header"},_hoisted_15=createTextVNode("\u786E\u5B9A"),_hoisted_16=createTextVNode("\u4FDD\u5B58"),_hoisted_17=createTextVNode("\u53D6\u6D88"),_hoisted_18={class:"coding"},_hoisted_19={class:"header"},_hoisted_20=createBaseVNode("div",{class:"footer"},"}",-1);function _sfc_render$1$1(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-button"),re=resolveComponent("el-scrollbar"),ae=resolveComponent("el-main"),le=resolveComponent("el-container"),ue=resolveComponent("el-aside"),pe=resolveComponent("el-input"),de=resolveComponent("el-form-item"),Fe=resolveComponent("codemirror"),ze=resolveComponent("el-form"),Ce=resolveComponent("CustomDialog");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[e.isForm?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$1$1,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$1$1]),_:1},8,["content"])):createCommentVNode("",!0)],6)),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.isForm?createCommentVNode("",!0):(openBlock(),createBlock(oe,{key:0,style:{width:"100%"},onClick:e.onAction},{default:withCtx(()=>[_hoisted_3$1$1]),_:1},8,["onClick"])),createVNode(Ce,{ref:"actionRef"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$c,[createVNode(le,{style:{height:"100%",border:"1px solid rgb(238, 238, 238)"}},{default:withCtx(()=>[createVNode(le,null,{default:withCtx(()=>[createVNode(ue,{width:"300px",class:"event-script-aside"},{default:withCtx(()=>[createVNode(le,{class:"is-vertical"},{default:withCtx(()=>[createBaseVNode("header",_hoisted_5$9,[createVNode(oe,{type:"text",size:e.size,onClick:e.addAction},{default:withCtx(()=>[_hoisted_6$8]),_:1},8,["size","onClick"])]),createVNode(ae,null,{default:withCtx(()=>[createVNode(re,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_7$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.action,(Ie,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["action",e.currentAction&&Ie.type==e.currentAction.type?"selectAction":""]),key:_e,onClick:At=>e.handleAction(Ie)},[_hoisted_9$4,createBaseVNode("div",_hoisted_10$4,toDisplayString(Ie.funcName),1),Ie.disabled?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_11$4,[createBaseVNode("i",{title:"\u590D\u5236",class:"iconfont icon-fuzhi",onClick:withModifiers(At=>e.copyAction(Ie),["stop"])},null,8,_hoisted_12$4),createBaseVNode("i",{title:"\u5220\u9664",class:"iconfont icon-shanchu1",onClick:withModifiers(At=>e.deleteAction(Ie),["stop"])},null,8,_hoisted_13$4)]))],10,_hoisted_8$5))),128))])]),_:1})]),_:1})]),_:1})]),_:1}),createVNode(ae,{class:"event-script-main"},{default:withCtx(()=>[createVNode(le,{class:"is-vertical"},{default:withCtx(()=>[createBaseVNode("header",_hoisted_14$4,[createVNode(oe,{type:"primary",onClick:e.onConfirm,size:"small"},{default:withCtx(()=>[_hoisted_15]),_:1},8,["onClick"]),createVNode(oe,{type:"primary",onClick:e.onSave,size:"small"},{default:withCtx(()=>[_hoisted_16]),_:1},8,["onClick"]),createVNode(oe,{onClick:e.onCancel,size:"small"},{default:withCtx(()=>[_hoisted_17]),_:1},8,["onClick"])]),e.currentAction?(openBlock(),createBlock(ae,{key:0,class:"func_main"},{default:withCtx(()=>[createVNode(re,null,{default:withCtx(()=>[createVNode(ze,{model:e.currentAction,rules:e.rules},{default:withCtx(()=>[createVNode(de,{label:"Function Name",prop:"funcName"},{default:withCtx(()=>[createVNode(pe,{modelValue:e.currentAction.funcName,"onUpdate:modelValue":n[0]||(n[0]=Ie=>e.currentAction.funcName=Ie),disabled:e.currentAction.disabled},null,8,["modelValue","disabled"])]),_:1}),createVNode(de,{prop:"funcStr"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_18,[createBaseVNode("div",_hoisted_19," function "+toDisplayString(e.currentAction.funcName)+"("+toDisplayString(e.getField(e.currentAction.methods))+"){ ",1),createVNode(Fe,{modelValue:e.currentAction.funcStr,"onUpdate:modelValue":n[1]||(n[1]=Ie=>e.currentAction.funcStr=Ie),placeholder:"",style:{height:"400px"},mode:"text/javascript",autofocus:!0,"indent-with-tab":!0,"tab-size":2},null,8,["modelValue"]),_hoisted_20])]),_:1})]),_:1},8,["model","rules"])]),_:1})]),_:1})):createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1},512)],4)],2)}var formAction=_export_sfc$1(_sfc_main$1$1,[["render",_sfc_render$1$1]]);const _sfc_main$v=defineComponent({ControlType:"Action",isHide:!0,props:{...fieldProps},components:{Delete:delete_default,Edit:edit_default},setup(e){const{actionContrl:n}=inject("control")||{},r=computed(()=>n?.get("action")),g=ref();return{action:r,formAction:g,addAction($){g.value.onAction($)},onEditAction($,L){const k=(JSON.parse($||"{}")||{}).type;g.value.onEditAction(L,k)},onRemoveAction($){delete e.data[e.item.data.fieldName][$]}}}}),_hoisted_1$v={key:0,class:"item_require"},_hoisted_2$p=createBaseVNode("span",{class:"tip iconfont icon-tishi"},null,-1),_hoisted_3$d=createTextVNode(" \u65B0\u5EFA\u52A8\u4F5C+ ");function _sfc_render$v(e,n,r,g,$,L){const k=resolveComponent("el-tooltip"),oe=resolveComponent("el-option"),re=resolveComponent("el-select"),ae=resolveComponent("el-col"),le=resolveComponent("Edit"),ue=resolveComponent("el-icon"),pe=resolveComponent("el-button"),de=resolveComponent("Delete"),Fe=resolveComponent("el-row"),ze=resolveComponent("el-collapse-item"),Ce=resolveComponent("el-collapse"),Ie=resolveComponent("el-dropdown-item"),_e=resolveComponent("el-dropdown-menu"),At=resolveComponent("el-dropdown"),qe=resolveComponent("formAction");return openBlock(),createElementBlock("div",{class:normalizeClass(["starfish-formitem starfish-formitem-action",{formCover:e.drag,"starfish-vertical":e.labelalign!="top",[e.item.data.csslist?.join(" ")]:!!e.item.data.csslist}])},[createBaseVNode("div",{class:normalizeClass(["label","label_"+e.labelalign]),style:normalizeStyle({width:e.labelWidth+"px"})},[createBaseVNode("label",null,toDisplayString(e.item.data.label)+toDisplayString(e.suffix),1),e.item.data.required?(openBlock(),createElementBlock("span",_hoisted_1$v,"*")):createCommentVNode("",!0),e.item.data.tip?(openBlock(),createBlock(k,{key:1,class:"item",effect:"dark",content:e.item.data.tip,placement:"top"},{default:withCtx(()=>[_hoisted_2$p]),_:1},8,["content"])):createCommentVNode("",!0)],6),createBaseVNode("div",{class:"control",style:normalizeStyle({marginLeft:e.labelalign!="top"?e.labelWidth+"px":""})},[e.data[e.item.data.fieldName]?(openBlock(),createBlock(Ce,{key:0},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.data[e.item.data.fieldName],(xe,Ve)=>(openBlock(),createBlock(ze,{title:Ve,name:"1",key:Ve},{default:withCtx(()=>[createVNode(Fe,{gutter:10},{default:withCtx(()=>[createVNode(ae,{class:"list-group-item",span:16},{default:withCtx(()=>[createVNode(re,{modelValue:e.data[e.item.data.fieldName][Ve],"onUpdate:modelValue":he=>e.data[e.item.data.fieldName][Ve]=he,class:"m-2",placeholder:"Select",size:e.size,style:{width:"100%"}},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.action,he=>(openBlock(),createBlock(oe,{key:he.type,label:he.funcName,value:JSON.stringify(he)},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","size"])]),_:2},1024),createVNode(ae,{span:6,style:{"white-space":"nowrap"}},{default:withCtx(()=>[createVNode(pe,{type:"primary",circle:"",size:e.size,onClick:he=>e.onEditAction(xe,Ve)},{default:withCtx(()=>[createVNode(ue,null,{default:withCtx(()=>[createVNode(le)]),_:1})]),_:2},1032,["size","onClick"]),createVNode(pe,{type:"danger",circle:"",size:e.size,onClick:he=>e.onRemoveAction(Ve)},{default:withCtx(()=>[createVNode(ue,null,{default:withCtx(()=>[createVNode(de)]),_:1})]),_:2},1032,["size","onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1032,["title"]))),128))]),_:1})):createCommentVNode("",!0),createVNode(At,{style:{width:"100%"}},{dropdown:withCtx(()=>[createVNode(_e,null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.item.data.formConfig.items,(xe,Ve)=>(openBlock(),createBlock(Ie,{key:Ve,onClick:he=>e.addAction(xe.value),disabled:e.data[e.item.data.fieldName]&&e.data[e.item.data.fieldName][xe.value]},{default:withCtx(()=>[createTextVNode(toDisplayString(xe.label),1)]),_:2},1032,["onClick","disabled"]))),128))]),_:1})]),default:withCtx(()=>[createVNode(pe,{style:{width:"100%"},size:e.size},{default:withCtx(()=>[_hoisted_3$d]),_:1},8,["size"])]),_:1})],4),createVNode(qe,{isForm:!0,item:e.item,data:e.data,ref:"formAction"},null,8,["item","data"])],2)}var Action$1=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$v]]);const formcomponents={};formcomponents[Text.ControlType]=Text;formcomponents[TextArea.ControlType]=TextArea;formcomponents[Switch.ControlType]=Switch;formcomponents[Radio.ControlType]=Radio;formcomponents[KeyValueConfig.ControlType]=KeyValueConfig;formcomponents[KeyValueConfigMult.ControlType]=KeyValueConfigMult;formcomponents[CheckBox.ControlType]=CheckBox;formcomponents[JsonEditor.ControlType]=JsonEditor;formcomponents[ColorSelect.ControlType]=ColorSelect;formcomponents[Date$1.ControlType]=Date$1;formcomponents[Time.ControlType]=Time;formcomponents[DateTime.ControlType]=DateTime;formcomponents[InputNumber.ControlType]=InputNumber;formcomponents[Slider.ControlType]=Slider;formcomponents[Selected.ControlType]=Selected;formcomponents[Selecteds.ControlType]=Selecteds;formcomponents[RichText.ControlType]=RichText;formcomponents[Grid.ControlType]=Grid;formcomponents[TableLayout.ControlType]=TableLayout;formcomponents[Collapse.ControlType]=Collapse;formcomponents[Tabs.ControlType]=Tabs;formcomponents[Divider.ControlType]=Divider;formcomponents[Info.ControlType]=Info;formcomponents[ListConfig.ControlType]=ListConfig;formcomponents[Panel.ControlType]=Panel;formcomponents[Rule.ControlType]=Rule;formcomponents[ShowRule.ControlType]=ShowRule;formcomponents[RadioGroup.ControlType]=RadioGroup;formcomponents[formAction.ControlType]=formAction;formcomponents[Action$1.ControlType]=Action$1;const install=e=>{e.config.globalProperties.$formcomponents=formcomponents;for(const n in formcomponents)e.component(n,formcomponents[n])};var main$1={install},clipboard={exports:{}};/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(e,n){(function(g,$){e.exports=$()})(commonjsGlobal,function(){return function(){var r={686:function(L,k,oe){oe.d(k,{default:function(){return Sn}});var re=oe(279),ae=oe.n(re),le=oe(370),ue=oe.n(le),pe=oe(817),de=oe.n(pe);function Fe(Cn){try{return document.execCommand(Cn)}catch{return!1}}var ze=function(On){var En=de()(On);return Fe("cut"),En},Ce=ze;function Ie(Cn){var On=document.documentElement.getAttribute("dir")==="rtl",En=document.createElement("textarea");En.style.fontSize="12pt",En.style.border="0",En.style.padding="0",En.style.margin="0",En.style.position="absolute",En.style[On?"right":"left"]="-9999px";var An=window.pageYOffset||document.documentElement.scrollTop;return En.style.top="".concat(An,"px"),En.setAttribute("readonly",""),En.value=Cn,En}var _e=function(On,En){var An=Ie(On);En.container.appendChild(An);var In=de()(An);return Fe("copy"),An.remove(),In},At=function(On){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},An="";return typeof On=="string"?An=_e(On,En):On instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(On?.type)?An=_e(On.value,En):(An=de()(On),Fe("copy")),An},qe=At;function xe(Cn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xe=function(En){return typeof En}:xe=function(En){return En&&typeof Symbol=="function"&&En.constructor===Symbol&&En!==Symbol.prototype?"symbol":typeof En},xe(Cn)}var Ve=function(){var On=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},En=On.action,An=En===void 0?"copy":En,In=On.container,$n=On.target,Pn=On.text;if(An!=="copy"&&An!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if($n!==void 0)if($n&&xe($n)==="object"&&$n.nodeType===1){if(An==="copy"&&$n.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(An==="cut"&&($n.hasAttribute("readonly")||$n.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Pn)return qe(Pn,{container:In});if($n)return An==="cut"?Ce($n):qe($n,{container:In})},he=Ve;function Oe(Cn){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oe=function(En){return typeof En}:Oe=function(En){return En&&typeof Symbol=="function"&&En.constructor===Symbol&&En!==Symbol.prototype?"symbol":typeof En},Oe(Cn)}function $e(Cn,On){if(!(Cn instanceof On))throw new TypeError("Cannot call a class as a function")}function Ne(Cn,On){for(var En=0;En"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Dt(Cn){return Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(En){return En.__proto__||Object.getPrototypeOf(En)},Dt(Cn)}function jt(Cn,On){var En="data-clipboard-".concat(Cn);if(!!On.hasAttribute(En))return On.getAttribute(En)}var bn=function(Cn){kt(En,Cn);var On=Pt(En);function En(An,In){var $n;return $e(this,En),$n=On.call(this),$n.resolveOptions(In),$n.listenClick(An),$n}return Ue(En,[{key:"resolveOptions",value:function(){var In=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof In.action=="function"?In.action:this.defaultAction,this.target=typeof In.target=="function"?In.target:this.defaultTarget,this.text=typeof In.text=="function"?In.text:this.defaultText,this.container=Oe(In.container)==="object"?In.container:document.body}},{key:"listenClick",value:function(In){var $n=this;this.listener=ue()(In,"click",function(Pn){return $n.onClick(Pn)})}},{key:"onClick",value:function(In){var $n=In.delegateTarget||In.currentTarget,Pn=this.action($n)||"copy",Dn=he({action:Pn,container:this.container,target:this.target($n),text:this.text($n)});this.emit(Dn?"success":"error",{action:Pn,text:Dn,trigger:$n,clearSelection:function(){$n&&$n.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(In){return jt("action",In)}},{key:"defaultTarget",value:function(In){var $n=jt("target",In);if($n)return document.querySelector($n)}},{key:"defaultText",value:function(In){return jt("text",In)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(In){var $n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return qe(In,$n)}},{key:"cut",value:function(In){return Ce(In)}},{key:"isSupported",value:function(){var In=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],$n=typeof In=="string"?[In]:In,Pn=!!document.queryCommandSupported;return $n.forEach(function(Dn){Pn=Pn&&!!document.queryCommandSupported(Dn)}),Pn}}]),En}(ae()),Sn=bn},828:function(L){var k=9;if(typeof Element<"u"&&!Element.prototype.matches){var oe=Element.prototype;oe.matches=oe.matchesSelector||oe.mozMatchesSelector||oe.msMatchesSelector||oe.oMatchesSelector||oe.webkitMatchesSelector}function re(ae,le){for(;ae&&ae.nodeType!==k;){if(typeof ae.matches=="function"&&ae.matches(le))return ae;ae=ae.parentNode}}L.exports=re},438:function(L,k,oe){var re=oe(828);function ae(pe,de,Fe,ze,Ce){var Ie=ue.apply(this,arguments);return pe.addEventListener(Fe,Ie,Ce),{destroy:function(){pe.removeEventListener(Fe,Ie,Ce)}}}function le(pe,de,Fe,ze,Ce){return typeof pe.addEventListener=="function"?ae.apply(null,arguments):typeof Fe=="function"?ae.bind(null,document).apply(null,arguments):(typeof pe=="string"&&(pe=document.querySelectorAll(pe)),Array.prototype.map.call(pe,function(Ie){return ae(Ie,de,Fe,ze,Ce)}))}function ue(pe,de,Fe,ze){return function(Ce){Ce.delegateTarget=re(Ce.target,de),Ce.delegateTarget&&ze.call(pe,Ce)}}L.exports=le},879:function(L,k){k.node=function(oe){return oe!==void 0&&oe instanceof HTMLElement&&oe.nodeType===1},k.nodeList=function(oe){var re=Object.prototype.toString.call(oe);return oe!==void 0&&(re==="[object NodeList]"||re==="[object HTMLCollection]")&&"length"in oe&&(oe.length===0||k.node(oe[0]))},k.string=function(oe){return typeof oe=="string"||oe instanceof String},k.fn=function(oe){var re=Object.prototype.toString.call(oe);return re==="[object Function]"}},370:function(L,k,oe){var re=oe(879),ae=oe(438);function le(Fe,ze,Ce){if(!Fe&&!ze&&!Ce)throw new Error("Missing required arguments");if(!re.string(ze))throw new TypeError("Second argument must be a String");if(!re.fn(Ce))throw new TypeError("Third argument must be a Function");if(re.node(Fe))return ue(Fe,ze,Ce);if(re.nodeList(Fe))return pe(Fe,ze,Ce);if(re.string(Fe))return de(Fe,ze,Ce);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function ue(Fe,ze,Ce){return Fe.addEventListener(ze,Ce),{destroy:function(){Fe.removeEventListener(ze,Ce)}}}function pe(Fe,ze,Ce){return Array.prototype.forEach.call(Fe,function(Ie){Ie.addEventListener(ze,Ce)}),{destroy:function(){Array.prototype.forEach.call(Fe,function(Ie){Ie.removeEventListener(ze,Ce)})}}}function de(Fe,ze,Ce){return ae(document.body,Fe,ze,Ce)}L.exports=le},817:function(L){function k(oe){var re;if(oe.nodeName==="SELECT")oe.focus(),re=oe.value;else if(oe.nodeName==="INPUT"||oe.nodeName==="TEXTAREA"){var ae=oe.hasAttribute("readonly");ae||oe.setAttribute("readonly",""),oe.select(),oe.setSelectionRange(0,oe.value.length),ae||oe.removeAttribute("readonly"),re=oe.value}else{oe.hasAttribute("contenteditable")&&oe.focus();var le=window.getSelection(),ue=document.createRange();ue.selectNodeContents(oe),le.removeAllRanges(),le.addRange(ue),re=le.toString()}return re}L.exports=k},279:function(L){function k(){}k.prototype={on:function(oe,re,ae){var le=this.e||(this.e={});return(le[oe]||(le[oe]=[])).push({fn:re,ctx:ae}),this},once:function(oe,re,ae){var le=this;function ue(){le.off(oe,ue),re.apply(ae,arguments)}return ue._=re,this.on(oe,ue,ae)},emit:function(oe){var re=[].slice.call(arguments,1),ae=((this.e||(this.e={}))[oe]||[]).slice(),le=0,ue=ae.length;for(le;le-1&&L.splice(k,1)}}return this},n.once=function(r,g){var $=this;return g&&this._addEvent(r,g,{once:!0}),new Promise(function(L){$._addEvent(r,L,{once:!0})})},n.emit=function(r,g){var $=this;g===void 0&&(g={});var L=this._events[r];if(!r||!L)return!0;var k=!1;return g.eventType=r,g.stop=function(){k=!0},g.currentTarget=this,__spreadArrays(L).forEach(function(oe){oe.listener(g),oe.once&&$.off(r,oe.listener)}),!k},n.trigger=function(r,g){return g===void 0&&(g={}),this.emit(r,g)},n._addEvent=function(r,g,$){var L=this._events;L[r]=L[r]||[];var k=L[r];k.push(__assign({listener:g},$))},e}();function createCommonjsModule(e,n){return n={exports:{}},e(n,n.exports),n.exports}var keycode=createCommonjsModule(function(e,n){function r(re){if(re&&typeof re=="object"){var ae=re.which||re.keyCode||re.charCode;ae&&(re=ae)}if(typeof re=="number")return k[re];var le=String(re),ue=g[le.toLowerCase()];if(ue)return ue;var ue=$[le.toLowerCase()];if(ue)return ue;if(le.length===1)return le.charCodeAt(0)}r.isEventKey=function(ae,le){if(ae&&typeof ae=="object"){var ue=ae.which||ae.keyCode||ae.charCode;if(ue==null)return!1;if(typeof le=="string"){var pe=g[le.toLowerCase()];if(pe)return pe===ue;var pe=$[le.toLowerCase()];if(pe)return pe===ue}else if(typeof le=="number")return le===ue;return!1}},n=e.exports=r;var g=n.code=n.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},$=n.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*! + * Programatically add the following + */for(L=97;L<123;L++)g[String.fromCharCode(L)]=L-32;for(var L=48;L<58;L++)g[L-48]=L;for(L=1;L<13;L++)g["f"+L]=L+111;for(L=0;L<10;L++)g["numpad "+L]=L+96;var k=n.names=n.title={};for(L in g)k[g[L]]=L;for(var oe in $)g[oe]=$[oe]});keycode.code;keycode.codes;keycode.aliases;var keycode_4=keycode.names;keycode.title;var codeData={"+":"plus","left command":"meta","right command":"meta"},keysSort={shift:1,ctrl:2,alt:3,meta:4};function getKey(e,n){var r=(keycode_4[e]||n||"").toLowerCase();for(var g in codeData)r=r.replace(g,codeData[g]);return r.replace(/\s/g,"")}function getCombi(e,n){n===void 0&&(n=getKey(e.keyCode,e.key));var r=getModifierCombi(e);return r.indexOf(n)===-1&&r.push(n),r.filter(Boolean)}function getModifierCombi(e){var n=[e.shiftKey&&"shift",e.ctrlKey&&"ctrl",e.altKey&&"alt",e.metaKey&&"meta"];return n.filter(Boolean)}function getArrangeCombi(e){var n=e.slice();return n.sort(function(r,g){var $=keysSort[r]||5,L=keysSort[g]||5;return $-L}),n}var globalKeyController,KeyController=function(e){__extends(n,e);function n(g){g===void 0&&(g=window);var $=e.call(this)||this;return $.container=g,$.ctrlKey=!1,$.altKey=!1,$.shiftKey=!1,$.metaKey=!1,$.clear=function(){return $.ctrlKey=!1,$.altKey=!1,$.shiftKey=!1,$.metaKey=!1,$},$.keydownEvent=function(L){$.triggerEvent("keydown",L)},$.keyupEvent=function(L){$.triggerEvent("keyup",L)},$.blur=function(){$.clear(),$.trigger("blur")},addEvent(g,"blur",$.blur),addEvent(g,"keydown",$.keydownEvent),addEvent(g,"keyup",$.keyupEvent),$}var r=n.prototype;return Object.defineProperty(n,"global",{get:function(){return globalKeyController||(globalKeyController=new n)},enumerable:!1,configurable:!0}),n.setGlobal=function(){return this.global},r.destroy=function(){var g=this.container;this.clear(),this.off(),removeEvent(g,"blur",this.blur),removeEvent(g,"keydown",this.keydownEvent),removeEvent(g,"keyup",this.keyupEvent)},r.keydown=function(g,$){return this.addEvent("keydown",g,$)},r.offKeydown=function(g,$){return this.removeEvent("keydown",g,$)},r.offKeyup=function(g,$){return this.removeEvent("keyup",g,$)},r.keyup=function(g,$){return this.addEvent("keyup",g,$)},r.addEvent=function(g,$,L){return isArray$1($)?this.on(g+"."+getArrangeCombi($).join("."),L):isString($)?this.on(g+"."+$,L):this.on(g,$),this},r.removeEvent=function(g,$,L){return isArray$1($)?this.off(g+"."+getArrangeCombi($).join("."),L):isString($)?this.off(g+"."+$,L):this.off(g,$),this},r.triggerEvent=function(g,$){this.ctrlKey=$.ctrlKey,this.shiftKey=$.shiftKey,this.altKey=$.altKey,this.metaKey=$.metaKey;var L=getKey($.keyCode,$.key),k=L==="ctrl"||L==="shift"||L==="meta"||L==="alt",oe={key:L,isToggle:k,inputEvent:$,keyCode:$.keyCode,ctrlKey:$.ctrlKey,altKey:$.altKey,shiftKey:$.shiftKey,metaKey:$.metaKey};this.trigger(g,oe),this.trigger(g+"."+L,oe);var re=getCombi($,L);re.length>1&&this.trigger(g+"."+re.join("."),oe)},n}(EventEmitter);const KeyController$1=KeyController,jsoneditor_min$1="";var jsoneditor_min={exports:{}};/*! + * jsoneditor.js + * + * @brief + * JSONEditor is a web-based tool to view, edit, format, and validate JSON. + * It has various modes such as a tree editor, a code editor, and a plain text + * editor. + * + * Supported browsers: Chrome, Firefox, Safari, Opera, Internet Explorer 8+ + * + * @license + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy + * of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + * + * Copyright (c) 2011-2022 Jos de Jong, http://jsoneditoronline.org + * + * @author Jos de Jong, + * @version 9.9.0 + * @date 2022-06-13 + */(function(e,n){(function(r,g){e.exports=g()})(self,function(){return g={897:function(L,k,oe){oe.d(k,{x:function(){return pe}});var re=oe(2602),ae=oe(9791),le=oe(7907);function ue(de,Fe){for(var ze=0;zeVe.top&&(At=!1),_e?0:qe.top-xe.top);At?(_e=Ce.offsetHeight,this.dom.menu.style.left="0",this.dom.menu.style.top=Oe+_e+"px",this.dom.menu.style.bottom=""):(this.dom.menu.style.left="0",this.dom.menu.style.top="",this.dom.menu.style.bottom="0px"),this.limitHeight&&(xe=At?Ve.bottom-qe.bottom-10:qe.top-Ve.top-10,this.dom.list.style.maxHeight=xe+"px",this.dom.list.style.overflowY="auto"),this.dom.absoluteAnchor.appendChild(this.dom.root),this.selection=(0,ae.getSelection)(),this.anchor=Ce,setTimeout(function(){he.dom.focusButton.focus()},0),de.visibleMenu&&de.visibleMenu.hide(),de.visibleMenu=this}},{key:"hide",value:function(){this.dom.absoluteAnchor&&(this.dom.absoluteAnchor.destroy(),delete this.dom.absoluteAnchor),this.dom.root.parentNode&&(this.dom.root.parentNode.removeChild(this.dom.root),this.onClose&&this.onClose()),de.visibleMenu===this&&(de.visibleMenu=void 0)}},{key:"_onExpandItem",value:function(Ce){var Ie,_e=this,At=Ce===this.expandedItem,qe=this.expandedItem;qe&&(qe.ul.style.height="0",qe.ul.style.padding="",setTimeout(function(){_e.expandedItem!==qe&&(qe.ul.style.display="",ae.removeClassName)(qe.ul.parentNode,"jsoneditor-selected")},300),this.expandedItem=void 0),At||((Ie=Ce.ul).style.display="block",Ie.clientHeight,setTimeout(function(){if(_e.expandedItem===Ce){for(var xe=0,Ve=0;Ve/gi,` +`))),Ve.appendChild(he),xe.appendChild(Ve)),xe.onclick=function(){Ie.onFocusLine(qe)},ze.appendChild(xe)}),this.dom.validationErrors=_e,this.dom.validationErrorsContainer.appendChild(_e),this.dom.additionalErrorsIndication.title=de.length+" errors total",this.dom.validationErrorsContainer.clientHeight"u"&&console.error("Promise undefined. Please load a Promise polyfill in the browser in order to use JSONEditor"),Ve.modes={},Ve.prototype.DEBOUNCE_INTERVAL=150,Ve.VALID_OPTIONS=["ajv","schema","schemaRefs","templates","ace","theme","autocomplete","onChange","onChangeJSON","onChangeText","onExpand","onEditable","onError","onEvent","onModeChange","onNodeName","onValidate","onCreateMenu","onSelectionChange","onTextSelectionChange","onClassName","onFocus","onBlur","colorPicker","onColorPicker","timestampTag","timestampFormat","escapeUnicode","history","search","mode","modes","name","indentation","sortObjectKeys","navigationBar","statusBar","mainMenuBar","languages","language","enableSort","enableTransform","limitDragging","maxVisibleChilds","onValidationError","modalAnchor","popupAnchor","createQuery","executeQuery","queryDescription","allowSchemaSuggestions"],Ve.prototype._create=function(he,Oe,$e){this.container=he,this.options=Oe||{},this.json=$e||{},he=this.options.mode||this.options.modes&&this.options.modes[0]||"tree",this.setMode(he)},Ve.prototype.destroy=function(){},Ve.prototype.set=function(he){this.json=he},Ve.prototype.get=function(){return this.json},Ve.prototype.setText=function(he){this.json=Ie(he)},Ve.prototype.getText=function(){return JSON.stringify(this.json)},Ve.prototype.setName=function(he){this.options||(this.options={}),this.options.name=he},Ve.prototype.getName=function(){return this.options&&this.options.name},Ve.prototype.setMode=function(he){if(he!==this.options.mode||!this.create){var Oe=this.container,$e=Fe({},this.options),Ne=$e.mode,Ue=($e.mode=he,Ve.modes[he]);if(!Ue)throw new Error('Unknown mode "'+$e.mode+'"');var kt=Ue.data==="text",Et=this.getName(),Pt=this[kt?"getText":"get"]();if(this.destroy(),de(this),Fe(this,Ue.mixin),this.create(Oe,$e),this.setName(Et),this[kt?"setText":"set"](Pt),typeof Ue.load=="function")try{Ue.load.call(this)}catch(Lt){console.error(Lt)}if(typeof $e.onModeChange=="function"&&he!==Ne)try{$e.onModeChange(he,Ne)}catch(Lt){console.error(Lt)}}},Ve.prototype.getMode=function(){return this.options.mode},Ve.prototype._onError=function(he){this.options&&typeof this.options.onError=="function"?this.options.onError(he):window.alert(he.toString())},Ve.prototype.setSchema=function(he,Oe){if(he){var $e;try{this.options.ajv?$e=this.options.ajv:(($e=xe({allErrors:!0,verbose:!0,schemaId:"auto",$data:!0})).addMetaSchema(oe(7171)),$e.addMetaSchema(oe(6273)))}catch{console.warn("Failed to create an instance of Ajv, JSON Schema validation is not available. Please use a JSONEditor bundle including Ajv, or pass an instance of Ajv as via the configuration option `ajv`.")}if($e){if(Oe){for(var Ne in Oe)$e.removeSchema(Ne),Oe[Ne]&&$e.addSchema(Oe[Ne],Ne);this.options.schemaRefs=Oe}this.validateSchema=$e.compile(he),this.options.schema=he,this.options.schemaRefs=Oe,this.validate()}this.refresh()}else this.validateSchema=null,this.options.schema=null,this.options.schemaRefs=null,this.validate(),this.refresh();typeof this._onSchemaChange=="function"&&this._onSchemaChange(he,Oe)},Ve.prototype.validate=function(){},Ve.prototype.refresh=function(){},(Ve.registerMode=function(he){var Oe;if(Array.isArray(he))for(Ue=0;Uere[0].length)||(re=ae,le=de,this.options.flex));de++);return re?((ue=re[0].match(/\n.*/g))&&(this.yylineno+=ue.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ue?ue[ue.length-1].length-1:this.yylloc.last_column+re[0].length},this.yytext+=re[0],this.match+=re[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(re[0].length),this.matched+=re[0],ue=this.performAction.call(this,this.yy,this,pe[le],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ue||void 0):this._input===""?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var re=this.next();return re!==void 0?re:this.lex()},begin:function(re){this.conditionStack.push(re)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(re){this.begin(re)},options:{},performAction:function(re,ae,le,ue){switch(le){case 0:break;case 1:return 6;case 2:return ae.yytext=ae.yytext.substr(1,ae.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};var oe;k.parser=oe,k.parse=oe.parse.bind(oe)},3879:function(L){function k(){}var oe={defaultSelected:!0,width:"auto",disabled:!1,searchable:!0,clearable:!1,sortSelected:!1,allowDeselect:!1,closeOnScroll:!1,nativeDropdown:!1,placeholder:"Select an option...",taggable:!1,tagPlaceholder:"Enter a tag..."},re=(k.prototype={on:function(Ce,Ie){this._events=this._events||{},this._events[Ce]=this._events[Ce]||[],this._events[Ce].push(Ie)},off:function(Ce,Ie){this._events=this._events||{},Ce in this._events&&this._events[Ce].splice(this._events[Ce].indexOf(Ie),1)},emit:function(Ce){if(this._events=this._events||{},Ce in this._events)for(var Ie=0;Ie"+Ue.label+""}),re.each(Ue.children,function(kt,Et){Et.idx=Oe,he.appendChild(pe.call(this,Et,he)),Oe++},this)):(Ue.idx=Oe,pe.call(this,Ue),Oe++)},this),this.config.data&&Array.isArray(this.config.data)&&(At=!(this.data=[]),he=!1,Oe=0,re.each(this.config.data,function(Ne,Ue){ae(Ue,"children")?(At=re.createElement("optgroup",{label:Ue.text}),he=re.createElement("ul",{class:"selectr-optgroup",role:"group",html:"
    • "+Ue.text+"
    • "}),re.each(Ue.children,function(kt,Et){(qe=new Option(Et.text,Et.value,!1,Et.hasOwnProperty("selected")&&Et.selected===!0)).disabled=ae(Et,"disabled"),this.options.push(qe),At.appendChild(qe),qe.idx=Oe,he.appendChild(pe.call(this,qe,Et)),this.data[Oe]=Et,Oe++},this)):((qe=new Option(Ue.text,Ue.value,!1,Ue.hasOwnProperty("selected")&&Ue.selected===!0)).disabled=ae(Ue,"disabled"),this.options.push(qe),qe.idx=Oe,pe.call(this,qe,Ue),this.data[Oe]=Ue,Oe++)},this)),this.setSelected(!0);for(var $e=this.navIndex=0;$ethis.tree.lastElementChild.idx){this.navIndex=this.tree.lastElementChild.idx;break}if(this.navIndexthis.optsRect.top+this.optsRect.height&&(this.tree.scrollTop=this.tree.scrollTop+(Ie.top+Ie.height-(this.optsRect.top+this.optsRect.height))),this.navIndex===this.tree.childElementCount-1&&this.requiresPagination&&de.call(this)):this.navIndex===0?this.tree.scrollTop=0:Ie.top-this.optsRect.top<0&&(this.tree.scrollTop=this.tree.scrollTop+(Ie.top-this.optsRect.top)),At&&re.removeClass(At,"active"),re.addClass(this.items[this.navIndex],"active")}else this.navigating=!1}.bind(this),this.events.reset=this.reset.bind(this),(this.config.nativeDropdown||this.mobileDevice)&&(this.container.addEventListener("touchstart",function(Ie){Ie.changedTouches[0].target===Ce.el&&Ce.toggle()}),(this.config.nativeDropdown||this.mobileDevice)&&this.container.addEventListener("click",function(Ie){Ie.preventDefault(),Ie.stopPropagation(),Ie.target===Ce.el&&Ce.toggle()}),this.el.addEventListener("change",function(Ie){var _e;Ce.el.multiple?(_e=Ce.getSelectedProperties("idx"),_e=function(At,qe){for(var xe,Ve=[],he=At.slice(0),Oe=0;Oe_e?(re.addClass(this.container,"inverted"),this.isInverted=!0):(re.removeClass(this.container,"inverted"),this.isInverted=!1),this.optsRect=re.rect(this.tree)},ze.prototype.getOptionByIndex=function(Ce){return this.options[Ce]},ze.prototype.getOptionByValue=function(Ce){for(var Ie=!1,_e=0,At=this.options.length;_ethis.limit&&1ae.EX?((0,At.addClassName)(($e=this).frame,"busy"),$e.dom.busyContent.innerText=Oe,setTimeout(function(){he(),(0,At.removeClassName)($e.frame,"busy"),$e.dom.busyContent.innerText=""},100)):he()},xe.validate=qe.validate,xe._renderErrors=qe._renderErrors,[{mode:"preview",mixin:xe,data:"json"}])},6210:function(L,re,oe){oe.r(re),oe.d(re,{showSortModal:function(){return pe}});var re=oe(483),ae=oe.n(re),le=oe(7907),ue=oe(9791);function pe(de,qe,ze,Ce){var Ie=Array.isArray(qe)?(0,ue.getChildPaths)(qe):[""],_e=Ce&&Ce.path&&(0,ue.contains)(Ie,Ce.path)?Ce.path:Ie[0],At=Ce&&Ce.direction||"asc",qe='
      '+(0,le.Iu)("sort")+"
      "+(0,le.Iu)("sortFieldLabel")+'
      '+(0,le.Iu)("sortDirectionLabel")+'
      ';ae()({parent:de,content:qe,overlayClass:"jsoneditor-modal-overlay",overlayStyles:{backgroundColor:"rgb(1,1,1)",opacity:.3},modalClass:"jsoneditor-modal jsoneditor-modal-sort"}).afterCreate(function(xe){var Ve=xe.modalElem().querySelector("form"),he=xe.modalElem().querySelector("#ok"),Oe=xe.modalElem().querySelector("#field"),$e=xe.modalElem().querySelector("#direction");function Ne(Ue){$e.value=Ue,$e.className="jsoneditor-button-group jsoneditor-button-group-value-"+$e.value}Ie.forEach(function(Ue){var kt,Et=document.createElement("option");Et.text=(kt=Ue)===""?"@":kt[0]==="."?kt.slice(1):kt,Et.value=Ue,Oe.appendChild(Et)}),Oe.value=_e||Ie[0],Ne(At||"asc"),$e.onclick=function(Ue){Ne(Ue.target.getAttribute("data-value"))},he.onclick=function(Ue){Ue.preventDefault(),Ue.stopPropagation(),xe.close(),ze({path:Oe.value,direction:$e.value})},Ve&&(Ve.onsubmit=he.onclick)}).afterClose(function(xe){xe.destroy()}).show()}},2558:function(L,ae,oe){oe.r(ae),oe.d(ae,{showTransformModal:function(){return _e}});var ae=oe(483),re=oe.n(ae),ae=oe(3879),le=oe.n(ae),ue=oe(7907);function pe(At){return(pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(qe){return typeof qe}:function(qe){return qe&&typeof Symbol=="function"&&qe.constructor===Symbol&&qe!==Symbol.prototype?"symbol":typeof qe})(At)}function de(At,qe,xe,Ve){if(typeof At=="boolean"||At instanceof Boolean||At===null||typeof At=="number"||At instanceof Number||typeof At=="string"||At instanceof String||At instanceof Date)return JSON.stringify(At);if(Array.isArray(At)){for(var he=At,Oe=qe,$e=xe,Ne=Ve,Ue=Oe?$e+Oe:void 0,kt=Oe?`[ +`:"[",Et=0;EtNe)return kt+"..."}return kt+=Oe?` +`+$e+"]":"]"}if(At&&pe(At)==="object"){var Lt,vn=At,hn=qe,$e=xe,Dt=Ve,jt=hn?$e+hn:void 0,bn=!0,Sn=hn?`{ +`:"{";if(typeof vn.toJSON=="function")return de(vn.toJSON(),hn,$e,Dt);for(Lt in vn)if(function(En,An){return Object.prototype.hasOwnProperty.call(En,An)}(vn,Lt)){var Cn=vn[Lt];if(bn?bn=!1:Sn+=hn?`, +`:",",(Sn=(Sn+=hn?jt+'"'+Lt+'": ':'"'+Lt+'":')+de(Cn,hn,jt,Dt)).length>Dt)return Sn+"..."}return Sn+=hn?` +`+$e+"}":"}"}}function Fe(At,qe){for(var xe="";0JMESPath query to filter, sort, or transform the JSON data.
      To learn JMESPath, go to the interactive tutorial.';function _e(Ue){var qe=Ue.container,xe=Ue.json,Ve=Ue.queryDescription,Ve=Ve===void 0?Ie:Ve,he=Ue.createQuery,Oe=Ue.executeQuery,$e=Ue.onTransform,Ne=xe,Ue='