ss-component-new 1.2.17 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/{animationData-Qb9CDU4l.js → animationData-CYVo4cF3.js} +3 -3
  2. package/dist/{animationData-xvLbS7TE.cjs → animationData-DTnmVl43.cjs} +1 -1
  3. package/dist/{array-DkjKZF8I.js → array-D5WfaBtT.js} +1 -1
  4. package/dist/{array-CAYNJHAO.cjs → array-kfBiN1QA.cjs} +1 -1
  5. package/dist/{index-D8_S-Iuf.js → index-8U0_G_0R.js} +18 -18
  6. package/dist/{index-CpMQC4x1.js → index-9RCVRjgc.js} +1 -1
  7. package/dist/{index-CU44LzPf.js → index-BGnIpBtJ.js} +178 -175
  8. package/dist/{index--cSKDs-m.js → index-BHHFDjsi.js} +1133 -1126
  9. package/dist/{index-00LBNRcE.js → index-BgJ164SD.js} +1 -1
  10. package/dist/{index-B2NWkIpp.cjs → index-BiNsOjcC.cjs} +1 -1
  11. package/dist/{index-DxQj6FZE.js → index-Bj3QBLNZ.js} +1 -1
  12. package/dist/{index-AmqN11m8.cjs → index-Bjp7vtmT.cjs} +1 -1
  13. package/dist/{index-Bp9hPbvn.js → index-BoD05_J0.js} +1 -1
  14. package/dist/{index-JDMB7hc0.cjs → index-BpyDAfgJ.cjs} +1 -1
  15. package/dist/{index-B_pmpVvZ.js → index-BrdP9HC4.js} +2 -2
  16. package/dist/{index-DbiyWVzT.js → index-BsEOhglN.js} +5 -5
  17. package/dist/{index-DNgeBOyL.js → index-C0M4a5a7.js} +2 -2
  18. package/dist/{index-Bx7n6UDA.js → index-C8gXNO36.js} +2 -2
  19. package/dist/{index-CTbiBChu.cjs → index-CEsRU7PI.cjs} +1 -1
  20. package/dist/{index-CSrtwaZ6.cjs → index-CGGQf1Fy.cjs} +1 -1
  21. package/dist/{index-CBO4shBu.js → index-CQBynyM7.js} +3 -3
  22. package/dist/{index-lp8Qp4lU.cjs → index-CTd5yE7g.cjs} +1 -1
  23. package/dist/{index-DbmOtV2k.js → index-CgEp32Ha.js} +2 -2
  24. package/dist/{index-BZtXRbEZ.cjs → index-CgXgl7xg.cjs} +1 -1
  25. package/dist/{index-DORfWfLc.cjs → index-Cl1eN72c.cjs} +1 -1
  26. package/dist/{index-nldJ9Wpt.cjs → index-CoQXoOC5.cjs} +1 -1
  27. package/dist/{index-BGLsERtf.js → index-Cz9V1kg-.js} +5 -5
  28. package/dist/{index-Blj5w8sE.cjs → index-D51ekpXx.cjs} +1 -1
  29. package/dist/{index-BLdyKmTu.cjs → index-D7Y91W7M.cjs} +1 -1
  30. package/dist/{index-BgbkehBL.js → index-D9BKoQ6f.js} +3 -3
  31. package/dist/{index-C__Dwz_q.cjs → index-D9D2Wuf4.cjs} +1 -1
  32. package/dist/{index-C3pD8VjA.js → index-DFH8aI2Y.js} +1 -1
  33. package/dist/{index-kJ1GNgTl.cjs → index-DKo5-PGs.cjs} +1 -1
  34. package/dist/{index-Cki2sYVE.js → index-DLRyzLvk.js} +5 -5
  35. package/dist/index-DWCqPPU9.cjs +1 -0
  36. package/dist/{index-Bx9yQVlT.js → index-DYT7O5SY.js} +1 -1
  37. package/dist/{index-Dm9I-MGk.cjs → index-Djrsmf4o.cjs} +1 -1
  38. package/dist/{index-DwDRdcnb.cjs → index-DuE6CA_5.cjs} +1 -1
  39. package/dist/{index-snrR_lCj.cjs → index-DuX7JuNX.cjs} +1 -1
  40. package/dist/{index-DZMLa6sl.cjs → index-DviC5Mes.cjs} +1 -1
  41. package/dist/{index-DEwxTEA3.cjs → index-DxERe_o8.cjs} +1 -1
  42. package/dist/{index-DZ9voZQn.js → index-JqoJqpvd.js} +5 -5
  43. package/dist/{index-ChL8bsns.cjs → index-L_8m2Edi.cjs} +1 -1
  44. package/dist/{index-DXPIuRqL.js → index-PYM4eM9f.js} +2 -2
  45. package/dist/{index-UMRAFAXe.js → index-RSZafNJV.js} +2 -2
  46. package/dist/{index-Br3NE3cv.cjs → index-Upb8vZrJ.cjs} +1 -1
  47. package/dist/{index-JQmSnrnX.js → index-WkhOFQKy.js} +1 -1
  48. package/dist/{index-HNf73U8z.cjs → index-aTTU_ja_.cjs} +1 -1
  49. package/dist/{index-C-imeITi.cjs → index-brsfUqkV.cjs} +1 -1
  50. package/dist/{index-Dg_l3ZIM.cjs → index-fTU6D0EV.cjs} +1 -1
  51. package/dist/{index-Byjao__A.js → index-fcgKi8rF.js} +10 -10
  52. package/dist/{index-DvEGoB_c.cjs → index-loXBOUd5.cjs} +1 -1
  53. package/dist/{index-ClK5MJAc.cjs → index-oKm_bMcI.cjs} +1 -1
  54. package/dist/{index-DmYI7jW4.js → index-pDGtp9Y4.js} +1 -1
  55. package/dist/{index-BU242fNk.js → index-t-iLIRPH.js} +2 -2
  56. package/dist/{index-CVHse7As.js → index-uzUGa1I0.js} +2 -2
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CmdURFaC.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkvEh0kU.js} +1 -1
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0YQ6oGXD.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DyCjVGK4.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-pzTuaxv5.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CgRoTnM4.cjs} +1 -1
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Bwe93Xrr.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-DDuO2RJ1.js} +5 -5
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-6VezR8np.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BimjDwOI.cjs} +2 -2
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-q9M1UN39.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-Cc_BYWMl.js} +14 -11
  63. package/dist/{index.vue_vue_type_style_index_1_lang-Bc10b8Mi.cjs → index.vue_vue_type_style_index_1_lang-B-382mSr.cjs} +1 -1
  64. package/dist/{index.vue_vue_type_style_index_1_lang-BDQcys0d.js → index.vue_vue_type_style_index_1_lang-CnzkLjVf.js} +2 -2
  65. package/dist/index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs +32 -0
  66. package/dist/{index.vue_vue_type_style_index_1_lang-DtRssJWg.js → index.vue_vue_type_style_index_1_lang-vU1VQMfs.js} +1431 -1384
  67. package/dist/{main-D8Dh7CUS.js → main-Dk1H52zm.js} +4 -4
  68. package/dist/{main-BpF0-mlu.cjs → main-hA5knk3Y.cjs} +1 -1
  69. package/dist/ss-component.cjs +1 -1
  70. package/dist/ss-component.css +1 -1
  71. package/dist/ss-component.js +10 -10
  72. package/dist/ss-component2.cjs +1 -1
  73. package/dist/ss-component2.js +11 -11
  74. package/dist/{threeModel-B6Q20_0g.js → threeModel-7FtoCWUL.js} +2 -2
  75. package/dist/{threeModel-WXskZd6Q.cjs → threeModel-B8ayOk4L.cjs} +1 -1
  76. package/dist/{threeSceneView-BFcPTomD.cjs → threeSceneView-DpIfHcs5.cjs} +1 -1
  77. package/dist/{threeSceneView-YnHu8FUZ.js → threeSceneView-kfQrdRjz.js} +7 -7
  78. package/dist/{threeSceneViewForCPMPIP-fG4x8LLj.cjs → threeSceneViewForCPMPIP-BTLpKMe4.cjs} +1 -1
  79. package/dist/{threeSceneViewForCPMPIP-p2-Ce2xO.js → threeSceneViewForCPMPIP-Cz1ay3aa.js} +6 -6
  80. package/dist/{threeViewerHost-CDEn7FfB.js → threeViewerHost-CXQi7gV5.js} +3 -3
  81. package/dist/{threeViewerHost-rcqedja4.cjs → threeViewerHost-Da6cfLt7.cjs} +1 -1
  82. package/dist/{useRayCaster-CJaAi3t4.js → useRayCaster-Ca7t2A9k.js} +1 -1
  83. package/dist/{useRayCaster-Cz13xqg3.cjs → useRayCaster-x0qmWO-B.cjs} +1 -1
  84. package/package.json +1 -1
  85. package/dist/index-C8W8SOHQ.cjs +0 -1
  86. package/dist/index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs +0 -32
@@ -1,4 +1,4 @@
1
- "use strict";const qi=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-pzTuaxv5.cjs"),e=require("vue"),D=require("./index.vue_vue_type_style_index_1_lang-0RaoPzBs.cjs"),r=require("./index-1z9RrjZc.cjs"),Dm=require("vue-router"),Vn=require("./index-9hspBVrQ.cjs"),Sr=require("./index-HNf73U8z.cjs"),$m=require("./index-BZtXRbEZ.cjs"),Im=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Te=require("./index-C8W8SOHQ.cjs"),ve=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0YQ6oGXD.cjs"),Un=require("./index-B2NWkIpp.cjs"),Om=require("./index-C-imeITi.cjs"),Mm=require("./index-CjI5pDiU.cjs"),qn=require("./array-CAYNJHAO.cjs");function xm(){}function Hu(t,n,o,l){for(var a=t.length,s=o+(l?1:-1);l?s--:++s<a;)if(n(t[s],s,t))return s;return-1}function Am(t){return t!==t}function zm(t,n,o){for(var l=o-1,a=t.length;++l<a;)if(t[l]===n)return l;return-1}function Rm(t,n,o){return n===n?zm(t,n,o):Hu(t,Am,o)}function Lm(t,n){var o=t==null?0:t.length;return!!o&&Rm(t,n,0)>-1}function Fm(t,n,o){var l=-1,a=t.length;n<0&&(n=-n>a?0:a+n),o=o>a?a:o,o<0&&(o+=a),a=n>o?0:o-n>>>0,n>>>=0;for(var s=Array(a);++l<a;)s[l]=t[l+n];return s}function rt(){if(!arguments.length)return[];var t=arguments[0];return r.isArray(t)?t:[t]}var Km=4;function Yi(t){return r.baseClone(t,Km)}var Hm=1,jm=2;function Wm(t,n,o,l){var a=o.length,s=a;if(t==null)return!s;for(t=Object(t);a--;){var i=o[a];if(i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++a<s;){i=o[a];var c=i[0],u=t[c],d=i[1];if(i[2]){if(u===void 0&&!(c in t))return!1}else{var p=new r.Stack,f;if(!(f===void 0?D.baseIsEqual(d,u,Hm|jm,l,p):f))return!1}}return!0}function ju(t){return t===t&&!r.isObject(t)}function Um(t){for(var n=r.keys(t),o=n.length;o--;){var l=n[o],a=t[l];n[o]=[l,a,ju(a)]}return n}function Wu(t,n){return function(o){return o==null?!1:o[t]===n&&(n!==void 0||t in Object(o))}}function qm(t){var n=Um(t);return n.length==1&&n[0][2]?Wu(n[0][0],n[0][1]):function(o){return o===t||Wm(o,t,n)}}var Ym=1,Gm=2;function Xm(t,n){return r.isKey(t)&&ju(n)?Wu(r.toKey(t),n):function(o){var l=r.get(o,t);return l===void 0&&l===n?D.hasIn(o,t):D.baseIsEqual(n,l,Ym|Gm)}}function Jm(t){return function(n){return n==null?void 0:n[t]}}function Zm(t){return function(n){return r.baseGet(n,t)}}function Qm(t){return r.isKey(t)?Jm(r.toKey(t)):Zm(t)}function Uu(t){return typeof t=="function"?t:t==null?D.identity:typeof t=="object"?r.isArray(t)?Xm(t[0],t[1]):qm(t):Qm(t)}function eh(t,n){return t&&ve.baseFor(t,n,r.keys)}function th(t,n){return function(o,l){if(o==null)return o;if(!r.isArrayLike(o))return t(o,l);for(var a=o.length,s=-1,i=Object(o);++s<a&&l(i[s],s,i)!==!1;);return o}}var nh=th(eh);function oh(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}function qu(t,n,o){var l=t==null?0:t.length;if(!l)return-1;var a=l-1;return Hu(t,Uu(n),a,!0)}function lh(t,n){var o=-1,l=r.isArrayLike(t)?Array(t.length):[];return nh(t,function(a,s,i){l[++o]=n(a,s,i)}),l}function rh(t,n){var o=r.isArray(t)?r.arrayMap:lh;return o(t,Uu(n))}function ah(t,n){return D.baseFlatten(rh(t,n),1)}var sh=1/0;function ih(t){var n=t==null?0:t.length;return n?D.baseFlatten(t,sh):[]}function ch(t,n){return n.length<2?t:r.baseGet(t,Fm(n,0,-1))}function Bl(t){return t===null}function uh(t,n){return n=r.castPath(n,t),t=ch(t,n),t==null||delete t[r.toKey(oh(n))]}function dh(t){return ve.isPlainObject(t)?void 0:t}var fh=1,ph=2,mh=4,hh=D.flatRest(function(t,n){var o={};if(t==null)return o;var l=!1;n=r.arrayMap(n,function(s){return s=r.castPath(s,t),l||(l=s.length>1),s}),r.copyObject(t,r.getAllKeysIn(t),o),l&&(o=r.baseClone(o,fh|ph|mh,dh));for(var a=n.length;a--;)uh(o,n[a]);return o}),vh="Expected a function";function yn(t,n,o){var l=!0,a=!0;if(typeof t!="function")throw new TypeError(vh);return r.isObject(o)&&(l="leading"in o?!!o.leading:l,a="trailing"in o?!!o.trailing:a),Te.debounce(t,n,{leading:l,maxWait:n,trailing:a})}var gh=1/0,yh=r.Set&&1/D.setToArray(new r.Set([,-0]))[1]==gh?function(t){return new r.Set(t)}:xm,bh=200;function Ch(t,n,o){var l=-1,a=Lm,s=t.length,i=!0,c=[],u=c;if(s>=bh){var d=yh(t);if(d)return D.setToArray(d);i=!1,a=D.cacheHas,u=new D.SetCache}else u=c;e:for(;++l<s;){var p=t[l],f=p;if(p=p!==0?p:0,i&&f===f){for(var h=u.length;h--;)if(u[h]===f)continue e;c.push(p)}else a(u,f,o)||(u!==c&&u.push(f),c.push(p))}return c}var da=ve.baseRest(function(t){return Ch(D.baseFlatten(t,1,ve.isArrayLikeObject,!0))});const kh="2.10.2",Gi=Symbol("INSTALLED_KEY"),wh=(t=[])=>({version:kh,install:(o,l)=>{o[Gi]||(o[Gi]=!0,t.forEach(a=>o.use(a)),l&&r.provideGlobalConfig(l,o,!0))}}),Eh=r.buildProps({zIndex:{type:r.definePropType([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Sh={scroll:({scrollTop:t,fixed:n})=>r.isNumber(t)&&r.isBoolean(n),[D.CHANGE_EVENT]:t=>r.isBoolean(t)},Yu="ElAffix",Nh=e.defineComponent({name:Yu}),Th=e.defineComponent({...Nh,props:Eh,emits:Sh,setup(t,{expose:n,emit:o}){const l=t,a=r.useNamespace("affix"),s=e.shallowRef(),i=e.shallowRef(),c=e.shallowRef(),{height:u}=r.useWindowSize(),{height:d,width:p,top:f,bottom:h,update:m}=r.useElementBounding(i,{windowScroll:!1}),g=r.useElementBounding(s),v=e.ref(!1),k=e.ref(0),b=e.ref(0),S=e.computed(()=>({height:v.value?`${d.value}px`:"",width:v.value?`${p.value}px`:""})),y=e.computed(()=>{if(!v.value)return{};const w=l.offset?r.addUnit(l.offset):0;return{height:`${d.value}px`,width:`${p.value}px`,top:l.position==="top"?w:"",bottom:l.position==="bottom"?w:"",transform:b.value?`translateY(${b.value}px)`:"",zIndex:l.zIndex}}),C=()=>{if(!c.value)return;k.value=c.value instanceof Window?document.documentElement.scrollTop:c.value.scrollTop||0;const{position:w,target:V,offset:T}=l,N=T+d.value;if(w==="top")if(V){const _=g.bottom.value-N;v.value=T>f.value&&g.bottom.value>0,b.value=_<0?_:0}else v.value=T>f.value;else if(V){const _=u.value-g.top.value-N;v.value=u.value-T<h.value&&u.value>g.top.value,b.value=_<0?-_:0}else v.value=u.value-T<h.value},E=async()=>{m(),await e.nextTick(),o("scroll",{scrollTop:k.value,fixed:v.value})};return e.watch(v,w=>o(D.CHANGE_EVENT,w)),e.onMounted(()=>{var w;l.target?(s.value=(w=document.querySelector(l.target))!=null?w:void 0,s.value||r.throwError(Yu,`Target does not exist: ${l.target}`)):s.value=document.documentElement,c.value=D.getScrollContainer(i.value,!0),m()}),r.useEventListener(c,"scroll",E),e.watchEffect(C),n({update:C,updateRoot:m}),(w,V)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:i,class:e.normalizeClass(e.unref(a).b()),style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(a).m("fixed")]:v.value}),style:e.normalizeStyle(e.unref(y))},[e.renderSlot(w.$slots,"default")],6)],6))}});var _h=r._export_sfc(Th,[["__file","affix.vue"]]);const Vh=r.withInstall(_h);function Xi(){let t;const n=(l,a)=>{o(),t=window.setTimeout(l,a)},o=()=>window.clearTimeout(t);return r.tryOnScopeDispose(()=>o()),{registerTimeout:n,cancelTimeout:o}}const Gu=r.buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Xu=({showAfter:t,hideAfter:n,autoClose:o,open:l,close:a})=>{const{registerTimeout:s}=Xi(),{registerTimeout:i,cancelTimeout:c}=Xi();return{onOpen:p=>{s(()=>{l(p);const f=e.unref(o);r.isNumber(f)&&f>0&&i(()=>{a(p)},f)},e.unref(t))},onClose:p=>{c(),s(()=>{a(p)},e.unref(n))}}},Bh=["light","dark"],Ph=r.buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:r.keysOf(r.TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Bh,default:"light"},...Gu}),Dh={open:()=>!0,close:t=>r.isUndefined(t)||t instanceof Event},$h=e.defineComponent({name:"ElAlert"}),Ih=e.defineComponent({...$h,props:Ph,emits:Dh,setup(t,{emit:n}){const o=t,{Close:l}=r.TypeComponents,a=e.useSlots(),s=r.useNamespace("alert"),i=e.ref(!1),c=e.computed(()=>r.TypeComponentsMap[o.type]),u=e.computed(()=>!!(o.description||a.default)),d=()=>{i.value=!0,n("open")},p=m=>{i.value=!1,n("close",m)},{onOpen:f,onClose:h}=Xu({showAfter:e.toRef(o,"showAfter"),hideAfter:e.toRef(o,"hideAfter"),autoClose:e.toRef(o,"autoClose"),open:d,close:p});return r.isClient&&f(),(m,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(s).b(),e.unref(s).m(m.type),e.unref(s).is("center",m.center),e.unref(s).is(m.effect)]),role:"alert"},[m.showIcon&&(m.$slots.icon||e.unref(c))?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass([e.unref(s).e("icon"),{[e.unref(s).is("big")]:e.unref(u)}])},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c))))])]),_:3},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("content"))},[m.title||m.$slots.title?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(s).e("title"),{"with-description":e.unref(u)}])},[e.renderSlot(m.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(m.title),1)])],2)):e.createCommentVNode("v-if",!0),e.unref(u)?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(e.unref(s).e("description"))},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.description),1)])],2)):e.createCommentVNode("v-if",!0),m.closable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.closeText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(s).e("close-btn"),e.unref(s).is("customed")]),onClick:p},e.toDisplayString(m.closeText),3)):(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:1,class:e.normalizeClass(e.unref(s).e("close-btn")),onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(e.unref(l))]),_:1},8,["class","onClick"]))],64)):e.createCommentVNode("v-if",!0)],2)],2),[[e.vShow,i.value]])]),_:3},8,["name"]))}});var Oh=r._export_sfc(Ih,[["__file","alert.vue"]]);const Mh=r.withInstall(Oh),Bn=4,Ju={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"}},xh=({move:t,size:n,bar:o})=>({[o.size]:n,transform:`translate${o.axis}(${t}%)`}),Bs=Symbol("scrollbarContextKey"),Ah=r.buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),zh="Thumb",Rh=e.defineComponent({__name:"thumb",props:Ah,setup(t){const n=t,o=e.inject(Bs),l=r.useNamespace("scrollbar");o||r.throwError(zh,"can not inject scrollbar context");const a=e.ref(),s=e.ref(),i=e.ref({}),c=e.ref(!1);let u=!1,d=!1,p=0,f=0,h=r.isClient?document.onselectstart:null;const m=e.computed(()=>Ju[n.vertical?"vertical":"horizontal"]),g=e.computed(()=>xh({size:n.size,move:n.move,bar:m.value})),v=e.computed(()=>a.value[m.value.offset]**2/o.wrapElement[m.value.scrollSize]/n.ratio/s.value[m.value.offset]),k=T=>{var N;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(N=window.getSelection())==null||N.removeAllRanges(),S(T);const _=T.currentTarget;_&&(i.value[m.value.axis]=_[m.value.offset]-(T[m.value.client]-_.getBoundingClientRect()[m.value.direction]))},b=T=>{if(!s.value||!a.value||!o.wrapElement)return;const N=Math.abs(T.target.getBoundingClientRect()[m.value.direction]-T[m.value.client]),_=s.value[m.value.offset]/2,P=(N-_)*100*v.value/a.value[m.value.offset];o.wrapElement[m.value.scroll]=P*o.wrapElement[m.value.scrollSize]/100},S=T=>{T.stopImmediatePropagation(),u=!0,p=o.wrapElement.scrollHeight,f=o.wrapElement.scrollWidth,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),h=document.onselectstart,document.onselectstart=()=>!1},y=T=>{if(!a.value||!s.value||u===!1)return;const N=i.value[m.value.axis];if(!N)return;const _=(a.value.getBoundingClientRect()[m.value.direction]-T[m.value.client])*-1,P=s.value[m.value.offset]-N,B=(_-P)*100*v.value/a.value[m.value.offset];m.value.scroll==="scrollLeft"?o.wrapElement[m.value.scroll]=B*f/100:o.wrapElement[m.value.scroll]=B*p/100},C=()=>{u=!1,i.value[m.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",C),V(),d&&(c.value=!1)},E=()=>{d=!1,c.value=!!n.size},w=()=>{d=!0,c.value=u};e.onBeforeUnmount(()=>{V(),document.removeEventListener("mouseup",C)});const V=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return r.useEventListener(e.toRef(o,"scrollbarElement"),"mousemove",E),r.useEventListener(e.toRef(o,"scrollbarElement"),"mouseleave",w),(T,N)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(l).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"instance",ref:a,class:e.normalizeClass([e.unref(l).e("bar"),e.unref(l).is(e.unref(m).key)]),onMousedown:b,onClick:e.withModifiers(()=>{},["stop"])},[e.createElementVNode("div",{ref_key:"thumb",ref:s,class:e.normalizeClass(e.unref(l).e("thumb")),style:e.normalizeStyle(e.unref(g)),onMousedown:k},null,38)],42,["onClick"]),[[e.vShow,T.always||c.value]])]),_:1},8,["name"]))}});var Ji=r._export_sfc(Rh,[["__file","thumb.vue"]]);const Lh=r.buildProps({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Fh=e.defineComponent({__name:"bar",props:Lh,setup(t,{expose:n}){const o=t,l=e.inject(Bs),a=e.ref(0),s=e.ref(0),i=e.ref(""),c=e.ref(""),u=e.ref(1),d=e.ref(1);return n({handleScroll:h=>{if(h){const m=h.offsetHeight-Bn,g=h.offsetWidth-Bn;s.value=h.scrollTop*100/m*u.value,a.value=h.scrollLeft*100/g*d.value}},update:()=>{const h=l==null?void 0:l.wrapElement;if(!h)return;const m=h.offsetHeight-Bn,g=h.offsetWidth-Bn,v=m**2/h.scrollHeight,k=g**2/h.scrollWidth,b=Math.max(v,o.minSize),S=Math.max(k,o.minSize);u.value=v/(m-v)/(b/(m-b)),d.value=k/(g-k)/(S/(g-S)),c.value=b+Bn<m?`${b}px`:"",i.value=S+Bn<g?`${S}px`:""}}),(h,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ji,{move:a.value,ratio:d.value,size:i.value,always:h.always},null,8,["move","ratio","size","always"]),e.createVNode(Ji,{move:s.value,ratio:u.value,size:c.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}});var Kh=r._export_sfc(Fh,[["__file","bar.vue"]]);const Hh=r.buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:r.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},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...D.useAriaProps(["ariaLabel","ariaOrientation"])}),Zu={"end-reached":t=>["left","right","top","bottom"].includes(t),scroll:({scrollTop:t,scrollLeft:n})=>[t,n].every(r.isNumber)},$a="ElScrollbar",jh=e.defineComponent({name:$a}),Wh=e.defineComponent({...jh,props:Hh,emits:Zu,setup(t,{expose:n,emit:o}){const l=t,a=r.useNamespace("scrollbar");let s,i,c=0,u=0,d="";const p=e.ref(),f=e.ref(),h=e.ref(),m=e.ref(),g=e.computed(()=>{const w={};return l.height&&(w.height=r.addUnit(l.height)),l.maxHeight&&(w.maxHeight=r.addUnit(l.maxHeight)),[l.wrapStyle,w]}),v=e.computed(()=>[l.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!l.native}]),k=e.computed(()=>[a.e("view"),l.viewClass]),b=()=>{var w;if(f.value){(w=m.value)==null||w.handleScroll(f.value);const V=c,T=u;c=f.value.scrollTop,u=f.value.scrollLeft;const N={bottom:c+f.value.clientHeight>=f.value.scrollHeight,top:c<=0&&V!==0,right:u+f.value.clientWidth>=f.value.scrollWidth&&T!==u,left:u<=0&&T!==0};V!==c&&(d=c>V?"bottom":"top"),T!==u&&(d=u>T?"right":"left"),o("scroll",{scrollTop:c,scrollLeft:u}),N[d]&&o("end-reached",d)}};function S(w,V){r.isObject$1(w)?f.value.scrollTo(w):r.isNumber(w)&&r.isNumber(V)&&f.value.scrollTo(w,V)}const y=w=>{if(!r.isNumber(w)){r.debugWarn($a,"value must be a number");return}f.value.scrollTop=w},C=w=>{if(!r.isNumber(w)){r.debugWarn($a,"value must be a number");return}f.value.scrollLeft=w},E=()=>{var w;(w=m.value)==null||w.update()};return e.watch(()=>l.noresize,w=>{w?(s==null||s(),i==null||i()):({stop:s}=r.useResizeObserver(h,E),i=r.useEventListener("resize",E))},{immediate:!0}),e.watch(()=>[l.maxHeight,l.height],()=>{l.native||e.nextTick(()=>{var w;E(),f.value&&((w=m.value)==null||w.handleScroll(f.value))})}),e.provide(Bs,e.reactive({scrollbarElement:p,wrapElement:f})),e.onActivated(()=>{f.value&&(f.value.scrollTop=c,f.value.scrollLeft=u)}),e.onMounted(()=>{l.native||e.nextTick(()=>{E()})}),e.onUpdated(()=>E()),n({wrapRef:f,update:E,scrollTo:S,setScrollTop:y,setScrollLeft:C,handleScroll:b}),(w,V)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollbarRef",ref:p,class:e.normalizeClass(e.unref(a).b())},[e.createElementVNode("div",{ref_key:"wrapRef",ref:f,class:e.normalizeClass(e.unref(v)),style:e.normalizeStyle(e.unref(g)),tabindex:w.tabindex,onScroll:b},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.tag),{id:w.id,ref_key:"resizeRef",ref:h,class:e.normalizeClass(e.unref(k)),style:e.normalizeStyle(w.viewStyle),role:w.role,"aria-label":w.ariaLabel,"aria-orientation":w.ariaOrientation},{default:e.withCtx(()=>[e.renderSlot(w.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),w.native?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(Kh,{key:0,ref_key:"barRef",ref:m,always:w.always,"min-size":w.minSize},null,8,["always","min-size"]))],2))}});var Uh=r._export_sfc(Wh,[["__file","scrollbar.vue"]]);const Pt=r.withInstall(Uh),Ps=Symbol("popper"),Qu=Symbol("popperContent"),ed=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],td=r.buildProps({role:{type:String,values:ed,default:"tooltip"}}),qh=e.defineComponent({name:"ElPopper",inheritAttrs:!1}),Yh=e.defineComponent({...qh,props:td,setup(t,{expose:n}){const o=t,l=e.ref(),a=e.ref(),s=e.ref(),i=e.ref(),c=e.computed(()=>o.role),u={triggerRef:l,popperInstanceRef:a,contentRef:s,referenceRef:i,role:c};return n(u),e.provide(Ps,u),(d,p)=>e.renderSlot(d.$slots,"default")}});var Gh=r._export_sfc(Yh,[["__file","popper.vue"]]);const Xh=e.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),Jh=e.defineComponent({...Xh,setup(t,{expose:n}){const o=r.useNamespace("popper"),{arrowRef:l,arrowStyle:a}=e.inject(Qu,void 0);return e.onBeforeUnmount(()=>{l.value=void 0}),n({arrowRef:l}),(s,i)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"arrowRef",ref:l,class:e.normalizeClass(e.unref(o).e("arrow")),style:e.normalizeStyle(e.unref(a)),"data-popper-arrow":""},null,6))}});var Zh=r._export_sfc(Jh,[["__file","arrow.vue"]]);const nd=r.buildProps({virtualRef:{type:r.definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:r.definePropType(Function)},onMouseleave:{type:r.definePropType(Function)},onClick:{type:r.definePropType(Function)},onKeydown:{type:r.definePropType(Function)},onFocus:{type:r.definePropType(Function)},onBlur:{type:r.definePropType(Function)},onContextmenu:{type:r.definePropType(Function)},id:String,open:Boolean}),od=Symbol("elForwardRef"),Qh=t=>{const n=o=>{t.value=o};e.provide(od,{setForwardRef:n})},ev=t=>({mounted(n){t(n)},updated(n){t(n)},unmounted(){t(null)}}),fa="ElOnlyChild",ld=e.defineComponent({name:fa,setup(t,{slots:n,attrs:o}){var l;const a=e.inject(od),s=ev((l=a==null?void 0:a.setForwardRef)!=null?l:r.NOOP);return()=>{var i;const c=(i=n.default)==null?void 0:i.call(n,o);if(!c)return null;if(c.length>1)return r.debugWarn(fa,"requires exact only one valid child."),null;const u=rd(c);return u?e.withDirectives(e.cloneVNode(u,o),[[s]]):(r.debugWarn(fa,"no valid child node found"),null)}}});function rd(t){if(!t)return null;const n=t;for(const o of n){if(r.isObject$1(o))switch(o.type){case e.Comment:continue;case e.Text:case"svg":return Zi(o);case e.Fragment:return rd(o.children);default:return o}return Zi(o)}return null}function Zi(t){const n=r.useNamespace("only-child");return e.createVNode("span",{class:n.e("content")},[t])}const tv=e.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),nv=e.defineComponent({...tv,props:nd,setup(t,{expose:n}){const o=t,{role:l,triggerRef:a}=e.inject(Ps,void 0);Qh(a);const s=e.computed(()=>c.value?o.id:void 0),i=e.computed(()=>{if(l&&l.value==="tooltip")return o.open&&o.id?o.id:void 0}),c=e.computed(()=>{if(l&&l.value!=="tooltip")return l.value}),u=e.computed(()=>c.value?`${o.open}`:void 0);let d;const p=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return e.onMounted(()=>{e.watch(()=>o.virtualRef,f=>{f&&(a.value=r.unrefElement(f))},{immediate:!0}),e.watch(a,(f,h)=>{d==null||d(),d=void 0,r.isElement(f)&&(p.forEach(m=>{var g;const v=o[m];v&&(f.addEventListener(m.slice(2).toLowerCase(),v),(g=h==null?void 0:h.removeEventListener)==null||g.call(h,m.slice(2).toLowerCase(),v))}),D.isFocusable(f)&&(d=e.watch([s,i,c,u],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((g,v)=>{r.isNil(m[v])?f.removeAttribute(g):f.setAttribute(g,m[v])})},{immediate:!0}))),r.isElement(h)&&D.isFocusable(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>h.removeAttribute(m))},{immediate:!0})}),e.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,a.value&&r.isElement(a.value)){const f=a.value;p.forEach(h=>{const m=o[h];m&&f.removeEventListener(h.slice(2).toLowerCase(),m)}),a.value=void 0}}),n({triggerRef:a}),(f,h)=>f.virtualTriggering?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(ld),e.mergeProps({key:0},f.$attrs,{"aria-controls":e.unref(s),"aria-describedby":e.unref(i),"aria-expanded":e.unref(u),"aria-haspopup":e.unref(c)}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ov=r._export_sfc(nv,[["__file","trigger.vue"]]),vt="top",_t="bottom",Vt="right",gt="left",Ds="auto",Pl=[vt,_t,Vt,gt],Yn="start",fl="end",lv="clippingParents",ad="viewport",Zo="popper",rv="reference",Qi=Pl.reduce(function(t,n){return t.concat([n+"-"+Yn,n+"-"+fl])},[]),en=[].concat(Pl,[Ds]).reduce(function(t,n){return t.concat([n,n+"-"+Yn,n+"-"+fl])},[]),av="beforeRead",sv="read",iv="afterRead",cv="beforeMain",uv="main",dv="afterMain",fv="beforeWrite",pv="write",mv="afterWrite",hv=[av,sv,iv,cv,uv,dv,fv,pv,mv];function Ft(t){return t?(t.nodeName||"").toLowerCase():null}function It(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Gn(t){var n=It(t).Element;return t instanceof n||t instanceof Element}function Tt(t){var n=It(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function $s(t){if(typeof ShadowRoot>"u")return!1;var n=It(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function vv(t){var n=t.state;Object.keys(n.elements).forEach(function(o){var l=n.styles[o]||{},a=n.attributes[o]||{},s=n.elements[o];!Tt(s)||!Ft(s)||(Object.assign(s.style,l),Object.keys(a).forEach(function(i){var c=a[i];c===!1?s.removeAttribute(i):s.setAttribute(i,c===!0?"":c)}))})}function gv(t){var n=t.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(l){var a=n.elements[l],s=n.attributes[l]||{},i=Object.keys(n.styles.hasOwnProperty(l)?n.styles[l]:o[l]),c=i.reduce(function(u,d){return u[d]="",u},{});!Tt(a)||!Ft(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(u){a.removeAttribute(u)}))})}}var sd={name:"applyStyles",enabled:!0,phase:"write",fn:vv,effect:gv,requires:["computeStyles"]};function Rt(t){return t.split("-")[0]}var bn=Math.max,Nr=Math.min,Xn=Math.round;function Jn(t,n){n===void 0&&(n=!1);var o=t.getBoundingClientRect(),l=1,a=1;if(Tt(t)&&n){var s=t.offsetHeight,i=t.offsetWidth;i>0&&(l=Xn(o.width)/i||1),s>0&&(a=Xn(o.height)/s||1)}return{width:o.width/l,height:o.height/a,top:o.top/a,right:o.right/l,bottom:o.bottom/a,left:o.left/l,x:o.left/l,y:o.top/a}}function Is(t){var n=Jn(t),o=t.offsetWidth,l=t.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-l)<=1&&(l=n.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:l}}function id(t,n){var o=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(o&&$s(o)){var l=n;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Jt(t){return It(t).getComputedStyle(t)}function yv(t){return["table","td","th"].indexOf(Ft(t))>=0}function sn(t){return((Gn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yr(t){return Ft(t)==="html"?t:t.assignedSlot||t.parentNode||($s(t)?t.host:null)||sn(t)}function ec(t){return!Tt(t)||Jt(t).position==="fixed"?null:t.offsetParent}function bv(t){var n=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&Tt(t)){var l=Jt(t);if(l.position==="fixed")return null}var a=Yr(t);for($s(a)&&(a=a.host);Tt(a)&&["html","body"].indexOf(Ft(a))<0;){var s=Jt(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Dl(t){for(var n=It(t),o=ec(t);o&&yv(o)&&Jt(o).position==="static";)o=ec(o);return o&&(Ft(o)==="html"||Ft(o)==="body"&&Jt(o).position==="static")?n:o||bv(t)||n}function Os(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function il(t,n,o){return bn(t,Nr(n,o))}function Cv(t,n,o){var l=il(t,n,o);return l>o?o:l}function cd(){return{top:0,right:0,bottom:0,left:0}}function ud(t){return Object.assign({},cd(),t)}function dd(t,n){return n.reduce(function(o,l){return o[l]=t,o},{})}var kv=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ud(typeof t!="number"?t:dd(t,Pl))};function wv(t){var n,o=t.state,l=t.name,a=t.options,s=o.elements.arrow,i=o.modifiersData.popperOffsets,c=Rt(o.placement),u=Os(c),d=[gt,Vt].indexOf(c)>=0,p=d?"height":"width";if(!(!s||!i)){var f=kv(a.padding,o),h=Is(s),m=u==="y"?vt:gt,g=u==="y"?_t:Vt,v=o.rects.reference[p]+o.rects.reference[u]-i[u]-o.rects.popper[p],k=i[u]-o.rects.reference[u],b=Dl(s),S=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,y=v/2-k/2,C=f[m],E=S-h[p]-f[g],w=S/2-h[p]/2+y,V=il(C,w,E),T=u;o.modifiersData[l]=(n={},n[T]=V,n.centerOffset=V-w,n)}}function Ev(t){var n=t.state,o=t.options,l=o.element,a=l===void 0?"[data-popper-arrow]":l;a!=null&&(typeof a=="string"&&(a=n.elements.popper.querySelector(a),!a)||!id(n.elements.popper,a)||(n.elements.arrow=a))}var Sv={name:"arrow",enabled:!0,phase:"main",fn:wv,effect:Ev,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zn(t){return t.split("-")[1]}var Nv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tv(t){var n=t.x,o=t.y,l=window,a=l.devicePixelRatio||1;return{x:Xn(n*a)/a||0,y:Xn(o*a)/a||0}}function tc(t){var n,o=t.popper,l=t.popperRect,a=t.placement,s=t.variation,i=t.offsets,c=t.position,u=t.gpuAcceleration,d=t.adaptive,p=t.roundOffsets,f=t.isFixed,h=i.x,m=h===void 0?0:h,g=i.y,v=g===void 0?0:g,k=typeof p=="function"?p({x:m,y:v}):{x:m,y:v};m=k.x,v=k.y;var b=i.hasOwnProperty("x"),S=i.hasOwnProperty("y"),y=gt,C=vt,E=window;if(d){var w=Dl(o),V="clientHeight",T="clientWidth";if(w===It(o)&&(w=sn(o),Jt(w).position!=="static"&&c==="absolute"&&(V="scrollHeight",T="scrollWidth")),w=w,a===vt||(a===gt||a===Vt)&&s===fl){C=_t;var N=f&&w===E&&E.visualViewport?E.visualViewport.height:w[V];v-=N-l.height,v*=u?1:-1}if(a===gt||(a===vt||a===_t)&&s===fl){y=Vt;var _=f&&w===E&&E.visualViewport?E.visualViewport.width:w[T];m-=_-l.width,m*=u?1:-1}}var P=Object.assign({position:c},d&&Nv),B=p===!0?Tv({x:m,y:v}):{x:m,y:v};if(m=B.x,v=B.y,u){var A;return Object.assign({},P,(A={},A[C]=S?"0":"",A[y]=b?"0":"",A.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",A))}return Object.assign({},P,(n={},n[C]=S?v+"px":"",n[y]=b?m+"px":"",n.transform="",n))}function _v(t){var n=t.state,o=t.options,l=o.gpuAcceleration,a=l===void 0?!0:l,s=o.adaptive,i=s===void 0?!0:s,c=o.roundOffsets,u=c===void 0?!0:c,d={placement:Rt(n.placement),variation:Zn(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:a,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,tc(Object.assign({},d,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i,roundOffsets:u})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,tc(Object.assign({},d,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var fd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_v,data:{}},Kl={passive:!0};function Vv(t){var n=t.state,o=t.instance,l=t.options,a=l.scroll,s=a===void 0?!0:a,i=l.resize,c=i===void 0?!0:i,u=It(n.elements.popper),d=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",o.update,Kl)}),c&&u.addEventListener("resize",o.update,Kl),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",o.update,Kl)}),c&&u.removeEventListener("resize",o.update,Kl)}}var pd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vv,data:{}},Bv={left:"right",right:"left",bottom:"top",top:"bottom"};function tr(t){return t.replace(/left|right|bottom|top/g,function(n){return Bv[n]})}var Pv={start:"end",end:"start"};function nc(t){return t.replace(/start|end/g,function(n){return Pv[n]})}function Ms(t){var n=It(t),o=n.pageXOffset,l=n.pageYOffset;return{scrollLeft:o,scrollTop:l}}function xs(t){return Jn(sn(t)).left+Ms(t).scrollLeft}function Dv(t){var n=It(t),o=sn(t),l=n.visualViewport,a=o.clientWidth,s=o.clientHeight,i=0,c=0;return l&&(a=l.width,s=l.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=l.offsetLeft,c=l.offsetTop)),{width:a,height:s,x:i+xs(t),y:c}}function $v(t){var n,o=sn(t),l=Ms(t),a=(n=t.ownerDocument)==null?void 0:n.body,s=bn(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=bn(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-l.scrollLeft+xs(t),u=-l.scrollTop;return Jt(a||o).direction==="rtl"&&(c+=bn(o.clientWidth,a?a.clientWidth:0)-s),{width:s,height:i,x:c,y:u}}function As(t){var n=Jt(t),o=n.overflow,l=n.overflowX,a=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+a+l)}function md(t){return["html","body","#document"].indexOf(Ft(t))>=0?t.ownerDocument.body:Tt(t)&&As(t)?t:md(Yr(t))}function cl(t,n){var o;n===void 0&&(n=[]);var l=md(t),a=l===((o=t.ownerDocument)==null?void 0:o.body),s=It(l),i=a?[s].concat(s.visualViewport||[],As(l)?l:[]):l,c=n.concat(i);return a?c:c.concat(cl(Yr(i)))}function Ia(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Iv(t){var n=Jn(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function oc(t,n){return n===ad?Ia(Dv(t)):Gn(n)?Iv(n):Ia($v(sn(t)))}function Ov(t){var n=cl(Yr(t)),o=["absolute","fixed"].indexOf(Jt(t).position)>=0,l=o&&Tt(t)?Dl(t):t;return Gn(l)?n.filter(function(a){return Gn(a)&&id(a,l)&&Ft(a)!=="body"}):[]}function Mv(t,n,o){var l=n==="clippingParents"?Ov(t):[].concat(n),a=[].concat(l,[o]),s=a[0],i=a.reduce(function(c,u){var d=oc(t,u);return c.top=bn(d.top,c.top),c.right=Nr(d.right,c.right),c.bottom=Nr(d.bottom,c.bottom),c.left=bn(d.left,c.left),c},oc(t,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function hd(t){var n=t.reference,o=t.element,l=t.placement,a=l?Rt(l):null,s=l?Zn(l):null,i=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2,u;switch(a){case vt:u={x:i,y:n.y-o.height};break;case _t:u={x:i,y:n.y+n.height};break;case Vt:u={x:n.x+n.width,y:c};break;case gt:u={x:n.x-o.width,y:c};break;default:u={x:n.x,y:n.y}}var d=a?Os(a):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case Yn:u[d]=u[d]-(n[p]/2-o[p]/2);break;case fl:u[d]=u[d]+(n[p]/2-o[p]/2);break}}return u}function pl(t,n){n===void 0&&(n={});var o=n,l=o.placement,a=l===void 0?t.placement:l,s=o.boundary,i=s===void 0?lv:s,c=o.rootBoundary,u=c===void 0?ad:c,d=o.elementContext,p=d===void 0?Zo:d,f=o.altBoundary,h=f===void 0?!1:f,m=o.padding,g=m===void 0?0:m,v=ud(typeof g!="number"?g:dd(g,Pl)),k=p===Zo?rv:Zo,b=t.rects.popper,S=t.elements[h?k:p],y=Mv(Gn(S)?S:S.contextElement||sn(t.elements.popper),i,u),C=Jn(t.elements.reference),E=hd({reference:C,element:b,placement:a}),w=Ia(Object.assign({},b,E)),V=p===Zo?w:C,T={top:y.top-V.top+v.top,bottom:V.bottom-y.bottom+v.bottom,left:y.left-V.left+v.left,right:V.right-y.right+v.right},N=t.modifiersData.offset;if(p===Zo&&N){var _=N[a];Object.keys(T).forEach(function(P){var B=[Vt,_t].indexOf(P)>=0?1:-1,A=[vt,_t].indexOf(P)>=0?"y":"x";T[P]+=_[A]*B})}return T}function xv(t,n){n===void 0&&(n={});var o=n,l=o.placement,a=o.boundary,s=o.rootBoundary,i=o.padding,c=o.flipVariations,u=o.allowedAutoPlacements,d=u===void 0?en:u,p=Zn(l),f=p?c?Qi:Qi.filter(function(g){return Zn(g)===p}):Pl,h=f.filter(function(g){return d.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,v){return g[v]=pl(t,{placement:v,boundary:a,rootBoundary:s,padding:i})[Rt(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function Av(t){if(Rt(t)===Ds)return[];var n=tr(t);return[nc(t),n,nc(n)]}function zv(t){var n=t.state,o=t.options,l=t.name;if(!n.modifiersData[l]._skip){for(var a=o.mainAxis,s=a===void 0?!0:a,i=o.altAxis,c=i===void 0?!0:i,u=o.fallbackPlacements,d=o.padding,p=o.boundary,f=o.rootBoundary,h=o.altBoundary,m=o.flipVariations,g=m===void 0?!0:m,v=o.allowedAutoPlacements,k=n.options.placement,b=Rt(k),S=b===k,y=u||(S||!g?[tr(k)]:Av(k)),C=[k].concat(y).reduce(function(G,Z){return G.concat(Rt(Z)===Ds?xv(n,{placement:Z,boundary:p,rootBoundary:f,padding:d,flipVariations:g,allowedAutoPlacements:v}):Z)},[]),E=n.rects.reference,w=n.rects.popper,V=new Map,T=!0,N=C[0],_=0;_<C.length;_++){var P=C[_],B=Rt(P),A=Zn(P)===Yn,j=[vt,_t].indexOf(B)>=0,M=j?"width":"height",I=pl(n,{placement:P,boundary:p,rootBoundary:f,altBoundary:h,padding:d}),K=j?A?Vt:gt:A?_t:vt;E[M]>w[M]&&(K=tr(K));var $=tr(K),O=[];if(s&&O.push(I[B]<=0),c&&O.push(I[K]<=0,I[$]<=0),O.every(function(G){return G})){N=P,T=!1;break}V.set(P,O)}if(T)for(var q=g?3:1,F=function(G){var Z=C.find(function(ee){var Y=V.get(ee);if(Y)return Y.slice(0,G).every(function(z){return z})});if(Z)return N=Z,"break"},X=q;X>0;X--){var L=F(X);if(L==="break")break}n.placement!==N&&(n.modifiersData[l]._skip=!0,n.placement=N,n.reset=!0)}}var Rv={name:"flip",enabled:!0,phase:"main",fn:zv,requiresIfExists:["offset"],data:{_skip:!1}};function lc(t,n,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-n.height-o.y,right:t.right-n.width+o.x,bottom:t.bottom-n.height+o.y,left:t.left-n.width-o.x}}function rc(t){return[vt,Vt,_t,gt].some(function(n){return t[n]>=0})}function Lv(t){var n=t.state,o=t.name,l=n.rects.reference,a=n.rects.popper,s=n.modifiersData.preventOverflow,i=pl(n,{elementContext:"reference"}),c=pl(n,{altBoundary:!0}),u=lc(i,l),d=lc(c,a,s),p=rc(u),f=rc(d);n.modifiersData[o]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:f},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}var Fv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lv};function Kv(t,n,o){var l=Rt(t),a=[gt,vt].indexOf(l)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},n,{placement:t})):o,i=s[0],c=s[1];return i=i||0,c=(c||0)*a,[gt,Vt].indexOf(l)>=0?{x:c,y:i}:{x:i,y:c}}function Hv(t){var n=t.state,o=t.options,l=t.name,a=o.offset,s=a===void 0?[0,0]:a,i=en.reduce(function(p,f){return p[f]=Kv(f,n.rects,s),p},{}),c=i[n.placement],u=c.x,d=c.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=u,n.modifiersData.popperOffsets.y+=d),n.modifiersData[l]=i}var jv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hv};function Wv(t){var n=t.state,o=t.name;n.modifiersData[o]=hd({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}var vd={name:"popperOffsets",enabled:!0,phase:"read",fn:Wv,data:{}};function Uv(t){return t==="x"?"y":"x"}function qv(t){var n=t.state,o=t.options,l=t.name,a=o.mainAxis,s=a===void 0?!0:a,i=o.altAxis,c=i===void 0?!1:i,u=o.boundary,d=o.rootBoundary,p=o.altBoundary,f=o.padding,h=o.tether,m=h===void 0?!0:h,g=o.tetherOffset,v=g===void 0?0:g,k=pl(n,{boundary:u,rootBoundary:d,padding:f,altBoundary:p}),b=Rt(n.placement),S=Zn(n.placement),y=!S,C=Os(b),E=Uv(C),w=n.modifiersData.popperOffsets,V=n.rects.reference,T=n.rects.popper,N=typeof v=="function"?v(Object.assign({},n.rects,{placement:n.placement})):v,_=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),P=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,B={x:0,y:0};if(w){if(s){var A,j=C==="y"?vt:gt,M=C==="y"?_t:Vt,I=C==="y"?"height":"width",K=w[C],$=K+k[j],O=K-k[M],q=m?-T[I]/2:0,F=S===Yn?V[I]:T[I],X=S===Yn?-T[I]:-V[I],L=n.elements.arrow,G=m&&L?Is(L):{width:0,height:0},Z=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:cd(),ee=Z[j],Y=Z[M],z=il(0,V[I],G[I]),R=y?V[I]/2-q-z-ee-_.mainAxis:F-z-ee-_.mainAxis,x=y?-V[I]/2+q+z+Y+_.mainAxis:X+z+Y+_.mainAxis,Q=n.elements.arrow&&Dl(n.elements.arrow),U=Q?C==="y"?Q.clientTop||0:Q.clientLeft||0:0,J=(A=P==null?void 0:P[C])!=null?A:0,ce=K+R-J-U,oe=K+x-J,ie=il(m?Nr($,ce):$,K,m?bn(O,oe):O);w[C]=ie,B[C]=ie-K}if(c){var ne,le=C==="x"?vt:gt,ue=C==="x"?_t:Vt,me=w[E],ke=E==="y"?"height":"width",Ee=me+k[le],Ne=me-k[ue],Pe=[vt,gt].indexOf(b)!==-1,_e=(ne=P==null?void 0:P[E])!=null?ne:0,Me=Pe?Ee:me-V[ke]-T[ke]-_e+_.altAxis,be=Pe?me+V[ke]+T[ke]-_e-_.altAxis:Ne,he=m&&Pe?Cv(Me,me,be):il(m?Me:Ee,me,m?be:Ne);w[E]=he,B[E]=he-me}n.modifiersData[l]=B}}var Yv={name:"preventOverflow",enabled:!0,phase:"main",fn:qv,requiresIfExists:["offset"]};function Gv(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Xv(t){return t===It(t)||!Tt(t)?Ms(t):Gv(t)}function Jv(t){var n=t.getBoundingClientRect(),o=Xn(n.width)/t.offsetWidth||1,l=Xn(n.height)/t.offsetHeight||1;return o!==1||l!==1}function Zv(t,n,o){o===void 0&&(o=!1);var l=Tt(n),a=Tt(n)&&Jv(n),s=sn(n),i=Jn(t,a),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(l||!l&&!o)&&((Ft(n)!=="body"||As(s))&&(c=Xv(n)),Tt(n)?(u=Jn(n,!0),u.x+=n.clientLeft,u.y+=n.clientTop):s&&(u.x=xs(s))),{x:i.left+c.scrollLeft-u.x,y:i.top+c.scrollTop-u.y,width:i.width,height:i.height}}function Qv(t){var n=new Map,o=new Set,l=[];t.forEach(function(s){n.set(s.name,s)});function a(s){o.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(c){if(!o.has(c)){var u=n.get(c);u&&a(u)}}),l.push(s)}return t.forEach(function(s){o.has(s.name)||a(s)}),l}function eg(t){var n=Qv(t);return hv.reduce(function(o,l){return o.concat(n.filter(function(a){return a.phase===l}))},[])}function tg(t){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(t())})})),n}}function ng(t){var n=t.reduce(function(o,l){var a=o[l.name];return o[l.name]=a?Object.assign({},a,l,{options:Object.assign({},a.options,l.options),data:Object.assign({},a.data,l.data)}):l,o},{});return Object.keys(n).map(function(o){return n[o]})}var ac={placement:"bottom",modifiers:[],strategy:"absolute"};function sc(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return!n.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function zs(t){t===void 0&&(t={});var n=t,o=n.defaultModifiers,l=o===void 0?[]:o,a=n.defaultOptions,s=a===void 0?ac:a;return function(i,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ac,s),modifiersData:{},elements:{reference:i,popper:c},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(v){var k=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},s,d.options,k),d.scrollParents={reference:Gn(i)?cl(i):i.contextElement?cl(i.contextElement):[],popper:cl(c)};var b=eg(ng([].concat(l,d.options.modifiers)));return d.orderedModifiers=b.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!f){var v=d.elements,k=v.reference,b=v.popper;if(sc(k,b)){d.rects={reference:Zv(k,Dl(b),d.options.strategy==="fixed"),popper:Is(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(T){return d.modifiersData[T.name]=Object.assign({},T.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var y=d.orderedModifiers[S],C=y.fn,E=y.options,w=E===void 0?{}:E,V=y.name;typeof C=="function"&&(d=C({state:d,options:w,name:V,instance:h})||d)}}}},update:tg(function(){return new Promise(function(v){h.forceUpdate(),v(d)})}),destroy:function(){g(),f=!0}};if(!sc(i,c))return h;h.setOptions(u).then(function(v){!f&&u.onFirstUpdate&&u.onFirstUpdate(v)});function m(){d.orderedModifiers.forEach(function(v){var k=v.name,b=v.options,S=b===void 0?{}:b,y=v.effect;if(typeof y=="function"){var C=y({state:d,name:k,instance:h,options:S}),E=function(){};p.push(C||E)}})}function g(){p.forEach(function(v){return v()}),p=[]}return h}}zs();var og=[pd,vd,fd,sd];zs({defaultModifiers:og});var lg=[pd,vd,fd,sd,jv,Rv,Yv,Sv,Fv],rg=zs({defaultModifiers:lg});const gd=r.buildProps({arrowOffset:{type:Number,default:5}}),ag=["fixed","absolute"],sg=r.buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:r.definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:en,default:"bottom"},popperOptions:{type:r.definePropType(Object),default:()=>({})},strategy:{type:String,values:ag,default:"absolute"}}),yd=r.buildProps({...sg,...gd,id:String,style:{type:r.definePropType([String,Array,Object])},className:{type:r.definePropType([String,Array,Object])},effect:{type:r.definePropType(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:r.definePropType([String,Array,Object])},popperStyle:{type:r.definePropType([String,Array,Object])},referenceEl:{type:r.definePropType(Object)},triggerTargetEl:{type:r.definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...D.useAriaProps(["ariaLabel"])}),ig={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},cg=(t,n)=>{const o=e.ref(!1),l=e.ref();return{focusStartRef:l,trapped:o,onFocusAfterReleased:d=>{var p;((p=d.detail)==null?void 0:p.focusReason)!=="pointer"&&(l.value="first",n("blur"))},onFocusAfterTrapped:()=>{n("focus")},onFocusInTrap:d=>{t.visible&&!o.value&&(d.target&&(l.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{t.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,n("close")}}},ug=(t,n=[])=>{const{placement:o,strategy:l,popperOptions:a}=t,s={placement:o,strategy:l,...a,modifiers:[...fg(t),...n]};return pg(s,a==null?void 0:a.modifiers),s},dg=t=>{if(r.isClient)return r.unrefElement(t)};function fg(t){const{offset:n,gpuAcceleration:o,fallbackPlacements:l}=t;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:l}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function pg(t,n){n&&(t.modifiers=[...t.modifiers,...n??[]])}const mg=(t,n,o={})=>{const l={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=hg(u);Object.assign(i.value,d)},requires:["computeStyles"]},a=e.computed(()=>{const{onFirstUpdate:u,placement:d,strategy:p,modifiers:f}=e.unref(o);return{onFirstUpdate:u,placement:d||"bottom",strategy:p||"absolute",modifiers:[...f||[],l,{name:"applyStyles",enabled:!1}]}}),s=e.shallowRef(),i=e.ref({styles:{popper:{position:e.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return e.watch(a,u=>{const d=e.unref(s);d&&d.setOptions(u)},{deep:!0}),e.watch([t,n],([u,d])=>{c(),!(!u||!d)&&(s.value=rg(u,d,e.unref(a)))}),e.onBeforeUnmount(()=>{c()}),{state:e.computed(()=>{var u;return{...((u=e.unref(s))==null?void 0:u.state)||{}}}),styles:e.computed(()=>e.unref(i).styles),attributes:e.computed(()=>e.unref(i).attributes),update:()=>{var u;return(u=e.unref(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=e.unref(s))==null?void 0:u.forceUpdate()},instanceRef:e.computed(()=>e.unref(s))}};function hg(t){const n=Object.keys(t.elements),o=r.fromPairs(n.map(a=>[a,t.styles[a]||{}])),l=r.fromPairs(n.map(a=>[a,t.attributes[a]]));return{styles:o,attributes:l}}const vg=0,gg=t=>{const{popperInstanceRef:n,contentRef:o,triggerRef:l,role:a}=e.inject(Ps,void 0),s=e.ref(),i=e.computed(()=>t.arrowOffset),c=e.computed(()=>({name:"eventListeners",enabled:!!t.visible})),u=e.computed(()=>{var b;const S=e.unref(s),y=(b=e.unref(i))!=null?b:vg;return{name:"arrow",enabled:!Te.isUndefined(S),options:{element:S,padding:y}}}),d=e.computed(()=>({onFirstUpdate:()=>{g()},...ug(t,[e.unref(u),e.unref(c)])})),p=e.computed(()=>dg(t.referenceEl)||e.unref(l)),{attributes:f,state:h,styles:m,update:g,forceUpdate:v,instanceRef:k}=mg(p,o,d);return e.watch(k,b=>n.value=b,{flush:"sync"}),e.onMounted(()=>{e.watch(()=>{var b;return(b=e.unref(p))==null?void 0:b.getBoundingClientRect()},()=>{g()})}),{attributes:f,arrowRef:s,contentRef:o,instanceRef:k,state:h,styles:m,role:a,forceUpdate:v,update:g}},yg=(t,{attributes:n,styles:o,role:l})=>{const{nextZIndex:a}=r.useZIndex(),s=r.useNamespace("popper"),i=e.computed(()=>e.unref(n).popper),c=e.ref(r.isNumber(t.zIndex)?t.zIndex:a()),u=e.computed(()=>[s.b(),s.is("pure",t.pure),s.is(t.effect),t.popperClass]),d=e.computed(()=>[{zIndex:e.unref(c)},e.unref(o).popper,t.popperStyle||{}]),p=e.computed(()=>l.value==="dialog"?"false":void 0),f=e.computed(()=>e.unref(o).arrow||{});return{ariaModal:p,arrowStyle:f,contentAttrs:i,contentClass:u,contentStyle:d,contentZIndex:c,updateZIndex:()=>{c.value=r.isNumber(t.zIndex)?t.zIndex:a()}}},bg=e.defineComponent({name:"ElPopperContent"}),Cg=e.defineComponent({...bg,props:yd,emits:ig,setup(t,{expose:n,emit:o}){const l=t,{focusStartRef:a,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:c,onFocusInTrap:u,onFocusoutPrevented:d,onReleaseRequested:p}=cg(l,o),{attributes:f,arrowRef:h,contentRef:m,styles:g,instanceRef:v,role:k,update:b}=gg(l),{ariaModal:S,arrowStyle:y,contentAttrs:C,contentClass:E,contentStyle:w,updateZIndex:V}=yg(l,{styles:g,attributes:f,role:k}),T=e.inject(D.formItemContextKey,void 0);e.provide(Qu,{arrowStyle:y,arrowRef:h}),T&&e.provide(D.formItemContextKey,{...T,addInputId:r.NOOP,removeInputId:r.NOOP});let N;const _=(B=!0)=>{b(),B&&V()},P=()=>{_(!1),l.visible&&l.focusOnShow?s.value=!0:l.visible===!1&&(s.value=!1)};return e.onMounted(()=>{e.watch(()=>l.triggerTargetEl,(B,A)=>{N==null||N(),N=void 0;const j=e.unref(B||m.value),M=e.unref(A||m.value);r.isElement(j)&&(N=e.watch([k,()=>l.ariaLabel,S,()=>l.id],I=>{["role","aria-label","aria-modal","id"].forEach((K,$)=>{r.isNil(I[$])?j.removeAttribute(K):j.setAttribute(K,I[$])})},{immediate:!0})),M!==j&&r.isElement(M)&&["role","aria-label","aria-modal","id"].forEach(I=>{M.removeAttribute(I)})},{immediate:!0}),e.watch(()=>l.visible,P,{immediate:!0})}),e.onBeforeUnmount(()=>{N==null||N(),N=void 0}),n({popperContentRef:m,popperInstanceRef:v,updatePopper:_,contentStyle:w}),(B,A)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"contentRef",ref:m},e.unref(C),{style:e.unref(w),class:e.unref(E),tabindex:"-1",onMouseenter:j=>B.$emit("mouseenter",j),onMouseleave:j=>B.$emit("mouseleave",j)}),[e.createVNode(e.unref(D.ElFocusTrap),{trapped:e.unref(s),"trap-on-focus-in":!0,"focus-trap-el":e.unref(m),"focus-start-el":e.unref(a),onFocusAfterTrapped:e.unref(c),onFocusAfterReleased:e.unref(i),onFocusin:e.unref(u),onFocusoutPrevented:e.unref(d),onReleaseRequested:e.unref(p)},{default:e.withCtx(()=>[e.renderSlot(B.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var kg=r._export_sfc(Cg,[["__file","content.vue"]]);const bd=r.withInstall(Gh),Gr=Symbol("elTooltip"),Xr=r.buildProps({to:{type:r.definePropType([String,Object]),required:!0},disabled:Boolean}),Ye=r.buildProps({...Gu,...yd,appendTo:{type:Xr.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:r.definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...D.useAriaProps(["ariaLabel"])}),Fn=r.buildProps({...nd,disabled:Boolean,trigger:{type:r.definePropType([String,Array]),default:"hover"},triggerKeys:{type:r.definePropType(Array),default:()=>[r.EVENT_CODE.enter,r.EVENT_CODE.numpadEnter,r.EVENT_CODE.space]}}),wg=r.buildProp({type:r.definePropType(Boolean),default:null}),Eg=r.buildProp({type:r.definePropType(Function)}),Sg=t=>{const n=`update:${t}`,o=`onUpdate:${t}`,l=[n],a={[t]:wg,[o]:Eg};return{useModelToggle:({indicator:i,toggleReason:c,shouldHideWhenRouteChanges:u,shouldProceed:d,onShow:p,onHide:f})=>{const h=e.getCurrentInstance(),{emit:m}=h,g=h.props,v=e.computed(()=>r.isFunction(g[o])),k=e.computed(()=>g[t]===null),b=V=>{i.value!==!0&&(i.value=!0,c&&(c.value=V),r.isFunction(p)&&p(V))},S=V=>{i.value!==!1&&(i.value=!1,c&&(c.value=V),r.isFunction(f)&&f(V))},y=V=>{if(g.disabled===!0||r.isFunction(d)&&!d())return;const T=v.value&&r.isClient;T&&m(n,!0),(k.value||!T)&&b(V)},C=V=>{if(g.disabled===!0||!r.isClient)return;const T=v.value&&r.isClient;T&&m(n,!1),(k.value||!T)&&S(V)},E=V=>{r.isBoolean(V)&&(g.disabled&&V?v.value&&m(n,!1):i.value!==V&&(V?b():S()))},w=()=>{i.value?C():y()};return e.watch(()=>g[t],E),u&&h.appContext.config.globalProperties.$route!==void 0&&e.watch(()=>({...h.proxy.$route}),()=>{u.value&&i.value&&C()}),e.onMounted(()=>{E(g[t])}),{hide:C,show:y,toggle:w,hasUpdateHandler:v}},useModelToggleProps:a,useModelToggleEmits:l}},{useModelToggleProps:Ng,useModelToggleEmits:Tg,useModelToggle:_g}=Sg("visible"),Vg=r.buildProps({...td,...Ng,...Ye,...Fn,...gd,showArrow:{type:Boolean,default:!0}}),Bg=[...Tg,"before-show","before-hide","show","hide","open","close"],Pg=(t,n)=>r.isArray$1(t)?t.includes(n):t===n,Pn=(t,n,o)=>l=>{Pg(e.unref(t),n)&&o(l)},We=(t,n,{checkForDefaultPrevented:o=!0}={})=>a=>{const s=t==null?void 0:t(a);if(o===!1||!s)return n==null?void 0:n(a)},ic=t=>n=>n.pointerType==="mouse"?t(n):void 0,Dg=e.defineComponent({name:"ElTooltipTrigger"}),$g=e.defineComponent({...Dg,props:Fn,setup(t,{expose:n}){const o=t,l=r.useNamespace("tooltip"),{controlled:a,id:s,open:i,onOpen:c,onClose:u,onToggle:d}=e.inject(Gr,void 0),p=e.ref(null),f=()=>{if(e.unref(a)||o.disabled)return!0},h=e.toRef(o,"trigger"),m=We(f,Pn(h,"hover",c)),g=We(f,Pn(h,"hover",u)),v=We(f,Pn(h,"click",C=>{C.button===0&&d(C)})),k=We(f,Pn(h,"focus",c)),b=We(f,Pn(h,"focus",u)),S=We(f,Pn(h,"contextmenu",C=>{C.preventDefault(),d(C)})),y=We(f,C=>{const{code:E}=C;o.triggerKeys.includes(E)&&(C.preventDefault(),d(C))});return n({triggerRef:p}),(C,E)=>(e.openBlock(),e.createBlock(e.unref(ov),{id:e.unref(s),"virtual-ref":C.virtualRef,open:e.unref(i),"virtual-triggering":C.virtualTriggering,class:e.normalizeClass(e.unref(l).e("trigger")),onBlur:e.unref(b),onClick:e.unref(v),onContextmenu:e.unref(S),onFocus:e.unref(k),onMouseenter:e.unref(m),onMouseleave:e.unref(g),onKeydown:e.unref(y)},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Ig=r._export_sfc($g,[["__file","trigger.vue"]]);const Og=e.defineComponent({__name:"teleport",props:Xr,setup(t){return(n,o)=>n.disabled?e.renderSlot(n.$slots,"default",{key:0}):(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:n.to},[e.renderSlot(n.$slots,"default")],8,["to"]))}});var Mg=r._export_sfc(Og,[["__file","teleport.vue"]]);const so=r.withInstall(Mg),Cd=()=>{const t=r.useGetDerivedNamespace(),n=D.useIdInjection(),o=e.computed(()=>`${t.value}-popper-container-${n.prefix}`),l=e.computed(()=>`#${o.value}`);return{id:o,selector:l}},xg=t=>{const n=document.createElement("div");return n.id=t,document.body.appendChild(n),n},Ag=()=>{const{id:t,selector:n}=Cd();return e.onBeforeMount(()=>{r.isClient&&(process.env.NODE_ENV==="test"||!document.body.querySelector(n.value))&&xg(t.value)}),{id:t,selector:n}},zg=e.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),Rg=e.defineComponent({...zg,props:Ye,setup(t,{expose:n}){const o=t,{selector:l}=Cd(),a=r.useNamespace("tooltip"),s=e.ref(),i=r.computedEager(()=>{var $;return($=s.value)==null?void 0:$.popperContentRef});let c;const{controlled:u,id:d,open:p,trigger:f,onClose:h,onOpen:m,onShow:g,onHide:v,onBeforeShow:k,onBeforeHide:b}=e.inject(Gr,void 0),S=e.computed(()=>o.transition||`${a.namespace.value}-fade-in-linear`),y=e.computed(()=>process.env.NODE_ENV==="test"&&!process.env.RUN_TEST_WITH_PERSISTENT?!0:o.persistent);e.onBeforeUnmount(()=>{c==null||c()});const C=e.computed(()=>e.unref(y)?!0:e.unref(p)),E=e.computed(()=>o.disabled?!1:e.unref(p)),w=e.computed(()=>o.appendTo||l.value),V=e.computed(()=>{var $;return($=o.style)!=null?$:{}}),T=e.ref(!0),N=()=>{v(),K()&&D.tryFocus(document.body),T.value=!0},_=()=>{if(e.unref(u))return!0},P=We(_,()=>{o.enterable&&e.unref(f)==="hover"&&m()}),B=We(_,()=>{e.unref(f)==="hover"&&h()}),A=()=>{var $,O;(O=($=s.value)==null?void 0:$.updatePopper)==null||O.call($),k==null||k()},j=()=>{b==null||b()},M=()=>{g()},I=()=>{o.virtualTriggering||h()},K=$=>{var O;const q=(O=s.value)==null?void 0:O.popperContentRef,F=($==null?void 0:$.relatedTarget)||document.activeElement;return q==null?void 0:q.contains(F)};return e.watch(()=>e.unref(p),$=>{$?(T.value=!1,c=r.onClickOutside(i,()=>{if(e.unref(u))return;e.unref(f)!=="hover"&&h()})):c==null||c()},{flush:"post"}),e.watch(()=>o.content,()=>{var $,O;(O=($=s.value)==null?void 0:$.updatePopper)==null||O.call($)}),n({contentRef:s,isFocusInsideContent:K}),($,O)=>(e.openBlock(),e.createBlock(e.unref(so),{disabled:!$.teleported,to:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:e.unref(S),onAfterLeave:N,onBeforeEnter:A,onAfterEnter:M,onBeforeLeave:j},{default:e.withCtx(()=>[e.unref(C)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(kg),e.mergeProps({key:0,id:e.unref(d),ref_key:"contentRef",ref:s},$.$attrs,{"aria-label":$.ariaLabel,"aria-hidden":T.value,"boundaries-padding":$.boundariesPadding,"fallback-placements":$.fallbackPlacements,"gpu-acceleration":$.gpuAcceleration,offset:$.offset,placement:$.placement,"popper-options":$.popperOptions,"arrow-offset":$.arrowOffset,strategy:$.strategy,effect:$.effect,enterable:$.enterable,pure:$.pure,"popper-class":$.popperClass,"popper-style":[$.popperStyle,e.unref(V)],"reference-el":$.referenceEl,"trigger-target-el":$.triggerTargetEl,visible:e.unref(E),"z-index":$.zIndex,onMouseenter:e.unref(P),onMouseleave:e.unref(B),onBlur:I,onClose:e.unref(h)}),{default:e.withCtx(()=>[e.renderSlot($.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[e.vShow,e.unref(E)]]):e.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var Lg=r._export_sfc(Rg,[["__file","content.vue"]]);const Fg=e.defineComponent({name:"ElTooltip"}),Kg=e.defineComponent({...Fg,props:Vg,emits:Bg,setup(t,{expose:n,emit:o}){const l=t;Ag();const a=r.useNamespace("tooltip"),s=D.useId(),i=e.ref(),c=e.ref(),u=()=>{var y;const C=e.unref(i);C&&((y=C.popperInstanceRef)==null||y.update())},d=e.ref(!1),p=e.ref(),{show:f,hide:h,hasUpdateHandler:m}=_g({indicator:d,toggleReason:p}),{onOpen:g,onClose:v}=Xu({showAfter:e.toRef(l,"showAfter"),hideAfter:e.toRef(l,"hideAfter"),autoClose:e.toRef(l,"autoClose"),open:f,close:h}),k=e.computed(()=>r.isBoolean(l.visible)&&!m.value),b=e.computed(()=>[a.b(),l.popperClass]);e.provide(Gr,{controlled:k,id:s,open:e.readonly(d),trigger:e.toRef(l,"trigger"),onOpen:y=>{g(y)},onClose:y=>{v(y)},onToggle:y=>{e.unref(d)?v(y):g(y)},onShow:()=>{o("show",p.value)},onHide:()=>{o("hide",p.value)},onBeforeShow:()=>{o("before-show",p.value)},onBeforeHide:()=>{o("before-hide",p.value)},updatePopper:u}),e.watch(()=>l.disabled,y=>{y&&d.value&&(d.value=!1)});const S=y=>{var C;return(C=c.value)==null?void 0:C.isFocusInsideContent(y)};return e.onDeactivated(()=>d.value&&h()),n({popperRef:i,contentRef:c,isFocusInsideContent:S,updatePopper:u,onOpen:g,onClose:v,hide:h}),(y,C)=>(e.openBlock(),e.createBlock(e.unref(bd),{ref_key:"popperRef",ref:i,role:y.role},{default:e.withCtx(()=>[e.createVNode(Ig,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:e.withCtx(()=>[y.$slots.default?e.renderSlot(y.$slots,"default",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),e.createVNode(Lg,{ref_key:"contentRef",ref:c,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":e.unref(b),"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,"arrow-offset":y.arrowOffset,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(e.openBlock(),e.createElementBlock("span",{key:1},e.toDisplayString(y.content),1))]),y.showArrow?(e.openBlock(),e.createBlock(e.unref(Zh),{key:0})):e.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","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Hg=r._export_sfc(Kg,[["__file","tooltip.vue"]]);const nt=r.withInstall(Hg),jg=r.buildProps({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:r.definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:r.definePropType([Function,Array]),default:r.NOOP},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Ye.teleported,appendTo:Ye.appendTo,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...D.useAriaProps(["ariaLabel"])}),Wg={[D.UPDATE_MODEL_EVENT]:t=>r.isString(t),[D.INPUT_EVENT]:t=>r.isString(t),[D.CHANGE_EVENT]:t=>r.isString(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>r.isObject$1(t)},kd="ElAutocomplete",Ug=e.defineComponent({name:kd,inheritAttrs:!1}),qg=e.defineComponent({...Ug,props:jg,emits:Wg,setup(t,{expose:n,emit:o}){const l=t,a=D.useAttrs(),s=e.useAttrs(),i=D.useFormDisabled(),c=r.useNamespace("autocomplete"),u=e.ref(),d=e.ref(),p=e.ref(),f=e.ref();let h=!1,m=!1;const g=e.ref([]),v=e.ref(-1),k=e.ref(""),b=e.ref(!1),S=e.ref(!1),y=e.ref(!1),C=D.useId(),E=e.computed(()=>s.style),w=e.computed(()=>(g.value.length>0||y.value)&&b.value),V=e.computed(()=>!l.hideLoading&&y.value),T=e.computed(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),N=()=>{w.value&&(k.value=`${u.value.$el.offsetWidth}px`)},_=()=>{v.value=-1},P=async Y=>{if(S.value)return;const z=R=>{y.value=!1,!S.value&&(r.isArray$1(R)?(g.value=R,v.value=l.highlightFirstItem?0:-1):r.throwError(kd,"autocomplete suggestions must be an array"))};if(y.value=!0,r.isArray$1(l.fetchSuggestions))z(l.fetchSuggestions);else{const R=await l.fetchSuggestions(Y,z);r.isArray$1(R)&&z(R)}},B=Te.debounce(P,l.debounce),A=Y=>{const z=!!Y;if(o(D.INPUT_EVENT,Y),o(D.UPDATE_MODEL_EVENT,Y),S.value=!1,b.value||(b.value=z),!l.triggerOnFocus&&!Y){S.value=!0,g.value=[];return}B(Y)},j=Y=>{var z;i.value||(((z=Y.target)==null?void 0:z.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(b.value=!0)},M=Y=>{o(D.CHANGE_EVENT,Y)},I=Y=>{var z;if(m)m=!1;else{b.value=!0,o("focus",Y);const R=(z=l.modelValue)!=null?z:"";l.triggerOnFocus&&!h&&B(String(R))}},K=Y=>{setTimeout(()=>{var z;if((z=p.value)!=null&&z.isFocusInsideContent()){m=!0;return}b.value&&F(),o("blur",Y)})},$=()=>{b.value=!1,o(D.UPDATE_MODEL_EVENT,""),o("clear")},O=async()=>{w.value&&v.value>=0&&v.value<g.value.length?G(g.value[v.value]):l.selectWhenUnmatched&&(o("select",{value:l.modelValue}),g.value=[],v.value=-1)},q=Y=>{w.value&&(Y.preventDefault(),Y.stopPropagation(),F())},F=()=>{b.value=!1},X=()=>{var Y;(Y=u.value)==null||Y.focus()},L=()=>{var Y;(Y=u.value)==null||Y.blur()},G=async Y=>{o(D.INPUT_EVENT,Y[l.valueKey]),o(D.UPDATE_MODEL_EVENT,Y[l.valueKey]),o("select",Y),g.value=[],v.value=-1},Z=Y=>{if(!w.value||y.value)return;if(Y<0){v.value=-1;return}Y>=g.value.length&&(Y=g.value.length-1);const z=d.value.querySelector(`.${c.be("suggestion","wrap")}`),x=z.querySelectorAll(`.${c.be("suggestion","list")} li`)[Y],Q=z.scrollTop,{offsetTop:U,scrollHeight:J}=x;U+J>Q+z.clientHeight&&(z.scrollTop+=J),U<Q&&(z.scrollTop-=J),v.value=Y,u.value.ref.setAttribute("aria-activedescendant",`${C.value}-item-${v.value}`)},ee=r.onClickOutside(f,()=>{var Y;(Y=p.value)!=null&&Y.isFocusInsideContent()||w.value&&F()});return e.onBeforeUnmount(()=>{ee==null||ee()}),e.onMounted(()=>{u.value.ref.setAttribute("role","textbox"),u.value.ref.setAttribute("aria-autocomplete","list"),u.value.ref.setAttribute("aria-controls","id"),u.value.ref.setAttribute("aria-activedescendant",`${C.value}-item-${v.value}`),h=u.value.ref.hasAttribute("readonly")}),n({highlightedIndex:v,activated:b,loading:y,inputRef:u,popperRef:p,suggestions:g,handleSelect:G,handleKeyEnter:O,focus:X,blur:L,close:F,highlight:Z,getData:P}),(Y,z)=>(e.openBlock(),e.createBlock(e.unref(nt),{ref_key:"popperRef",ref:p,visible:e.unref(w),placement:Y.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[e.unref(c).e("popper"),Y.popperClass],teleported:Y.teleported,"append-to":Y.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${e.unref(c).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:N,onHide:_},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"regionRef",ref:d,class:e.normalizeClass([e.unref(c).b("suggestion"),e.unref(c).is("loading",e.unref(V))]),style:e.normalizeStyle({[Y.fitInputWidth?"width":"minWidth"]:k.value,outline:"none"}),role:"region"},[e.createVNode(e.unref(Pt),{id:e.unref(C),tag:"ul","wrap-class":e.unref(c).be("suggestion","wrap"),"view-class":e.unref(c).be("suggestion","list"),role:"listbox"},{default:e.withCtx(()=>[e.unref(V)?(e.openBlock(),e.createElementBlock("li",{key:0},[e.renderSlot(Y.$slots,"loading",{},()=>[e.createVNode(e.unref(r.ElIcon),{class:e.normalizeClass(e.unref(c).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(r.loading_default))]),_:1},8,["class"])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(g.value,(R,x)=>(e.openBlock(),e.createElementBlock("li",{id:`${e.unref(C)}-item-${x}`,key:x,class:e.normalizeClass({highlighted:v.value===x}),role:"option","aria-selected":v.value===x,onClick:Q=>G(R)},[e.renderSlot(Y.$slots,"default",{item:R},()=>[e.createTextVNode(e.toDisplayString(R[Y.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"listboxRef",ref:f,class:e.normalizeClass([e.unref(c).b(),Y.$attrs.class]),style:e.normalizeStyle(e.unref(E)),role:"combobox","aria-haspopup":"listbox","aria-expanded":e.unref(w),"aria-owns":e.unref(C)},[e.createVNode(e.unref(D.ElInput),e.mergeProps({ref_key:"inputRef",ref:u},e.unref(a),{clearable:Y.clearable,disabled:e.unref(i),name:Y.name,"model-value":Y.modelValue,"aria-label":Y.ariaLabel,onInput:A,onChange:M,onFocus:I,onBlur:K,onClear:$,onKeydown:[e.withKeys(e.withModifiers(R=>Z(v.value-1),["prevent"]),["up"]),e.withKeys(e.withModifiers(R=>Z(v.value+1),["prevent"]),["down"]),e.withKeys(O,["enter"]),e.withKeys(F,["tab"]),e.withKeys(q,["esc"])],onMousedown:j}),e.createSlots({_:2},[Y.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(Y.$slots,"prepend")])}:void 0,Y.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(Y.$slots,"append")])}:void 0,Y.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(Y.$slots,"prefix")])}:void 0,Y.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(Y.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","append-to","transition"]))}});var Yg=r._export_sfc(qg,[["__file","autocomplete.vue"]]);const Gg=r.withInstall(Yg),Xg=r.buildProps({size:{type:[Number,String],values:r.componentSizes,default:"",validator:t=>r.isNumber(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:r.iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:r.definePropType(String),default:"cover"}}),Jg={error:t=>t instanceof Event},Zg=e.defineComponent({name:"ElAvatar"}),Qg=e.defineComponent({...Zg,props:Xg,emits:Jg,setup(t,{emit:n}){const o=t,l=r.useNamespace("avatar"),a=e.ref(!1),s=e.computed(()=>{const{size:d,icon:p,shape:f}=o,h=[l.b()];return r.isString(d)&&h.push(l.m(d)),p&&h.push(l.m("icon")),f&&h.push(l.m(f)),h}),i=e.computed(()=>{const{size:d}=o;return r.isNumber(d)?l.cssVarBlock({size:r.addUnit(d)||""}):void 0}),c=e.computed(()=>({objectFit:o.fit}));e.watch(()=>o.src,()=>a.value=!1);function u(d){a.value=!0,n("error",d)}return(d,p)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(s)),style:e.normalizeStyle(e.unref(i))},[(d.src||d.srcSet)&&!a.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:d.src,alt:d.alt,srcset:d.srcSet,style:e.normalizeStyle(e.unref(c)),onError:u},null,44,["src","alt","srcset"])):d.icon?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon)))]),_:1})):e.renderSlot(d.$slots,"default",{key:2})],6))}});var ey=r._export_sfc(Qg,[["__file","avatar.vue"]]);const ty=r.withInstall(ey),ny={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},oy={click:t=>t instanceof MouseEvent},ly=(t,n,o)=>{const l=e.shallowRef(),a=e.shallowRef(),s=e.ref(!1),i=()=>{l.value&&(s.value=l.value.scrollTop>=t.visibilityHeight)},c=d=>{var p;(p=l.value)==null||p.scrollTo({top:0,behavior:"smooth"}),n("click",d)},u=r.useThrottleFn(i,300,!0);return r.useEventListener(a,"scroll",u),e.onMounted(()=>{var d;a.value=document,l.value=document.documentElement,t.target&&(l.value=(d=document.querySelector(t.target))!=null?d:void 0,l.value||r.throwError(o,`target does not exist: ${t.target}`),a.value=l.value),i()}),{visible:s,handleClick:c}},wd="ElBacktop",ry=e.defineComponent({name:wd}),ay=e.defineComponent({...ry,props:ny,emits:oy,setup(t,{emit:n}){const o=t,l=r.useNamespace("backtop"),{handleClick:a,visible:s}=ly(o,n,wd),i=e.computed(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`}));return(c,u)=>(e.openBlock(),e.createBlock(e.Transition,{name:`${e.unref(l).namespace.value}-fade-in`},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(e.unref(i)),class:e.normalizeClass(e.unref(l).b()),onClick:e.withModifiers(e.unref(a),["stop"])},[e.renderSlot(c.$slots,"default",{},()=>[e.createVNode(e.unref(r.ElIcon),{class:e.normalizeClass(e.unref(l).e("icon"))},{default:e.withCtx(()=>[e.createVNode(e.unref(r.caret_top_default))]),_:1},8,["class"])])],14,["onClick"])):e.createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var sy=r._export_sfc(ay,[["__file","backtop.vue"]]);const iy=r.withInstall(sy),Ed=Symbol("breadcrumbKey"),cy=r.buildProps({separator:{type:String,default:"/"},separatorIcon:{type:r.iconPropType}}),uy=e.defineComponent({name:"ElBreadcrumb"}),dy=e.defineComponent({...uy,props:cy,setup(t){const n=t,{t:o}=r.useLocale(),l=r.useNamespace("breadcrumb"),a=e.ref();return e.provide(Ed,n),e.onMounted(()=>{const s=a.value.querySelectorAll(`.${l.e("item")}`);s.length&&s[s.length-1].setAttribute("aria-current","page")}),(s,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"breadcrumb",ref:a,class:e.normalizeClass(e.unref(l).b()),"aria-label":e.unref(o)("el.breadcrumb.label"),role:"navigation"},[e.renderSlot(s.$slots,"default")],10,["aria-label"]))}});var fy=r._export_sfc(dy,[["__file","breadcrumb.vue"]]);const py=r.buildProps({to:{type:r.definePropType([String,Object]),default:""},replace:Boolean}),my=e.defineComponent({name:"ElBreadcrumbItem"}),hy=e.defineComponent({...my,props:py,setup(t){const n=t,o=e.getCurrentInstance(),l=e.inject(Ed,void 0),a=r.useNamespace("breadcrumb"),s=o.appContext.config.globalProperties.$router,i=e.ref(),c=()=>{!n.to||!s||(n.replace?s.replace(n.to):s.push(n.to))};return(u,d)=>{var p,f;return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(a).e("item"))},[e.createElementVNode("span",{ref_key:"link",ref:i,class:e.normalizeClass([e.unref(a).e("inner"),e.unref(a).is("link",!!u.to)]),role:"link",onClick:c},[e.renderSlot(u.$slots,"default")],2),(p=e.unref(l))!=null&&p.separatorIcon?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(a).e("separator"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l).separatorIcon)))]),_:1},8,["class"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a).e("separator")),role:"presentation"},e.toDisplayString((f=e.unref(l))==null?void 0:f.separator),3))],2)}}});var Sd=r._export_sfc(hy,[["__file","breadcrumb-item.vue"]]);const vy=r.withInstall(fy,{BreadcrumbItem:Sd}),gy=r.withNoopInstall(Sd),pa=(t,n)=>[t>0?t-1:void 0,t,t<n?t+1:void 0],rn=t=>Array.from(Array.from({length:t}).keys()),Nd=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Td=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),cc=function(t,n){const o=r.isDate(t),l=r.isDate(n);return o&&l?t.getTime()===n.getTime():!o&&!l?t===n:!1},uc=function(t,n){const o=r.isArray$1(t),l=r.isArray$1(n);return o&&l?t.length!==n.length?!1:t.every((a,s)=>cc(a,n[s])):!o&&!l?cc(t,n):!1},dc=function(t,n,o){const l=r.isEmpty(n)||n==="x"?ve.dayjs(t).locale(o):ve.dayjs(t,n).locale(o);return l.isValid()?l:void 0},fc=function(t,n,o){return r.isEmpty(n)?t:n==="x"?+t:ve.dayjs(t).locale(o).format(n)},ma=(t,n)=>{var o;const l=[],a=n==null?void 0:n();for(let s=0;s<t;s++)l.push((o=a==null?void 0:a.includes(s))!=null?o:!1);return l},Hl=t=>r.isArray$1(t)?t.map(n=>n.toDate()):t.toDate(),yy=(t,n)=>{const o=t.subtract(1,"month").endOf("month").date();return rn(n).map((l,a)=>o-(n-a-1))},by=t=>{const n=t.daysInMonth();return rn(n).map((o,l)=>l+1)},Cy=t=>rn(t.length/7).map(n=>{const o=n*7;return t.slice(o,o+7)}),ky=r.buildProps({selectedDay:{type:r.definePropType(Object)},range:{type:r.definePropType(Array)},date:{type:r.definePropType(Object),required:!0},hideHeader:{type:Boolean}}),wy={pick:t=>r.isObject$1(t)};var nr={exports:{}},Ey=nr.exports,pc;function Sy(){return pc||(pc=1,function(t,n){(function(o,l){t.exports=l()})(Ey,function(){return function(o,l,a){var s=l.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},c=function(f,h,m,g,v){var k=f.name?f:f.$locale(),b=i(k[h]),S=i(k[m]),y=b||S.map(function(E){return E.slice(0,g)});if(!v)return y;var C=k.weekStart;return y.map(function(E,w){return y[(w+(C||0))%7]})},u=function(){return a.Ls[a.locale()]},d=function(f,h){return f.formats[h]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,v,k){return v||k.slice(1)})}(f.formats[h.toUpperCase()])},p=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):c(f,"months")},monthsShort:function(h){return h?h.format("MMM"):c(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):c(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):c(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):c(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return p.bind(this)()},a.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return d(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return c(u(),"months")},a.monthsShort=function(){return c(u(),"monthsShort","months",3)},a.weekdays=function(f){return c(u(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return c(u(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return c(u(),"weekdaysMin","weekdays",2,f)}}})}(nr)),nr.exports}var Ny=Sy();const _d=ve.getDefaultExportFromCjs(Ny),Ty=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],ha=["sun","mon","tue","wed","thu","fri","sat"],_y=(t,n)=>{ve.dayjs.extend(_d);const o=ve.dayjs.localeData().firstDayOfWeek(),{t:l,lang:a}=r.useLocale(),s=ve.dayjs().locale(a.value),i=e.computed(()=>!!t.range&&!!t.range.length),c=e.computed(()=>{let h=[];if(i.value){const[m,g]=t.range,v=rn(g.date()-m.date()+1).map(S=>({text:m.date()+S,type:"current"}));let k=v.length%7;k=k===0?0:7-k;const b=rn(k).map((S,y)=>({text:y+1,type:"next"}));h=v.concat(b)}else{const m=t.date.startOf("month").day(),g=yy(t.date,(m-o+7)%7).map(S=>({text:S,type:"prev"})),v=by(t.date).map(S=>({text:S,type:"current"}));h=[...g,...v];const k=7-(h.length%7||7),b=rn(k).map((S,y)=>({text:y+1,type:"next"}));h=h.concat(b)}return Cy(h)}),u=e.computed(()=>{const h=o;return h===0?ha.map(m=>l(`el.datepicker.weeks.${m}`)):ha.slice(h).concat(ha.slice(0,h)).map(m=>l(`el.datepicker.weeks.${m}`))}),d=(h,m)=>{switch(m){case"prev":return t.date.startOf("month").subtract(1,"month").date(h);case"next":return t.date.startOf("month").add(1,"month").date(h);case"current":return t.date.date(h)}};return{now:s,isInRange:i,rows:c,weekDays:u,getFormattedDate:d,handlePickDay:({text:h,type:m})=>{const g=d(h,m);n("pick",g)},getSlotData:({text:h,type:m})=>{const g=d(h,m);return{isSelected:g.isSame(t.selectedDay),type:`${m}-month`,day:g.format("YYYY-MM-DD"),date:g.toDate()}}}},Vy=e.defineComponent({name:"DateTable"}),By=e.defineComponent({...Vy,props:ky,emits:wy,setup(t,{expose:n,emit:o}){const l=t,{isInRange:a,now:s,rows:i,weekDays:c,getFormattedDate:u,handlePickDay:d,getSlotData:p}=_y(l,o),f=r.useNamespace("calendar-table"),h=r.useNamespace("calendar-day"),m=({text:g,type:v})=>{const k=[v];if(v==="current"){const b=u(g,v);b.isSame(l.selectedDay,"day")&&k.push(h.is("selected")),b.isSame(s,"day")&&k.push(h.is("today"))}return k};return n({getFormattedDate:u}),(g,v)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass([e.unref(f).b(),e.unref(f).is("range",e.unref(a))]),cellspacing:"0",cellpadding:"0"},[g.hideHeader?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("thead",{key:0},[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),k=>(e.openBlock(),e.createElementBlock("th",{key:k,scope:"col"},e.toDisplayString(k),1))),128))])])),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(k,b)=>(e.openBlock(),e.createElementBlock("tr",{key:b,class:e.normalizeClass({[e.unref(f).e("row")]:!0,[e.unref(f).em("row","hide-border")]:b===0&&g.hideHeader})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,(S,y)=>(e.openBlock(),e.createElementBlock("td",{key:y,class:e.normalizeClass(m(S)),onClick:C=>e.unref(d)(S)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(h).b())},[e.renderSlot(g.$slots,"date-cell",{data:e.unref(p)(S)},()=>[e.createElementVNode("span",null,e.toDisplayString(S.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var mc=r._export_sfc(By,[["__file","date-table.vue"]]);const Py=(t,n)=>{const o=t.endOf("month"),l=n.startOf("month"),s=o.isSame(l,"week")?l.add(1,"week"):l;return[[t,o],[s.startOf("week"),n]]},Dy=(t,n)=>{const o=t.endOf("month"),l=t.add(1,"month").startOf("month"),a=o.isSame(l,"week")?l.add(1,"week"):l,s=a.endOf("month"),i=n.startOf("month"),c=s.isSame(i,"week")?i.add(1,"week"):i;return[[t,o],[a.startOf("week"),s],[c.startOf("week"),n]]},$y=(t,n,o)=>{const{lang:l}=r.useLocale(),a=e.ref(),s=ve.dayjs().locale(l.value),i=e.computed({get(){return t.modelValue?u.value:a.value},set(k){if(!k)return;a.value=k;const b=k.toDate();n(D.INPUT_EVENT,b),n(D.UPDATE_MODEL_EVENT,b)}}),c=e.computed(()=>{if(!t.range||!r.isArray$1(t.range)||t.range.length!==2||t.range.some(y=>!r.isDate(y)))return[];const k=t.range.map(y=>ve.dayjs(y).locale(l.value)),[b,S]=k;return b.isAfter(S)?(r.debugWarn(o,"end time should be greater than start time"),[]):b.isSame(S,"month")?m(b,S):b.add(1,"month").month()!==S.month()?(r.debugWarn(o,"start time and end time interval must not exceed two months"),[]):m(b,S)}),u=e.computed(()=>t.modelValue?ve.dayjs(t.modelValue).locale(l.value):i.value||(c.value.length?c.value[0][0]:s)),d=e.computed(()=>u.value.subtract(1,"month").date(1)),p=e.computed(()=>u.value.add(1,"month").date(1)),f=e.computed(()=>u.value.subtract(1,"year").date(1)),h=e.computed(()=>u.value.add(1,"year").date(1)),m=(k,b)=>{const S=k.startOf("week"),y=b.endOf("week"),C=S.get("month"),E=y.get("month");return C===E?[[S,y]]:(C+1)%12===E?Py(S,y):C+2===E||(C+1)%11===E?Dy(S,y):(r.debugWarn(o,"start time and end time interval must not exceed two months"),[])},g=k=>{i.value=k};return{calculateValidatedDateRange:m,date:u,realSelectedDay:i,pickDay:g,selectDate:k=>{const S={"prev-month":d.value,"next-month":p.value,"prev-year":f.value,"next-year":h.value,today:s}[k];S.isSame(u.value,"day")||g(S)},validatedRange:c}},Iy=t=>r.isArray$1(t)&&t.length===2&&t.every(n=>r.isDate(n)),Oy=r.buildProps({modelValue:{type:Date},range:{type:r.definePropType(Array),validator:Iy}}),My={[D.UPDATE_MODEL_EVENT]:t=>r.isDate(t),[D.INPUT_EVENT]:t=>r.isDate(t)},Vd="ElCalendar",xy=e.defineComponent({name:Vd}),Ay=e.defineComponent({...xy,props:Oy,emits:My,setup(t,{expose:n,emit:o}){const l=t,a=r.useNamespace("calendar"),{calculateValidatedDateRange:s,date:i,pickDay:c,realSelectedDay:u,selectDate:d,validatedRange:p}=$y(l,o,Vd),{t:f}=r.useLocale(),h=e.computed(()=>{const m=`el.datepicker.month${i.value.format("M")}`;return`${i.value.year()} ${f("el.datepicker.year")} ${f(m)}`});return n({selectedDay:u,pickDay:c,selectDate:d,calculateValidatedDateRange:s}),(m,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("header"))},[e.renderSlot(m.$slots,"header",{date:e.unref(h)},()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("title"))},e.toDisplayString(e.unref(h)),3),e.unref(p).length===0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(a).e("button-group"))},[e.createVNode(e.unref(D.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(D.ElButton),{size:"small",onClick:v=>e.unref(d)("prev-month")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(D.ElButton),{size:"small",onClick:v=>e.unref(d)("today")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("el.datepicker.today")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(D.ElButton),{size:"small",onClick:v=>e.unref(d)("next-month")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):e.createCommentVNode("v-if",!0)])],2),e.unref(p).length===0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(a).e("body"))},[e.createVNode(mc,{date:e.unref(i),"selected-day":e.unref(u),onPick:e.unref(c)},e.createSlots({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:e.withCtx(v=>[e.renderSlot(m.$slots,"date-cell",e.normalizeProps(e.guardReactiveProps(v)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(a).e("body"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(v,k)=>(e.openBlock(),e.createBlock(mc,{key:k,date:v[0],"selected-day":e.unref(u),range:v,"hide-header":k!==0,onPick:e.unref(c)},e.createSlots({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:e.withCtx(b=>[e.renderSlot(m.$slots,"date-cell",e.normalizeProps(e.guardReactiveProps(b)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var zy=r._export_sfc(Ay,[["__file","calendar.vue"]]);const Ry=r.withInstall(zy),Ly=r.buildProps({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:r.definePropType([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),Fy=e.defineComponent({name:"ElCard"}),Ky=e.defineComponent({...Fy,props:Ly,setup(t){const n=r.useNamespace("card");return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n).b(),e.unref(n).is(`${o.shadow}-shadow`)])},[o.$slots.header||o.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(n).e("header"),o.headerClass])},[e.renderSlot(o.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(o.header),1)])],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(n).e("body"),o.bodyClass]),style:e.normalizeStyle(o.bodyStyle)},[e.renderSlot(o.$slots,"default")],6),o.$slots.footer||o.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(n).e("footer"),o.footerClass])},[e.renderSlot(o.$slots,"footer",{},()=>[e.createTextVNode(e.toDisplayString(o.footer),1)])],2)):e.createCommentVNode("v-if",!0)],2))}});var Hy=r._export_sfc(Ky,[["__file","card.vue"]]);const jy=r.withInstall(Hy),Wy=r.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:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Uy={change:(t,n)=>[t,n].every(r.isNumber)},Bd=Symbol("carouselContextKey"),ml="ElCarouselItem",qy=(t,n,o)=>D.flattedChildren(t.subTree).filter(s=>{var i;return e.isVNode(s)&&((i=s.type)==null?void 0:i.name)===n&&!!s.component}).map(s=>s.component.uid).map(s=>o[s]).filter(s=>!!s),Jr=(t,n)=>{const o={},l=e.shallowRef([]);return{children:l,addChild:i=>{o[i.uid]=i,l.value=qy(t,n,o)},removeChild:i=>{delete o[i],l.value=l.value.filter(c=>c.uid!==i)}}},hc=300,Yy=(t,n,o)=>{const{children:l,addChild:a,removeChild:s}=Jr(e.getCurrentInstance(),ml),i=e.useSlots(),c=e.ref(-1),u=e.ref(null),d=e.ref(!1),p=e.ref(),f=e.ref(0),h=e.ref(!0),m=e.computed(()=>t.arrow!=="never"&&!e.unref(k)),g=e.computed(()=>l.value.some(L=>L.props.label.toString().length>0)),v=e.computed(()=>t.type==="card"),k=e.computed(()=>t.direction==="vertical"),b=e.computed(()=>t.height!=="auto"?{height:t.height}:{height:`${f.value}px`,overflow:"hidden"}),S=yn(L=>{T(L)},hc,{trailing:!0}),y=yn(L=>{I(L)},hc),C=L=>h.value?c.value<=1?L<=1:L>1:!0;function E(){u.value&&(clearInterval(u.value),u.value=null)}function w(){t.interval<=0||!t.autoplay||u.value||(u.value=setInterval(()=>V(),t.interval))}const V=()=>{c.value<l.value.length-1?c.value=c.value+1:t.loop&&(c.value=0)};function T(L){if(r.isString(L)){const ee=l.value.filter(Y=>Y.props.name===L);ee.length>0&&(L=l.value.indexOf(ee[0]))}if(L=Number(L),Number.isNaN(L)||L!==Math.floor(L)){r.debugWarn(o,"index must be integer.");return}const G=l.value.length,Z=c.value;L<0?c.value=t.loop?G-1:0:L>=G?c.value=t.loop?0:G-1:c.value=L,Z===c.value&&N(Z),O()}function N(L){l.value.forEach((G,Z)=>{G.translateItem(Z,c.value,L)})}function _(L,G){var Z,ee,Y,z;const R=e.unref(l),x=R.length;if(x===0||!L.states.inStage)return!1;const Q=G+1,U=G-1,J=x-1,ce=R[J].states.active,oe=R[0].states.active,ie=(ee=(Z=R[Q])==null?void 0:Z.states)==null?void 0:ee.active,ne=(z=(Y=R[U])==null?void 0:Y.states)==null?void 0:z.active;return G===J&&oe||ie?"left":G===0&&ce||ne?"right":!1}function P(){d.value=!0,t.pauseOnHover&&E()}function B(){d.value=!1,w()}function A(L){e.unref(k)||l.value.forEach((G,Z)=>{L===_(G,Z)&&(G.states.hover=!0)})}function j(){e.unref(k)||l.value.forEach(L=>{L.states.hover=!1})}function M(L){c.value=L}function I(L){t.trigger==="hover"&&L!==c.value&&(c.value=L)}function K(){T(c.value-1)}function $(){T(c.value+1)}function O(){E(),t.pauseOnHover||w()}function q(L){t.height==="auto"&&(f.value=L)}function F(){var L;const G=(L=i.default)==null?void 0:L.call(i);if(!G)return null;const ee=D.flattedChildren(G).filter(Y=>e.isVNode(Y)&&Y.type.name===ml);return(ee==null?void 0:ee.length)===2&&t.loop&&!v.value?(h.value=!0,ee):(h.value=!1,null)}e.watch(()=>c.value,(L,G)=>{N(G),h.value&&(L=L%2,G=G%2),G>-1&&n(D.CHANGE_EVENT,L,G)}),e.watch(()=>t.autoplay,L=>{L?w():E()}),e.watch(()=>t.loop,()=>{T(c.value)}),e.watch(()=>t.interval,()=>{O()});const X=e.shallowRef();return e.onMounted(()=>{e.watch(()=>l.value,()=>{l.value.length>0&&T(t.initialIndex)},{immediate:!0}),X.value=r.useResizeObserver(p.value,()=>{N()}),w()}),e.onBeforeUnmount(()=>{E(),p.value&&X.value&&X.value.stop()}),e.provide(Bd,{root:p,isCardType:v,isVertical:k,items:l,loop:t.loop,cardScale:t.cardScale,addItem:a,removeItem:s,setActiveItem:T,setContainerHeight:q}),{root:p,activeIndex:c,arrowDisplay:m,hasLabel:g,hover:d,isCardType:v,items:l,isVertical:k,containerStyle:b,isItemsTwoLength:h,handleButtonEnter:A,handleButtonLeave:j,handleIndicatorClick:M,handleMouseEnter:P,handleMouseLeave:B,setActiveItem:T,prev:K,next:$,PlaceholderItem:F,isTwoLengthShow:C,throttledArrowClick:S,throttledIndicatorHover:y}},Pd="ElCarousel",Gy=e.defineComponent({name:Pd}),Xy=e.defineComponent({...Gy,props:Wy,emits:Uy,setup(t,{expose:n,emit:o}){const l=t,{root:a,activeIndex:s,arrowDisplay:i,hasLabel:c,hover:u,isCardType:d,items:p,isVertical:f,containerStyle:h,handleButtonEnter:m,handleButtonLeave:g,handleIndicatorClick:v,handleMouseEnter:k,handleMouseLeave:b,setActiveItem:S,prev:y,next:C,PlaceholderItem:E,isTwoLengthShow:w,throttledArrowClick:V,throttledIndicatorHover:T}=Yy(l,o,Pd),N=r.useNamespace("carousel"),{t:_}=r.useLocale(),P=e.computed(()=>{const M=[N.b(),N.m(l.direction)];return e.unref(d)&&M.push(N.m("card")),M}),B=e.computed(()=>{const M=[N.e("indicators"),N.em("indicators",l.direction)];return e.unref(c)&&M.push(N.em("indicators","labels")),l.indicatorPosition==="outside"&&M.push(N.em("indicators","outside")),e.unref(f)&&M.push(N.em("indicators","right")),M});function A(M){if(!l.motionBlur)return;const I=e.unref(f)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;M.currentTarget.classList.add(I)}function j(M){if(!l.motionBlur)return;const I=e.unref(f)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;M.currentTarget.classList.remove(I)}return n({activeIndex:s,setActiveItem:S,prev:y,next:C}),(M,I)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:a,class:e.normalizeClass(e.unref(P)),onMouseenter:e.withModifiers(e.unref(k),["stop"]),onMouseleave:e.withModifiers(e.unref(b),["stop"])},[e.unref(i)?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(N).e("arrow"),e.unref(N).em("arrow","left")]),"aria-label":e.unref(_)("el.carousel.leftArrow"),onMouseenter:K=>e.unref(m)("left"),onMouseleave:e.unref(g),onClick:e.withModifiers(K=>e.unref(V)(e.unref(s)-1),["stop"])},[e.createVNode(e.unref(r.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.arrow_left_default))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[e.vShow,(M.arrow==="always"||e.unref(u))&&(l.loop||e.unref(s)>0)]])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(i)?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(N).e("arrow"),e.unref(N).em("arrow","right")]),"aria-label":e.unref(_)("el.carousel.rightArrow"),onMouseenter:K=>e.unref(m)("right"),onMouseleave:e.unref(g),onClick:e.withModifiers(K=>e.unref(V)(e.unref(s)+1),["stop"])},[e.createVNode(e.unref(r.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.arrow_right_default))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[e.vShow,(M.arrow==="always"||e.unref(u))&&(l.loop||e.unref(s)<e.unref(p).length-1)]])]),_:1})):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(N).e("container")),style:e.normalizeStyle(e.unref(h)),onTransitionstart:A,onTransitionend:j},[e.createVNode(e.unref(E)),e.renderSlot(M.$slots,"default")],38),M.indicatorPosition!=="none"?(e.openBlock(),e.createElementBlock("ul",{key:2,class:e.normalizeClass(e.unref(B))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(K,$)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:$,class:e.normalizeClass([e.unref(N).e("indicator"),e.unref(N).em("indicator",M.direction),e.unref(N).is("active",$===e.unref(s))]),onMouseenter:O=>e.unref(T)($),onClick:e.withModifiers(O=>e.unref(v)($),["stop"])},[e.createElementVNode("button",{class:e.normalizeClass(e.unref(N).e("button")),"aria-label":e.unref(_)("el.carousel.indicator",{index:$+1})},[e.unref(c)?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(K.props.label),1)):e.createCommentVNode("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[e.vShow,e.unref(w)($)]])),128))],2)):e.createCommentVNode("v-if",!0),l.motionBlur?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:"elCarouselHorizontal"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),e.createElementVNode("filter",{id:"elCarouselVertical"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):e.createCommentVNode("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var Jy=r._export_sfc(Xy,[["__file","carousel.vue"]]);const Zy=r.buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Qy=t=>{const n=e.inject(Bd),o=e.getCurrentInstance();n||r.debugWarn(ml,"usage: <el-carousel></el-carousel-item></el-carousel>"),o||r.debugWarn(ml,"compositional hook can only be invoked inside setups");const l=e.ref(),a=e.ref(!1),s=e.ref(0),i=e.ref(1),c=e.ref(!1),u=e.ref(!1),d=e.ref(!1),p=e.ref(!1),{isCardType:f,isVertical:h,cardScale:m}=n;function g(y,C,E){const w=E-1,V=C-1,T=C+1,N=E/2;return C===0&&y===w?-1:C===w&&y===0?E:y<V&&C-y>=N?E+1:y>T&&y-C>=N?-2:y}function v(y,C){var E,w;const V=e.unref(h)?((E=n.root.value)==null?void 0:E.offsetHeight)||0:((w=n.root.value)==null?void 0:w.offsetWidth)||0;return d.value?V*((2-m)*(y-C)+1)/4:y<C?-(1+m)*V/4:(3+m)*V/4}function k(y,C,E){const w=n.root.value;return w?((E?w.offsetHeight:w.offsetWidth)||0)*(y-C):0}const b=(y,C,E)=>{var w;const V=e.unref(f),T=(w=n.items.value.length)!=null?w:Number.NaN,N=y===C;!V&&!r.isUndefined(E)&&(p.value=N||y===E),!N&&T>2&&n.loop&&(y=g(y,C,T));const _=e.unref(h);c.value=N,V?(d.value=Math.round(Math.abs(y-C))<=1,s.value=v(y,C),i.value=e.unref(c)?1:m):s.value=k(y,C,_),u.value=!0,N&&l.value&&n.setContainerHeight(l.value.offsetHeight)};function S(){if(n&&e.unref(f)){const y=n.items.value.findIndex(({uid:C})=>C===o.uid);n.setActiveItem(y)}}return e.onMounted(()=>{n.addItem({props:t,states:e.reactive({hover:a,translate:s,scale:i,active:c,ready:u,inStage:d,animating:p}),uid:o.uid,translateItem:b})}),e.onUnmounted(()=>{n.removeItem(o.uid)}),{carouselItemRef:l,active:c,animating:p,hover:a,inStage:d,isVertical:h,translate:s,isCardType:f,scale:i,ready:u,handleItemClick:S}},eb=e.defineComponent({name:ml}),tb=e.defineComponent({...eb,props:Zy,setup(t){const n=t,o=r.useNamespace("carousel"),{carouselItemRef:l,active:a,animating:s,hover:i,inStage:c,isVertical:u,translate:d,isCardType:p,scale:f,ready:h,handleItemClick:m}=Qy(n),g=e.computed(()=>[o.e("item"),o.is("active",a.value),o.is("in-stage",c.value),o.is("hover",i.value),o.is("animating",s.value),{[o.em("item","card")]:p.value,[o.em("item","card-vertical")]:p.value&&u.value}]),v=e.computed(()=>{const b=`${`translate${e.unref(u)?"Y":"X"}`}(${e.unref(d)}px)`,S=`scale(${e.unref(f)})`;return{transform:[b,S].join(" ")}});return(k,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"carouselItemRef",ref:l,class:e.normalizeClass(e.unref(g)),style:e.normalizeStyle(e.unref(v)),onClick:e.unref(m)},[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).e("mask"))},null,2)),[[e.vShow,!e.unref(a)]]):e.createCommentVNode("v-if",!0),e.renderSlot(k.$slots,"default")],14,["onClick"])),[[e.vShow,e.unref(h)]])}});var Dd=r._export_sfc(tb,[["__file","carousel-item.vue"]]);const nb=r.withInstall(Jy,{CarouselItem:Dd}),ob=r.withNoopInstall(Dd),$d={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:r.useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...D.useAriaProps(["ariaControls"])},Id={[D.UPDATE_MODEL_EVENT]:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t),change:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t)},io=Symbol("checkboxGroupContextKey"),lb=({model:t,isChecked:n})=>{const o=e.inject(io,void 0),l=e.computed(()=>{var s,i;const c=(s=o==null?void 0:o.max)==null?void 0:s.value,u=(i=o==null?void 0:o.min)==null?void 0:i.value;return!r.isUndefined(c)&&t.value.length>=c&&!n.value||!r.isUndefined(u)&&t.value.length<=u&&n.value});return{isDisabled:D.useFormDisabled(e.computed(()=>(o==null?void 0:o.disabled.value)||l.value)),isLimitDisabled:l}},rb=(t,{model:n,isLimitExceeded:o,hasOwnLabel:l,isDisabled:a,isLabeledByFormItem:s})=>{const i=e.inject(io,void 0),{formItem:c}=D.useFormItem(),{emit:u}=e.getCurrentInstance();function d(g){var v,k,b,S;return[!0,t.trueValue,t.trueLabel].includes(g)?(k=(v=t.trueValue)!=null?v:t.trueLabel)!=null?k:!0:(S=(b=t.falseValue)!=null?b:t.falseLabel)!=null?S:!1}function p(g,v){u(D.CHANGE_EVENT,d(g),v)}function f(g){if(o.value)return;const v=g.target;u(D.CHANGE_EVENT,d(v.checked),g)}async function h(g){o.value||!l.value&&!a.value&&s.value&&(g.composedPath().some(b=>b.tagName==="LABEL")||(n.value=d([!1,t.falseValue,t.falseLabel].includes(n.value)),await e.nextTick(),p(n.value,g)))}const m=e.computed(()=>(i==null?void 0:i.validateEvent)||t.validateEvent);return e.watch(()=>t.modelValue,()=>{m.value&&(c==null||c.validate("change").catch(g=>r.debugWarn(g)))}),{handleChange:f,onClickRoot:h}},ab=t=>{const n=e.ref(!1),{emit:o}=e.getCurrentInstance(),l=e.inject(io,void 0),a=e.computed(()=>r.isUndefined(l)===!1),s=e.ref(!1),i=e.computed({get(){var c,u;return a.value?(c=l==null?void 0:l.modelValue)==null?void 0:c.value:(u=t.modelValue)!=null?u:n.value},set(c){var u,d;a.value&&r.isArray$1(c)?(s.value=((u=l==null?void 0:l.max)==null?void 0:u.value)!==void 0&&c.length>(l==null?void 0:l.max.value)&&c.length>i.value.length,s.value===!1&&((d=l==null?void 0:l.changeEvent)==null||d.call(l,c))):(o(D.UPDATE_MODEL_EVENT,c),n.value=c)}});return{model:i,isGroup:a,isLimitExceeded:s}},sb=(t,n,{model:o})=>{const l=e.inject(io,void 0),a=e.ref(!1),s=e.computed(()=>r.isPropAbsent(t.value)?t.label:t.value),i=e.computed(()=>{const p=o.value;return r.isBoolean(p)?p:r.isArray$1(p)?r.isObject$1(s.value)?p.map(e.toRaw).some(f=>D.isEqual(f,s.value)):p.map(e.toRaw).includes(s.value):p!=null?p===t.trueValue||p===t.trueLabel:!!p}),c=D.useFormSize(e.computed(()=>{var p;return(p=l==null?void 0:l.size)==null?void 0:p.value}),{prop:!0}),u=D.useFormSize(e.computed(()=>{var p;return(p=l==null?void 0:l.size)==null?void 0:p.value})),d=e.computed(()=>!!n.default||!r.isPropAbsent(s.value));return{checkboxButtonSize:c,isChecked:i,isFocused:a,checkboxSize:u,hasOwnLabel:d,actualValue:s}},Od=(t,n)=>{const{formItem:o}=D.useFormItem(),{model:l,isGroup:a,isLimitExceeded:s}=ab(t),{isFocused:i,isChecked:c,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:p,actualValue:f}=sb(t,n,{model:l}),{isDisabled:h}=lb({model:l,isChecked:c}),{inputId:m,isLabeledByFormItem:g}=D.useFormItemInputId(t,{formItemContext:o,disableIdGeneration:p,disableIdManagement:a}),{handleChange:v,onClickRoot:k}=rb(t,{model:l,isLimitExceeded:s,hasOwnLabel:p,isDisabled:h,isLabeledByFormItem:g});return(()=>{function S(){var y,C;r.isArray$1(l.value)&&!l.value.includes(f.value)?l.value.push(f.value):l.value=(C=(y=t.trueValue)!=null?y:t.trueLabel)!=null?C:!0}t.checked&&S()})(),D.useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>a.value&&r.isPropAbsent(t.value))),D.useDeprecated({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>!!t.trueLabel)),D.useDeprecated({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>!!t.falseLabel)),{inputId:m,isLabeledByFormItem:g,isChecked:c,isDisabled:h,isFocused:i,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:p,model:l,actualValue:f,handleChange:v,onClickRoot:k}},ib=e.defineComponent({name:"ElCheckbox"}),cb=e.defineComponent({...ib,props:$d,emits:Id,setup(t){const n=t,o=e.useSlots(),{inputId:l,isLabeledByFormItem:a,isChecked:s,isDisabled:i,isFocused:c,checkboxSize:u,hasOwnLabel:d,model:p,actualValue:f,handleChange:h,onClickRoot:m}=Od(n,o),g=r.useNamespace("checkbox"),v=e.computed(()=>[g.b(),g.m(u.value),g.is("disabled",i.value),g.is("bordered",n.border),g.is("checked",s.value)]),k=e.computed(()=>[g.e("input"),g.is("disabled",i.value),g.is("checked",s.value),g.is("indeterminate",n.indeterminate),g.is("focus",c.value)]);return(b,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(!e.unref(d)&&e.unref(a)?"span":"label"),{class:e.normalizeClass(e.unref(v)),"aria-controls":b.indeterminate?b.ariaControls:null,onClick:e.unref(m)},{default:e.withCtx(()=>{var y,C,E,w;return[e.createElementVNode("span",{class:e.normalizeClass(e.unref(k))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,id:e.unref(l),"onUpdate:modelValue":V=>e.isRef(p)?p.value=V:null,class:e.normalizeClass(e.unref(g).e("original")),type:"checkbox",indeterminate:b.indeterminate,name:b.name,tabindex:b.tabindex,disabled:e.unref(i),"true-value":(C=(y=b.trueValue)!=null?y:b.trueLabel)!=null?C:!0,"false-value":(w=(E=b.falseValue)!=null?E:b.falseLabel)!=null?w:!1,onChange:e.unref(h),onFocus:V=>c.value=!0,onBlur:V=>c.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[e.vModelCheckbox,e.unref(p)]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,id:e.unref(l),"onUpdate:modelValue":V=>e.isRef(p)?p.value=V:null,class:e.normalizeClass(e.unref(g).e("original")),type:"checkbox",indeterminate:b.indeterminate,disabled:e.unref(i),value:e.unref(f),name:b.name,tabindex:b.tabindex,onChange:e.unref(h),onFocus:V=>c.value=!0,onBlur:V=>c.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[e.vModelCheckbox,e.unref(p)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(g).e("inner"))},null,2)],2),e.unref(d)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(g).e("label"))},[e.renderSlot(b.$slots,"default"),b.$slots.default?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(b.label),1)],64))],2)):e.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var ub=r._export_sfc(cb,[["__file","checkbox.vue"]]);const db=e.defineComponent({name:"ElCheckboxButton"}),fb=e.defineComponent({...db,props:$d,emits:Id,setup(t){const n=t,o=e.useSlots(),{isFocused:l,isChecked:a,isDisabled:s,checkboxButtonSize:i,model:c,actualValue:u,handleChange:d}=Od(n,o),p=e.inject(io,void 0),f=r.useNamespace("checkbox"),h=e.computed(()=>{var g,v,k,b;const S=(v=(g=p==null?void 0:p.fill)==null?void 0:g.value)!=null?v:"";return{backgroundColor:S,borderColor:S,color:(b=(k=p==null?void 0:p.textColor)==null?void 0:k.value)!=null?b:"",boxShadow:S?`-1px 0 0 0 ${S}`:void 0}}),m=e.computed(()=>[f.b("button"),f.bm("button",i.value),f.is("disabled",s.value),f.is("checked",a.value),f.is("focus",l.value)]);return(g,v)=>{var k,b,S,y;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(m))},[g.trueValue||g.falseValue||g.trueLabel||g.falseLabel?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":C=>e.isRef(c)?c.value=C:null,class:e.normalizeClass(e.unref(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:e.unref(s),"true-value":(b=(k=g.trueValue)!=null?k:g.trueLabel)!=null?b:!0,"false-value":(y=(S=g.falseValue)!=null?S:g.falseLabel)!=null?y:!1,onChange:e.unref(d),onFocus:C=>l.value=!0,onBlur:C=>l.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[e.vModelCheckbox,e.unref(c)]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":C=>e.isRef(c)?c.value=C:null,class:e.normalizeClass(e.unref(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:e.unref(s),value:e.unref(u),onChange:e.unref(d),onFocus:C=>l.value=!0,onBlur:C=>l.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[e.vModelCheckbox,e.unref(c)]]),g.$slots.default||g.label?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(f).be("button","inner")),style:e.normalizeStyle(e.unref(a)?e.unref(h):void 0)},[e.renderSlot(g.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(g.label),1)])],6)):e.createCommentVNode("v-if",!0)],2)}}});var Md=r._export_sfc(fb,[["__file","checkbox-button.vue"]]);const pb=r.buildProps({modelValue:{type:r.definePropType(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:r.useSizeProp,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...D.useAriaProps(["ariaLabel"])}),mb={[D.UPDATE_MODEL_EVENT]:t=>r.isArray$1(t),change:t=>r.isArray$1(t)},hb=e.defineComponent({name:"ElCheckboxGroup"}),vb=e.defineComponent({...hb,props:pb,emits:mb,setup(t,{emit:n}){const o=t,l=r.useNamespace("checkbox"),{formItem:a}=D.useFormItem(),{inputId:s,isLabeledByFormItem:i}=D.useFormItemInputId(o,{formItemContext:a}),c=async d=>{n(D.UPDATE_MODEL_EVENT,d),await e.nextTick(),n(D.CHANGE_EVENT,d)},u=e.computed({get(){return o.modelValue},set(d){c(d)}});return e.provide(io,{...D.pick(e.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:c}),e.watch(()=>o.modelValue,()=>{o.validateEvent&&(a==null||a.validate("change").catch(d=>r.debugWarn(d)))}),(d,p)=>{var f;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.tag),{id:e.unref(s),class:e.normalizeClass(e.unref(l).b("group")),role:"group","aria-label":e.unref(i)?void 0:d.ariaLabel||"checkbox-group","aria-labelledby":e.unref(i)?(f=e.unref(a))==null?void 0:f.labelId:void 0},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var xd=r._export_sfc(vb,[["__file","checkbox-group.vue"]]);const Bt=r.withInstall(ub,{CheckboxButton:Md,CheckboxGroup:xd}),gb=r.withNoopInstall(Md),Ad=r.withNoopInstall(xd),zd=r.buildProps({modelValue:{type:[String,Number,Boolean],default:void 0},size:r.useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),yb=r.buildProps({...zd,border:Boolean}),Rd={[D.UPDATE_MODEL_EVENT]:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t),[D.CHANGE_EVENT]:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t)},Ld=Symbol("radioGroupKey"),Fd=(t,n)=>{const o=e.ref(),l=e.inject(Ld,void 0),a=e.computed(()=>!!l),s=e.computed(()=>r.isPropAbsent(t.value)?t.label:t.value),i=e.computed({get(){return a.value?l.modelValue:t.modelValue},set(f){a.value?l.changeEvent(f):n&&n(D.UPDATE_MODEL_EVENT,f),o.value.checked=t.modelValue===s.value}}),c=D.useFormSize(e.computed(()=>l==null?void 0:l.size)),u=D.useFormDisabled(e.computed(()=>l==null?void 0:l.disabled)),d=e.ref(!1),p=e.computed(()=>u.value||a.value&&i.value!==s.value?-1:0);return D.useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},e.computed(()=>a.value&&r.isPropAbsent(t.value))),{radioRef:o,isGroup:a,radioGroup:l,focus:d,size:c,disabled:u,tabIndex:p,modelValue:i,actualValue:s}},bb=e.defineComponent({name:"ElRadio"}),Cb=e.defineComponent({...bb,props:yb,emits:Rd,setup(t,{emit:n}){const o=t,l=r.useNamespace("radio"),{radioRef:a,radioGroup:s,focus:i,size:c,disabled:u,modelValue:d,actualValue:p}=Fd(o,n);function f(){e.nextTick(()=>n(D.CHANGE_EVENT,d.value))}return(h,m)=>{var g;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(l).b(),e.unref(l).is("disabled",e.unref(u)),e.unref(l).is("focus",e.unref(i)),e.unref(l).is("bordered",h.border),e.unref(l).is("checked",e.unref(d)===e.unref(p)),e.unref(l).m(e.unref(c))])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(l).e("input"),e.unref(l).is("disabled",e.unref(u)),e.unref(l).is("checked",e.unref(d)===e.unref(p))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":v=>e.isRef(d)?d.value=v:null,class:e.normalizeClass(e.unref(l).e("original")),value:e.unref(p),name:h.name||((g=e.unref(s))==null?void 0:g.name),disabled:e.unref(u),checked:e.unref(d)===e.unref(p),type:"radio",onFocus:v=>i.value=!0,onBlur:v=>i.value=!1,onChange:f,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[e.vModelRadio,e.unref(d)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("inner"))},null,2)],2),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("label")),onKeydown:e.withModifiers(()=>{},["stop"])},[e.renderSlot(h.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(h.label),1)])],42,["onKeydown"])],2)}}});var kb=r._export_sfc(Cb,[["__file","radio.vue"]]);const wb=r.buildProps({...zd}),Eb=e.defineComponent({name:"ElRadioButton"}),Sb=e.defineComponent({...Eb,props:wb,setup(t){const n=t,o=r.useNamespace("radio"),{radioRef:l,focus:a,size:s,disabled:i,modelValue:c,radioGroup:u,actualValue:d}=Fd(n),p=e.computed(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,h)=>{var m;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(o).b("button"),e.unref(o).is("active",e.unref(c)===e.unref(d)),e.unref(o).is("disabled",e.unref(i)),e.unref(o).is("focus",e.unref(a)),e.unref(o).bm("button",e.unref(s))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":g=>e.isRef(c)?c.value=g:null,class:e.normalizeClass(e.unref(o).be("button","original-radio")),value:e.unref(d),type:"radio",name:f.name||((m=e.unref(u))==null?void 0:m.name),disabled:e.unref(i),onFocus:g=>a.value=!0,onBlur:g=>a.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[e.vModelRadio,e.unref(c)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).be("button","inner")),style:e.normalizeStyle(e.unref(c)===e.unref(d)?e.unref(p):{}),onKeydown:e.withModifiers(()=>{},["stop"])},[e.renderSlot(f.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(f.label),1)])],46,["onKeydown"])],2)}}});var Kd=r._export_sfc(Sb,[["__file","radio-button.vue"]]);const Nb=r.buildProps({id:{type:String,default:void 0},size:r.useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...D.useAriaProps(["ariaLabel"])}),Tb=Rd,_b=e.defineComponent({name:"ElRadioGroup"}),Vb=e.defineComponent({..._b,props:Nb,emits:Tb,setup(t,{emit:n}){const o=t,l=r.useNamespace("radio"),a=D.useId(),s=e.ref(),{formItem:i}=D.useFormItem(),{inputId:c,isLabeledByFormItem:u}=D.useFormItemInputId(o,{formItemContext:i}),d=f=>{n(D.UPDATE_MODEL_EVENT,f),e.nextTick(()=>n(D.CHANGE_EVENT,f))};e.onMounted(()=>{const f=s.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(m=>m.checked)&&h&&(h.tabIndex=0)});const p=e.computed(()=>o.name||a.value);return e.provide(Ld,e.reactive({...e.toRefs(o),changeEvent:d,name:p})),e.watch(()=>o.modelValue,()=>{o.validateEvent&&(i==null||i.validate("change").catch(f=>r.debugWarn(f)))}),(f,h)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(c),ref_key:"radioGroupRef",ref:s,class:e.normalizeClass(e.unref(l).b("group")),role:"radiogroup","aria-label":e.unref(u)?void 0:f.ariaLabel||"radio-group","aria-labelledby":e.unref(u)?e.unref(i).labelId:void 0},[e.renderSlot(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var Hd=r._export_sfc(Vb,[["__file","radio-group.vue"]]);const jd=r.withInstall(kb,{RadioButton:Kd,RadioGroup:Hd}),Bb=r.withNoopInstall(Hd),Pb=r.withNoopInstall(Kd);function Db(t){return!!(t!=null&&t.every(n=>n.type===e.Comment))}var $b=e.defineComponent({name:"NodeContent",setup(){return{ns:r.useNamespace("cascader-node")}},render(){const{ns:t}=this,{node:n,panel:o}=this.$parent,{data:l,label:a}=n,{renderLabelFn:s}=o,i=()=>{let c=s==null?void 0:s({node:n,data:l});return Db(c)&&(c=a),c??a};return e.h("span",{class:t.e("label")},i())}});const Rs=Symbol(),Ib=e.defineComponent({name:"ElCascaderNode",components:{ElCheckbox:Bt,ElRadio:jd,NodeContent:$b,ElIcon:r.ElIcon,Check:r.check_default,Loading:r.loading_default,ArrowRight:r.arrow_right_default},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(t,{emit:n}){const o=e.inject(Rs),l=r.useNamespace("cascader-node"),a=e.computed(()=>o.isHoverMenu),s=e.computed(()=>o.config.multiple),i=e.computed(()=>o.config.checkStrictly),c=e.computed(()=>{var w;return(w=o.checkedNodes[0])==null?void 0:w.uid}),u=e.computed(()=>t.node.isDisabled),d=e.computed(()=>t.node.isLeaf),p=e.computed(()=>i.value&&!d.value||!u.value),f=e.computed(()=>m(o.expandingNode)),h=e.computed(()=>i.value&&o.checkedNodes.some(m)),m=w=>{var V;const{level:T,uid:N}=t.node;return((V=w==null?void 0:w.pathNodes[T-1])==null?void 0:V.uid)===N},g=()=>{f.value||o.expandNode(t.node)},v=w=>{const{node:V}=t;w!==V.checked&&o.handleCheckChange(V,w)},k=()=>{o.lazyLoad(t.node,()=>{d.value||g()})},b=w=>{a.value&&(S(),!d.value&&n("expand",w))},S=()=>{const{node:w}=t;!p.value||w.loading||(w.loaded?g():k())},y=()=>{a.value&&!d.value||(d.value&&!u.value&&!i.value&&!s.value?E(!0):S())},C=w=>{i.value?(v(w),t.node.loaded&&g()):E(w)},E=w=>{t.node.loaded?(v(w),!i.value&&g()):k()};return{panel:o,isHoverMenu:a,multiple:s,checkStrictly:i,checkedNodeId:c,isDisabled:u,isLeaf:d,expandable:p,inExpandingPath:f,inCheckedPath:h,ns:l,handleHoverExpand:b,handleExpand:S,handleClick:y,handleCheck:E,handleSelectCheck:C}}});function Ob(t,n,o,l,a,s){const i=e.resolveComponent("el-checkbox"),c=e.resolveComponent("el-radio"),u=e.resolveComponent("check"),d=e.resolveComponent("el-icon"),p=e.resolveComponent("node-content"),f=e.resolveComponent("loading"),h=e.resolveComponent("arrow-right");return e.openBlock(),e.createElementBlock("li",{id:`${t.menuId}-${t.node.uid}`,role:"menuitem","aria-haspopup":!t.isLeaf,"aria-owns":t.isLeaf?void 0:t.menuId,"aria-expanded":t.inExpandingPath,tabindex:t.expandable?-1:void 0,class:e.normalizeClass([t.ns.b(),t.ns.is("selectable",t.checkStrictly),t.ns.is("active",t.node.checked),t.ns.is("disabled",!t.expandable),t.inExpandingPath&&"in-active-path",t.inCheckedPath&&"in-checked-path"]),onMouseenter:t.handleHoverExpand,onFocus:t.handleHoverExpand,onClick:t.handleClick},[e.createCommentVNode(" prefix "),t.multiple?(e.openBlock(),e.createBlock(i,{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:t.isDisabled,onClick:e.withModifiers(()=>{},["stop"]),"onUpdate:modelValue":t.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):t.checkStrictly?(e.openBlock(),e.createBlock(c,{key:1,"model-value":t.checkedNodeId,label:t.node.uid,disabled:t.isDisabled,"onUpdate:modelValue":t.handleSelectCheck,onClick:e.withModifiers(()=>{},["stop"])},{default:e.withCtx(()=>[e.createCommentVNode(`
1
+ "use strict";const qi=require("./index.vue_vue_type_style_index_0_scoped_92477073_lang-CgRoTnM4.cjs"),e=require("vue"),D=require("./index.vue_vue_type_style_index_1_lang-YnBuuwY6.cjs"),r=require("./index-1z9RrjZc.cjs"),Dm=require("vue-router"),Vn=require("./index-9hspBVrQ.cjs"),Sr=require("./index-aTTU_ja_.cjs"),$m=require("./index-CgXgl7xg.cjs"),Im=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Te=require("./index-DWCqPPU9.cjs"),ve=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DyCjVGK4.cjs"),Un=require("./index-BiNsOjcC.cjs"),Om=require("./index-brsfUqkV.cjs"),Mm=require("./index-CjI5pDiU.cjs"),qn=require("./array-kfBiN1QA.cjs");function xm(){}function Hu(t,n,o,l){for(var a=t.length,s=o+(l?1:-1);l?s--:++s<a;)if(n(t[s],s,t))return s;return-1}function Am(t){return t!==t}function zm(t,n,o){for(var l=o-1,a=t.length;++l<a;)if(t[l]===n)return l;return-1}function Rm(t,n,o){return n===n?zm(t,n,o):Hu(t,Am,o)}function Lm(t,n){var o=t==null?0:t.length;return!!o&&Rm(t,n,0)>-1}function Fm(t,n,o){var l=-1,a=t.length;n<0&&(n=-n>a?0:a+n),o=o>a?a:o,o<0&&(o+=a),a=n>o?0:o-n>>>0,n>>>=0;for(var s=Array(a);++l<a;)s[l]=t[l+n];return s}function rt(){if(!arguments.length)return[];var t=arguments[0];return r.isArray(t)?t:[t]}var Km=4;function Yi(t){return r.baseClone(t,Km)}var Hm=1,jm=2;function Wm(t,n,o,l){var a=o.length,s=a;if(t==null)return!s;for(t=Object(t);a--;){var i=o[a];if(i[2]?i[1]!==t[i[0]]:!(i[0]in t))return!1}for(;++a<s;){i=o[a];var c=i[0],u=t[c],d=i[1];if(i[2]){if(u===void 0&&!(c in t))return!1}else{var p=new r.Stack,f;if(!(f===void 0?D.baseIsEqual(d,u,Hm|jm,l,p):f))return!1}}return!0}function ju(t){return t===t&&!r.isObject(t)}function Um(t){for(var n=r.keys(t),o=n.length;o--;){var l=n[o],a=t[l];n[o]=[l,a,ju(a)]}return n}function Wu(t,n){return function(o){return o==null?!1:o[t]===n&&(n!==void 0||t in Object(o))}}function qm(t){var n=Um(t);return n.length==1&&n[0][2]?Wu(n[0][0],n[0][1]):function(o){return o===t||Wm(o,t,n)}}var Ym=1,Gm=2;function Xm(t,n){return r.isKey(t)&&ju(n)?Wu(r.toKey(t),n):function(o){var l=r.get(o,t);return l===void 0&&l===n?D.hasIn(o,t):D.baseIsEqual(n,l,Ym|Gm)}}function Jm(t){return function(n){return n==null?void 0:n[t]}}function Zm(t){return function(n){return r.baseGet(n,t)}}function Qm(t){return r.isKey(t)?Jm(r.toKey(t)):Zm(t)}function Uu(t){return typeof t=="function"?t:t==null?D.identity:typeof t=="object"?r.isArray(t)?Xm(t[0],t[1]):qm(t):Qm(t)}function eh(t,n){return t&&ve.baseFor(t,n,r.keys)}function th(t,n){return function(o,l){if(o==null)return o;if(!r.isArrayLike(o))return t(o,l);for(var a=o.length,s=-1,i=Object(o);++s<a&&l(i[s],s,i)!==!1;);return o}}var nh=th(eh);function oh(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}function qu(t,n,o){var l=t==null?0:t.length;if(!l)return-1;var a=l-1;return Hu(t,Uu(n),a,!0)}function lh(t,n){var o=-1,l=r.isArrayLike(t)?Array(t.length):[];return nh(t,function(a,s,i){l[++o]=n(a,s,i)}),l}function rh(t,n){var o=r.isArray(t)?r.arrayMap:lh;return o(t,Uu(n))}function ah(t,n){return D.baseFlatten(rh(t,n),1)}var sh=1/0;function ih(t){var n=t==null?0:t.length;return n?D.baseFlatten(t,sh):[]}function ch(t,n){return n.length<2?t:r.baseGet(t,Fm(n,0,-1))}function Bl(t){return t===null}function uh(t,n){return n=r.castPath(n,t),t=ch(t,n),t==null||delete t[r.toKey(oh(n))]}function dh(t){return ve.isPlainObject(t)?void 0:t}var fh=1,ph=2,mh=4,hh=D.flatRest(function(t,n){var o={};if(t==null)return o;var l=!1;n=r.arrayMap(n,function(s){return s=r.castPath(s,t),l||(l=s.length>1),s}),r.copyObject(t,r.getAllKeysIn(t),o),l&&(o=r.baseClone(o,fh|ph|mh,dh));for(var a=n.length;a--;)uh(o,n[a]);return o}),vh="Expected a function";function yn(t,n,o){var l=!0,a=!0;if(typeof t!="function")throw new TypeError(vh);return r.isObject(o)&&(l="leading"in o?!!o.leading:l,a="trailing"in o?!!o.trailing:a),Te.debounce(t,n,{leading:l,maxWait:n,trailing:a})}var gh=1/0,yh=r.Set&&1/D.setToArray(new r.Set([,-0]))[1]==gh?function(t){return new r.Set(t)}:xm,bh=200;function Ch(t,n,o){var l=-1,a=Lm,s=t.length,i=!0,c=[],u=c;if(s>=bh){var d=yh(t);if(d)return D.setToArray(d);i=!1,a=D.cacheHas,u=new D.SetCache}else u=c;e:for(;++l<s;){var p=t[l],f=p;if(p=p!==0?p:0,i&&f===f){for(var h=u.length;h--;)if(u[h]===f)continue e;c.push(p)}else a(u,f,o)||(u!==c&&u.push(f),c.push(p))}return c}var da=ve.baseRest(function(t){return Ch(D.baseFlatten(t,1,ve.isArrayLikeObject,!0))});const kh="2.10.2",Gi=Symbol("INSTALLED_KEY"),wh=(t=[])=>({version:kh,install:(o,l)=>{o[Gi]||(o[Gi]=!0,t.forEach(a=>o.use(a)),l&&r.provideGlobalConfig(l,o,!0))}}),Eh=r.buildProps({zIndex:{type:r.definePropType([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Sh={scroll:({scrollTop:t,fixed:n})=>r.isNumber(t)&&r.isBoolean(n),[D.CHANGE_EVENT]:t=>r.isBoolean(t)},Yu="ElAffix",Nh=e.defineComponent({name:Yu}),Th=e.defineComponent({...Nh,props:Eh,emits:Sh,setup(t,{expose:n,emit:o}){const l=t,a=r.useNamespace("affix"),s=e.shallowRef(),i=e.shallowRef(),c=e.shallowRef(),{height:u}=r.useWindowSize(),{height:d,width:p,top:f,bottom:h,update:m}=r.useElementBounding(i,{windowScroll:!1}),g=r.useElementBounding(s),v=e.ref(!1),k=e.ref(0),b=e.ref(0),S=e.computed(()=>({height:v.value?`${d.value}px`:"",width:v.value?`${p.value}px`:""})),y=e.computed(()=>{if(!v.value)return{};const w=l.offset?r.addUnit(l.offset):0;return{height:`${d.value}px`,width:`${p.value}px`,top:l.position==="top"?w:"",bottom:l.position==="bottom"?w:"",transform:b.value?`translateY(${b.value}px)`:"",zIndex:l.zIndex}}),C=()=>{if(!c.value)return;k.value=c.value instanceof Window?document.documentElement.scrollTop:c.value.scrollTop||0;const{position:w,target:V,offset:T}=l,N=T+d.value;if(w==="top")if(V){const _=g.bottom.value-N;v.value=T>f.value&&g.bottom.value>0,b.value=_<0?_:0}else v.value=T>f.value;else if(V){const _=u.value-g.top.value-N;v.value=u.value-T<h.value&&u.value>g.top.value,b.value=_<0?-_:0}else v.value=u.value-T<h.value},E=async()=>{m(),await e.nextTick(),o("scroll",{scrollTop:k.value,fixed:v.value})};return e.watch(v,w=>o(D.CHANGE_EVENT,w)),e.onMounted(()=>{var w;l.target?(s.value=(w=document.querySelector(l.target))!=null?w:void 0,s.value||r.throwError(Yu,`Target does not exist: ${l.target}`)):s.value=document.documentElement,c.value=D.getScrollContainer(i.value,!0),m()}),r.useEventListener(c,"scroll",E),e.watchEffect(C),n({update:C,updateRoot:m}),(w,V)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:i,class:e.normalizeClass(e.unref(a).b()),style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(a).m("fixed")]:v.value}),style:e.normalizeStyle(e.unref(y))},[e.renderSlot(w.$slots,"default")],6)],6))}});var _h=r._export_sfc(Th,[["__file","affix.vue"]]);const Vh=r.withInstall(_h);function Xi(){let t;const n=(l,a)=>{o(),t=window.setTimeout(l,a)},o=()=>window.clearTimeout(t);return r.tryOnScopeDispose(()=>o()),{registerTimeout:n,cancelTimeout:o}}const Gu=r.buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Xu=({showAfter:t,hideAfter:n,autoClose:o,open:l,close:a})=>{const{registerTimeout:s}=Xi(),{registerTimeout:i,cancelTimeout:c}=Xi();return{onOpen:p=>{s(()=>{l(p);const f=e.unref(o);r.isNumber(f)&&f>0&&i(()=>{a(p)},f)},e.unref(t))},onClose:p=>{c(),s(()=>{a(p)},e.unref(n))}}},Bh=["light","dark"],Ph=r.buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:r.keysOf(r.TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Bh,default:"light"},...Gu}),Dh={open:()=>!0,close:t=>r.isUndefined(t)||t instanceof Event},$h=e.defineComponent({name:"ElAlert"}),Ih=e.defineComponent({...$h,props:Ph,emits:Dh,setup(t,{emit:n}){const o=t,{Close:l}=r.TypeComponents,a=e.useSlots(),s=r.useNamespace("alert"),i=e.ref(!1),c=e.computed(()=>r.TypeComponentsMap[o.type]),u=e.computed(()=>!!(o.description||a.default)),d=()=>{i.value=!0,n("open")},p=m=>{i.value=!1,n("close",m)},{onOpen:f,onClose:h}=Xu({showAfter:e.toRef(o,"showAfter"),hideAfter:e.toRef(o,"hideAfter"),autoClose:e.toRef(o,"autoClose"),open:d,close:p});return r.isClient&&f(),(m,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(s).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(s).b(),e.unref(s).m(m.type),e.unref(s).is("center",m.center),e.unref(s).is(m.effect)]),role:"alert"},[m.showIcon&&(m.$slots.icon||e.unref(c))?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass([e.unref(s).e("icon"),{[e.unref(s).is("big")]:e.unref(u)}])},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c))))])]),_:3},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("content"))},[m.title||m.$slots.title?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(s).e("title"),{"with-description":e.unref(u)}])},[e.renderSlot(m.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(m.title),1)])],2)):e.createCommentVNode("v-if",!0),e.unref(u)?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(e.unref(s).e("description"))},[e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(m.description),1)])],2)):e.createCommentVNode("v-if",!0),m.closable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.closeText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(s).e("close-btn"),e.unref(s).is("customed")]),onClick:p},e.toDisplayString(m.closeText),3)):(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:1,class:e.normalizeClass(e.unref(s).e("close-btn")),onClick:e.unref(h)},{default:e.withCtx(()=>[e.createVNode(e.unref(l))]),_:1},8,["class","onClick"]))],64)):e.createCommentVNode("v-if",!0)],2)],2),[[e.vShow,i.value]])]),_:3},8,["name"]))}});var Oh=r._export_sfc(Ih,[["__file","alert.vue"]]);const Mh=r.withInstall(Oh),Bn=4,Ju={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"}},xh=({move:t,size:n,bar:o})=>({[o.size]:n,transform:`translate${o.axis}(${t}%)`}),Bs=Symbol("scrollbarContextKey"),Ah=r.buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),zh="Thumb",Rh=e.defineComponent({__name:"thumb",props:Ah,setup(t){const n=t,o=e.inject(Bs),l=r.useNamespace("scrollbar");o||r.throwError(zh,"can not inject scrollbar context");const a=e.ref(),s=e.ref(),i=e.ref({}),c=e.ref(!1);let u=!1,d=!1,p=0,f=0,h=r.isClient?document.onselectstart:null;const m=e.computed(()=>Ju[n.vertical?"vertical":"horizontal"]),g=e.computed(()=>xh({size:n.size,move:n.move,bar:m.value})),v=e.computed(()=>a.value[m.value.offset]**2/o.wrapElement[m.value.scrollSize]/n.ratio/s.value[m.value.offset]),k=T=>{var N;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(N=window.getSelection())==null||N.removeAllRanges(),S(T);const _=T.currentTarget;_&&(i.value[m.value.axis]=_[m.value.offset]-(T[m.value.client]-_.getBoundingClientRect()[m.value.direction]))},b=T=>{if(!s.value||!a.value||!o.wrapElement)return;const N=Math.abs(T.target.getBoundingClientRect()[m.value.direction]-T[m.value.client]),_=s.value[m.value.offset]/2,P=(N-_)*100*v.value/a.value[m.value.offset];o.wrapElement[m.value.scroll]=P*o.wrapElement[m.value.scrollSize]/100},S=T=>{T.stopImmediatePropagation(),u=!0,p=o.wrapElement.scrollHeight,f=o.wrapElement.scrollWidth,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),h=document.onselectstart,document.onselectstart=()=>!1},y=T=>{if(!a.value||!s.value||u===!1)return;const N=i.value[m.value.axis];if(!N)return;const _=(a.value.getBoundingClientRect()[m.value.direction]-T[m.value.client])*-1,P=s.value[m.value.offset]-N,B=(_-P)*100*v.value/a.value[m.value.offset];m.value.scroll==="scrollLeft"?o.wrapElement[m.value.scroll]=B*f/100:o.wrapElement[m.value.scroll]=B*p/100},C=()=>{u=!1,i.value[m.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",C),V(),d&&(c.value=!1)},E=()=>{d=!1,c.value=!!n.size},w=()=>{d=!0,c.value=u};e.onBeforeUnmount(()=>{V(),document.removeEventListener("mouseup",C)});const V=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return r.useEventListener(e.toRef(o,"scrollbarElement"),"mousemove",E),r.useEventListener(e.toRef(o,"scrollbarElement"),"mouseleave",w),(T,N)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(l).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"instance",ref:a,class:e.normalizeClass([e.unref(l).e("bar"),e.unref(l).is(e.unref(m).key)]),onMousedown:b,onClick:e.withModifiers(()=>{},["stop"])},[e.createElementVNode("div",{ref_key:"thumb",ref:s,class:e.normalizeClass(e.unref(l).e("thumb")),style:e.normalizeStyle(e.unref(g)),onMousedown:k},null,38)],42,["onClick"]),[[e.vShow,T.always||c.value]])]),_:1},8,["name"]))}});var Ji=r._export_sfc(Rh,[["__file","thumb.vue"]]);const Lh=r.buildProps({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),Fh=e.defineComponent({__name:"bar",props:Lh,setup(t,{expose:n}){const o=t,l=e.inject(Bs),a=e.ref(0),s=e.ref(0),i=e.ref(""),c=e.ref(""),u=e.ref(1),d=e.ref(1);return n({handleScroll:h=>{if(h){const m=h.offsetHeight-Bn,g=h.offsetWidth-Bn;s.value=h.scrollTop*100/m*u.value,a.value=h.scrollLeft*100/g*d.value}},update:()=>{const h=l==null?void 0:l.wrapElement;if(!h)return;const m=h.offsetHeight-Bn,g=h.offsetWidth-Bn,v=m**2/h.scrollHeight,k=g**2/h.scrollWidth,b=Math.max(v,o.minSize),S=Math.max(k,o.minSize);u.value=v/(m-v)/(b/(m-b)),d.value=k/(g-k)/(S/(g-S)),c.value=b+Bn<m?`${b}px`:"",i.value=S+Bn<g?`${S}px`:""}}),(h,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ji,{move:a.value,ratio:d.value,size:i.value,always:h.always},null,8,["move","ratio","size","always"]),e.createVNode(Ji,{move:s.value,ratio:u.value,size:c.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}});var Kh=r._export_sfc(Fh,[["__file","bar.vue"]]);const Hh=r.buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:r.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},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...D.useAriaProps(["ariaLabel","ariaOrientation"])}),Zu={"end-reached":t=>["left","right","top","bottom"].includes(t),scroll:({scrollTop:t,scrollLeft:n})=>[t,n].every(r.isNumber)},$a="ElScrollbar",jh=e.defineComponent({name:$a}),Wh=e.defineComponent({...jh,props:Hh,emits:Zu,setup(t,{expose:n,emit:o}){const l=t,a=r.useNamespace("scrollbar");let s,i,c=0,u=0,d="";const p=e.ref(),f=e.ref(),h=e.ref(),m=e.ref(),g=e.computed(()=>{const w={};return l.height&&(w.height=r.addUnit(l.height)),l.maxHeight&&(w.maxHeight=r.addUnit(l.maxHeight)),[l.wrapStyle,w]}),v=e.computed(()=>[l.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!l.native}]),k=e.computed(()=>[a.e("view"),l.viewClass]),b=()=>{var w;if(f.value){(w=m.value)==null||w.handleScroll(f.value);const V=c,T=u;c=f.value.scrollTop,u=f.value.scrollLeft;const N={bottom:c+f.value.clientHeight>=f.value.scrollHeight,top:c<=0&&V!==0,right:u+f.value.clientWidth>=f.value.scrollWidth&&T!==u,left:u<=0&&T!==0};V!==c&&(d=c>V?"bottom":"top"),T!==u&&(d=u>T?"right":"left"),o("scroll",{scrollTop:c,scrollLeft:u}),N[d]&&o("end-reached",d)}};function S(w,V){r.isObject$1(w)?f.value.scrollTo(w):r.isNumber(w)&&r.isNumber(V)&&f.value.scrollTo(w,V)}const y=w=>{if(!r.isNumber(w)){r.debugWarn($a,"value must be a number");return}f.value.scrollTop=w},C=w=>{if(!r.isNumber(w)){r.debugWarn($a,"value must be a number");return}f.value.scrollLeft=w},E=()=>{var w;(w=m.value)==null||w.update()};return e.watch(()=>l.noresize,w=>{w?(s==null||s(),i==null||i()):({stop:s}=r.useResizeObserver(h,E),i=r.useEventListener("resize",E))},{immediate:!0}),e.watch(()=>[l.maxHeight,l.height],()=>{l.native||e.nextTick(()=>{var w;E(),f.value&&((w=m.value)==null||w.handleScroll(f.value))})}),e.provide(Bs,e.reactive({scrollbarElement:p,wrapElement:f})),e.onActivated(()=>{f.value&&(f.value.scrollTop=c,f.value.scrollLeft=u)}),e.onMounted(()=>{l.native||e.nextTick(()=>{E()})}),e.onUpdated(()=>E()),n({wrapRef:f,update:E,scrollTo:S,setScrollTop:y,setScrollLeft:C,handleScroll:b}),(w,V)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollbarRef",ref:p,class:e.normalizeClass(e.unref(a).b())},[e.createElementVNode("div",{ref_key:"wrapRef",ref:f,class:e.normalizeClass(e.unref(v)),style:e.normalizeStyle(e.unref(g)),tabindex:w.tabindex,onScroll:b},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.tag),{id:w.id,ref_key:"resizeRef",ref:h,class:e.normalizeClass(e.unref(k)),style:e.normalizeStyle(w.viewStyle),role:w.role,"aria-label":w.ariaLabel,"aria-orientation":w.ariaOrientation},{default:e.withCtx(()=>[e.renderSlot(w.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),w.native?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(Kh,{key:0,ref_key:"barRef",ref:m,always:w.always,"min-size":w.minSize},null,8,["always","min-size"]))],2))}});var Uh=r._export_sfc(Wh,[["__file","scrollbar.vue"]]);const Pt=r.withInstall(Uh),Ps=Symbol("popper"),Qu=Symbol("popperContent"),ed=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],td=r.buildProps({role:{type:String,values:ed,default:"tooltip"}}),qh=e.defineComponent({name:"ElPopper",inheritAttrs:!1}),Yh=e.defineComponent({...qh,props:td,setup(t,{expose:n}){const o=t,l=e.ref(),a=e.ref(),s=e.ref(),i=e.ref(),c=e.computed(()=>o.role),u={triggerRef:l,popperInstanceRef:a,contentRef:s,referenceRef:i,role:c};return n(u),e.provide(Ps,u),(d,p)=>e.renderSlot(d.$slots,"default")}});var Gh=r._export_sfc(Yh,[["__file","popper.vue"]]);const Xh=e.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),Jh=e.defineComponent({...Xh,setup(t,{expose:n}){const o=r.useNamespace("popper"),{arrowRef:l,arrowStyle:a}=e.inject(Qu,void 0);return e.onBeforeUnmount(()=>{l.value=void 0}),n({arrowRef:l}),(s,i)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"arrowRef",ref:l,class:e.normalizeClass(e.unref(o).e("arrow")),style:e.normalizeStyle(e.unref(a)),"data-popper-arrow":""},null,6))}});var Zh=r._export_sfc(Jh,[["__file","arrow.vue"]]);const nd=r.buildProps({virtualRef:{type:r.definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:r.definePropType(Function)},onMouseleave:{type:r.definePropType(Function)},onClick:{type:r.definePropType(Function)},onKeydown:{type:r.definePropType(Function)},onFocus:{type:r.definePropType(Function)},onBlur:{type:r.definePropType(Function)},onContextmenu:{type:r.definePropType(Function)},id:String,open:Boolean}),od=Symbol("elForwardRef"),Qh=t=>{const n=o=>{t.value=o};e.provide(od,{setForwardRef:n})},ev=t=>({mounted(n){t(n)},updated(n){t(n)},unmounted(){t(null)}}),fa="ElOnlyChild",ld=e.defineComponent({name:fa,setup(t,{slots:n,attrs:o}){var l;const a=e.inject(od),s=ev((l=a==null?void 0:a.setForwardRef)!=null?l:r.NOOP);return()=>{var i;const c=(i=n.default)==null?void 0:i.call(n,o);if(!c)return null;if(c.length>1)return r.debugWarn(fa,"requires exact only one valid child."),null;const u=rd(c);return u?e.withDirectives(e.cloneVNode(u,o),[[s]]):(r.debugWarn(fa,"no valid child node found"),null)}}});function rd(t){if(!t)return null;const n=t;for(const o of n){if(r.isObject$1(o))switch(o.type){case e.Comment:continue;case e.Text:case"svg":return Zi(o);case e.Fragment:return rd(o.children);default:return o}return Zi(o)}return null}function Zi(t){const n=r.useNamespace("only-child");return e.createVNode("span",{class:n.e("content")},[t])}const tv=e.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),nv=e.defineComponent({...tv,props:nd,setup(t,{expose:n}){const o=t,{role:l,triggerRef:a}=e.inject(Ps,void 0);Qh(a);const s=e.computed(()=>c.value?o.id:void 0),i=e.computed(()=>{if(l&&l.value==="tooltip")return o.open&&o.id?o.id:void 0}),c=e.computed(()=>{if(l&&l.value!=="tooltip")return l.value}),u=e.computed(()=>c.value?`${o.open}`:void 0);let d;const p=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return e.onMounted(()=>{e.watch(()=>o.virtualRef,f=>{f&&(a.value=r.unrefElement(f))},{immediate:!0}),e.watch(a,(f,h)=>{d==null||d(),d=void 0,r.isElement(f)&&(p.forEach(m=>{var g;const v=o[m];v&&(f.addEventListener(m.slice(2).toLowerCase(),v),(g=h==null?void 0:h.removeEventListener)==null||g.call(h,m.slice(2).toLowerCase(),v))}),D.isFocusable(f)&&(d=e.watch([s,i,c,u],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((g,v)=>{r.isNil(m[v])?f.removeAttribute(g):f.setAttribute(g,m[v])})},{immediate:!0}))),r.isElement(h)&&D.isFocusable(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>h.removeAttribute(m))},{immediate:!0})}),e.onBeforeUnmount(()=>{if(d==null||d(),d=void 0,a.value&&r.isElement(a.value)){const f=a.value;p.forEach(h=>{const m=o[h];m&&f.removeEventListener(h.slice(2).toLowerCase(),m)}),a.value=void 0}}),n({triggerRef:a}),(f,h)=>f.virtualTriggering?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(ld),e.mergeProps({key:0},f.$attrs,{"aria-controls":e.unref(s),"aria-describedby":e.unref(i),"aria-expanded":e.unref(u),"aria-haspopup":e.unref(c)}),{default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ov=r._export_sfc(nv,[["__file","trigger.vue"]]),vt="top",_t="bottom",Vt="right",gt="left",Ds="auto",Pl=[vt,_t,Vt,gt],Yn="start",fl="end",lv="clippingParents",ad="viewport",Zo="popper",rv="reference",Qi=Pl.reduce(function(t,n){return t.concat([n+"-"+Yn,n+"-"+fl])},[]),en=[].concat(Pl,[Ds]).reduce(function(t,n){return t.concat([n,n+"-"+Yn,n+"-"+fl])},[]),av="beforeRead",sv="read",iv="afterRead",cv="beforeMain",uv="main",dv="afterMain",fv="beforeWrite",pv="write",mv="afterWrite",hv=[av,sv,iv,cv,uv,dv,fv,pv,mv];function Ft(t){return t?(t.nodeName||"").toLowerCase():null}function It(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function Gn(t){var n=It(t).Element;return t instanceof n||t instanceof Element}function Tt(t){var n=It(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function $s(t){if(typeof ShadowRoot>"u")return!1;var n=It(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function vv(t){var n=t.state;Object.keys(n.elements).forEach(function(o){var l=n.styles[o]||{},a=n.attributes[o]||{},s=n.elements[o];!Tt(s)||!Ft(s)||(Object.assign(s.style,l),Object.keys(a).forEach(function(i){var c=a[i];c===!1?s.removeAttribute(i):s.setAttribute(i,c===!0?"":c)}))})}function gv(t){var n=t.state,o={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,o.popper),n.styles=o,n.elements.arrow&&Object.assign(n.elements.arrow.style,o.arrow),function(){Object.keys(n.elements).forEach(function(l){var a=n.elements[l],s=n.attributes[l]||{},i=Object.keys(n.styles.hasOwnProperty(l)?n.styles[l]:o[l]),c=i.reduce(function(u,d){return u[d]="",u},{});!Tt(a)||!Ft(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(u){a.removeAttribute(u)}))})}}var sd={name:"applyStyles",enabled:!0,phase:"write",fn:vv,effect:gv,requires:["computeStyles"]};function Rt(t){return t.split("-")[0]}var bn=Math.max,Nr=Math.min,Xn=Math.round;function Jn(t,n){n===void 0&&(n=!1);var o=t.getBoundingClientRect(),l=1,a=1;if(Tt(t)&&n){var s=t.offsetHeight,i=t.offsetWidth;i>0&&(l=Xn(o.width)/i||1),s>0&&(a=Xn(o.height)/s||1)}return{width:o.width/l,height:o.height/a,top:o.top/a,right:o.right/l,bottom:o.bottom/a,left:o.left/l,x:o.left/l,y:o.top/a}}function Is(t){var n=Jn(t),o=t.offsetWidth,l=t.offsetHeight;return Math.abs(n.width-o)<=1&&(o=n.width),Math.abs(n.height-l)<=1&&(l=n.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:l}}function id(t,n){var o=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(o&&$s(o)){var l=n;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Jt(t){return It(t).getComputedStyle(t)}function yv(t){return["table","td","th"].indexOf(Ft(t))>=0}function sn(t){return((Gn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yr(t){return Ft(t)==="html"?t:t.assignedSlot||t.parentNode||($s(t)?t.host:null)||sn(t)}function ec(t){return!Tt(t)||Jt(t).position==="fixed"?null:t.offsetParent}function bv(t){var n=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,o=navigator.userAgent.indexOf("Trident")!==-1;if(o&&Tt(t)){var l=Jt(t);if(l.position==="fixed")return null}var a=Yr(t);for($s(a)&&(a=a.host);Tt(a)&&["html","body"].indexOf(Ft(a))<0;){var s=Jt(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||n&&s.willChange==="filter"||n&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Dl(t){for(var n=It(t),o=ec(t);o&&yv(o)&&Jt(o).position==="static";)o=ec(o);return o&&(Ft(o)==="html"||Ft(o)==="body"&&Jt(o).position==="static")?n:o||bv(t)||n}function Os(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function il(t,n,o){return bn(t,Nr(n,o))}function Cv(t,n,o){var l=il(t,n,o);return l>o?o:l}function cd(){return{top:0,right:0,bottom:0,left:0}}function ud(t){return Object.assign({},cd(),t)}function dd(t,n){return n.reduce(function(o,l){return o[l]=t,o},{})}var kv=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ud(typeof t!="number"?t:dd(t,Pl))};function wv(t){var n,o=t.state,l=t.name,a=t.options,s=o.elements.arrow,i=o.modifiersData.popperOffsets,c=Rt(o.placement),u=Os(c),d=[gt,Vt].indexOf(c)>=0,p=d?"height":"width";if(!(!s||!i)){var f=kv(a.padding,o),h=Is(s),m=u==="y"?vt:gt,g=u==="y"?_t:Vt,v=o.rects.reference[p]+o.rects.reference[u]-i[u]-o.rects.popper[p],k=i[u]-o.rects.reference[u],b=Dl(s),S=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,y=v/2-k/2,C=f[m],E=S-h[p]-f[g],w=S/2-h[p]/2+y,V=il(C,w,E),T=u;o.modifiersData[l]=(n={},n[T]=V,n.centerOffset=V-w,n)}}function Ev(t){var n=t.state,o=t.options,l=o.element,a=l===void 0?"[data-popper-arrow]":l;a!=null&&(typeof a=="string"&&(a=n.elements.popper.querySelector(a),!a)||!id(n.elements.popper,a)||(n.elements.arrow=a))}var Sv={name:"arrow",enabled:!0,phase:"main",fn:wv,effect:Ev,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zn(t){return t.split("-")[1]}var Nv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tv(t){var n=t.x,o=t.y,l=window,a=l.devicePixelRatio||1;return{x:Xn(n*a)/a||0,y:Xn(o*a)/a||0}}function tc(t){var n,o=t.popper,l=t.popperRect,a=t.placement,s=t.variation,i=t.offsets,c=t.position,u=t.gpuAcceleration,d=t.adaptive,p=t.roundOffsets,f=t.isFixed,h=i.x,m=h===void 0?0:h,g=i.y,v=g===void 0?0:g,k=typeof p=="function"?p({x:m,y:v}):{x:m,y:v};m=k.x,v=k.y;var b=i.hasOwnProperty("x"),S=i.hasOwnProperty("y"),y=gt,C=vt,E=window;if(d){var w=Dl(o),V="clientHeight",T="clientWidth";if(w===It(o)&&(w=sn(o),Jt(w).position!=="static"&&c==="absolute"&&(V="scrollHeight",T="scrollWidth")),w=w,a===vt||(a===gt||a===Vt)&&s===fl){C=_t;var N=f&&w===E&&E.visualViewport?E.visualViewport.height:w[V];v-=N-l.height,v*=u?1:-1}if(a===gt||(a===vt||a===_t)&&s===fl){y=Vt;var _=f&&w===E&&E.visualViewport?E.visualViewport.width:w[T];m-=_-l.width,m*=u?1:-1}}var P=Object.assign({position:c},d&&Nv),B=p===!0?Tv({x:m,y:v}):{x:m,y:v};if(m=B.x,v=B.y,u){var A;return Object.assign({},P,(A={},A[C]=S?"0":"",A[y]=b?"0":"",A.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",A))}return Object.assign({},P,(n={},n[C]=S?v+"px":"",n[y]=b?m+"px":"",n.transform="",n))}function _v(t){var n=t.state,o=t.options,l=o.gpuAcceleration,a=l===void 0?!0:l,s=o.adaptive,i=s===void 0?!0:s,c=o.roundOffsets,u=c===void 0?!0:c,d={placement:Rt(n.placement),variation:Zn(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:a,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,tc(Object.assign({},d,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:i,roundOffsets:u})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,tc(Object.assign({},d,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}var fd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_v,data:{}},Kl={passive:!0};function Vv(t){var n=t.state,o=t.instance,l=t.options,a=l.scroll,s=a===void 0?!0:a,i=l.resize,c=i===void 0?!0:i,u=It(n.elements.popper),d=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",o.update,Kl)}),c&&u.addEventListener("resize",o.update,Kl),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",o.update,Kl)}),c&&u.removeEventListener("resize",o.update,Kl)}}var pd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vv,data:{}},Bv={left:"right",right:"left",bottom:"top",top:"bottom"};function tr(t){return t.replace(/left|right|bottom|top/g,function(n){return Bv[n]})}var Pv={start:"end",end:"start"};function nc(t){return t.replace(/start|end/g,function(n){return Pv[n]})}function Ms(t){var n=It(t),o=n.pageXOffset,l=n.pageYOffset;return{scrollLeft:o,scrollTop:l}}function xs(t){return Jn(sn(t)).left+Ms(t).scrollLeft}function Dv(t){var n=It(t),o=sn(t),l=n.visualViewport,a=o.clientWidth,s=o.clientHeight,i=0,c=0;return l&&(a=l.width,s=l.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=l.offsetLeft,c=l.offsetTop)),{width:a,height:s,x:i+xs(t),y:c}}function $v(t){var n,o=sn(t),l=Ms(t),a=(n=t.ownerDocument)==null?void 0:n.body,s=bn(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=bn(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-l.scrollLeft+xs(t),u=-l.scrollTop;return Jt(a||o).direction==="rtl"&&(c+=bn(o.clientWidth,a?a.clientWidth:0)-s),{width:s,height:i,x:c,y:u}}function As(t){var n=Jt(t),o=n.overflow,l=n.overflowX,a=n.overflowY;return/auto|scroll|overlay|hidden/.test(o+a+l)}function md(t){return["html","body","#document"].indexOf(Ft(t))>=0?t.ownerDocument.body:Tt(t)&&As(t)?t:md(Yr(t))}function cl(t,n){var o;n===void 0&&(n=[]);var l=md(t),a=l===((o=t.ownerDocument)==null?void 0:o.body),s=It(l),i=a?[s].concat(s.visualViewport||[],As(l)?l:[]):l,c=n.concat(i);return a?c:c.concat(cl(Yr(i)))}function Ia(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Iv(t){var n=Jn(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function oc(t,n){return n===ad?Ia(Dv(t)):Gn(n)?Iv(n):Ia($v(sn(t)))}function Ov(t){var n=cl(Yr(t)),o=["absolute","fixed"].indexOf(Jt(t).position)>=0,l=o&&Tt(t)?Dl(t):t;return Gn(l)?n.filter(function(a){return Gn(a)&&id(a,l)&&Ft(a)!=="body"}):[]}function Mv(t,n,o){var l=n==="clippingParents"?Ov(t):[].concat(n),a=[].concat(l,[o]),s=a[0],i=a.reduce(function(c,u){var d=oc(t,u);return c.top=bn(d.top,c.top),c.right=Nr(d.right,c.right),c.bottom=Nr(d.bottom,c.bottom),c.left=bn(d.left,c.left),c},oc(t,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function hd(t){var n=t.reference,o=t.element,l=t.placement,a=l?Rt(l):null,s=l?Zn(l):null,i=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2,u;switch(a){case vt:u={x:i,y:n.y-o.height};break;case _t:u={x:i,y:n.y+n.height};break;case Vt:u={x:n.x+n.width,y:c};break;case gt:u={x:n.x-o.width,y:c};break;default:u={x:n.x,y:n.y}}var d=a?Os(a):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case Yn:u[d]=u[d]-(n[p]/2-o[p]/2);break;case fl:u[d]=u[d]+(n[p]/2-o[p]/2);break}}return u}function pl(t,n){n===void 0&&(n={});var o=n,l=o.placement,a=l===void 0?t.placement:l,s=o.boundary,i=s===void 0?lv:s,c=o.rootBoundary,u=c===void 0?ad:c,d=o.elementContext,p=d===void 0?Zo:d,f=o.altBoundary,h=f===void 0?!1:f,m=o.padding,g=m===void 0?0:m,v=ud(typeof g!="number"?g:dd(g,Pl)),k=p===Zo?rv:Zo,b=t.rects.popper,S=t.elements[h?k:p],y=Mv(Gn(S)?S:S.contextElement||sn(t.elements.popper),i,u),C=Jn(t.elements.reference),E=hd({reference:C,element:b,placement:a}),w=Ia(Object.assign({},b,E)),V=p===Zo?w:C,T={top:y.top-V.top+v.top,bottom:V.bottom-y.bottom+v.bottom,left:y.left-V.left+v.left,right:V.right-y.right+v.right},N=t.modifiersData.offset;if(p===Zo&&N){var _=N[a];Object.keys(T).forEach(function(P){var B=[Vt,_t].indexOf(P)>=0?1:-1,A=[vt,_t].indexOf(P)>=0?"y":"x";T[P]+=_[A]*B})}return T}function xv(t,n){n===void 0&&(n={});var o=n,l=o.placement,a=o.boundary,s=o.rootBoundary,i=o.padding,c=o.flipVariations,u=o.allowedAutoPlacements,d=u===void 0?en:u,p=Zn(l),f=p?c?Qi:Qi.filter(function(g){return Zn(g)===p}):Pl,h=f.filter(function(g){return d.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,v){return g[v]=pl(t,{placement:v,boundary:a,rootBoundary:s,padding:i})[Rt(v)],g},{});return Object.keys(m).sort(function(g,v){return m[g]-m[v]})}function Av(t){if(Rt(t)===Ds)return[];var n=tr(t);return[nc(t),n,nc(n)]}function zv(t){var n=t.state,o=t.options,l=t.name;if(!n.modifiersData[l]._skip){for(var a=o.mainAxis,s=a===void 0?!0:a,i=o.altAxis,c=i===void 0?!0:i,u=o.fallbackPlacements,d=o.padding,p=o.boundary,f=o.rootBoundary,h=o.altBoundary,m=o.flipVariations,g=m===void 0?!0:m,v=o.allowedAutoPlacements,k=n.options.placement,b=Rt(k),S=b===k,y=u||(S||!g?[tr(k)]:Av(k)),C=[k].concat(y).reduce(function(G,Z){return G.concat(Rt(Z)===Ds?xv(n,{placement:Z,boundary:p,rootBoundary:f,padding:d,flipVariations:g,allowedAutoPlacements:v}):Z)},[]),E=n.rects.reference,w=n.rects.popper,V=new Map,T=!0,N=C[0],_=0;_<C.length;_++){var P=C[_],B=Rt(P),A=Zn(P)===Yn,j=[vt,_t].indexOf(B)>=0,M=j?"width":"height",I=pl(n,{placement:P,boundary:p,rootBoundary:f,altBoundary:h,padding:d}),K=j?A?Vt:gt:A?_t:vt;E[M]>w[M]&&(K=tr(K));var $=tr(K),O=[];if(s&&O.push(I[B]<=0),c&&O.push(I[K]<=0,I[$]<=0),O.every(function(G){return G})){N=P,T=!1;break}V.set(P,O)}if(T)for(var q=g?3:1,F=function(G){var Z=C.find(function(ee){var Y=V.get(ee);if(Y)return Y.slice(0,G).every(function(z){return z})});if(Z)return N=Z,"break"},X=q;X>0;X--){var L=F(X);if(L==="break")break}n.placement!==N&&(n.modifiersData[l]._skip=!0,n.placement=N,n.reset=!0)}}var Rv={name:"flip",enabled:!0,phase:"main",fn:zv,requiresIfExists:["offset"],data:{_skip:!1}};function lc(t,n,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-n.height-o.y,right:t.right-n.width+o.x,bottom:t.bottom-n.height+o.y,left:t.left-n.width-o.x}}function rc(t){return[vt,Vt,_t,gt].some(function(n){return t[n]>=0})}function Lv(t){var n=t.state,o=t.name,l=n.rects.reference,a=n.rects.popper,s=n.modifiersData.preventOverflow,i=pl(n,{elementContext:"reference"}),c=pl(n,{altBoundary:!0}),u=lc(i,l),d=lc(c,a,s),p=rc(u),f=rc(d);n.modifiersData[o]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:f},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}var Fv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lv};function Kv(t,n,o){var l=Rt(t),a=[gt,vt].indexOf(l)>=0?-1:1,s=typeof o=="function"?o(Object.assign({},n,{placement:t})):o,i=s[0],c=s[1];return i=i||0,c=(c||0)*a,[gt,Vt].indexOf(l)>=0?{x:c,y:i}:{x:i,y:c}}function Hv(t){var n=t.state,o=t.options,l=t.name,a=o.offset,s=a===void 0?[0,0]:a,i=en.reduce(function(p,f){return p[f]=Kv(f,n.rects,s),p},{}),c=i[n.placement],u=c.x,d=c.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=u,n.modifiersData.popperOffsets.y+=d),n.modifiersData[l]=i}var jv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hv};function Wv(t){var n=t.state,o=t.name;n.modifiersData[o]=hd({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}var vd={name:"popperOffsets",enabled:!0,phase:"read",fn:Wv,data:{}};function Uv(t){return t==="x"?"y":"x"}function qv(t){var n=t.state,o=t.options,l=t.name,a=o.mainAxis,s=a===void 0?!0:a,i=o.altAxis,c=i===void 0?!1:i,u=o.boundary,d=o.rootBoundary,p=o.altBoundary,f=o.padding,h=o.tether,m=h===void 0?!0:h,g=o.tetherOffset,v=g===void 0?0:g,k=pl(n,{boundary:u,rootBoundary:d,padding:f,altBoundary:p}),b=Rt(n.placement),S=Zn(n.placement),y=!S,C=Os(b),E=Uv(C),w=n.modifiersData.popperOffsets,V=n.rects.reference,T=n.rects.popper,N=typeof v=="function"?v(Object.assign({},n.rects,{placement:n.placement})):v,_=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),P=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,B={x:0,y:0};if(w){if(s){var A,j=C==="y"?vt:gt,M=C==="y"?_t:Vt,I=C==="y"?"height":"width",K=w[C],$=K+k[j],O=K-k[M],q=m?-T[I]/2:0,F=S===Yn?V[I]:T[I],X=S===Yn?-T[I]:-V[I],L=n.elements.arrow,G=m&&L?Is(L):{width:0,height:0},Z=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:cd(),ee=Z[j],Y=Z[M],z=il(0,V[I],G[I]),R=y?V[I]/2-q-z-ee-_.mainAxis:F-z-ee-_.mainAxis,x=y?-V[I]/2+q+z+Y+_.mainAxis:X+z+Y+_.mainAxis,Q=n.elements.arrow&&Dl(n.elements.arrow),U=Q?C==="y"?Q.clientTop||0:Q.clientLeft||0:0,J=(A=P==null?void 0:P[C])!=null?A:0,ce=K+R-J-U,oe=K+x-J,ie=il(m?Nr($,ce):$,K,m?bn(O,oe):O);w[C]=ie,B[C]=ie-K}if(c){var ne,le=C==="x"?vt:gt,ue=C==="x"?_t:Vt,me=w[E],ke=E==="y"?"height":"width",Ee=me+k[le],Ne=me-k[ue],Pe=[vt,gt].indexOf(b)!==-1,_e=(ne=P==null?void 0:P[E])!=null?ne:0,Me=Pe?Ee:me-V[ke]-T[ke]-_e+_.altAxis,be=Pe?me+V[ke]+T[ke]-_e-_.altAxis:Ne,he=m&&Pe?Cv(Me,me,be):il(m?Me:Ee,me,m?be:Ne);w[E]=he,B[E]=he-me}n.modifiersData[l]=B}}var Yv={name:"preventOverflow",enabled:!0,phase:"main",fn:qv,requiresIfExists:["offset"]};function Gv(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Xv(t){return t===It(t)||!Tt(t)?Ms(t):Gv(t)}function Jv(t){var n=t.getBoundingClientRect(),o=Xn(n.width)/t.offsetWidth||1,l=Xn(n.height)/t.offsetHeight||1;return o!==1||l!==1}function Zv(t,n,o){o===void 0&&(o=!1);var l=Tt(n),a=Tt(n)&&Jv(n),s=sn(n),i=Jn(t,a),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(l||!l&&!o)&&((Ft(n)!=="body"||As(s))&&(c=Xv(n)),Tt(n)?(u=Jn(n,!0),u.x+=n.clientLeft,u.y+=n.clientTop):s&&(u.x=xs(s))),{x:i.left+c.scrollLeft-u.x,y:i.top+c.scrollTop-u.y,width:i.width,height:i.height}}function Qv(t){var n=new Map,o=new Set,l=[];t.forEach(function(s){n.set(s.name,s)});function a(s){o.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(c){if(!o.has(c)){var u=n.get(c);u&&a(u)}}),l.push(s)}return t.forEach(function(s){o.has(s.name)||a(s)}),l}function eg(t){var n=Qv(t);return hv.reduce(function(o,l){return o.concat(n.filter(function(a){return a.phase===l}))},[])}function tg(t){var n;return function(){return n||(n=new Promise(function(o){Promise.resolve().then(function(){n=void 0,o(t())})})),n}}function ng(t){var n=t.reduce(function(o,l){var a=o[l.name];return o[l.name]=a?Object.assign({},a,l,{options:Object.assign({},a.options,l.options),data:Object.assign({},a.data,l.data)}):l,o},{});return Object.keys(n).map(function(o){return n[o]})}var ac={placement:"bottom",modifiers:[],strategy:"absolute"};function sc(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return!n.some(function(l){return!(l&&typeof l.getBoundingClientRect=="function")})}function zs(t){t===void 0&&(t={});var n=t,o=n.defaultModifiers,l=o===void 0?[]:o,a=n.defaultOptions,s=a===void 0?ac:a;return function(i,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ac,s),modifiersData:{},elements:{reference:i,popper:c},attributes:{},styles:{}},p=[],f=!1,h={state:d,setOptions:function(v){var k=typeof v=="function"?v(d.options):v;g(),d.options=Object.assign({},s,d.options,k),d.scrollParents={reference:Gn(i)?cl(i):i.contextElement?cl(i.contextElement):[],popper:cl(c)};var b=eg(ng([].concat(l,d.options.modifiers)));return d.orderedModifiers=b.filter(function(S){return S.enabled}),m(),h.update()},forceUpdate:function(){if(!f){var v=d.elements,k=v.reference,b=v.popper;if(sc(k,b)){d.rects={reference:Zv(k,Dl(b),d.options.strategy==="fixed"),popper:Is(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(T){return d.modifiersData[T.name]=Object.assign({},T.data)});for(var S=0;S<d.orderedModifiers.length;S++){if(d.reset===!0){d.reset=!1,S=-1;continue}var y=d.orderedModifiers[S],C=y.fn,E=y.options,w=E===void 0?{}:E,V=y.name;typeof C=="function"&&(d=C({state:d,options:w,name:V,instance:h})||d)}}}},update:tg(function(){return new Promise(function(v){h.forceUpdate(),v(d)})}),destroy:function(){g(),f=!0}};if(!sc(i,c))return h;h.setOptions(u).then(function(v){!f&&u.onFirstUpdate&&u.onFirstUpdate(v)});function m(){d.orderedModifiers.forEach(function(v){var k=v.name,b=v.options,S=b===void 0?{}:b,y=v.effect;if(typeof y=="function"){var C=y({state:d,name:k,instance:h,options:S}),E=function(){};p.push(C||E)}})}function g(){p.forEach(function(v){return v()}),p=[]}return h}}zs();var og=[pd,vd,fd,sd];zs({defaultModifiers:og});var lg=[pd,vd,fd,sd,jv,Rv,Yv,Sv,Fv],rg=zs({defaultModifiers:lg});const gd=r.buildProps({arrowOffset:{type:Number,default:5}}),ag=["fixed","absolute"],sg=r.buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:r.definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:en,default:"bottom"},popperOptions:{type:r.definePropType(Object),default:()=>({})},strategy:{type:String,values:ag,default:"absolute"}}),yd=r.buildProps({...sg,...gd,id:String,style:{type:r.definePropType([String,Array,Object])},className:{type:r.definePropType([String,Array,Object])},effect:{type:r.definePropType(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:r.definePropType([String,Array,Object])},popperStyle:{type:r.definePropType([String,Array,Object])},referenceEl:{type:r.definePropType(Object)},triggerTargetEl:{type:r.definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...D.useAriaProps(["ariaLabel"])}),ig={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},cg=(t,n)=>{const o=e.ref(!1),l=e.ref();return{focusStartRef:l,trapped:o,onFocusAfterReleased:d=>{var p;((p=d.detail)==null?void 0:p.focusReason)!=="pointer"&&(l.value="first",n("blur"))},onFocusAfterTrapped:()=>{n("focus")},onFocusInTrap:d=>{t.visible&&!o.value&&(d.target&&(l.value=d.target),o.value=!0)},onFocusoutPrevented:d=>{t.trapping||(d.detail.focusReason==="pointer"&&d.preventDefault(),o.value=!1)},onReleaseRequested:()=>{o.value=!1,n("close")}}},ug=(t,n=[])=>{const{placement:o,strategy:l,popperOptions:a}=t,s={placement:o,strategy:l,...a,modifiers:[...fg(t),...n]};return pg(s,a==null?void 0:a.modifiers),s},dg=t=>{if(r.isClient)return r.unrefElement(t)};function fg(t){const{offset:n,gpuAcceleration:o,fallbackPlacements:l}=t;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:l}},{name:"computeStyles",options:{gpuAcceleration:o}}]}function pg(t,n){n&&(t.modifiers=[...t.modifiers,...n??[]])}const mg=(t,n,o={})=>{const l={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const d=hg(u);Object.assign(i.value,d)},requires:["computeStyles"]},a=e.computed(()=>{const{onFirstUpdate:u,placement:d,strategy:p,modifiers:f}=e.unref(o);return{onFirstUpdate:u,placement:d||"bottom",strategy:p||"absolute",modifiers:[...f||[],l,{name:"applyStyles",enabled:!1}]}}),s=e.shallowRef(),i=e.ref({styles:{popper:{position:e.unref(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return e.watch(a,u=>{const d=e.unref(s);d&&d.setOptions(u)},{deep:!0}),e.watch([t,n],([u,d])=>{c(),!(!u||!d)&&(s.value=rg(u,d,e.unref(a)))}),e.onBeforeUnmount(()=>{c()}),{state:e.computed(()=>{var u;return{...((u=e.unref(s))==null?void 0:u.state)||{}}}),styles:e.computed(()=>e.unref(i).styles),attributes:e.computed(()=>e.unref(i).attributes),update:()=>{var u;return(u=e.unref(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=e.unref(s))==null?void 0:u.forceUpdate()},instanceRef:e.computed(()=>e.unref(s))}};function hg(t){const n=Object.keys(t.elements),o=r.fromPairs(n.map(a=>[a,t.styles[a]||{}])),l=r.fromPairs(n.map(a=>[a,t.attributes[a]]));return{styles:o,attributes:l}}const vg=0,gg=t=>{const{popperInstanceRef:n,contentRef:o,triggerRef:l,role:a}=e.inject(Ps,void 0),s=e.ref(),i=e.computed(()=>t.arrowOffset),c=e.computed(()=>({name:"eventListeners",enabled:!!t.visible})),u=e.computed(()=>{var b;const S=e.unref(s),y=(b=e.unref(i))!=null?b:vg;return{name:"arrow",enabled:!Te.isUndefined(S),options:{element:S,padding:y}}}),d=e.computed(()=>({onFirstUpdate:()=>{g()},...ug(t,[e.unref(u),e.unref(c)])})),p=e.computed(()=>dg(t.referenceEl)||e.unref(l)),{attributes:f,state:h,styles:m,update:g,forceUpdate:v,instanceRef:k}=mg(p,o,d);return e.watch(k,b=>n.value=b,{flush:"sync"}),e.onMounted(()=>{e.watch(()=>{var b;return(b=e.unref(p))==null?void 0:b.getBoundingClientRect()},()=>{g()})}),{attributes:f,arrowRef:s,contentRef:o,instanceRef:k,state:h,styles:m,role:a,forceUpdate:v,update:g}},yg=(t,{attributes:n,styles:o,role:l})=>{const{nextZIndex:a}=r.useZIndex(),s=r.useNamespace("popper"),i=e.computed(()=>e.unref(n).popper),c=e.ref(r.isNumber(t.zIndex)?t.zIndex:a()),u=e.computed(()=>[s.b(),s.is("pure",t.pure),s.is(t.effect),t.popperClass]),d=e.computed(()=>[{zIndex:e.unref(c)},e.unref(o).popper,t.popperStyle||{}]),p=e.computed(()=>l.value==="dialog"?"false":void 0),f=e.computed(()=>e.unref(o).arrow||{});return{ariaModal:p,arrowStyle:f,contentAttrs:i,contentClass:u,contentStyle:d,contentZIndex:c,updateZIndex:()=>{c.value=r.isNumber(t.zIndex)?t.zIndex:a()}}},bg=e.defineComponent({name:"ElPopperContent"}),Cg=e.defineComponent({...bg,props:yd,emits:ig,setup(t,{expose:n,emit:o}){const l=t,{focusStartRef:a,trapped:s,onFocusAfterReleased:i,onFocusAfterTrapped:c,onFocusInTrap:u,onFocusoutPrevented:d,onReleaseRequested:p}=cg(l,o),{attributes:f,arrowRef:h,contentRef:m,styles:g,instanceRef:v,role:k,update:b}=gg(l),{ariaModal:S,arrowStyle:y,contentAttrs:C,contentClass:E,contentStyle:w,updateZIndex:V}=yg(l,{styles:g,attributes:f,role:k}),T=e.inject(D.formItemContextKey,void 0);e.provide(Qu,{arrowStyle:y,arrowRef:h}),T&&e.provide(D.formItemContextKey,{...T,addInputId:r.NOOP,removeInputId:r.NOOP});let N;const _=(B=!0)=>{b(),B&&V()},P=()=>{_(!1),l.visible&&l.focusOnShow?s.value=!0:l.visible===!1&&(s.value=!1)};return e.onMounted(()=>{e.watch(()=>l.triggerTargetEl,(B,A)=>{N==null||N(),N=void 0;const j=e.unref(B||m.value),M=e.unref(A||m.value);r.isElement(j)&&(N=e.watch([k,()=>l.ariaLabel,S,()=>l.id],I=>{["role","aria-label","aria-modal","id"].forEach((K,$)=>{r.isNil(I[$])?j.removeAttribute(K):j.setAttribute(K,I[$])})},{immediate:!0})),M!==j&&r.isElement(M)&&["role","aria-label","aria-modal","id"].forEach(I=>{M.removeAttribute(I)})},{immediate:!0}),e.watch(()=>l.visible,P,{immediate:!0})}),e.onBeforeUnmount(()=>{N==null||N(),N=void 0}),n({popperContentRef:m,popperInstanceRef:v,updatePopper:_,contentStyle:w}),(B,A)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"contentRef",ref:m},e.unref(C),{style:e.unref(w),class:e.unref(E),tabindex:"-1",onMouseenter:j=>B.$emit("mouseenter",j),onMouseleave:j=>B.$emit("mouseleave",j)}),[e.createVNode(e.unref(D.ElFocusTrap),{trapped:e.unref(s),"trap-on-focus-in":!0,"focus-trap-el":e.unref(m),"focus-start-el":e.unref(a),onFocusAfterTrapped:e.unref(c),onFocusAfterReleased:e.unref(i),onFocusin:e.unref(u),onFocusoutPrevented:e.unref(d),onReleaseRequested:e.unref(p)},{default:e.withCtx(()=>[e.renderSlot(B.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var kg=r._export_sfc(Cg,[["__file","content.vue"]]);const bd=r.withInstall(Gh),Gr=Symbol("elTooltip"),Xr=r.buildProps({to:{type:r.definePropType([String,Object]),required:!0},disabled:Boolean}),Ye=r.buildProps({...Gu,...yd,appendTo:{type:Xr.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:r.definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...D.useAriaProps(["ariaLabel"])}),Fn=r.buildProps({...nd,disabled:Boolean,trigger:{type:r.definePropType([String,Array]),default:"hover"},triggerKeys:{type:r.definePropType(Array),default:()=>[r.EVENT_CODE.enter,r.EVENT_CODE.numpadEnter,r.EVENT_CODE.space]}}),wg=r.buildProp({type:r.definePropType(Boolean),default:null}),Eg=r.buildProp({type:r.definePropType(Function)}),Sg=t=>{const n=`update:${t}`,o=`onUpdate:${t}`,l=[n],a={[t]:wg,[o]:Eg};return{useModelToggle:({indicator:i,toggleReason:c,shouldHideWhenRouteChanges:u,shouldProceed:d,onShow:p,onHide:f})=>{const h=e.getCurrentInstance(),{emit:m}=h,g=h.props,v=e.computed(()=>r.isFunction(g[o])),k=e.computed(()=>g[t]===null),b=V=>{i.value!==!0&&(i.value=!0,c&&(c.value=V),r.isFunction(p)&&p(V))},S=V=>{i.value!==!1&&(i.value=!1,c&&(c.value=V),r.isFunction(f)&&f(V))},y=V=>{if(g.disabled===!0||r.isFunction(d)&&!d())return;const T=v.value&&r.isClient;T&&m(n,!0),(k.value||!T)&&b(V)},C=V=>{if(g.disabled===!0||!r.isClient)return;const T=v.value&&r.isClient;T&&m(n,!1),(k.value||!T)&&S(V)},E=V=>{r.isBoolean(V)&&(g.disabled&&V?v.value&&m(n,!1):i.value!==V&&(V?b():S()))},w=()=>{i.value?C():y()};return e.watch(()=>g[t],E),u&&h.appContext.config.globalProperties.$route!==void 0&&e.watch(()=>({...h.proxy.$route}),()=>{u.value&&i.value&&C()}),e.onMounted(()=>{E(g[t])}),{hide:C,show:y,toggle:w,hasUpdateHandler:v}},useModelToggleProps:a,useModelToggleEmits:l}},{useModelToggleProps:Ng,useModelToggleEmits:Tg,useModelToggle:_g}=Sg("visible"),Vg=r.buildProps({...td,...Ng,...Ye,...Fn,...gd,showArrow:{type:Boolean,default:!0}}),Bg=[...Tg,"before-show","before-hide","show","hide","open","close"],Pg=(t,n)=>r.isArray$1(t)?t.includes(n):t===n,Pn=(t,n,o)=>l=>{Pg(e.unref(t),n)&&o(l)},We=(t,n,{checkForDefaultPrevented:o=!0}={})=>a=>{const s=t==null?void 0:t(a);if(o===!1||!s)return n==null?void 0:n(a)},ic=t=>n=>n.pointerType==="mouse"?t(n):void 0,Dg=e.defineComponent({name:"ElTooltipTrigger"}),$g=e.defineComponent({...Dg,props:Fn,setup(t,{expose:n}){const o=t,l=r.useNamespace("tooltip"),{controlled:a,id:s,open:i,onOpen:c,onClose:u,onToggle:d}=e.inject(Gr,void 0),p=e.ref(null),f=()=>{if(e.unref(a)||o.disabled)return!0},h=e.toRef(o,"trigger"),m=We(f,Pn(h,"hover",c)),g=We(f,Pn(h,"hover",u)),v=We(f,Pn(h,"click",C=>{C.button===0&&d(C)})),k=We(f,Pn(h,"focus",c)),b=We(f,Pn(h,"focus",u)),S=We(f,Pn(h,"contextmenu",C=>{C.preventDefault(),d(C)})),y=We(f,C=>{const{code:E}=C;o.triggerKeys.includes(E)&&(C.preventDefault(),d(C))});return n({triggerRef:p}),(C,E)=>(e.openBlock(),e.createBlock(e.unref(ov),{id:e.unref(s),"virtual-ref":C.virtualRef,open:e.unref(i),"virtual-triggering":C.virtualTriggering,class:e.normalizeClass(e.unref(l).e("trigger")),onBlur:e.unref(b),onClick:e.unref(v),onContextmenu:e.unref(S),onFocus:e.unref(k),onMouseenter:e.unref(m),onMouseleave:e.unref(g),onKeydown:e.unref(y)},{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Ig=r._export_sfc($g,[["__file","trigger.vue"]]);const Og=e.defineComponent({__name:"teleport",props:Xr,setup(t){return(n,o)=>n.disabled?e.renderSlot(n.$slots,"default",{key:0}):(e.openBlock(),e.createBlock(e.Teleport,{key:1,to:n.to},[e.renderSlot(n.$slots,"default")],8,["to"]))}});var Mg=r._export_sfc(Og,[["__file","teleport.vue"]]);const so=r.withInstall(Mg),Cd=()=>{const t=r.useGetDerivedNamespace(),n=D.useIdInjection(),o=e.computed(()=>`${t.value}-popper-container-${n.prefix}`),l=e.computed(()=>`#${o.value}`);return{id:o,selector:l}},xg=t=>{const n=document.createElement("div");return n.id=t,document.body.appendChild(n),n},Ag=()=>{const{id:t,selector:n}=Cd();return e.onBeforeMount(()=>{r.isClient&&(process.env.NODE_ENV==="test"||!document.body.querySelector(n.value))&&xg(t.value)}),{id:t,selector:n}},zg=e.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),Rg=e.defineComponent({...zg,props:Ye,setup(t,{expose:n}){const o=t,{selector:l}=Cd(),a=r.useNamespace("tooltip"),s=e.ref(),i=r.computedEager(()=>{var $;return($=s.value)==null?void 0:$.popperContentRef});let c;const{controlled:u,id:d,open:p,trigger:f,onClose:h,onOpen:m,onShow:g,onHide:v,onBeforeShow:k,onBeforeHide:b}=e.inject(Gr,void 0),S=e.computed(()=>o.transition||`${a.namespace.value}-fade-in-linear`),y=e.computed(()=>process.env.NODE_ENV==="test"&&!process.env.RUN_TEST_WITH_PERSISTENT?!0:o.persistent);e.onBeforeUnmount(()=>{c==null||c()});const C=e.computed(()=>e.unref(y)?!0:e.unref(p)),E=e.computed(()=>o.disabled?!1:e.unref(p)),w=e.computed(()=>o.appendTo||l.value),V=e.computed(()=>{var $;return($=o.style)!=null?$:{}}),T=e.ref(!0),N=()=>{v(),K()&&D.tryFocus(document.body),T.value=!0},_=()=>{if(e.unref(u))return!0},P=We(_,()=>{o.enterable&&e.unref(f)==="hover"&&m()}),B=We(_,()=>{e.unref(f)==="hover"&&h()}),A=()=>{var $,O;(O=($=s.value)==null?void 0:$.updatePopper)==null||O.call($),k==null||k()},j=()=>{b==null||b()},M=()=>{g()},I=()=>{o.virtualTriggering||h()},K=$=>{var O;const q=(O=s.value)==null?void 0:O.popperContentRef,F=($==null?void 0:$.relatedTarget)||document.activeElement;return q==null?void 0:q.contains(F)};return e.watch(()=>e.unref(p),$=>{$?(T.value=!1,c=r.onClickOutside(i,()=>{if(e.unref(u))return;e.unref(f)!=="hover"&&h()})):c==null||c()},{flush:"post"}),e.watch(()=>o.content,()=>{var $,O;(O=($=s.value)==null?void 0:$.updatePopper)==null||O.call($)}),n({contentRef:s,isFocusInsideContent:K}),($,O)=>(e.openBlock(),e.createBlock(e.unref(so),{disabled:!$.teleported,to:e.unref(w)},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:e.unref(S),onAfterLeave:N,onBeforeEnter:A,onAfterEnter:M,onBeforeLeave:j},{default:e.withCtx(()=>[e.unref(C)?e.withDirectives((e.openBlock(),e.createBlock(e.unref(kg),e.mergeProps({key:0,id:e.unref(d),ref_key:"contentRef",ref:s},$.$attrs,{"aria-label":$.ariaLabel,"aria-hidden":T.value,"boundaries-padding":$.boundariesPadding,"fallback-placements":$.fallbackPlacements,"gpu-acceleration":$.gpuAcceleration,offset:$.offset,placement:$.placement,"popper-options":$.popperOptions,"arrow-offset":$.arrowOffset,strategy:$.strategy,effect:$.effect,enterable:$.enterable,pure:$.pure,"popper-class":$.popperClass,"popper-style":[$.popperStyle,e.unref(V)],"reference-el":$.referenceEl,"trigger-target-el":$.triggerTargetEl,visible:e.unref(E),"z-index":$.zIndex,onMouseenter:e.unref(P),onMouseleave:e.unref(B),onBlur:I,onClose:e.unref(h)}),{default:e.withCtx(()=>[e.renderSlot($.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[e.vShow,e.unref(E)]]):e.createCommentVNode("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var Lg=r._export_sfc(Rg,[["__file","content.vue"]]);const Fg=e.defineComponent({name:"ElTooltip"}),Kg=e.defineComponent({...Fg,props:Vg,emits:Bg,setup(t,{expose:n,emit:o}){const l=t;Ag();const a=r.useNamespace("tooltip"),s=D.useId(),i=e.ref(),c=e.ref(),u=()=>{var y;const C=e.unref(i);C&&((y=C.popperInstanceRef)==null||y.update())},d=e.ref(!1),p=e.ref(),{show:f,hide:h,hasUpdateHandler:m}=_g({indicator:d,toggleReason:p}),{onOpen:g,onClose:v}=Xu({showAfter:e.toRef(l,"showAfter"),hideAfter:e.toRef(l,"hideAfter"),autoClose:e.toRef(l,"autoClose"),open:f,close:h}),k=e.computed(()=>r.isBoolean(l.visible)&&!m.value),b=e.computed(()=>[a.b(),l.popperClass]);e.provide(Gr,{controlled:k,id:s,open:e.readonly(d),trigger:e.toRef(l,"trigger"),onOpen:y=>{g(y)},onClose:y=>{v(y)},onToggle:y=>{e.unref(d)?v(y):g(y)},onShow:()=>{o("show",p.value)},onHide:()=>{o("hide",p.value)},onBeforeShow:()=>{o("before-show",p.value)},onBeforeHide:()=>{o("before-hide",p.value)},updatePopper:u}),e.watch(()=>l.disabled,y=>{y&&d.value&&(d.value=!1)});const S=y=>{var C;return(C=c.value)==null?void 0:C.isFocusInsideContent(y)};return e.onDeactivated(()=>d.value&&h()),n({popperRef:i,contentRef:c,isFocusInsideContent:S,updatePopper:u,onOpen:g,onClose:v,hide:h}),(y,C)=>(e.openBlock(),e.createBlock(e.unref(bd),{ref_key:"popperRef",ref:i,role:y.role},{default:e.withCtx(()=>[e.createVNode(Ig,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:e.withCtx(()=>[y.$slots.default?e.renderSlot(y.$slots,"default",{key:0}):e.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),e.createVNode(Lg,{ref_key:"contentRef",ref:c,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":e.unref(b),"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,"arrow-offset":y.arrowOffset,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(e.openBlock(),e.createElementBlock("span",{key:1},e.toDisplayString(y.content),1))]),y.showArrow?(e.openBlock(),e.createBlock(e.unref(Zh),{key:0})):e.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","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Hg=r._export_sfc(Kg,[["__file","tooltip.vue"]]);const nt=r.withInstall(Hg),jg=r.buildProps({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:r.definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:r.definePropType([Function,Array]),default:r.NOOP},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:Ye.teleported,appendTo:Ye.appendTo,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,...D.useAriaProps(["ariaLabel"])}),Wg={[D.UPDATE_MODEL_EVENT]:t=>r.isString(t),[D.INPUT_EVENT]:t=>r.isString(t),[D.CHANGE_EVENT]:t=>r.isString(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>r.isObject$1(t)},kd="ElAutocomplete",Ug=e.defineComponent({name:kd,inheritAttrs:!1}),qg=e.defineComponent({...Ug,props:jg,emits:Wg,setup(t,{expose:n,emit:o}){const l=t,a=D.useAttrs(),s=e.useAttrs(),i=D.useFormDisabled(),c=r.useNamespace("autocomplete"),u=e.ref(),d=e.ref(),p=e.ref(),f=e.ref();let h=!1,m=!1;const g=e.ref([]),v=e.ref(-1),k=e.ref(""),b=e.ref(!1),S=e.ref(!1),y=e.ref(!1),C=D.useId(),E=e.computed(()=>s.style),w=e.computed(()=>(g.value.length>0||y.value)&&b.value),V=e.computed(()=>!l.hideLoading&&y.value),T=e.computed(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),N=()=>{w.value&&(k.value=`${u.value.$el.offsetWidth}px`)},_=()=>{v.value=-1},P=async Y=>{if(S.value)return;const z=R=>{y.value=!1,!S.value&&(r.isArray$1(R)?(g.value=R,v.value=l.highlightFirstItem?0:-1):r.throwError(kd,"autocomplete suggestions must be an array"))};if(y.value=!0,r.isArray$1(l.fetchSuggestions))z(l.fetchSuggestions);else{const R=await l.fetchSuggestions(Y,z);r.isArray$1(R)&&z(R)}},B=Te.debounce(P,l.debounce),A=Y=>{const z=!!Y;if(o(D.INPUT_EVENT,Y),o(D.UPDATE_MODEL_EVENT,Y),S.value=!1,b.value||(b.value=z),!l.triggerOnFocus&&!Y){S.value=!0,g.value=[];return}B(Y)},j=Y=>{var z;i.value||(((z=Y.target)==null?void 0:z.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(b.value=!0)},M=Y=>{o(D.CHANGE_EVENT,Y)},I=Y=>{var z;if(m)m=!1;else{b.value=!0,o("focus",Y);const R=(z=l.modelValue)!=null?z:"";l.triggerOnFocus&&!h&&B(String(R))}},K=Y=>{setTimeout(()=>{var z;if((z=p.value)!=null&&z.isFocusInsideContent()){m=!0;return}b.value&&F(),o("blur",Y)})},$=()=>{b.value=!1,o(D.UPDATE_MODEL_EVENT,""),o("clear")},O=async()=>{w.value&&v.value>=0&&v.value<g.value.length?G(g.value[v.value]):l.selectWhenUnmatched&&(o("select",{value:l.modelValue}),g.value=[],v.value=-1)},q=Y=>{w.value&&(Y.preventDefault(),Y.stopPropagation(),F())},F=()=>{b.value=!1},X=()=>{var Y;(Y=u.value)==null||Y.focus()},L=()=>{var Y;(Y=u.value)==null||Y.blur()},G=async Y=>{o(D.INPUT_EVENT,Y[l.valueKey]),o(D.UPDATE_MODEL_EVENT,Y[l.valueKey]),o("select",Y),g.value=[],v.value=-1},Z=Y=>{if(!w.value||y.value)return;if(Y<0){v.value=-1;return}Y>=g.value.length&&(Y=g.value.length-1);const z=d.value.querySelector(`.${c.be("suggestion","wrap")}`),x=z.querySelectorAll(`.${c.be("suggestion","list")} li`)[Y],Q=z.scrollTop,{offsetTop:U,scrollHeight:J}=x;U+J>Q+z.clientHeight&&(z.scrollTop+=J),U<Q&&(z.scrollTop-=J),v.value=Y,u.value.ref.setAttribute("aria-activedescendant",`${C.value}-item-${v.value}`)},ee=r.onClickOutside(f,()=>{var Y;(Y=p.value)!=null&&Y.isFocusInsideContent()||w.value&&F()});return e.onBeforeUnmount(()=>{ee==null||ee()}),e.onMounted(()=>{u.value.ref.setAttribute("role","textbox"),u.value.ref.setAttribute("aria-autocomplete","list"),u.value.ref.setAttribute("aria-controls","id"),u.value.ref.setAttribute("aria-activedescendant",`${C.value}-item-${v.value}`),h=u.value.ref.hasAttribute("readonly")}),n({highlightedIndex:v,activated:b,loading:y,inputRef:u,popperRef:p,suggestions:g,handleSelect:G,handleKeyEnter:O,focus:X,blur:L,close:F,highlight:Z,getData:P}),(Y,z)=>(e.openBlock(),e.createBlock(e.unref(nt),{ref_key:"popperRef",ref:p,visible:e.unref(w),placement:Y.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[e.unref(c).e("popper"),Y.popperClass],teleported:Y.teleported,"append-to":Y.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${e.unref(c).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:N,onHide:_},{content:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"regionRef",ref:d,class:e.normalizeClass([e.unref(c).b("suggestion"),e.unref(c).is("loading",e.unref(V))]),style:e.normalizeStyle({[Y.fitInputWidth?"width":"minWidth"]:k.value,outline:"none"}),role:"region"},[e.createVNode(e.unref(Pt),{id:e.unref(C),tag:"ul","wrap-class":e.unref(c).be("suggestion","wrap"),"view-class":e.unref(c).be("suggestion","list"),role:"listbox"},{default:e.withCtx(()=>[e.unref(V)?(e.openBlock(),e.createElementBlock("li",{key:0},[e.renderSlot(Y.$slots,"loading",{},()=>[e.createVNode(e.unref(r.ElIcon),{class:e.normalizeClass(e.unref(c).is("loading"))},{default:e.withCtx(()=>[e.createVNode(e.unref(r.loading_default))]),_:1},8,["class"])])])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(g.value,(R,x)=>(e.openBlock(),e.createElementBlock("li",{id:`${e.unref(C)}-item-${x}`,key:x,class:e.normalizeClass({highlighted:v.value===x}),role:"option","aria-selected":v.value===x,onClick:Q=>G(R)},[e.renderSlot(Y.$slots,"default",{item:R},()=>[e.createTextVNode(e.toDisplayString(R[Y.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"listboxRef",ref:f,class:e.normalizeClass([e.unref(c).b(),Y.$attrs.class]),style:e.normalizeStyle(e.unref(E)),role:"combobox","aria-haspopup":"listbox","aria-expanded":e.unref(w),"aria-owns":e.unref(C)},[e.createVNode(e.unref(D.ElInput),e.mergeProps({ref_key:"inputRef",ref:u},e.unref(a),{clearable:Y.clearable,disabled:e.unref(i),name:Y.name,"model-value":Y.modelValue,"aria-label":Y.ariaLabel,onInput:A,onChange:M,onFocus:I,onBlur:K,onClear:$,onKeydown:[e.withKeys(e.withModifiers(R=>Z(v.value-1),["prevent"]),["up"]),e.withKeys(e.withModifiers(R=>Z(v.value+1),["prevent"]),["down"]),e.withKeys(O,["enter"]),e.withKeys(F,["tab"]),e.withKeys(q,["esc"])],onMousedown:j}),e.createSlots({_:2},[Y.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(Y.$slots,"prepend")])}:void 0,Y.$slots.append?{name:"append",fn:e.withCtx(()=>[e.renderSlot(Y.$slots,"append")])}:void 0,Y.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(Y.$slots,"prefix")])}:void 0,Y.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(Y.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","append-to","transition"]))}});var Yg=r._export_sfc(qg,[["__file","autocomplete.vue"]]);const Gg=r.withInstall(Yg),Xg=r.buildProps({size:{type:[Number,String],values:r.componentSizes,default:"",validator:t=>r.isNumber(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:r.iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:r.definePropType(String),default:"cover"}}),Jg={error:t=>t instanceof Event},Zg=e.defineComponent({name:"ElAvatar"}),Qg=e.defineComponent({...Zg,props:Xg,emits:Jg,setup(t,{emit:n}){const o=t,l=r.useNamespace("avatar"),a=e.ref(!1),s=e.computed(()=>{const{size:d,icon:p,shape:f}=o,h=[l.b()];return r.isString(d)&&h.push(l.m(d)),p&&h.push(l.m("icon")),f&&h.push(l.m(f)),h}),i=e.computed(()=>{const{size:d}=o;return r.isNumber(d)?l.cssVarBlock({size:r.addUnit(d)||""}):void 0}),c=e.computed(()=>({objectFit:o.fit}));e.watch(()=>o.src,()=>a.value=!1);function u(d){a.value=!0,n("error",d)}return(d,p)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(s)),style:e.normalizeStyle(e.unref(i))},[(d.src||d.srcSet)&&!a.value?(e.openBlock(),e.createElementBlock("img",{key:0,src:d.src,alt:d.alt,srcset:d.srcSet,style:e.normalizeStyle(e.unref(c)),onError:u},null,44,["src","alt","srcset"])):d.icon?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.icon)))]),_:1})):e.renderSlot(d.$slots,"default",{key:2})],6))}});var ey=r._export_sfc(Qg,[["__file","avatar.vue"]]);const ty=r.withInstall(ey),ny={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},oy={click:t=>t instanceof MouseEvent},ly=(t,n,o)=>{const l=e.shallowRef(),a=e.shallowRef(),s=e.ref(!1),i=()=>{l.value&&(s.value=l.value.scrollTop>=t.visibilityHeight)},c=d=>{var p;(p=l.value)==null||p.scrollTo({top:0,behavior:"smooth"}),n("click",d)},u=r.useThrottleFn(i,300,!0);return r.useEventListener(a,"scroll",u),e.onMounted(()=>{var d;a.value=document,l.value=document.documentElement,t.target&&(l.value=(d=document.querySelector(t.target))!=null?d:void 0,l.value||r.throwError(o,`target does not exist: ${t.target}`),a.value=l.value),i()}),{visible:s,handleClick:c}},wd="ElBacktop",ry=e.defineComponent({name:wd}),ay=e.defineComponent({...ry,props:ny,emits:oy,setup(t,{emit:n}){const o=t,l=r.useNamespace("backtop"),{handleClick:a,visible:s}=ly(o,n,wd),i=e.computed(()=>({right:`${o.right}px`,bottom:`${o.bottom}px`}));return(c,u)=>(e.openBlock(),e.createBlock(e.Transition,{name:`${e.unref(l).namespace.value}-fade-in`},{default:e.withCtx(()=>[e.unref(s)?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(e.unref(i)),class:e.normalizeClass(e.unref(l).b()),onClick:e.withModifiers(e.unref(a),["stop"])},[e.renderSlot(c.$slots,"default",{},()=>[e.createVNode(e.unref(r.ElIcon),{class:e.normalizeClass(e.unref(l).e("icon"))},{default:e.withCtx(()=>[e.createVNode(e.unref(r.caret_top_default))]),_:1},8,["class"])])],14,["onClick"])):e.createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var sy=r._export_sfc(ay,[["__file","backtop.vue"]]);const iy=r.withInstall(sy),Ed=Symbol("breadcrumbKey"),cy=r.buildProps({separator:{type:String,default:"/"},separatorIcon:{type:r.iconPropType}}),uy=e.defineComponent({name:"ElBreadcrumb"}),dy=e.defineComponent({...uy,props:cy,setup(t){const n=t,{t:o}=r.useLocale(),l=r.useNamespace("breadcrumb"),a=e.ref();return e.provide(Ed,n),e.onMounted(()=>{const s=a.value.querySelectorAll(`.${l.e("item")}`);s.length&&s[s.length-1].setAttribute("aria-current","page")}),(s,i)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"breadcrumb",ref:a,class:e.normalizeClass(e.unref(l).b()),"aria-label":e.unref(o)("el.breadcrumb.label"),role:"navigation"},[e.renderSlot(s.$slots,"default")],10,["aria-label"]))}});var fy=r._export_sfc(dy,[["__file","breadcrumb.vue"]]);const py=r.buildProps({to:{type:r.definePropType([String,Object]),default:""},replace:Boolean}),my=e.defineComponent({name:"ElBreadcrumbItem"}),hy=e.defineComponent({...my,props:py,setup(t){const n=t,o=e.getCurrentInstance(),l=e.inject(Ed,void 0),a=r.useNamespace("breadcrumb"),s=o.appContext.config.globalProperties.$router,i=e.ref(),c=()=>{!n.to||!s||(n.replace?s.replace(n.to):s.push(n.to))};return(u,d)=>{var p,f;return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(a).e("item"))},[e.createElementVNode("span",{ref_key:"link",ref:i,class:e.normalizeClass([e.unref(a).e("inner"),e.unref(a).is("link",!!u.to)]),role:"link",onClick:c},[e.renderSlot(u.$slots,"default")],2),(p=e.unref(l))!=null&&p.separatorIcon?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(a).e("separator"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l).separatorIcon)))]),_:1},8,["class"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(a).e("separator")),role:"presentation"},e.toDisplayString((f=e.unref(l))==null?void 0:f.separator),3))],2)}}});var Sd=r._export_sfc(hy,[["__file","breadcrumb-item.vue"]]);const vy=r.withInstall(fy,{BreadcrumbItem:Sd}),gy=r.withNoopInstall(Sd),pa=(t,n)=>[t>0?t-1:void 0,t,t<n?t+1:void 0],rn=t=>Array.from(Array.from({length:t}).keys()),Nd=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Td=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),cc=function(t,n){const o=r.isDate(t),l=r.isDate(n);return o&&l?t.getTime()===n.getTime():!o&&!l?t===n:!1},uc=function(t,n){const o=r.isArray$1(t),l=r.isArray$1(n);return o&&l?t.length!==n.length?!1:t.every((a,s)=>cc(a,n[s])):!o&&!l?cc(t,n):!1},dc=function(t,n,o){const l=r.isEmpty(n)||n==="x"?ve.dayjs(t).locale(o):ve.dayjs(t,n).locale(o);return l.isValid()?l:void 0},fc=function(t,n,o){return r.isEmpty(n)?t:n==="x"?+t:ve.dayjs(t).locale(o).format(n)},ma=(t,n)=>{var o;const l=[],a=n==null?void 0:n();for(let s=0;s<t;s++)l.push((o=a==null?void 0:a.includes(s))!=null?o:!1);return l},Hl=t=>r.isArray$1(t)?t.map(n=>n.toDate()):t.toDate(),yy=(t,n)=>{const o=t.subtract(1,"month").endOf("month").date();return rn(n).map((l,a)=>o-(n-a-1))},by=t=>{const n=t.daysInMonth();return rn(n).map((o,l)=>l+1)},Cy=t=>rn(t.length/7).map(n=>{const o=n*7;return t.slice(o,o+7)}),ky=r.buildProps({selectedDay:{type:r.definePropType(Object)},range:{type:r.definePropType(Array)},date:{type:r.definePropType(Object),required:!0},hideHeader:{type:Boolean}}),wy={pick:t=>r.isObject$1(t)};var nr={exports:{}},Ey=nr.exports,pc;function Sy(){return pc||(pc=1,function(t,n){(function(o,l){t.exports=l()})(Ey,function(){return function(o,l,a){var s=l.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},c=function(f,h,m,g,v){var k=f.name?f:f.$locale(),b=i(k[h]),S=i(k[m]),y=b||S.map(function(E){return E.slice(0,g)});if(!v)return y;var C=k.weekStart;return y.map(function(E,w){return y[(w+(C||0))%7]})},u=function(){return a.Ls[a.locale()]},d=function(f,h){return f.formats[h]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,v,k){return v||k.slice(1)})}(f.formats[h.toUpperCase()])},p=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):c(f,"months")},monthsShort:function(h){return h?h.format("MMM"):c(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):c(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):c(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):c(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return p.bind(this)()},a.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return d(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return c(u(),"months")},a.monthsShort=function(){return c(u(),"monthsShort","months",3)},a.weekdays=function(f){return c(u(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return c(u(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return c(u(),"weekdaysMin","weekdays",2,f)}}})}(nr)),nr.exports}var Ny=Sy();const _d=ve.getDefaultExportFromCjs(Ny),Ty=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],ha=["sun","mon","tue","wed","thu","fri","sat"],_y=(t,n)=>{ve.dayjs.extend(_d);const o=ve.dayjs.localeData().firstDayOfWeek(),{t:l,lang:a}=r.useLocale(),s=ve.dayjs().locale(a.value),i=e.computed(()=>!!t.range&&!!t.range.length),c=e.computed(()=>{let h=[];if(i.value){const[m,g]=t.range,v=rn(g.date()-m.date()+1).map(S=>({text:m.date()+S,type:"current"}));let k=v.length%7;k=k===0?0:7-k;const b=rn(k).map((S,y)=>({text:y+1,type:"next"}));h=v.concat(b)}else{const m=t.date.startOf("month").day(),g=yy(t.date,(m-o+7)%7).map(S=>({text:S,type:"prev"})),v=by(t.date).map(S=>({text:S,type:"current"}));h=[...g,...v];const k=7-(h.length%7||7),b=rn(k).map((S,y)=>({text:y+1,type:"next"}));h=h.concat(b)}return Cy(h)}),u=e.computed(()=>{const h=o;return h===0?ha.map(m=>l(`el.datepicker.weeks.${m}`)):ha.slice(h).concat(ha.slice(0,h)).map(m=>l(`el.datepicker.weeks.${m}`))}),d=(h,m)=>{switch(m){case"prev":return t.date.startOf("month").subtract(1,"month").date(h);case"next":return t.date.startOf("month").add(1,"month").date(h);case"current":return t.date.date(h)}};return{now:s,isInRange:i,rows:c,weekDays:u,getFormattedDate:d,handlePickDay:({text:h,type:m})=>{const g=d(h,m);n("pick",g)},getSlotData:({text:h,type:m})=>{const g=d(h,m);return{isSelected:g.isSame(t.selectedDay),type:`${m}-month`,day:g.format("YYYY-MM-DD"),date:g.toDate()}}}},Vy=e.defineComponent({name:"DateTable"}),By=e.defineComponent({...Vy,props:ky,emits:wy,setup(t,{expose:n,emit:o}){const l=t,{isInRange:a,now:s,rows:i,weekDays:c,getFormattedDate:u,handlePickDay:d,getSlotData:p}=_y(l,o),f=r.useNamespace("calendar-table"),h=r.useNamespace("calendar-day"),m=({text:g,type:v})=>{const k=[v];if(v==="current"){const b=u(g,v);b.isSame(l.selectedDay,"day")&&k.push(h.is("selected")),b.isSame(s,"day")&&k.push(h.is("today"))}return k};return n({getFormattedDate:u}),(g,v)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass([e.unref(f).b(),e.unref(f).is("range",e.unref(a))]),cellspacing:"0",cellpadding:"0"},[g.hideHeader?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("thead",{key:0},[e.createElementVNode("tr",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),k=>(e.openBlock(),e.createElementBlock("th",{key:k,scope:"col"},e.toDisplayString(k),1))),128))])])),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(k,b)=>(e.openBlock(),e.createElementBlock("tr",{key:b,class:e.normalizeClass({[e.unref(f).e("row")]:!0,[e.unref(f).em("row","hide-border")]:b===0&&g.hideHeader})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k,(S,y)=>(e.openBlock(),e.createElementBlock("td",{key:y,class:e.normalizeClass(m(S)),onClick:C=>e.unref(d)(S)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(h).b())},[e.renderSlot(g.$slots,"date-cell",{data:e.unref(p)(S)},()=>[e.createElementVNode("span",null,e.toDisplayString(S.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var mc=r._export_sfc(By,[["__file","date-table.vue"]]);const Py=(t,n)=>{const o=t.endOf("month"),l=n.startOf("month"),s=o.isSame(l,"week")?l.add(1,"week"):l;return[[t,o],[s.startOf("week"),n]]},Dy=(t,n)=>{const o=t.endOf("month"),l=t.add(1,"month").startOf("month"),a=o.isSame(l,"week")?l.add(1,"week"):l,s=a.endOf("month"),i=n.startOf("month"),c=s.isSame(i,"week")?i.add(1,"week"):i;return[[t,o],[a.startOf("week"),s],[c.startOf("week"),n]]},$y=(t,n,o)=>{const{lang:l}=r.useLocale(),a=e.ref(),s=ve.dayjs().locale(l.value),i=e.computed({get(){return t.modelValue?u.value:a.value},set(k){if(!k)return;a.value=k;const b=k.toDate();n(D.INPUT_EVENT,b),n(D.UPDATE_MODEL_EVENT,b)}}),c=e.computed(()=>{if(!t.range||!r.isArray$1(t.range)||t.range.length!==2||t.range.some(y=>!r.isDate(y)))return[];const k=t.range.map(y=>ve.dayjs(y).locale(l.value)),[b,S]=k;return b.isAfter(S)?(r.debugWarn(o,"end time should be greater than start time"),[]):b.isSame(S,"month")?m(b,S):b.add(1,"month").month()!==S.month()?(r.debugWarn(o,"start time and end time interval must not exceed two months"),[]):m(b,S)}),u=e.computed(()=>t.modelValue?ve.dayjs(t.modelValue).locale(l.value):i.value||(c.value.length?c.value[0][0]:s)),d=e.computed(()=>u.value.subtract(1,"month").date(1)),p=e.computed(()=>u.value.add(1,"month").date(1)),f=e.computed(()=>u.value.subtract(1,"year").date(1)),h=e.computed(()=>u.value.add(1,"year").date(1)),m=(k,b)=>{const S=k.startOf("week"),y=b.endOf("week"),C=S.get("month"),E=y.get("month");return C===E?[[S,y]]:(C+1)%12===E?Py(S,y):C+2===E||(C+1)%11===E?Dy(S,y):(r.debugWarn(o,"start time and end time interval must not exceed two months"),[])},g=k=>{i.value=k};return{calculateValidatedDateRange:m,date:u,realSelectedDay:i,pickDay:g,selectDate:k=>{const S={"prev-month":d.value,"next-month":p.value,"prev-year":f.value,"next-year":h.value,today:s}[k];S.isSame(u.value,"day")||g(S)},validatedRange:c}},Iy=t=>r.isArray$1(t)&&t.length===2&&t.every(n=>r.isDate(n)),Oy=r.buildProps({modelValue:{type:Date},range:{type:r.definePropType(Array),validator:Iy}}),My={[D.UPDATE_MODEL_EVENT]:t=>r.isDate(t),[D.INPUT_EVENT]:t=>r.isDate(t)},Vd="ElCalendar",xy=e.defineComponent({name:Vd}),Ay=e.defineComponent({...xy,props:Oy,emits:My,setup(t,{expose:n,emit:o}){const l=t,a=r.useNamespace("calendar"),{calculateValidatedDateRange:s,date:i,pickDay:c,realSelectedDay:u,selectDate:d,validatedRange:p}=$y(l,o,Vd),{t:f}=r.useLocale(),h=e.computed(()=>{const m=`el.datepicker.month${i.value.format("M")}`;return`${i.value.year()} ${f("el.datepicker.year")} ${f(m)}`});return n({selectedDay:u,pickDay:c,selectDate:d,calculateValidatedDateRange:s}),(m,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("header"))},[e.renderSlot(m.$slots,"header",{date:e.unref(h)},()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("title"))},e.toDisplayString(e.unref(h)),3),e.unref(p).length===0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(a).e("button-group"))},[e.createVNode(e.unref(D.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(D.ElButton),{size:"small",onClick:v=>e.unref(d)("prev-month")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(D.ElButton),{size:"small",onClick:v=>e.unref(d)("today")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("el.datepicker.today")),1)]),_:1},8,["onClick"]),e.createVNode(e.unref(D.ElButton),{size:"small",onClick:v=>e.unref(d)("next-month")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):e.createCommentVNode("v-if",!0)])],2),e.unref(p).length===0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(a).e("body"))},[e.createVNode(mc,{date:e.unref(i),"selected-day":e.unref(u),onPick:e.unref(c)},e.createSlots({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:e.withCtx(v=>[e.renderSlot(m.$slots,"date-cell",e.normalizeProps(e.guardReactiveProps(v)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(a).e("body"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(v,k)=>(e.openBlock(),e.createBlock(mc,{key:k,date:v[0],"selected-day":e.unref(u),range:v,"hide-header":k!==0,onPick:e.unref(c)},e.createSlots({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:e.withCtx(b=>[e.renderSlot(m.$slots,"date-cell",e.normalizeProps(e.guardReactiveProps(b)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var zy=r._export_sfc(Ay,[["__file","calendar.vue"]]);const Ry=r.withInstall(zy),Ly=r.buildProps({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:r.definePropType([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),Fy=e.defineComponent({name:"ElCard"}),Ky=e.defineComponent({...Fy,props:Ly,setup(t){const n=r.useNamespace("card");return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n).b(),e.unref(n).is(`${o.shadow}-shadow`)])},[o.$slots.header||o.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(n).e("header"),o.headerClass])},[e.renderSlot(o.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(o.header),1)])],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(n).e("body"),o.bodyClass]),style:e.normalizeStyle(o.bodyStyle)},[e.renderSlot(o.$slots,"default")],6),o.$slots.footer||o.footer?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(n).e("footer"),o.footerClass])},[e.renderSlot(o.$slots,"footer",{},()=>[e.createTextVNode(e.toDisplayString(o.footer),1)])],2)):e.createCommentVNode("v-if",!0)],2))}});var Hy=r._export_sfc(Ky,[["__file","card.vue"]]);const jy=r.withInstall(Hy),Wy=r.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:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Uy={change:(t,n)=>[t,n].every(r.isNumber)},Bd=Symbol("carouselContextKey"),ml="ElCarouselItem",qy=(t,n,o)=>D.flattedChildren(t.subTree).filter(s=>{var i;return e.isVNode(s)&&((i=s.type)==null?void 0:i.name)===n&&!!s.component}).map(s=>s.component.uid).map(s=>o[s]).filter(s=>!!s),Jr=(t,n)=>{const o={},l=e.shallowRef([]);return{children:l,addChild:i=>{o[i.uid]=i,l.value=qy(t,n,o)},removeChild:i=>{delete o[i],l.value=l.value.filter(c=>c.uid!==i)}}},hc=300,Yy=(t,n,o)=>{const{children:l,addChild:a,removeChild:s}=Jr(e.getCurrentInstance(),ml),i=e.useSlots(),c=e.ref(-1),u=e.ref(null),d=e.ref(!1),p=e.ref(),f=e.ref(0),h=e.ref(!0),m=e.computed(()=>t.arrow!=="never"&&!e.unref(k)),g=e.computed(()=>l.value.some(L=>L.props.label.toString().length>0)),v=e.computed(()=>t.type==="card"),k=e.computed(()=>t.direction==="vertical"),b=e.computed(()=>t.height!=="auto"?{height:t.height}:{height:`${f.value}px`,overflow:"hidden"}),S=yn(L=>{T(L)},hc,{trailing:!0}),y=yn(L=>{I(L)},hc),C=L=>h.value?c.value<=1?L<=1:L>1:!0;function E(){u.value&&(clearInterval(u.value),u.value=null)}function w(){t.interval<=0||!t.autoplay||u.value||(u.value=setInterval(()=>V(),t.interval))}const V=()=>{c.value<l.value.length-1?c.value=c.value+1:t.loop&&(c.value=0)};function T(L){if(r.isString(L)){const ee=l.value.filter(Y=>Y.props.name===L);ee.length>0&&(L=l.value.indexOf(ee[0]))}if(L=Number(L),Number.isNaN(L)||L!==Math.floor(L)){r.debugWarn(o,"index must be integer.");return}const G=l.value.length,Z=c.value;L<0?c.value=t.loop?G-1:0:L>=G?c.value=t.loop?0:G-1:c.value=L,Z===c.value&&N(Z),O()}function N(L){l.value.forEach((G,Z)=>{G.translateItem(Z,c.value,L)})}function _(L,G){var Z,ee,Y,z;const R=e.unref(l),x=R.length;if(x===0||!L.states.inStage)return!1;const Q=G+1,U=G-1,J=x-1,ce=R[J].states.active,oe=R[0].states.active,ie=(ee=(Z=R[Q])==null?void 0:Z.states)==null?void 0:ee.active,ne=(z=(Y=R[U])==null?void 0:Y.states)==null?void 0:z.active;return G===J&&oe||ie?"left":G===0&&ce||ne?"right":!1}function P(){d.value=!0,t.pauseOnHover&&E()}function B(){d.value=!1,w()}function A(L){e.unref(k)||l.value.forEach((G,Z)=>{L===_(G,Z)&&(G.states.hover=!0)})}function j(){e.unref(k)||l.value.forEach(L=>{L.states.hover=!1})}function M(L){c.value=L}function I(L){t.trigger==="hover"&&L!==c.value&&(c.value=L)}function K(){T(c.value-1)}function $(){T(c.value+1)}function O(){E(),t.pauseOnHover||w()}function q(L){t.height==="auto"&&(f.value=L)}function F(){var L;const G=(L=i.default)==null?void 0:L.call(i);if(!G)return null;const ee=D.flattedChildren(G).filter(Y=>e.isVNode(Y)&&Y.type.name===ml);return(ee==null?void 0:ee.length)===2&&t.loop&&!v.value?(h.value=!0,ee):(h.value=!1,null)}e.watch(()=>c.value,(L,G)=>{N(G),h.value&&(L=L%2,G=G%2),G>-1&&n(D.CHANGE_EVENT,L,G)}),e.watch(()=>t.autoplay,L=>{L?w():E()}),e.watch(()=>t.loop,()=>{T(c.value)}),e.watch(()=>t.interval,()=>{O()});const X=e.shallowRef();return e.onMounted(()=>{e.watch(()=>l.value,()=>{l.value.length>0&&T(t.initialIndex)},{immediate:!0}),X.value=r.useResizeObserver(p.value,()=>{N()}),w()}),e.onBeforeUnmount(()=>{E(),p.value&&X.value&&X.value.stop()}),e.provide(Bd,{root:p,isCardType:v,isVertical:k,items:l,loop:t.loop,cardScale:t.cardScale,addItem:a,removeItem:s,setActiveItem:T,setContainerHeight:q}),{root:p,activeIndex:c,arrowDisplay:m,hasLabel:g,hover:d,isCardType:v,items:l,isVertical:k,containerStyle:b,isItemsTwoLength:h,handleButtonEnter:A,handleButtonLeave:j,handleIndicatorClick:M,handleMouseEnter:P,handleMouseLeave:B,setActiveItem:T,prev:K,next:$,PlaceholderItem:F,isTwoLengthShow:C,throttledArrowClick:S,throttledIndicatorHover:y}},Pd="ElCarousel",Gy=e.defineComponent({name:Pd}),Xy=e.defineComponent({...Gy,props:Wy,emits:Uy,setup(t,{expose:n,emit:o}){const l=t,{root:a,activeIndex:s,arrowDisplay:i,hasLabel:c,hover:u,isCardType:d,items:p,isVertical:f,containerStyle:h,handleButtonEnter:m,handleButtonLeave:g,handleIndicatorClick:v,handleMouseEnter:k,handleMouseLeave:b,setActiveItem:S,prev:y,next:C,PlaceholderItem:E,isTwoLengthShow:w,throttledArrowClick:V,throttledIndicatorHover:T}=Yy(l,o,Pd),N=r.useNamespace("carousel"),{t:_}=r.useLocale(),P=e.computed(()=>{const M=[N.b(),N.m(l.direction)];return e.unref(d)&&M.push(N.m("card")),M}),B=e.computed(()=>{const M=[N.e("indicators"),N.em("indicators",l.direction)];return e.unref(c)&&M.push(N.em("indicators","labels")),l.indicatorPosition==="outside"&&M.push(N.em("indicators","outside")),e.unref(f)&&M.push(N.em("indicators","right")),M});function A(M){if(!l.motionBlur)return;const I=e.unref(f)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;M.currentTarget.classList.add(I)}function j(M){if(!l.motionBlur)return;const I=e.unref(f)?`${N.namespace.value}-transitioning-vertical`:`${N.namespace.value}-transitioning`;M.currentTarget.classList.remove(I)}return n({activeIndex:s,setActiveItem:S,prev:y,next:C}),(M,I)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"root",ref:a,class:e.normalizeClass(e.unref(P)),onMouseenter:e.withModifiers(e.unref(k),["stop"]),onMouseleave:e.withModifiers(e.unref(b),["stop"])},[e.unref(i)?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(N).e("arrow"),e.unref(N).em("arrow","left")]),"aria-label":e.unref(_)("el.carousel.leftArrow"),onMouseenter:K=>e.unref(m)("left"),onMouseleave:e.unref(g),onClick:e.withModifiers(K=>e.unref(V)(e.unref(s)-1),["stop"])},[e.createVNode(e.unref(r.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.arrow_left_default))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[e.vShow,(M.arrow==="always"||e.unref(u))&&(l.loop||e.unref(s)>0)]])]),_:1})):e.createCommentVNode("v-if",!0),e.unref(i)?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("button",{type:"button",class:e.normalizeClass([e.unref(N).e("arrow"),e.unref(N).em("arrow","right")]),"aria-label":e.unref(_)("el.carousel.rightArrow"),onMouseenter:K=>e.unref(m)("right"),onMouseleave:e.unref(g),onClick:e.withModifiers(K=>e.unref(V)(e.unref(s)+1),["stop"])},[e.createVNode(e.unref(r.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.arrow_right_default))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[e.vShow,(M.arrow==="always"||e.unref(u))&&(l.loop||e.unref(s)<e.unref(p).length-1)]])]),_:1})):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(N).e("container")),style:e.normalizeStyle(e.unref(h)),onTransitionstart:A,onTransitionend:j},[e.createVNode(e.unref(E)),e.renderSlot(M.$slots,"default")],38),M.indicatorPosition!=="none"?(e.openBlock(),e.createElementBlock("ul",{key:2,class:e.normalizeClass(e.unref(B))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(K,$)=>e.withDirectives((e.openBlock(),e.createElementBlock("li",{key:$,class:e.normalizeClass([e.unref(N).e("indicator"),e.unref(N).em("indicator",M.direction),e.unref(N).is("active",$===e.unref(s))]),onMouseenter:O=>e.unref(T)($),onClick:e.withModifiers(O=>e.unref(v)($),["stop"])},[e.createElementVNode("button",{class:e.normalizeClass(e.unref(N).e("button")),"aria-label":e.unref(_)("el.carousel.indicator",{index:$+1})},[e.unref(c)?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(K.props.label),1)):e.createCommentVNode("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[e.vShow,e.unref(w)($)]])),128))],2)):e.createCommentVNode("v-if",!0),l.motionBlur?(e.openBlock(),e.createElementBlock("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:"elCarouselHorizontal"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),e.createElementVNode("filter",{id:"elCarouselVertical"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):e.createCommentVNode("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var Jy=r._export_sfc(Xy,[["__file","carousel.vue"]]);const Zy=r.buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Qy=t=>{const n=e.inject(Bd),o=e.getCurrentInstance();n||r.debugWarn(ml,"usage: <el-carousel></el-carousel-item></el-carousel>"),o||r.debugWarn(ml,"compositional hook can only be invoked inside setups");const l=e.ref(),a=e.ref(!1),s=e.ref(0),i=e.ref(1),c=e.ref(!1),u=e.ref(!1),d=e.ref(!1),p=e.ref(!1),{isCardType:f,isVertical:h,cardScale:m}=n;function g(y,C,E){const w=E-1,V=C-1,T=C+1,N=E/2;return C===0&&y===w?-1:C===w&&y===0?E:y<V&&C-y>=N?E+1:y>T&&y-C>=N?-2:y}function v(y,C){var E,w;const V=e.unref(h)?((E=n.root.value)==null?void 0:E.offsetHeight)||0:((w=n.root.value)==null?void 0:w.offsetWidth)||0;return d.value?V*((2-m)*(y-C)+1)/4:y<C?-(1+m)*V/4:(3+m)*V/4}function k(y,C,E){const w=n.root.value;return w?((E?w.offsetHeight:w.offsetWidth)||0)*(y-C):0}const b=(y,C,E)=>{var w;const V=e.unref(f),T=(w=n.items.value.length)!=null?w:Number.NaN,N=y===C;!V&&!r.isUndefined(E)&&(p.value=N||y===E),!N&&T>2&&n.loop&&(y=g(y,C,T));const _=e.unref(h);c.value=N,V?(d.value=Math.round(Math.abs(y-C))<=1,s.value=v(y,C),i.value=e.unref(c)?1:m):s.value=k(y,C,_),u.value=!0,N&&l.value&&n.setContainerHeight(l.value.offsetHeight)};function S(){if(n&&e.unref(f)){const y=n.items.value.findIndex(({uid:C})=>C===o.uid);n.setActiveItem(y)}}return e.onMounted(()=>{n.addItem({props:t,states:e.reactive({hover:a,translate:s,scale:i,active:c,ready:u,inStage:d,animating:p}),uid:o.uid,translateItem:b})}),e.onUnmounted(()=>{n.removeItem(o.uid)}),{carouselItemRef:l,active:c,animating:p,hover:a,inStage:d,isVertical:h,translate:s,isCardType:f,scale:i,ready:u,handleItemClick:S}},eb=e.defineComponent({name:ml}),tb=e.defineComponent({...eb,props:Zy,setup(t){const n=t,o=r.useNamespace("carousel"),{carouselItemRef:l,active:a,animating:s,hover:i,inStage:c,isVertical:u,translate:d,isCardType:p,scale:f,ready:h,handleItemClick:m}=Qy(n),g=e.computed(()=>[o.e("item"),o.is("active",a.value),o.is("in-stage",c.value),o.is("hover",i.value),o.is("animating",s.value),{[o.em("item","card")]:p.value,[o.em("item","card-vertical")]:p.value&&u.value}]),v=e.computed(()=>{const b=`${`translate${e.unref(u)?"Y":"X"}`}(${e.unref(d)}px)`,S=`scale(${e.unref(f)})`;return{transform:[b,S].join(" ")}});return(k,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref_key:"carouselItemRef",ref:l,class:e.normalizeClass(e.unref(g)),style:e.normalizeStyle(e.unref(v)),onClick:e.unref(m)},[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(o).e("mask"))},null,2)),[[e.vShow,!e.unref(a)]]):e.createCommentVNode("v-if",!0),e.renderSlot(k.$slots,"default")],14,["onClick"])),[[e.vShow,e.unref(h)]])}});var Dd=r._export_sfc(tb,[["__file","carousel-item.vue"]]);const nb=r.withInstall(Jy,{CarouselItem:Dd}),ob=r.withNoopInstall(Dd),$d={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:r.useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...D.useAriaProps(["ariaControls"])},Id={[D.UPDATE_MODEL_EVENT]:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t),change:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t)},io=Symbol("checkboxGroupContextKey"),lb=({model:t,isChecked:n})=>{const o=e.inject(io,void 0),l=e.computed(()=>{var s,i;const c=(s=o==null?void 0:o.max)==null?void 0:s.value,u=(i=o==null?void 0:o.min)==null?void 0:i.value;return!r.isUndefined(c)&&t.value.length>=c&&!n.value||!r.isUndefined(u)&&t.value.length<=u&&n.value});return{isDisabled:D.useFormDisabled(e.computed(()=>(o==null?void 0:o.disabled.value)||l.value)),isLimitDisabled:l}},rb=(t,{model:n,isLimitExceeded:o,hasOwnLabel:l,isDisabled:a,isLabeledByFormItem:s})=>{const i=e.inject(io,void 0),{formItem:c}=D.useFormItem(),{emit:u}=e.getCurrentInstance();function d(g){var v,k,b,S;return[!0,t.trueValue,t.trueLabel].includes(g)?(k=(v=t.trueValue)!=null?v:t.trueLabel)!=null?k:!0:(S=(b=t.falseValue)!=null?b:t.falseLabel)!=null?S:!1}function p(g,v){u(D.CHANGE_EVENT,d(g),v)}function f(g){if(o.value)return;const v=g.target;u(D.CHANGE_EVENT,d(v.checked),g)}async function h(g){o.value||!l.value&&!a.value&&s.value&&(g.composedPath().some(b=>b.tagName==="LABEL")||(n.value=d([!1,t.falseValue,t.falseLabel].includes(n.value)),await e.nextTick(),p(n.value,g)))}const m=e.computed(()=>(i==null?void 0:i.validateEvent)||t.validateEvent);return e.watch(()=>t.modelValue,()=>{m.value&&(c==null||c.validate("change").catch(g=>r.debugWarn(g)))}),{handleChange:f,onClickRoot:h}},ab=t=>{const n=e.ref(!1),{emit:o}=e.getCurrentInstance(),l=e.inject(io,void 0),a=e.computed(()=>r.isUndefined(l)===!1),s=e.ref(!1),i=e.computed({get(){var c,u;return a.value?(c=l==null?void 0:l.modelValue)==null?void 0:c.value:(u=t.modelValue)!=null?u:n.value},set(c){var u,d;a.value&&r.isArray$1(c)?(s.value=((u=l==null?void 0:l.max)==null?void 0:u.value)!==void 0&&c.length>(l==null?void 0:l.max.value)&&c.length>i.value.length,s.value===!1&&((d=l==null?void 0:l.changeEvent)==null||d.call(l,c))):(o(D.UPDATE_MODEL_EVENT,c),n.value=c)}});return{model:i,isGroup:a,isLimitExceeded:s}},sb=(t,n,{model:o})=>{const l=e.inject(io,void 0),a=e.ref(!1),s=e.computed(()=>r.isPropAbsent(t.value)?t.label:t.value),i=e.computed(()=>{const p=o.value;return r.isBoolean(p)?p:r.isArray$1(p)?r.isObject$1(s.value)?p.map(e.toRaw).some(f=>D.isEqual(f,s.value)):p.map(e.toRaw).includes(s.value):p!=null?p===t.trueValue||p===t.trueLabel:!!p}),c=D.useFormSize(e.computed(()=>{var p;return(p=l==null?void 0:l.size)==null?void 0:p.value}),{prop:!0}),u=D.useFormSize(e.computed(()=>{var p;return(p=l==null?void 0:l.size)==null?void 0:p.value})),d=e.computed(()=>!!n.default||!r.isPropAbsent(s.value));return{checkboxButtonSize:c,isChecked:i,isFocused:a,checkboxSize:u,hasOwnLabel:d,actualValue:s}},Od=(t,n)=>{const{formItem:o}=D.useFormItem(),{model:l,isGroup:a,isLimitExceeded:s}=ab(t),{isFocused:i,isChecked:c,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:p,actualValue:f}=sb(t,n,{model:l}),{isDisabled:h}=lb({model:l,isChecked:c}),{inputId:m,isLabeledByFormItem:g}=D.useFormItemInputId(t,{formItemContext:o,disableIdGeneration:p,disableIdManagement:a}),{handleChange:v,onClickRoot:k}=rb(t,{model:l,isLimitExceeded:s,hasOwnLabel:p,isDisabled:h,isLabeledByFormItem:g});return(()=>{function S(){var y,C;r.isArray$1(l.value)&&!l.value.includes(f.value)?l.value.push(f.value):l.value=(C=(y=t.trueValue)!=null?y:t.trueLabel)!=null?C:!0}t.checked&&S()})(),D.useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>a.value&&r.isPropAbsent(t.value))),D.useDeprecated({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>!!t.trueLabel)),D.useDeprecated({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},e.computed(()=>!!t.falseLabel)),{inputId:m,isLabeledByFormItem:g,isChecked:c,isDisabled:h,isFocused:i,checkboxButtonSize:u,checkboxSize:d,hasOwnLabel:p,model:l,actualValue:f,handleChange:v,onClickRoot:k}},ib=e.defineComponent({name:"ElCheckbox"}),cb=e.defineComponent({...ib,props:$d,emits:Id,setup(t){const n=t,o=e.useSlots(),{inputId:l,isLabeledByFormItem:a,isChecked:s,isDisabled:i,isFocused:c,checkboxSize:u,hasOwnLabel:d,model:p,actualValue:f,handleChange:h,onClickRoot:m}=Od(n,o),g=r.useNamespace("checkbox"),v=e.computed(()=>[g.b(),g.m(u.value),g.is("disabled",i.value),g.is("bordered",n.border),g.is("checked",s.value)]),k=e.computed(()=>[g.e("input"),g.is("disabled",i.value),g.is("checked",s.value),g.is("indeterminate",n.indeterminate),g.is("focus",c.value)]);return(b,S)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(!e.unref(d)&&e.unref(a)?"span":"label"),{class:e.normalizeClass(e.unref(v)),"aria-controls":b.indeterminate?b.ariaControls:null,onClick:e.unref(m)},{default:e.withCtx(()=>{var y,C,E,w;return[e.createElementVNode("span",{class:e.normalizeClass(e.unref(k))},[b.trueValue||b.falseValue||b.trueLabel||b.falseLabel?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,id:e.unref(l),"onUpdate:modelValue":V=>e.isRef(p)?p.value=V:null,class:e.normalizeClass(e.unref(g).e("original")),type:"checkbox",indeterminate:b.indeterminate,name:b.name,tabindex:b.tabindex,disabled:e.unref(i),"true-value":(C=(y=b.trueValue)!=null?y:b.trueLabel)!=null?C:!0,"false-value":(w=(E=b.falseValue)!=null?E:b.falseLabel)!=null?w:!1,onChange:e.unref(h),onFocus:V=>c.value=!0,onBlur:V=>c.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[e.vModelCheckbox,e.unref(p)]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,id:e.unref(l),"onUpdate:modelValue":V=>e.isRef(p)?p.value=V:null,class:e.normalizeClass(e.unref(g).e("original")),type:"checkbox",indeterminate:b.indeterminate,disabled:e.unref(i),value:e.unref(f),name:b.name,tabindex:b.tabindex,onChange:e.unref(h),onFocus:V=>c.value=!0,onBlur:V=>c.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[e.vModelCheckbox,e.unref(p)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(g).e("inner"))},null,2)],2),e.unref(d)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(g).e("label"))},[e.renderSlot(b.$slots,"default"),b.$slots.default?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(b.label),1)],64))],2)):e.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var ub=r._export_sfc(cb,[["__file","checkbox.vue"]]);const db=e.defineComponent({name:"ElCheckboxButton"}),fb=e.defineComponent({...db,props:$d,emits:Id,setup(t){const n=t,o=e.useSlots(),{isFocused:l,isChecked:a,isDisabled:s,checkboxButtonSize:i,model:c,actualValue:u,handleChange:d}=Od(n,o),p=e.inject(io,void 0),f=r.useNamespace("checkbox"),h=e.computed(()=>{var g,v,k,b;const S=(v=(g=p==null?void 0:p.fill)==null?void 0:g.value)!=null?v:"";return{backgroundColor:S,borderColor:S,color:(b=(k=p==null?void 0:p.textColor)==null?void 0:k.value)!=null?b:"",boxShadow:S?`-1px 0 0 0 ${S}`:void 0}}),m=e.computed(()=>[f.b("button"),f.bm("button",i.value),f.is("disabled",s.value),f.is("checked",a.value),f.is("focus",l.value)]);return(g,v)=>{var k,b,S,y;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(m))},[g.trueValue||g.falseValue||g.trueLabel||g.falseLabel?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":C=>e.isRef(c)?c.value=C:null,class:e.normalizeClass(e.unref(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:e.unref(s),"true-value":(b=(k=g.trueValue)!=null?k:g.trueLabel)!=null?b:!0,"false-value":(y=(S=g.falseValue)!=null?S:g.falseLabel)!=null?y:!1,onChange:e.unref(d),onFocus:C=>l.value=!0,onBlur:C=>l.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[e.vModelCheckbox,e.unref(c)]]):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":C=>e.isRef(c)?c.value=C:null,class:e.normalizeClass(e.unref(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:e.unref(s),value:e.unref(u),onChange:e.unref(d),onFocus:C=>l.value=!0,onBlur:C=>l.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[e.vModelCheckbox,e.unref(c)]]),g.$slots.default||g.label?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(f).be("button","inner")),style:e.normalizeStyle(e.unref(a)?e.unref(h):void 0)},[e.renderSlot(g.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(g.label),1)])],6)):e.createCommentVNode("v-if",!0)],2)}}});var Md=r._export_sfc(fb,[["__file","checkbox-button.vue"]]);const pb=r.buildProps({modelValue:{type:r.definePropType(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:r.useSizeProp,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...D.useAriaProps(["ariaLabel"])}),mb={[D.UPDATE_MODEL_EVENT]:t=>r.isArray$1(t),change:t=>r.isArray$1(t)},hb=e.defineComponent({name:"ElCheckboxGroup"}),vb=e.defineComponent({...hb,props:pb,emits:mb,setup(t,{emit:n}){const o=t,l=r.useNamespace("checkbox"),{formItem:a}=D.useFormItem(),{inputId:s,isLabeledByFormItem:i}=D.useFormItemInputId(o,{formItemContext:a}),c=async d=>{n(D.UPDATE_MODEL_EVENT,d),await e.nextTick(),n(D.CHANGE_EVENT,d)},u=e.computed({get(){return o.modelValue},set(d){c(d)}});return e.provide(io,{...D.pick(e.toRefs(o),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:c}),e.watch(()=>o.modelValue,()=>{o.validateEvent&&(a==null||a.validate("change").catch(d=>r.debugWarn(d)))}),(d,p)=>{var f;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.tag),{id:e.unref(s),class:e.normalizeClass(e.unref(l).b("group")),role:"group","aria-label":e.unref(i)?void 0:d.ariaLabel||"checkbox-group","aria-labelledby":e.unref(i)?(f=e.unref(a))==null?void 0:f.labelId:void 0},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var xd=r._export_sfc(vb,[["__file","checkbox-group.vue"]]);const Bt=r.withInstall(ub,{CheckboxButton:Md,CheckboxGroup:xd}),gb=r.withNoopInstall(Md),Ad=r.withNoopInstall(xd),zd=r.buildProps({modelValue:{type:[String,Number,Boolean],default:void 0},size:r.useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),yb=r.buildProps({...zd,border:Boolean}),Rd={[D.UPDATE_MODEL_EVENT]:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t),[D.CHANGE_EVENT]:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t)},Ld=Symbol("radioGroupKey"),Fd=(t,n)=>{const o=e.ref(),l=e.inject(Ld,void 0),a=e.computed(()=>!!l),s=e.computed(()=>r.isPropAbsent(t.value)?t.label:t.value),i=e.computed({get(){return a.value?l.modelValue:t.modelValue},set(f){a.value?l.changeEvent(f):n&&n(D.UPDATE_MODEL_EVENT,f),o.value.checked=t.modelValue===s.value}}),c=D.useFormSize(e.computed(()=>l==null?void 0:l.size)),u=D.useFormDisabled(e.computed(()=>l==null?void 0:l.disabled)),d=e.ref(!1),p=e.computed(()=>u.value||a.value&&i.value!==s.value?-1:0);return D.useDeprecated({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},e.computed(()=>a.value&&r.isPropAbsent(t.value))),{radioRef:o,isGroup:a,radioGroup:l,focus:d,size:c,disabled:u,tabIndex:p,modelValue:i,actualValue:s}},bb=e.defineComponent({name:"ElRadio"}),Cb=e.defineComponent({...bb,props:yb,emits:Rd,setup(t,{emit:n}){const o=t,l=r.useNamespace("radio"),{radioRef:a,radioGroup:s,focus:i,size:c,disabled:u,modelValue:d,actualValue:p}=Fd(o,n);function f(){e.nextTick(()=>n(D.CHANGE_EVENT,d.value))}return(h,m)=>{var g;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(l).b(),e.unref(l).is("disabled",e.unref(u)),e.unref(l).is("focus",e.unref(i)),e.unref(l).is("bordered",h.border),e.unref(l).is("checked",e.unref(d)===e.unref(p)),e.unref(l).m(e.unref(c))])},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(l).e("input"),e.unref(l).is("disabled",e.unref(u)),e.unref(l).is("checked",e.unref(d)===e.unref(p))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":v=>e.isRef(d)?d.value=v:null,class:e.normalizeClass(e.unref(l).e("original")),value:e.unref(p),name:h.name||((g=e.unref(s))==null?void 0:g.name),disabled:e.unref(u),checked:e.unref(d)===e.unref(p),type:"radio",onFocus:v=>i.value=!0,onBlur:v=>i.value=!1,onChange:f,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[e.vModelRadio,e.unref(d)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("inner"))},null,2)],2),e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("label")),onKeydown:e.withModifiers(()=>{},["stop"])},[e.renderSlot(h.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(h.label),1)])],42,["onKeydown"])],2)}}});var kb=r._export_sfc(Cb,[["__file","radio.vue"]]);const wb=r.buildProps({...zd}),Eb=e.defineComponent({name:"ElRadioButton"}),Sb=e.defineComponent({...Eb,props:wb,setup(t){const n=t,o=r.useNamespace("radio"),{radioRef:l,focus:a,size:s,disabled:i,modelValue:c,radioGroup:u,actualValue:d}=Fd(n),p=e.computed(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,h)=>{var m;return e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([e.unref(o).b("button"),e.unref(o).is("active",e.unref(c)===e.unref(d)),e.unref(o).is("disabled",e.unref(i)),e.unref(o).is("focus",e.unref(a)),e.unref(o).bm("button",e.unref(s))])},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":g=>e.isRef(c)?c.value=g:null,class:e.normalizeClass(e.unref(o).be("button","original-radio")),value:e.unref(d),type:"radio",name:f.name||((m=e.unref(u))==null?void 0:m.name),disabled:e.unref(i),onFocus:g=>a.value=!0,onBlur:g=>a.value=!1,onClick:e.withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[e.vModelRadio,e.unref(c)]]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(o).be("button","inner")),style:e.normalizeStyle(e.unref(c)===e.unref(d)?e.unref(p):{}),onKeydown:e.withModifiers(()=>{},["stop"])},[e.renderSlot(f.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(f.label),1)])],46,["onKeydown"])],2)}}});var Kd=r._export_sfc(Sb,[["__file","radio-button.vue"]]);const Nb=r.buildProps({id:{type:String,default:void 0},size:r.useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...D.useAriaProps(["ariaLabel"])}),Tb=Rd,_b=e.defineComponent({name:"ElRadioGroup"}),Vb=e.defineComponent({..._b,props:Nb,emits:Tb,setup(t,{emit:n}){const o=t,l=r.useNamespace("radio"),a=D.useId(),s=e.ref(),{formItem:i}=D.useFormItem(),{inputId:c,isLabeledByFormItem:u}=D.useFormItemInputId(o,{formItemContext:i}),d=f=>{n(D.UPDATE_MODEL_EVENT,f),e.nextTick(()=>n(D.CHANGE_EVENT,f))};e.onMounted(()=>{const f=s.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(m=>m.checked)&&h&&(h.tabIndex=0)});const p=e.computed(()=>o.name||a.value);return e.provide(Ld,e.reactive({...e.toRefs(o),changeEvent:d,name:p})),e.watch(()=>o.modelValue,()=>{o.validateEvent&&(i==null||i.validate("change").catch(f=>r.debugWarn(f)))}),(f,h)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(c),ref_key:"radioGroupRef",ref:s,class:e.normalizeClass(e.unref(l).b("group")),role:"radiogroup","aria-label":e.unref(u)?void 0:f.ariaLabel||"radio-group","aria-labelledby":e.unref(u)?e.unref(i).labelId:void 0},[e.renderSlot(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var Hd=r._export_sfc(Vb,[["__file","radio-group.vue"]]);const jd=r.withInstall(kb,{RadioButton:Kd,RadioGroup:Hd}),Bb=r.withNoopInstall(Hd),Pb=r.withNoopInstall(Kd);function Db(t){return!!(t!=null&&t.every(n=>n.type===e.Comment))}var $b=e.defineComponent({name:"NodeContent",setup(){return{ns:r.useNamespace("cascader-node")}},render(){const{ns:t}=this,{node:n,panel:o}=this.$parent,{data:l,label:a}=n,{renderLabelFn:s}=o,i=()=>{let c=s==null?void 0:s({node:n,data:l});return Db(c)&&(c=a),c??a};return e.h("span",{class:t.e("label")},i())}});const Rs=Symbol(),Ib=e.defineComponent({name:"ElCascaderNode",components:{ElCheckbox:Bt,ElRadio:jd,NodeContent:$b,ElIcon:r.ElIcon,Check:r.check_default,Loading:r.loading_default,ArrowRight:r.arrow_right_default},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(t,{emit:n}){const o=e.inject(Rs),l=r.useNamespace("cascader-node"),a=e.computed(()=>o.isHoverMenu),s=e.computed(()=>o.config.multiple),i=e.computed(()=>o.config.checkStrictly),c=e.computed(()=>{var w;return(w=o.checkedNodes[0])==null?void 0:w.uid}),u=e.computed(()=>t.node.isDisabled),d=e.computed(()=>t.node.isLeaf),p=e.computed(()=>i.value&&!d.value||!u.value),f=e.computed(()=>m(o.expandingNode)),h=e.computed(()=>i.value&&o.checkedNodes.some(m)),m=w=>{var V;const{level:T,uid:N}=t.node;return((V=w==null?void 0:w.pathNodes[T-1])==null?void 0:V.uid)===N},g=()=>{f.value||o.expandNode(t.node)},v=w=>{const{node:V}=t;w!==V.checked&&o.handleCheckChange(V,w)},k=()=>{o.lazyLoad(t.node,()=>{d.value||g()})},b=w=>{a.value&&(S(),!d.value&&n("expand",w))},S=()=>{const{node:w}=t;!p.value||w.loading||(w.loaded?g():k())},y=()=>{a.value&&!d.value||(d.value&&!u.value&&!i.value&&!s.value?E(!0):S())},C=w=>{i.value?(v(w),t.node.loaded&&g()):E(w)},E=w=>{t.node.loaded?(v(w),!i.value&&g()):k()};return{panel:o,isHoverMenu:a,multiple:s,checkStrictly:i,checkedNodeId:c,isDisabled:u,isLeaf:d,expandable:p,inExpandingPath:f,inCheckedPath:h,ns:l,handleHoverExpand:b,handleExpand:S,handleClick:y,handleCheck:E,handleSelectCheck:C}}});function Ob(t,n,o,l,a,s){const i=e.resolveComponent("el-checkbox"),c=e.resolveComponent("el-radio"),u=e.resolveComponent("check"),d=e.resolveComponent("el-icon"),p=e.resolveComponent("node-content"),f=e.resolveComponent("loading"),h=e.resolveComponent("arrow-right");return e.openBlock(),e.createElementBlock("li",{id:`${t.menuId}-${t.node.uid}`,role:"menuitem","aria-haspopup":!t.isLeaf,"aria-owns":t.isLeaf?void 0:t.menuId,"aria-expanded":t.inExpandingPath,tabindex:t.expandable?-1:void 0,class:e.normalizeClass([t.ns.b(),t.ns.is("selectable",t.checkStrictly),t.ns.is("active",t.node.checked),t.ns.is("disabled",!t.expandable),t.inExpandingPath&&"in-active-path",t.inCheckedPath&&"in-checked-path"]),onMouseenter:t.handleHoverExpand,onFocus:t.handleHoverExpand,onClick:t.handleClick},[e.createCommentVNode(" prefix "),t.multiple?(e.openBlock(),e.createBlock(i,{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:t.isDisabled,onClick:e.withModifiers(()=>{},["stop"]),"onUpdate:modelValue":t.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):t.checkStrictly?(e.openBlock(),e.createBlock(c,{key:1,"model-value":t.checkedNodeId,label:t.node.uid,disabled:t.isDisabled,"onUpdate:modelValue":t.handleSelectCheck,onClick:e.withModifiers(()=>{},["stop"])},{default:e.withCtx(()=>[e.createCommentVNode(`
2
2
  Add an empty element to avoid render label,
3
3
  do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
4
4
  `),e.createElementVNode("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):t.isLeaf&&t.node.checked?(e.openBlock(),e.createBlock(d,{key:2,class:e.normalizeClass(t.ns.e("prefix"))},{default:e.withCtx(()=>[e.createVNode(u)]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" content "),e.createVNode(p),e.createCommentVNode(" postfix "),t.isLeaf?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.node.loading?(e.openBlock(),e.createBlock(d,{key:0,class:e.normalizeClass([t.ns.is("loading"),t.ns.e("postfix")])},{default:e.withCtx(()=>[e.createVNode(f)]),_:1},8,["class"])):(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(["arrow-right",t.ns.e("postfix")])},{default:e.withCtx(()=>[e.createVNode(h)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var Mb=r._export_sfc(Ib,[["render",Ob],["__file","node.vue"]]);const xb=e.defineComponent({name:"ElCascaderMenu",components:{Loading:r.loading_default,ElIcon:r.ElIcon,ElScrollbar:Pt,ElCascaderNode:Mb},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(t){const n=e.getCurrentInstance(),o=r.useNamespace("cascader-menu"),{t:l}=r.useLocale(),a=D.useId();let s=null,i=null;const c=e.inject(Rs),u=e.ref(null),d=e.computed(()=>!t.nodes.length),p=e.computed(()=>!c.initialLoaded),f=e.computed(()=>`${a.value}-${t.index}`),h=k=>{s=k.target},m=k=>{if(!(!c.isHoverMenu||!s||!u.value))if(s.contains(k.target)){g();const b=n.vnode.el,{left:S}=b.getBoundingClientRect(),{offsetWidth:y,offsetHeight:C}=b,E=k.clientX-S,w=s.offsetTop,V=w+s.offsetHeight;u.value.innerHTML=`
@@ -53,4 +53,4 @@
53
53
  "columnWidth" must be passed as number,
54
54
  instead ${typeof n} was given.
55
55
  `))}}),sB="ElTableV2Grid",iB=t=>{const n=e.ref(),o=e.ref(),l=e.ref(0),a=e.computed(()=>{const{data:k,rowHeight:b,estimatedRowHeight:S}=t;if(!S)return k.length*b}),s=e.computed(()=>{const{fixedData:k,rowHeight:b}=t;return((k==null?void 0:k.length)||0)*b}),i=e.computed(()=>yr(t.headerHeight)),c=e.computed(()=>{const{height:k}=t;return Math.max(0,k-e.unref(i)-e.unref(s))}),u=e.computed(()=>e.unref(i)+e.unref(s)>0),d=({data:k,rowIndex:b})=>k[b][t.rowKey];function p({rowCacheStart:k,rowCacheEnd:b,rowVisibleStart:S,rowVisibleEnd:y}){var C;(C=t.onRowsRendered)==null||C.call(t,{rowCacheStart:k,rowCacheEnd:b,rowVisibleStart:S,rowVisibleEnd:y})}function f(k,b){var S;(S=o.value)==null||S.resetAfterRowIndex(k,b)}function h(k,b){const S=e.unref(n),y=e.unref(o);r.isObject$1(k)?(S==null||S.scrollToLeft(k.scrollLeft),l.value=k.scrollLeft,y==null||y.scrollTo(k)):(S==null||S.scrollToLeft(k),l.value=k,y==null||y.scrollTo({scrollLeft:k,scrollTop:b}))}function m(k){var b;(b=e.unref(o))==null||b.scrollTo({scrollTop:k})}function g(k,b){var S;(S=e.unref(o))==null||S.scrollToItem(k,1,b)}function v(){var k,b;(k=e.unref(o))==null||k.$forceUpdate(),(b=e.unref(n))==null||b.$forceUpdate()}return e.watch(()=>t.bodyWidth,()=>{var k;r.isNumber(t.estimatedRowHeight)&&((k=o.value)==null||k.resetAfter({columnIndex:0},!1))}),{bodyRef:o,forceUpdate:v,fixedRowHeight:s,gridHeight:c,hasHeader:u,headerHeight:i,headerRef:n,totalHeight:a,itemKey:d,onItemRendered:p,resetAfterRowIndex:f,scrollTo:h,scrollToTop:m,scrollToRow:g,scrollLeft:l}},cB=e.defineComponent({name:sB,props:br,setup(t,{slots:n,expose:o}){const{ns:l}=e.inject(mi),{bodyRef:a,fixedRowHeight:s,gridHeight:i,hasHeader:c,headerRef:u,headerHeight:d,totalHeight:p,forceUpdate:f,itemKey:h,onItemRendered:m,resetAfterRowIndex:g,scrollTo:v,scrollToTop:k,scrollToRow:b,scrollLeft:S}=iB(t);e.provide(wp,S),e.onActivated(async()=>{var C;await e.nextTick();const E=(C=a.value)==null?void 0:C.states.scrollTop;E&&k(Math.round(E)+1)}),o({forceUpdate:f,totalHeight:p,scrollTo:v,scrollToTop:k,scrollToRow:b,resetAfterRowIndex:g});const y=()=>t.bodyWidth;return()=>{const{cache:C,columns:E,data:w,fixedData:V,useIsScrolling:T,scrollbarAlwaysOn:N,scrollbarEndGap:_,scrollbarStartGap:P,style:B,rowHeight:A,bodyWidth:j,estimatedRowHeight:M,headerWidth:I,height:K,width:$,getRowHeight:O,onScroll:q}=t,F=r.isNumber(M),X=F?rB:aB,L=e.unref(d);return e.createVNode("div",{role:"table",class:[l.e("table"),t.class],style:B},[e.createVNode(X,{ref:a,data:w,useIsScrolling:T,itemKey:h,columnCache:0,columnWidth:F?y:j,totalColumn:1,totalRow:w.length,rowCache:C,rowHeight:F?O:A,width:$,height:e.unref(i),class:l.e("body"),role:"rowgroup",scrollbarStartGap:P,scrollbarEndGap:_,scrollbarAlwaysOn:N,onScroll:q,onItemRendered:m,perfMode:!1},{default:G=>{var Z;const ee=w[G.rowIndex];return(Z=n.row)==null?void 0:Z.call(n,{...G,columns:E,rowData:ee})}}),e.unref(c)&&e.createVNode(eB,{ref:u,class:l.e("header-wrapper"),columns:E,headerData:w,headerHeight:t.headerHeight,fixedHeaderData:V,rowWidth:I,rowHeight:A,width:$,height:Math.min(L+e.unref(s),K)},{dynamic:n.header,fixed:n.row})])}}});var gi=cB;function uB(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const dB=(t,{slots:n})=>{const{mainTableRef:o,...l}=t;return e.createVNode(gi,e.mergeProps({ref:o},l),uB(n)?n:{default:()=>[n]})};var fB=dB;function pB(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const mB=(t,{slots:n})=>{if(!t.columns.length)return;const{leftTableRef:o,...l}=t;return e.createVNode(gi,e.mergeProps({ref:o},l),pB(n)?n:{default:()=>[n]})};var hB=mB;function vB(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const gB=(t,{slots:n})=>{if(!t.columns.length)return;const{rightTableRef:o,...l}=t;return e.createVNode(gi,e.mergeProps({ref:o},l),vB(n)?n:{default:()=>[n]})};var yB=gB;const bB=t=>{const{isScrolling:n}=e.inject(mi),o=e.ref(!1),l=e.ref(),a=e.computed(()=>r.isNumber(t.estimatedRowHeight)&&t.rowIndex>=0),s=(u=!1)=>{const d=e.unref(l);if(!d)return;const{columns:p,onRowHeightChange:f,rowKey:h,rowIndex:m,style:g}=t,{height:v}=d.getBoundingClientRect();o.value=!0,e.nextTick(()=>{if(u||v!==Number.parseInt(g.height)){const k=p[0],b=(k==null?void 0:k.placeholderSign)===Tl;f==null||f({rowKey:h,height:v,rowIndex:m},k&&!b&&k.fixed)}})},i=e.computed(()=>{const{rowData:u,rowIndex:d,rowKey:p,onRowHover:f}=t,h=t.rowEventHandlers||{},m={};return Object.entries(h).forEach(([g,v])=>{r.isFunction(v)&&(m[g]=k=>{v({event:k,rowData:u,rowIndex:d,rowKey:p})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:g,hovered:v})=>{const k=m[g];m[g]=b=>{f({event:b,hovered:v,rowData:u,rowIndex:d,rowKey:p}),k==null||k(b)}}),m}),c=u=>{const{onRowExpand:d,rowData:p,rowIndex:f,rowKey:h}=t;d==null||d({expanded:u,rowData:p,rowIndex:f,rowKey:h})};return e.onMounted(()=>{e.unref(a)&&s(!0)}),{isScrolling:n,measurable:a,measured:o,rowRef:l,eventHandlers:i,onExpand:c}},CB="ElTableV2TableRow",kB=e.defineComponent({name:CB,props:gn,setup(t,{expose:n,slots:o,attrs:l}){const{eventHandlers:a,isScrolling:s,measurable:i,measured:c,rowRef:u,onExpand:d}=bB(t);return n({onExpand:d}),()=>{const{columns:p,columnsStyles:f,expandColumnKey:h,depth:m,rowData:g,rowIndex:v,style:k}=t;let b=p.map((S,y)=>{const C=r.isArray$1(g.children)&&g.children.length>0&&S.key===h;return o.cell({column:S,columns:p,columnIndex:y,depth:m,style:f[S.key],rowData:g,rowIndex:v,isScrolling:e.unref(s),expandIconProps:C?{rowData:g,rowIndex:v,onExpand:d}:void 0})});if(o.row&&(b=o.row({cells:b.map(S=>r.isArray$1(S)&&S.length===1?S[0]:S),style:k,columns:p,depth:m,rowData:g,rowIndex:v,isScrolling:e.unref(s)})),e.unref(i)){const{height:S,...y}=k||{},C=e.unref(c);return e.createVNode("div",e.mergeProps({ref:u,class:t.class,style:C?k:y,role:"row"},l,e.unref(a)),[b])}return e.createVNode("div",e.mergeProps(l,{ref:u,class:t.class,style:k,role:"row"},e.unref(a)),[b])}}});var wB=kB;function EB(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const SB=(t,{slots:n})=>{const{columns:o,columnsStyles:l,depthMap:a,expandColumnKey:s,expandedRowKeys:i,estimatedRowHeight:c,hasFixedColumns:u,rowData:d,rowIndex:p,style:f,isScrolling:h,rowProps:m,rowClass:g,rowKey:v,rowEventHandlers:k,ns:b,onRowHovered:S,onRowExpanded:y}=t,C=En(g,{columns:o,rowData:d,rowIndex:p},""),E=En(m,{columns:o,rowData:d,rowIndex:p}),w=d[v],V=a[w]||0,T=!!s,N=p<0,_=[b.e("row"),C,{[b.e(`row-depth-${V}`)]:T&&p>=0,[b.is("expanded")]:T&&i.includes(w),[b.is("fixed")]:!V&&N,[b.is("customized")]:!!n.row}],P=u?S:void 0,B={...E,columns:o,columnsStyles:l,class:_,depth:V,expandColumnKey:s,estimatedRowHeight:N?void 0:c,isScrolling:h,rowIndex:p,rowData:d,rowKey:w,rowEventHandlers:k,style:f},A=M=>{P==null||P({hovered:!0,rowKey:w,event:M,rowData:d,rowIndex:p})},j=M=>{P==null||P({hovered:!1,rowKey:w,event:M,rowData:d,rowIndex:p})};return e.createVNode(wB,e.mergeProps(B,{onRowExpand:y,onMouseenter:A,onMouseleave:j,rowkey:w}),EB(n)?n:{default:()=>[n]})};var NB=SB;const yi=(t,{slots:n})=>{var o;const{cellData:l,style:a}=t,s=((o=l==null?void 0:l.toString)==null?void 0:o.call(l))||"",i=e.renderSlot(n,"default",t,()=>[s]);return e.createVNode("div",{class:t.class,title:s,style:a},[i])};yi.displayName="ElTableV2Cell";yi.inheritAttrs=!1;var TB=yi;const _B=t=>{const{expanded:n,expandable:o,onExpand:l,style:a,size:s}=t,i={onClick:o?()=>l(!n):void 0,class:t.class};return e.createVNode(r.ElIcon,e.mergeProps(i,{size:s,style:a}),{default:()=>[e.createVNode(r.arrow_right_default,null,null)]})};var VB=_B;const $p=({columns:t,column:n,columnIndex:o,depth:l,expandIconProps:a,isScrolling:s,rowData:i,rowIndex:c,style:u,expandedRowKeys:d,ns:p,cellProps:f,expandColumnKey:h,indentSize:m,iconSize:g,rowKey:v},{slots:k})=>{const b=on(u);if(n.placeholderSign===Tl)return e.createVNode("div",{class:p.em("row-cell","placeholder"),style:b},null);const{cellRenderer:S,dataKey:y,dataGetter:C}=n,E=r.isFunction(C)?C({columns:t,column:n,columnIndex:o,rowData:i,rowIndex:c}):r.get(i,y??""),w=En(f,{cellData:E,columns:t,column:n,columnIndex:o,rowIndex:c,rowData:i}),V={class:p.e("cell-text"),columns:t,column:n,columnIndex:o,cellData:E,isScrolling:s,rowData:i,rowIndex:c},T=kp(S),N=T?T(V):e.renderSlot(k,"default",V,()=>[e.createVNode(TB,V,null)]),_=[p.e("row-cell"),n.class,n.align===Nl.CENTER&&p.is("align-center"),n.align===Nl.RIGHT&&p.is("align-right")],P=c>=0&&h&&n.key===h,B=c>=0&&d.includes(i[v]);let A;const j=`margin-inline-start: ${l*m}px;`;return P&&(r.isObject$1(a)?A=e.createVNode(VB,e.mergeProps(a,{class:[p.e("expand-icon"),p.is("expanded",B)],size:g,expanded:B,style:j,expandable:!0}),null):A=e.createVNode("div",{style:[j,`width: ${g}px; height: ${g}px;`].join(" ")},null)),e.createVNode("div",e.mergeProps({class:_,style:b},w,{role:"cell"}),[A,N])};$p.inheritAttrs=!1;var fu=$p;const BB=r.buildProps({class:String,columns:Ol,columnsStyles:{type:r.definePropType(Object),required:!0},headerIndex:Number,style:{type:r.definePropType(Object)}}),PB=e.defineComponent({name:"ElTableV2HeaderRow",props:BB,setup(t,{slots:n}){return()=>{const{columns:o,columnsStyles:l,headerIndex:a,style:s}=t;let i=o.map((c,u)=>n.cell({columns:o,column:c,columnIndex:u,headerIndex:a,style:l[c.key]}));return n.header&&(i=n.header({cells:i.map(c=>r.isArray$1(c)&&c.length===1?c[0]:c),columns:o,headerIndex:a})),e.createVNode("div",{class:t.class,style:s,role:"row"},[i])}}});var DB=PB;function $B(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const IB=({columns:t,columnsStyles:n,headerIndex:o,style:l,headerClass:a,headerProps:s,ns:i},{slots:c})=>{const u={columns:t,headerIndex:o},d=[i.e("header-row"),En(a,u,""),{[i.is("customized")]:!!c.header}],p={...En(s,u),columnsStyles:n,class:d,columns:t,headerIndex:o,style:l};return e.createVNode(DB,p,$B(c)?c:{default:()=>[c]})};var OB=IB;const bi=(t,{slots:n})=>e.renderSlot(n,"default",t,()=>{var o,l;return[e.createVNode("div",{class:t.class,title:(o=t.column)==null?void 0:o.title},[(l=t.column)==null?void 0:l.title])]});bi.displayName="ElTableV2HeaderCell";bi.inheritAttrs=!1;var MB=bi;const xB=t=>{const{sortOrder:n}=t;return e.createVNode(r.ElIcon,{size:14,class:t.class},{default:()=>[n===Sl.ASC?e.createVNode(r.sort_up_default,null,null):e.createVNode(r.sort_down_default,null,null)]})};var AB=xB;const zB=(t,{slots:n})=>{const{column:o,ns:l,style:a,onColumnSorted:s}=t,i=on(a);if(o.placeholderSign===Tl)return e.createVNode("div",{class:l.em("header-row-cell","placeholder"),style:i},null);const{headerCellRenderer:c,headerClass:u,sortable:d}=o,p={...t,class:l.e("header-cell-text")},f=kp(c),h=f?f(p):e.renderSlot(n,"default",p,()=>[e.createVNode(MB,p,null)]),{sortBy:m,sortState:g,headerCellProps:v}=t;let k,b;if(g){const C=g[o.key];k=!!ds[C],b=k?C:Sl.ASC}else k=o.key===m.key,b=k?m.order:Sl.ASC;const S=[l.e("header-cell"),En(u,t,""),o.align===Nl.CENTER&&l.is("align-center"),o.align===Nl.RIGHT&&l.is("align-right"),d&&l.is("sortable")],y={...En(v,t),onClick:o.sortable?s:void 0,class:S,style:i,"data-key":o.key};return e.createVNode("div",e.mergeProps(y,{role:"columnheader"}),[h,d&&e.createVNode(AB,{class:[l.e("sort-icon"),k&&l.is("sorting")],sortOrder:b},null)])};var pu=zB;const Ip=(t,{slots:n})=>{var o;return e.createVNode("div",{class:t.class,style:t.style},[(o=n.default)==null?void 0:o.call(n)])};Ip.displayName="ElTableV2Footer";var RB=Ip;const Op=(t,{slots:n})=>{const o=e.renderSlot(n,"default",{},()=>[e.createVNode(_f,null,null)]);return e.createVNode("div",{class:t.class,style:t.style},[o])};Op.displayName="ElTableV2Empty";var LB=Op;const Mp=(t,{slots:n})=>{var o;return e.createVNode("div",{class:t.class,style:t.style},[(o=n.default)==null?void 0:o.call(n)])};Mp.displayName="ElTableV2Overlay";var FB=Mp;function tl(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const KB="ElTableV2",HB=e.defineComponent({name:KB,props:JV,setup(t,{slots:n,expose:o}){const l=r.useNamespace("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:s,fixedColumnsOnRight:i,mainColumns:c,mainTableHeight:u,fixedTableHeight:d,leftTableWidth:p,rightTableWidth:f,data:h,depthMap:m,expandedRowKeys:g,hasFixedColumns:v,mainTableRef:k,leftTableRef:b,rightTableRef:S,isDynamic:y,isResetting:C,isScrolling:E,bodyWidth:w,emptyStyle:V,rootStyle:T,footerHeight:N,showEmpty:_,scrollTo:P,scrollToLeft:B,scrollToTop:A,scrollToRow:j,getRowHeight:M,onColumnSorted:I,onRowHeightChange:K,onRowHovered:$,onRowExpanded:O,onRowsRendered:q,onScroll:F,onVerticalScroll:X}=GV(t);return o({scrollTo:P,scrollToLeft:B,scrollToTop:A,scrollToRow:j}),e.provide(mi,{ns:l,isResetting:C,isScrolling:E}),()=>{const{cache:L,cellProps:G,estimatedRowHeight:Z,expandColumnKey:ee,fixedData:Y,headerHeight:z,headerClass:R,headerProps:x,headerCellProps:Q,sortBy:U,sortState:J,rowHeight:ce,rowClass:oe,rowEventHandlers:ie,rowKey:ne,rowProps:le,scrollbarAlwaysOn:ue,indentSize:me,iconSize:ke,useIsScrolling:Ee,vScrollbarSize:Ne,width:Pe}=t,_e=e.unref(h),Me={cache:L,class:l.e("main"),columns:e.unref(c),data:_e,fixedData:Y,estimatedRowHeight:Z,bodyWidth:e.unref(w),headerHeight:z,headerWidth:e.unref(w),height:e.unref(u),mainTableRef:k,rowKey:ne,rowHeight:ce,scrollbarAlwaysOn:ue,scrollbarStartGap:2,scrollbarEndGap:Ne,useIsScrolling:Ee,width:Pe,getRowHeight:M,onRowsRendered:q,onScroll:F},be=e.unref(p),he=e.unref(d),Ve={cache:L,class:l.e("left"),columns:e.unref(s),data:_e,fixedData:Y,estimatedRowHeight:Z,leftTableRef:b,rowHeight:ce,bodyWidth:be,headerWidth:be,headerHeight:z,height:he,rowKey:ne,scrollbarAlwaysOn:ue,scrollbarStartGap:2,scrollbarEndGap:Ne,useIsScrolling:Ee,width:be,getRowHeight:M,onScroll:X},we=e.unref(f),$e={cache:L,class:l.e("right"),columns:e.unref(i),data:_e,fixedData:Y,estimatedRowHeight:Z,rightTableRef:S,rowHeight:ce,bodyWidth:we,headerWidth:we,headerHeight:z,height:he,rowKey:ne,scrollbarAlwaysOn:ue,scrollbarStartGap:2,scrollbarEndGap:Ne,width:we,style:`--${e.unref(l.namespace)}-table-scrollbar-size: ${Ne}px`,useIsScrolling:Ee,getRowHeight:M,onScroll:X},de=e.unref(a),fe={ns:l,depthMap:e.unref(m),columnsStyles:de,expandColumnKey:ee,expandedRowKeys:e.unref(g),estimatedRowHeight:Z,hasFixedColumns:e.unref(v),rowProps:le,rowClass:oe,rowKey:ne,rowEventHandlers:ie,onRowHovered:$,onRowExpanded:O,onRowHeightChange:K},H={cellProps:G,expandColumnKey:ee,indentSize:me,iconSize:ke,rowKey:ne,expandedRowKeys:e.unref(g),ns:l},te={ns:l,headerClass:R,headerProps:x,columnsStyles:de},W={ns:l,sortBy:U,sortState:J,headerCellProps:Q,onColumnSorted:I},ae={row:ze=>e.createVNode(NB,e.mergeProps(ze,fe),{row:n.row,cell:Fe=>{let Le;return n.cell?e.createVNode(fu,e.mergeProps(Fe,H,{style:de[Fe.column.key]}),tl(Le=n.cell(Fe))?Le:{default:()=>[Le]}):e.createVNode(fu,e.mergeProps(Fe,H,{style:de[Fe.column.key]}),null)}}),header:ze=>e.createVNode(OB,e.mergeProps(ze,te),{header:n.header,cell:Fe=>{let Le;return n["header-cell"]?e.createVNode(pu,e.mergeProps(Fe,W,{style:de[Fe.column.key]}),tl(Le=n["header-cell"](Fe))?Le:{default:()=>[Le]}):e.createVNode(pu,e.mergeProps(Fe,W,{style:de[Fe.column.key]}),null)}})},ge=[t.class,l.b(),l.e("root"),{[l.is("dynamic")]:e.unref(y)}],De={class:l.e("footer"),style:e.unref(N)};return e.createVNode("div",{class:ge,style:e.unref(T)},[e.createVNode(fB,Me,tl(ae)?ae:{default:()=>[ae]}),e.createVNode(hB,Ve,tl(ae)?ae:{default:()=>[ae]}),e.createVNode(yB,$e,tl(ae)?ae:{default:()=>[ae]}),n.footer&&e.createVNode(RB,De,{default:n.footer}),e.unref(_)&&e.createVNode(LB,{class:l.e("empty"),style:e.unref(V)},{default:n.empty}),n.overlay&&e.createVNode(FB,{class:l.e("overlay")},{default:n.overlay})])}}});var jB=HB;const WB=r.buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:r.definePropType(Function)}}),UB=t=>{const n=e.ref(),o=e.ref(0),l=e.ref(0);let a;return e.onMounted(()=>{a=r.useResizeObserver(n,([s])=>{const{width:i,height:c}=s.contentRect,{paddingLeft:u,paddingRight:d,paddingTop:p,paddingBottom:f}=getComputedStyle(s.target),h=Number.parseInt(u)||0,m=Number.parseInt(d)||0,g=Number.parseInt(p)||0,v=Number.parseInt(f)||0;o.value=i-h-m,l.value=c-g-v}).stop}),e.onBeforeUnmount(()=>{a==null||a()}),e.watch([o,l],([s,i])=>{var c;(c=t.onResize)==null||c.call(t,{width:s,height:i})}),{sizer:n,width:o,height:l}},qB=e.defineComponent({name:"ElAutoResizer",props:WB,setup(t,{slots:n}){const o=r.useNamespace("auto-resizer"),{height:l,width:a,sizer:s}=UB(t),i={width:"100%",height:"100%"};return()=>{var c;return e.createVNode("div",{ref:s,class:o.b(),style:i},[(c=n.default)==null?void 0:c.call(n,{height:l.value,width:a.value})])}}});var YB=qB;const GB=r.withInstall(jB),XB=r.withInstall(YB),la=Symbol("tabsRootContextKey"),JB=r.buildProps({tabs:{type:r.definePropType(Array),default:()=>r.mutable([])}}),xp="ElTabBar",ZB=e.defineComponent({name:xp}),QB=e.defineComponent({...ZB,props:JB,setup(t,{expose:n}){const o=t,l=e.getCurrentInstance(),a=e.inject(la);a||r.throwError(xp,"<el-tabs><el-tab-bar /></el-tabs>");const s=r.useNamespace("tabs"),i=e.ref(),c=e.ref(),u=()=>{let m=0,g=0;const v=["top","bottom"].includes(a.props.tabPosition)?"width":"height",k=v==="width"?"x":"y",b=k==="x"?"left":"top";return o.tabs.every(S=>{var y,C;const E=(C=(y=l.parent)==null?void 0:y.refs)==null?void 0:C[`tab-${S.uid}`];if(!E)return!1;if(!S.active)return!0;m=E[`offset${At(b)}`],g=E[`client${At(v)}`];const w=window.getComputedStyle(E);return v==="width"&&(g-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight),m+=Number.parseFloat(w.paddingLeft)),!1}),{[v]:`${g}px`,transform:`translate${At(k)}(${m}px)`}},d=()=>c.value=u(),p=[],f=()=>{var m;p.forEach(v=>v.stop()),p.length=0;const g=(m=l.parent)==null?void 0:m.refs;if(g){for(const v in g)if(v.startsWith("tab-")){const k=g[v];k&&p.push(r.useResizeObserver(k,d))}}};e.watch(()=>o.tabs,async()=>{await e.nextTick(),d(),f()},{immediate:!0});const h=r.useResizeObserver(i,()=>d());return e.onBeforeUnmount(()=>{p.forEach(m=>m.stop()),p.length=0,h.stop()}),n({ref:i,update:d}),(m,g)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"barRef",ref:i,class:e.normalizeClass([e.unref(s).e("active-bar"),e.unref(s).is(e.unref(a).props.tabPosition)]),style:e.normalizeStyle(c.value)},null,6))}});var eP=r._export_sfc(QB,[["__file","tab-bar.vue"]]);const tP=r.buildProps({panes:{type:r.definePropType(Array),default:()=>r.mutable([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),nP={tabClick:(t,n,o)=>o instanceof Event,tabRemove:(t,n)=>n instanceof Event},mu="ElTabNav",oP=e.defineComponent({name:mu,props:tP,emits:nP,setup(t,{expose:n,emit:o}){const l=e.inject(la);l||r.throwError(mu,"<el-tabs><tab-nav /></el-tabs>");const a=r.useNamespace("tabs"),s=r.useDocumentVisibility(),i=r.useWindowFocus(),c=e.ref(),u=e.ref(),d=e.ref(),p=e.ref(),f=e.ref(!1),h=e.ref(0),m=e.ref(!1),g=e.ref(!0),v=e.computed(()=>["top","bottom"].includes(l.props.tabPosition)?"width":"height"),k=e.computed(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${h.value}px)`})),b=()=>{if(!c.value)return;const T=c.value[`offset${At(v.value)}`],N=h.value;if(!N)return;const _=N>T?N-T:0;h.value=_},S=()=>{if(!c.value||!u.value)return;const T=u.value[`offset${At(v.value)}`],N=c.value[`offset${At(v.value)}`],_=h.value;if(T-_<=N)return;const P=T-_>N*2?_+N:T-N;h.value=P},y=async()=>{const T=u.value;if(!f.value||!d.value||!c.value||!T)return;await e.nextTick();const N=d.value.querySelector(".is-active");if(!N)return;const _=c.value,P=["top","bottom"].includes(l.props.tabPosition),B=N.getBoundingClientRect(),A=_.getBoundingClientRect(),j=P?T.offsetWidth-A.width:T.offsetHeight-A.height,M=h.value;let I=M;P?(B.left<A.left&&(I=M-(A.left-B.left)),B.right>A.right&&(I=M+B.right-A.right)):(B.top<A.top&&(I=M-(A.top-B.top)),B.bottom>A.bottom&&(I=M+(B.bottom-A.bottom))),I=Math.max(I,0),h.value=Math.min(I,j)},C=()=>{var T;if(!u.value||!c.value)return;t.stretch&&((T=p.value)==null||T.update());const N=u.value[`offset${At(v.value)}`],_=c.value[`offset${At(v.value)}`],P=h.value;_<N?(f.value=f.value||{},f.value.prev=P,f.value.next=P+_<N,N-P<_&&(h.value=N-_)):(f.value=!1,P>0&&(h.value=0))},E=T=>{let N=0;switch(T.code){case r.EVENT_CODE.left:case r.EVENT_CODE.up:N=-1;break;case r.EVENT_CODE.right:case r.EVENT_CODE.down:N=1;break;default:return}const _=Array.from(T.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let B=_.indexOf(T.target)+N;B<0?B=_.length-1:B>=_.length&&(B=0),_[B].focus({preventScroll:!0}),_[B].click(),w()},w=()=>{g.value&&(m.value=!0)},V=()=>m.value=!1;return e.watch(s,T=>{T==="hidden"?g.value=!1:T==="visible"&&setTimeout(()=>g.value=!0,50)}),e.watch(i,T=>{T?setTimeout(()=>g.value=!0,50):g.value=!1}),r.useResizeObserver(d,C),e.onMounted(()=>setTimeout(()=>y(),0)),e.onUpdated(()=>C()),n({scrollToActiveTab:y,removeFocus:V,tabListRef:u,tabBarRef:p}),()=>{const T=f.value?[e.createVNode("span",{class:[a.e("nav-prev"),a.is("disabled",!f.value.prev)],onClick:b},[e.createVNode(r.ElIcon,null,{default:()=>[e.createVNode(r.arrow_left_default,null,null)]})]),e.createVNode("span",{class:[a.e("nav-next"),a.is("disabled",!f.value.next)],onClick:S},[e.createVNode(r.ElIcon,null,{default:()=>[e.createVNode(r.arrow_right_default,null,null)]})])]:null,N=t.panes.map((_,P)=>{var B,A,j,M;const I=_.uid,K=_.props.disabled,$=(A=(B=_.props.name)!=null?B:_.index)!=null?A:`${P}`,O=!K&&(_.isClosable||t.editable);_.index=`${P}`;const q=O?e.createVNode(r.ElIcon,{class:"is-icon-close",onClick:L=>o("tabRemove",_,L)},{default:()=>[e.createVNode(r.close_default,null,null)]}):null,F=((M=(j=_.slots).label)==null?void 0:M.call(j))||_.props.label,X=!K&&_.active?0:-1;return e.createVNode("div",{ref:`tab-${I}`,class:[a.e("item"),a.is(l.props.tabPosition),a.is("active",_.active),a.is("disabled",K),a.is("closable",O),a.is("focus",m.value)],id:`tab-${$}`,key:`tab-${I}`,"aria-controls":`pane-${$}`,role:"tab","aria-selected":_.active,tabindex:X,onFocus:()=>w(),onBlur:()=>V(),onClick:L=>{V(),o("tabClick",_,$,L)},onKeydown:L=>{O&&(L.code===r.EVENT_CODE.delete||L.code===r.EVENT_CODE.backspace)&&o("tabRemove",_,L)}},[F,q])});return e.createVNode("div",{ref:d,class:[a.e("nav-wrap"),a.is("scrollable",!!f.value),a.is(l.props.tabPosition)]},[T,e.createVNode("div",{class:a.e("nav-scroll"),ref:c},[e.createVNode("div",{class:[a.e("nav"),a.is(l.props.tabPosition),a.is("stretch",t.stretch&&["top","bottom"].includes(l.props.tabPosition))],ref:u,style:k.value,role:"tablist",onKeydown:E},[t.type?null:e.createVNode(eP,{ref:p,tabs:[...t.panes]},null),N])])])}}}),lP=r.buildProps({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:r.definePropType(Function),default:()=>!0},stretch:Boolean}),Na=t=>r.isString(t)||r.isNumber(t),rP={[D.UPDATE_MODEL_EVENT]:t=>Na(t),tabClick:(t,n)=>n instanceof Event,tabChange:t=>Na(t),edit:(t,n)=>["remove","add"].includes(n),tabRemove:t=>Na(t),tabAdd:()=>!0},aP=e.defineComponent({name:"ElTabs",props:lP,emits:rP,setup(t,{emit:n,slots:o,expose:l}){var a;const s=r.useNamespace("tabs"),i=e.computed(()=>["left","right"].includes(t.tabPosition)),{children:c,addChild:u,removeChild:d}=Jr(e.getCurrentInstance(),"ElTabPane"),p=e.ref(),f=e.ref((a=t.modelValue)!=null?a:"0"),h=async(b,S=!1)=>{var y,C;if(!(f.value===b||r.isUndefined(b)))try{let E;if(t.beforeLeave){const w=t.beforeLeave(b,f.value);E=w instanceof Promise?await w:w}else E=!0;E!==!1&&(f.value=b,S&&(n(D.UPDATE_MODEL_EVENT,b),n("tabChange",b)),(C=(y=p.value)==null?void 0:y.removeFocus)==null||C.call(y))}catch{}},m=(b,S,y)=>{b.props.disabled||(n("tabClick",b,y),h(S,!0))},g=(b,S)=>{b.props.disabled||r.isUndefined(b.props.name)||(S.stopPropagation(),n("edit",b.props.name,"remove"),n("tabRemove",b.props.name))},v=()=>{n("edit",void 0,"add"),n("tabAdd")};e.watch(()=>t.modelValue,b=>h(b)),e.watch(f,async()=>{var b;await e.nextTick(),(b=p.value)==null||b.scrollToActiveTab()}),e.provide(la,{props:t,currentName:f,registerPane:b=>{c.value.push(b)},sortPane:u,unregisterPane:d}),l({currentName:f,tabNavRef:p});const k=({render:b})=>b();return()=>{const b=o["add-icon"],S=t.editable||t.addable?e.createVNode("div",{class:[s.e("new-tab"),i.value&&s.e("new-tab-vertical")],tabindex:"0",onClick:v,onKeydown:E=>{[r.EVENT_CODE.enter,r.EVENT_CODE.numpadEnter].includes(E.code)&&v()}},[b?e.renderSlot(o,"add-icon"):e.createVNode(r.ElIcon,{class:s.is("icon-plus")},{default:()=>[e.createVNode(r.plus_default,null,null)]})]):null,y=e.createVNode("div",{class:[s.e("header"),i.value&&s.e("header-vertical"),s.is(t.tabPosition)]},[e.createVNode(k,{render:()=>{const E=c.value.some(w=>w.slots.label);return e.createVNode(oP,{ref:p,currentName:f.value,editable:t.editable,type:t.type,panes:c.value,stretch:t.stretch,onTabClick:m,onTabRemove:g},{$stable:!E})}},null),S]),C=e.createVNode("div",{class:s.e("content")},[e.renderSlot(o,"default")]);return e.createVNode("div",{class:[s.b(),s.m(t.tabPosition),{[s.m("card")]:t.type==="card",[s.m("border-card")]:t.type==="border-card"}]},[C,y])}}});var sP=aP;const iP=r.buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Ap="ElTabPane",cP=e.defineComponent({name:Ap}),uP=e.defineComponent({...cP,props:iP,setup(t){const n=t,o=e.getCurrentInstance(),l=e.useSlots(),a=e.inject(la);a||r.throwError(Ap,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const s=r.useNamespace("tab-pane"),i=e.ref(),c=e.computed(()=>n.closable||a.props.closable),u=r.computedEager(()=>{var m;return a.currentName.value===((m=n.name)!=null?m:i.value)}),d=e.ref(u.value),p=e.computed(()=>{var m;return(m=n.name)!=null?m:i.value}),f=r.computedEager(()=>!n.lazy||d.value||u.value);e.watch(u,m=>{m&&(d.value=!0)});const h=e.reactive({uid:o.uid,slots:l,props:n,paneName:p,active:u,index:i,isClosable:c});return a.registerPane(h),e.onMounted(()=>{a.sortPane(h)}),e.onUnmounted(()=>{a.unregisterPane(h.uid)}),(m,g)=>e.unref(f)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,id:`pane-${e.unref(p)}`,class:e.normalizeClass(e.unref(s).b()),role:"tabpanel","aria-hidden":!e.unref(u),"aria-labelledby":`tab-${e.unref(p)}`},[e.renderSlot(m.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[e.vShow,e.unref(u)]]):e.createCommentVNode("v-if",!0)}});var zp=r._export_sfc(uP,[["__file","tab-pane.vue"]]);const dP=r.withInstall(sP,{TabPane:zp}),fP=r.withNoopInstall(zp),pP=r.buildProps({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:r.componentSizes,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),mP=e.defineComponent({name:"ElText"}),hP=e.defineComponent({...mP,props:pP,setup(t){const n=t,o=e.ref(),l=D.useFormSize(),a=r.useNamespace("text"),s=e.computed(()=>[a.b(),a.m(n.type),a.m(l.value),a.is("truncated",n.truncated),a.is("line-clamp",!r.isUndefined(n.lineClamp))]),i=()=>{var c,u,d,p,f,h,m;if(e.useAttrs().title)return;let v=!1;const k=((c=o.value)==null?void 0:c.textContent)||"";if(n.truncated){const b=(u=o.value)==null?void 0:u.offsetWidth,S=(d=o.value)==null?void 0:d.scrollWidth;b&&S&&S>b&&(v=!0)}else if(!r.isUndefined(n.lineClamp)){const b=(p=o.value)==null?void 0:p.offsetHeight,S=(f=o.value)==null?void 0:f.scrollHeight;b&&S&&S>b&&(v=!0)}v?(h=o.value)==null||h.setAttribute("title",k):(m=o.value)==null||m.removeAttribute("title")};return e.onMounted(i),e.onUpdated(i),(c,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.tag),{ref_key:"textRef",ref:o,class:e.normalizeClass(e.unref(s)),style:e.normalizeStyle({"-webkit-line-clamp":c.lineClamp})},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["class","style"]))}});var vP=r._export_sfc(hP,[["__file","text.vue"]]);const Ci=r.withInstall(vP),gP=r.buildProps({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:r.definePropType(String),default:"light"},clearable:{type:Boolean,default:!0},size:r.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,includeEndTime:{type:Boolean,default:!1},name:String,prefixIcon:{type:r.definePropType([String,Object]),default:()=>r.clock_default},clearIcon:{type:r.definePropType([String,Object]),default:()=>r.circle_close_default},...r.useEmptyValuesProps}),Xt=t=>{const n=(t||"").split(":");if(n.length>=2){let o=Number.parseInt(n[0],10);const l=Number.parseInt(n[1],10),a=t.toUpperCase();return a.includes("AM")&&o===12?o=0:a.includes("PM")&&o!==12&&(o+=12),{hours:o,minutes:l}}return null},Ta=(t,n)=>{const o=Xt(t);if(!o)return-1;const l=Xt(n);if(!l)return-1;const a=o.minutes+o.hours*60,s=l.minutes+l.hours*60;return a===s?0:a>s?1:-1},hu=t=>`${t}`.padStart(2,"0"),An=t=>`${hu(t.hours)}:${hu(t.minutes)}`,yP=(t,n)=>{const o=Xt(t);if(!o)return"";const l=Xt(n);if(!l)return"";const a={hours:o.hours,minutes:o.minutes};return a.minutes+=l.minutes,a.hours+=l.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,An(a)},bP=e.defineComponent({name:"ElTimeSelect"}),CP=e.defineComponent({...bP,props:gP,emits:[D.CHANGE_EVENT,"blur","focus","clear",D.UPDATE_MODEL_EVENT],setup(t,{expose:n}){const o=t;ve.dayjs.extend(Ks);const{Option:l}=wn,a=r.useNamespace("input"),s=e.ref(),i=D.useFormDisabled(),{lang:c}=r.useLocale(),u=e.computed(()=>o.modelValue),d=e.computed(()=>{const b=Xt(o.start);return b?An(b):null}),p=e.computed(()=>{const b=Xt(o.end);return b?An(b):null}),f=e.computed(()=>{const b=Xt(o.step);return b?An(b):null}),h=e.computed(()=>{const b=Xt(o.minTime||"");return b?An(b):null}),m=e.computed(()=>{const b=Xt(o.maxTime||"");return b?An(b):null}),g=e.computed(()=>{var b;const S=[],y=(C,E)=>{S.push({value:C,disabled:Ta(E,h.value||"-1:-1")<=0||Ta(E,m.value||"100:100")>=0})};if(o.start&&o.end&&o.step){let C=d.value,E;for(;C&&p.value&&Ta(C,p.value)<=0;)E=ve.dayjs(C,"HH:mm").locale(c.value).format(o.format),y(E,C),C=yP(C,f.value);if(o.includeEndTime&&p.value&&((b=S[S.length-1])==null?void 0:b.value)!==p.value){const w=ve.dayjs(p.value,"HH:mm").locale(c.value).format(o.format);y(w,p.value)}}return S});return n({blur:()=>{var b,S;(S=(b=s.value)==null?void 0:b.blur)==null||S.call(b)},focus:()=>{var b,S;(S=(b=s.value)==null?void 0:b.focus)==null||S.call(b)}}),(b,S)=>(e.openBlock(),e.createBlock(e.unref(wn),{ref_key:"select",ref:s,"model-value":e.unref(u),disabled:e.unref(i),clearable:b.clearable,"clear-icon":b.clearIcon,size:b.size,effect:b.effect,placeholder:b.placeholder,"default-first-option":"",filterable:b.editable,"empty-values":b.emptyValues,"value-on-clear":b.valueOnClear,"onUpdate:modelValue":y=>b.$emit(e.unref(D.UPDATE_MODEL_EVENT),y),onChange:y=>b.$emit(e.unref(D.CHANGE_EVENT),y),onBlur:y=>b.$emit("blur",y),onFocus:y=>b.$emit("focus",y),onClear:()=>b.$emit("clear")},{prefix:e.withCtx(()=>[b.prefixIcon?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(a).e("prefix-icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b.prefixIcon)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g),y=>(e.openBlock(),e.createBlock(e.unref(l),{key:y.value,label:y.value,value:y.value,disabled:y.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var kP=r._export_sfc(CP,[["__file","time-select.vue"]]);const wP=r.withInstall(kP),EP="timeline",SP=e.defineComponent({name:"ElTimeline",setup(t,{slots:n}){const o=r.useNamespace("timeline");return e.provide(EP,n),()=>e.h("ul",{class:[o.b()]},[e.renderSlot(n,"default")])}}),NP=r.buildProps({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,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:r.iconPropType},hollow:Boolean}),TP=e.defineComponent({name:"ElTimelineItem"}),_P=e.defineComponent({...TP,props:NP,setup(t){const n=t,o=r.useNamespace("timeline-item"),l=e.computed(()=>[o.e("node"),o.em("node",n.size||""),o.em("node",n.type||""),o.is("hollow",n.hollow)]);return(a,s)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([e.unref(o).b(),{[e.unref(o).e("center")]:a.center}])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("tail"))},null,2),a.$slots.dot?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l)),style:e.normalizeStyle({backgroundColor:a.color})},[a.icon?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(o).e("icon"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.icon)))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0)],6)),a.$slots.dot?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(o).e("dot"))},[e.renderSlot(a.$slots,"dot")],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(o).e("timestamp"),e.unref(o).is("top")])},e.toDisplayString(a.timestamp),3)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("content"))},[e.renderSlot(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(o).e("timestamp"),e.unref(o).is("bottom")])},e.toDisplayString(a.timestamp),3)):e.createCommentVNode("v-if",!0)],2)],2))}});var Rp=r._export_sfc(_P,[["__file","timeline-item.vue"]]);const VP=r.withInstall(SP,{TimelineItem:Rp}),BP=r.withNoopInstall(Rp),Lp=r.buildProps({nowrap:Boolean});var Fp=(t=>(t.top="top",t.bottom="bottom",t.left="left",t.right="right",t))(Fp||{});const PP=Object.values(Fp),ki=r.buildProps({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:r.definePropType(Object),default:null}}),DP=r.buildProps({side:{type:r.definePropType(String),values:PP,required:!0}}),$P=["absolute","fixed"],IP=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],wi=r.buildProps({arrowPadding:{type:r.definePropType(Number),default:5},effect:{type:r.definePropType(String),default:"light"},contentClass:String,placement:{type:r.definePropType(String),values:IP,default:"bottom"},reference:{type:r.definePropType(Object),default:null},offset:{type:Number,default:8},strategy:{type:r.definePropType(String),values:$P,default:"absolute"},showArrow:Boolean,...D.useAriaProps(["ariaLabel"])}),Ei=r.buildProps({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:r.definePropType(Function)},"onUpdate:open":{type:r.definePropType(Function)}}),On={type:r.definePropType(Function)},Si=r.buildProps({onBlur:On,onClick:On,onFocus:On,onMouseDown:On,onMouseEnter:On,onMouseLeave:On}),OP=r.buildProps({...Ei,...ki,...Si,...wi,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:r.definePropType(Object),default:null},teleported:Boolean,to:{type:r.definePropType([String,Object]),default:"body"}}),ra=Symbol("tooltipV2"),Kp=Symbol("tooltipV2Content"),_a="tooltip_v2.open",MP=e.defineComponent({name:"ElTooltipV2Root"}),xP=e.defineComponent({...MP,props:Ei,setup(t,{expose:n}){const o=t,l=e.ref(o.defaultOpen),a=e.ref(null),s=e.computed({get:()=>r.isPropAbsent(o.open)?l.value:o.open,set:k=>{var b;l.value=k,(b=o["onUpdate:open"])==null||b.call(o,k)}}),i=e.computed(()=>r.isNumber(o.delayDuration)&&o.delayDuration>0),{start:c,stop:u}=r.useTimeoutFn(()=>{s.value=!0},e.computed(()=>o.delayDuration),{immediate:!1}),d=r.useNamespace("tooltip-v2"),p=D.useId(),f=()=>{u(),s.value=!0},h=()=>{e.unref(i)?c():f()},m=f,g=()=>{u(),s.value=!1},v=k=>{var b;k&&(document.dispatchEvent(new CustomEvent(_a)),m()),(b=o.onOpenChange)==null||b.call(o,k)};return e.watch(s,v),e.onMounted(()=>{document.addEventListener(_a,g)}),e.onBeforeUnmount(()=>{u(),document.removeEventListener(_a,g)}),e.provide(ra,{contentId:p,triggerRef:a,ns:d,onClose:g,onDelayOpen:h,onOpen:m}),n({onOpen:m,onClose:g}),(k,b)=>e.renderSlot(k.$slots,"default",{open:e.unref(s)})}});var AP=r._export_sfc(xP,[["__file","root.vue"]]);const zP=e.defineComponent({name:"ElTooltipV2Arrow"}),RP=e.defineComponent({...zP,props:{...ki,...DP},setup(t){const n=t,{ns:o}=e.inject(ra),{arrowRef:l}=e.inject(Kp),a=e.computed(()=>{const{style:s,width:i,height:c}=n,u=o.namespace.value;return{[`--${u}-tooltip-v2-arrow-width`]:`${i}px`,[`--${u}-tooltip-v2-arrow-height`]:`${c}px`,[`--${u}-tooltip-v2-arrow-border-width`]:`${i/2}px`,[`--${u}-tooltip-v2-arrow-cover-width`]:i/2-1,...s||{}}});return(s,i)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"arrowRef",ref:l,style:e.normalizeStyle(e.unref(a)),class:e.normalizeClass(e.unref(o).e("arrow"))},null,6))}});var vu=r._export_sfc(RP,[["__file","arrow.vue"]]);const lo=Math.min,kn=Math.max,Kr=Math.round,Yl=Math.floor,Lt=t=>({x:t,y:t}),LP={left:"right",right:"left",bottom:"top",top:"bottom"},FP={start:"end",end:"start"};function ps(t,n,o){return kn(t,lo(n,o))}function Ml(t,n){return typeof t=="function"?t(n):t}function Sn(t){return t.split("-")[0]}function xl(t){return t.split("-")[1]}function Hp(t){return t==="x"?"y":"x"}function Ni(t){return t==="y"?"height":"width"}const KP=new Set(["top","bottom"]);function ln(t){return KP.has(Sn(t))?"y":"x"}function Ti(t){return Hp(ln(t))}function HP(t,n,o){o===void 0&&(o=!1);const l=xl(t),a=Ti(t),s=Ni(a);let i=a==="x"?l===(o?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[s]>n.floating[s]&&(i=Hr(i)),[i,Hr(i)]}function jP(t){const n=Hr(t);return[ms(t),n,ms(n)]}function ms(t){return t.replace(/start|end/g,n=>FP[n])}const gu=["left","right"],yu=["right","left"],WP=["top","bottom"],UP=["bottom","top"];function qP(t,n,o){switch(t){case"top":case"bottom":return o?n?yu:gu:n?gu:yu;case"left":case"right":return n?WP:UP;default:return[]}}function YP(t,n,o,l){const a=xl(t);let s=qP(Sn(t),o==="start",l);return a&&(s=s.map(i=>i+"-"+a),n&&(s=s.concat(s.map(ms)))),s}function Hr(t){return t.replace(/left|right|bottom|top/g,n=>LP[n])}function GP(t){return{top:0,right:0,bottom:0,left:0,...t}}function jp(t){return typeof t!="number"?GP(t):{top:t,right:t,bottom:t,left:t}}function jr(t){const{x:n,y:o,width:l,height:a}=t;return{width:l,height:a,top:o,left:n,right:n+l,bottom:o+a,x:n,y:o}}function bu(t,n,o){let{reference:l,floating:a}=t;const s=ln(n),i=Ti(n),c=Ni(i),u=Sn(n),d=s==="y",p=l.x+l.width/2-a.width/2,f=l.y+l.height/2-a.height/2,h=l[c]/2-a[c]/2;let m;switch(u){case"top":m={x:p,y:l.y-a.height};break;case"bottom":m={x:p,y:l.y+l.height};break;case"right":m={x:l.x+l.width,y:f};break;case"left":m={x:l.x-a.width,y:f};break;default:m={x:l.x,y:l.y}}switch(xl(n)){case"start":m[i]-=h*(o&&d?-1:1);break;case"end":m[i]+=h*(o&&d?-1:1);break}return m}const XP=async(t,n,o)=>{const{placement:l="bottom",strategy:a="absolute",middleware:s=[],platform:i}=o,c=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(n));let d=await i.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:f}=bu(d,l,u),h=l,m={},g=0;for(let v=0;v<c.length;v++){const{name:k,fn:b}=c[v],{x:S,y,data:C,reset:E}=await b({x:p,y:f,initialPlacement:l,placement:h,strategy:a,middlewareData:m,rects:d,platform:i,elements:{reference:t,floating:n}});p=S??p,f=y??f,m={...m,[k]:{...m[k],...C}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(d=E.rects===!0?await i.getElementRects({reference:t,floating:n,strategy:a}):E.rects),{x:p,y:f}=bu(d,h,u)),v=-1)}return{x:p,y:f,placement:h,strategy:a,middlewareData:m}};async function _i(t,n){var o;n===void 0&&(n={});const{x:l,y:a,platform:s,rects:i,elements:c,strategy:u}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=Ml(n,t),g=jp(m),k=c[h?f==="floating"?"reference":"floating":f],b=jr(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(k)))==null||o?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:p,strategy:u})),S=f==="floating"?{x:l,y:a,width:i.floating.width,height:i.floating.height}:i.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),C=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=jr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:S,offsetParent:y,strategy:u}):S);return{top:(b.top-E.top+g.top)/C.y,bottom:(E.bottom-b.bottom+g.bottom)/C.y,left:(b.left-E.left+g.left)/C.x,right:(E.right-b.right+g.right)/C.x}}const JP=t=>({name:"arrow",options:t,async fn(n){const{x:o,y:l,placement:a,rects:s,platform:i,elements:c,middlewareData:u}=n,{element:d,padding:p=0}=Ml(t,n)||{};if(d==null)return{};const f=jp(p),h={x:o,y:l},m=Ti(a),g=Ni(m),v=await i.getDimensions(d),k=m==="y",b=k?"top":"left",S=k?"bottom":"right",y=k?"clientHeight":"clientWidth",C=s.reference[g]+s.reference[m]-h[m]-s.floating[g],E=h[m]-s.reference[m],w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(d));let V=w?w[y]:0;(!V||!await(i.isElement==null?void 0:i.isElement(w)))&&(V=c.floating[y]||s.floating[g]);const T=C/2-E/2,N=V/2-v[g]/2-1,_=lo(f[b],N),P=lo(f[S],N),B=_,A=V-v[g]-P,j=V/2-v[g]/2+T,M=ps(B,j,A),I=!u.arrow&&xl(a)!=null&&j!==M&&s.reference[g]/2-(j<B?_:P)-v[g]/2<0,K=I?j<B?j-B:j-A:0;return{[m]:h[m]+K,data:{[m]:M,centerOffset:j-M-K,...I&&{alignmentOffset:K}},reset:I}}}),ZP=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var o,l;const{placement:a,middlewareData:s,rects:i,initialPlacement:c,platform:u,elements:d}=n,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...k}=Ml(t,n);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const b=Sn(a),S=ln(c),y=Sn(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(d.floating)),E=h||(y||!v?[Hr(c)]:jP(c)),w=g!=="none";!h&&w&&E.push(...YP(c,v,g,C));const V=[c,...E],T=await _i(n,k),N=[];let _=((l=s.flip)==null?void 0:l.overflows)||[];if(p&&N.push(T[b]),f){const j=HP(a,i,C);N.push(T[j[0]],T[j[1]])}if(_=[..._,{placement:a,overflows:N}],!N.every(j=>j<=0)){var P,B;const j=(((P=s.flip)==null?void 0:P.index)||0)+1,M=V[j];if(M&&(!(f==="alignment"?S!==ln(M):!1)||_.every($=>ln($.placement)===S?$.overflows[0]>0:!0)))return{data:{index:j,overflows:_},reset:{placement:M}};let I=(B=_.filter(K=>K.overflows[0]<=0).sort((K,$)=>K.overflows[1]-$.overflows[1])[0])==null?void 0:B.placement;if(!I)switch(m){case"bestFit":{var A;const K=(A=_.filter($=>{if(w){const O=ln($.placement);return O===S||O==="y"}return!0}).map($=>[$.placement,$.overflows.filter(O=>O>0).reduce((O,q)=>O+q,0)]).sort(($,O)=>$[1]-O[1])[0])==null?void 0:A[0];K&&(I=K);break}case"initialPlacement":I=c;break}if(a!==I)return{reset:{placement:I}}}return{}}}},QP=new Set(["left","top"]);async function eD(t,n){const{placement:o,platform:l,elements:a}=t,s=await(l.isRTL==null?void 0:l.isRTL(a.floating)),i=Sn(o),c=xl(o),u=ln(o)==="y",d=QP.has(i)?-1:1,p=s&&u?-1:1,f=Ml(n,t);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(m=c==="end"?g*-1:g),u?{x:m*p,y:h*d}:{x:h*d,y:m*p}}const tD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var o,l;const{x:a,y:s,placement:i,middlewareData:c}=n,u=await eD(n,t);return i===((o=c.offset)==null?void 0:o.placement)&&(l=c.arrow)!=null&&l.alignmentOffset?{}:{x:a+u.x,y:s+u.y,data:{...u,placement:i}}}}},nD=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:o,y:l,placement:a}=n,{mainAxis:s=!0,crossAxis:i=!1,limiter:c={fn:k=>{let{x:b,y:S}=k;return{x:b,y:S}}},...u}=Ml(t,n),d={x:o,y:l},p=await _i(n,u),f=ln(Sn(a)),h=Hp(f);let m=d[h],g=d[f];if(s){const k=h==="y"?"top":"left",b=h==="y"?"bottom":"right",S=m+p[k],y=m-p[b];m=ps(S,m,y)}if(i){const k=f==="y"?"top":"left",b=f==="y"?"bottom":"right",S=g+p[k],y=g-p[b];g=ps(S,g,y)}const v=c.fn({...n,[h]:m,[f]:g});return{...v,data:{x:v.x-o,y:v.y-l,enabled:{[h]:s,[f]:i}}}}}};function aa(){return typeof window<"u"}function uo(t){return Wp(t)?(t.nodeName||"").toLowerCase():"#document"}function kt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Ht(t){var n;return(n=(Wp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Wp(t){return aa()?t instanceof Node||t instanceof kt(t).Node:!1}function Dt(t){return aa()?t instanceof Element||t instanceof kt(t).Element:!1}function Kt(t){return aa()?t instanceof HTMLElement||t instanceof kt(t).HTMLElement:!1}function Cu(t){return!aa()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof kt(t).ShadowRoot}const oD=new Set(["inline","contents"]);function Al(t){const{overflow:n,overflowX:o,overflowY:l,display:a}=$t(t);return/auto|scroll|overlay|hidden|clip/.test(n+l+o)&&!oD.has(a)}const lD=new Set(["table","td","th"]);function rD(t){return lD.has(uo(t))}const aD=[":popover-open",":modal"];function sa(t){return aD.some(n=>{try{return t.matches(n)}catch{return!1}})}const sD=["transform","translate","scale","rotate","perspective"],iD=["transform","translate","scale","rotate","perspective","filter"],cD=["paint","layout","strict","content"];function Vi(t){const n=Bi(),o=Dt(t)?$t(t):t;return sD.some(l=>o[l]?o[l]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!n&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!n&&(o.filter?o.filter!=="none":!1)||iD.some(l=>(o.willChange||"").includes(l))||cD.some(l=>(o.contain||"").includes(l))}function uD(t){let n=an(t);for(;Kt(n)&&!ro(n);){if(Vi(n))return n;if(sa(n))return null;n=an(n)}return null}function Bi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const dD=new Set(["html","body","#document"]);function ro(t){return dD.has(uo(t))}function $t(t){return kt(t).getComputedStyle(t)}function ia(t){return Dt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function an(t){if(uo(t)==="html")return t;const n=t.assignedSlot||t.parentNode||Cu(t)&&t.host||Ht(t);return Cu(n)?n.host:n}function Up(t){const n=an(t);return ro(n)?t.ownerDocument?t.ownerDocument.body:t.body:Kt(n)&&Al(n)?n:Up(n)}function _l(t,n,o){var l;n===void 0&&(n=[]),o===void 0&&(o=!0);const a=Up(t),s=a===((l=t.ownerDocument)==null?void 0:l.body),i=kt(a);if(s){const c=hs(i);return n.concat(i,i.visualViewport||[],Al(a)?a:[],c&&o?_l(c):[])}return n.concat(a,_l(a,[],o))}function hs(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qp(t){const n=$t(t);let o=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const a=Kt(t),s=a?t.offsetWidth:o,i=a?t.offsetHeight:l,c=Kr(o)!==s||Kr(l)!==i;return c&&(o=s,l=i),{width:o,height:l,$:c}}function Pi(t){return Dt(t)?t:t.contextElement}function jn(t){const n=Pi(t);if(!Kt(n))return Lt(1);const o=n.getBoundingClientRect(),{width:l,height:a,$:s}=qp(n);let i=(s?Kr(o.width):o.width)/l,c=(s?Kr(o.height):o.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const fD=Lt(0);function Yp(t){const n=kt(t);return!Bi()||!n.visualViewport?fD:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function pD(t,n,o){return n===void 0&&(n=!1),!o||n&&o!==kt(t)?!1:n}function Nn(t,n,o,l){n===void 0&&(n=!1),o===void 0&&(o=!1);const a=t.getBoundingClientRect(),s=Pi(t);let i=Lt(1);n&&(l?Dt(l)&&(i=jn(l)):i=jn(t));const c=pD(s,o,l)?Yp(s):Lt(0);let u=(a.left+c.x)/i.x,d=(a.top+c.y)/i.y,p=a.width/i.x,f=a.height/i.y;if(s){const h=kt(s),m=l&&Dt(l)?kt(l):l;let g=h,v=hs(g);for(;v&&l&&m!==g;){const k=jn(v),b=v.getBoundingClientRect(),S=$t(v),y=b.left+(v.clientLeft+parseFloat(S.paddingLeft))*k.x,C=b.top+(v.clientTop+parseFloat(S.paddingTop))*k.y;u*=k.x,d*=k.y,p*=k.x,f*=k.y,u+=y,d+=C,g=kt(v),v=hs(g)}}return jr({width:p,height:f,x:u,y:d})}function ca(t,n){const o=ia(t).scrollLeft;return n?n.left+o:Nn(Ht(t)).left+o}function Gp(t,n){const o=t.getBoundingClientRect(),l=o.left+n.scrollLeft-ca(t,o),a=o.top+n.scrollTop;return{x:l,y:a}}function mD(t){let{elements:n,rect:o,offsetParent:l,strategy:a}=t;const s=a==="fixed",i=Ht(l),c=n?sa(n.floating):!1;if(l===i||c&&s)return o;let u={scrollLeft:0,scrollTop:0},d=Lt(1);const p=Lt(0),f=Kt(l);if((f||!f&&!s)&&((uo(l)!=="body"||Al(i))&&(u=ia(l)),Kt(l))){const m=Nn(l);d=jn(l),p.x=m.x+l.clientLeft,p.y=m.y+l.clientTop}const h=i&&!f&&!s?Gp(i,u):Lt(0);return{width:o.width*d.x,height:o.height*d.y,x:o.x*d.x-u.scrollLeft*d.x+p.x+h.x,y:o.y*d.y-u.scrollTop*d.y+p.y+h.y}}function hD(t){return Array.from(t.getClientRects())}function vD(t){const n=Ht(t),o=ia(t),l=t.ownerDocument.body,a=kn(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),s=kn(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let i=-o.scrollLeft+ca(t);const c=-o.scrollTop;return $t(l).direction==="rtl"&&(i+=kn(n.clientWidth,l.clientWidth)-a),{width:a,height:s,x:i,y:c}}const ku=25;function gD(t,n){const o=kt(t),l=Ht(t),a=o.visualViewport;let s=l.clientWidth,i=l.clientHeight,c=0,u=0;if(a){s=a.width,i=a.height;const p=Bi();(!p||p&&n==="fixed")&&(c=a.offsetLeft,u=a.offsetTop)}const d=ca(l);if(d<=0){const p=l.ownerDocument,f=p.body,h=getComputedStyle(f),m=p.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(l.clientWidth-f.clientWidth-m);g<=ku&&(s-=g)}else d<=ku&&(s+=d);return{width:s,height:i,x:c,y:u}}const yD=new Set(["absolute","fixed"]);function bD(t,n){const o=Nn(t,!0,n==="fixed"),l=o.top+t.clientTop,a=o.left+t.clientLeft,s=Kt(t)?jn(t):Lt(1),i=t.clientWidth*s.x,c=t.clientHeight*s.y,u=a*s.x,d=l*s.y;return{width:i,height:c,x:u,y:d}}function wu(t,n,o){let l;if(n==="viewport")l=gD(t,o);else if(n==="document")l=vD(Ht(t));else if(Dt(n))l=bD(n,o);else{const a=Yp(t);l={x:n.x-a.x,y:n.y-a.y,width:n.width,height:n.height}}return jr(l)}function Xp(t,n){const o=an(t);return o===n||!Dt(o)||ro(o)?!1:$t(o).position==="fixed"||Xp(o,n)}function CD(t,n){const o=n.get(t);if(o)return o;let l=_l(t,[],!1).filter(c=>Dt(c)&&uo(c)!=="body"),a=null;const s=$t(t).position==="fixed";let i=s?an(t):t;for(;Dt(i)&&!ro(i);){const c=$t(i),u=Vi(i);!u&&c.position==="fixed"&&(a=null),(s?!u&&!a:!u&&c.position==="static"&&!!a&&yD.has(a.position)||Al(i)&&!u&&Xp(t,i))?l=l.filter(p=>p!==i):a=c,i=an(i)}return n.set(t,l),l}function kD(t){let{element:n,boundary:o,rootBoundary:l,strategy:a}=t;const i=[...o==="clippingAncestors"?sa(n)?[]:CD(n,this._c):[].concat(o),l],c=i[0],u=i.reduce((d,p)=>{const f=wu(n,p,a);return d.top=kn(f.top,d.top),d.right=lo(f.right,d.right),d.bottom=lo(f.bottom,d.bottom),d.left=kn(f.left,d.left),d},wu(n,c,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function wD(t){const{width:n,height:o}=qp(t);return{width:n,height:o}}function ED(t,n,o){const l=Kt(n),a=Ht(n),s=o==="fixed",i=Nn(t,!0,s,n);let c={scrollLeft:0,scrollTop:0};const u=Lt(0);function d(){u.x=ca(a)}if(l||!l&&!s)if((uo(n)!=="body"||Al(a))&&(c=ia(n)),l){const m=Nn(n,!0,s,n);u.x=m.x+n.clientLeft,u.y=m.y+n.clientTop}else a&&d();s&&!l&&a&&d();const p=a&&!l&&!s?Gp(a,c):Lt(0),f=i.left+c.scrollLeft-u.x-p.x,h=i.top+c.scrollTop-u.y-p.y;return{x:f,y:h,width:i.width,height:i.height}}function Va(t){return $t(t).position==="static"}function Eu(t,n){if(!Kt(t)||$t(t).position==="fixed")return null;if(n)return n(t);let o=t.offsetParent;return Ht(t)===o&&(o=o.ownerDocument.body),o}function Jp(t,n){const o=kt(t);if(sa(t))return o;if(!Kt(t)){let a=an(t);for(;a&&!ro(a);){if(Dt(a)&&!Va(a))return a;a=an(a)}return o}let l=Eu(t,n);for(;l&&rD(l)&&Va(l);)l=Eu(l,n);return l&&ro(l)&&Va(l)&&!Vi(l)?o:l||uD(t)||o}const SD=async function(t){const n=this.getOffsetParent||Jp,o=this.getDimensions,l=await o(t.floating);return{reference:ED(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function ND(t){return $t(t).direction==="rtl"}const TD={convertOffsetParentRelativeRectToViewportRelativeRect:mD,getDocumentElement:Ht,getClippingRect:kD,getOffsetParent:Jp,getElementRects:SD,getClientRects:hD,getDimensions:wD,getScale:jn,isElement:Dt,isRTL:ND};function Zp(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function _D(t,n){let o=null,l;const a=Ht(t);function s(){var c;clearTimeout(l),(c=o)==null||c.disconnect(),o=null}function i(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),s();const d=t.getBoundingClientRect(),{left:p,top:f,width:h,height:m}=d;if(c||n(),!h||!m)return;const g=Yl(f),v=Yl(a.clientWidth-(p+h)),k=Yl(a.clientHeight-(f+m)),b=Yl(p),y={rootMargin:-g+"px "+-v+"px "+-k+"px "+-b+"px",threshold:kn(0,lo(1,u))||1};let C=!0;function E(w){const V=w[0].intersectionRatio;if(V!==u){if(!C)return i();V?i(!1,V):l=setTimeout(()=>{i(!1,1e-7)},1e3)}V===1&&!Zp(d,t.getBoundingClientRect())&&i(),C=!1}try{o=new IntersectionObserver(E,{...y,root:a.ownerDocument})}catch{o=new IntersectionObserver(E,y)}o.observe(t)}return i(!0),s}function VD(t,n,o,l){l===void 0&&(l={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=l,d=Pi(t),p=a||s?[...d?_l(d):[],..._l(n)]:[];p.forEach(b=>{a&&b.addEventListener("scroll",o,{passive:!0}),s&&b.addEventListener("resize",o)});const f=d&&c?_D(d,o):null;let h=-1,m=null;i&&(m=new ResizeObserver(b=>{let[S]=b;S&&S.target===d&&m&&(m.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(n)})),o()}),d&&!u&&m.observe(d),m.observe(n));let g,v=u?Nn(t):null;u&&k();function k(){const b=Nn(t);v&&!Zp(v,b)&&o(),v=b,g=requestAnimationFrame(k)}return o(),()=>{var b;p.forEach(S=>{a&&S.removeEventListener("scroll",o),s&&S.removeEventListener("resize",o)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,u&&cancelAnimationFrame(g)}}const BD=_i,Qp=tD,PD=nD,DD=ZP,em=JP,tm=(t,n,o)=>{const l=new Map,a={platform:TD,...o},s={...a.platform,_c:l};return XP(t,n,{...a,platform:s})},$D=r.buildProps({style:{type:r.definePropType([String,Object,Array]),default:()=>({})}}),ID=e.defineComponent({name:"ElVisuallyHidden"}),OD=e.defineComponent({...ID,props:$D,setup(t){const n=t,o=e.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(l,a)=>(e.openBlock(),e.createElementBlock("span",e.mergeProps(l.$attrs,{style:e.unref(o)}),[e.renderSlot(l.$slots,"default")],16))}});var MD=r._export_sfc(OD,[["__file","visual-hidden.vue"]]);r.buildProps({});const xD=t=>{if(!r.isClient)return;if(!t)return t;const n=r.unrefElement(t);return n||(e.isRef(t)?n:t)},AD=({middleware:t,placement:n,strategy:o})=>{const l=e.ref(),a=e.ref(),s=e.ref(),i=e.ref(),c=e.ref({}),u={x:s,y:i,placement:n,strategy:o,middlewareData:c},d=async()=>{if(!r.isClient)return;const p=xD(l),f=r.unrefElement(a);if(!p||!f)return;const h=await tm(p,f,{placement:e.unref(n),strategy:e.unref(o),middleware:e.unref(t)});r.keysOf(u).forEach(m=>{u[m].value=h[m]})};return e.onMounted(()=>{e.watchEffect(()=>{d()})}),{...u,update:d,referenceRef:l,contentRef:a}},zD=({arrowRef:t,padding:n})=>({name:"arrow",options:{element:t,padding:n},fn(o){const l=e.unref(t);return l?em({element:l,padding:n}).fn(o):{}}}),RD=e.defineComponent({name:"ElTooltipV2Content"}),LD=e.defineComponent({...RD,props:{...wi,...Lp},setup(t){const n=t,{triggerRef:o,contentId:l}=e.inject(ra),a=e.ref(n.placement),s=e.ref(n.strategy),i=e.ref(null),{referenceRef:c,contentRef:u,middlewareData:d,x:p,y:f,update:h}=AD({placement:a,strategy:s,middleware:e.computed(()=>{const y=[Qp(n.offset)];return n.showArrow&&y.push(zD({arrowRef:i})),y})}),m=r.useZIndex().nextZIndex(),g=r.useNamespace("tooltip-v2"),v=e.computed(()=>a.value.split("-")[0]),k=e.computed(()=>({position:e.unref(s),top:`${e.unref(f)||0}px`,left:`${e.unref(p)||0}px`,zIndex:m})),b=e.computed(()=>{if(!n.showArrow)return{};const{arrow:y}=e.unref(d);return{[`--${g.namespace.value}-tooltip-v2-arrow-x`]:`${y==null?void 0:y.x}px`||"",[`--${g.namespace.value}-tooltip-v2-arrow-y`]:`${y==null?void 0:y.y}px`||""}}),S=e.computed(()=>[g.e("content"),g.is("dark",n.effect==="dark"),g.is(e.unref(s)),n.contentClass]);return e.watch(i,()=>h()),e.watch(()=>n.placement,y=>a.value=y),e.onMounted(()=>{e.watch(()=>n.reference||o.value,y=>{c.value=y||void 0},{immediate:!0})}),e.provide(Kp,{arrowRef:i}),(y,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"contentRef",ref:u,style:e.normalizeStyle(e.unref(k)),"data-tooltip-v2-root":""},[y.nowrap?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("div",{key:0,"data-side":e.unref(v),class:e.normalizeClass(e.unref(S))},[e.renderSlot(y.$slots,"default",{contentStyle:e.unref(k),contentClass:e.unref(S)}),e.createVNode(e.unref(MD),{id:e.unref(l),role:"tooltip"},{default:e.withCtx(()=>[y.ariaLabel?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(y.ariaLabel),1)],64)):e.renderSlot(y.$slots,"default",{key:1})]),_:3},8,["id"]),e.renderSlot(y.$slots,"arrow",{style:e.normalizeStyle(e.unref(b)),side:e.unref(v)})],10,["data-side"]))],4))}});var Su=r._export_sfc(LD,[["__file","content.vue"]]);const FD=r.buildProps({setRef:{type:r.definePropType(Function),required:!0},onlyChild:Boolean});var KD=e.defineComponent({props:FD,setup(t,{slots:n}){const o=e.ref(),l=ea(o,a=>{a?t.setRef(a.nextElementSibling):t.setRef(null)});return()=>{var a;const[s]=((a=n.default)==null?void 0:a.call(n))||[],i=t.onlyChild?D.ensureOnlyChild(s.children):s.children;return e.createVNode(e.Fragment,{ref:l},[i])}}});const HD=e.defineComponent({name:"ElTooltipV2Trigger"}),jD=e.defineComponent({...HD,props:{...Lp,...Si},setup(t){const n=t,{onClose:o,onOpen:l,onDelayOpen:a,triggerRef:s,contentId:i}=e.inject(ra);let c=!1;const u=S=>{s.value=S},d=()=>{c=!1},p=We(n.onMouseEnter,a),f=We(n.onMouseLeave,o),h=We(n.onMouseDown,()=>{o(),c=!0,document.addEventListener("mouseup",d,{once:!0})}),m=We(n.onFocus,()=>{c||l()}),g=We(n.onBlur,o),v=We(n.onClick,S=>{S.detail===0&&o()}),k={blur:g,click:v,focus:m,mousedown:h,mouseenter:p,mouseleave:f},b=(S,y,C)=>{S&&Object.entries(y).forEach(([E,w])=>{S[C](E,w)})};return e.watch(s,(S,y)=>{b(S,k,"addEventListener"),b(y,k,"removeEventListener"),S&&S.setAttribute("aria-describedby",i.value)}),e.onBeforeUnmount(()=>{b(s.value,k,"removeEventListener"),document.removeEventListener("mouseup",d)}),(S,y)=>S.nowrap?(e.openBlock(),e.createBlock(e.unref(KD),{key:0,"set-ref":u,"only-child":""},{default:e.withCtx(()=>[e.renderSlot(S.$slots,"default")]),_:3})):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,ref_key:"triggerRef",ref:s},S.$attrs),[e.renderSlot(S.$slots,"default")],16))}});var WD=r._export_sfc(jD,[["__file","trigger.vue"]]);const UD=e.defineComponent({name:"ElTooltipV2"}),qD=e.defineComponent({...UD,props:OP,setup(t){const n=t,o=e.toRefs(n),l=e.reactive(D.pick(o,Object.keys(ki))),a=e.reactive(D.pick(o,Object.keys(wi))),s=e.reactive(D.pick(o,Object.keys(Ei))),i=e.reactive(D.pick(o,Object.keys(Si)));return(c,u)=>(e.openBlock(),e.createBlock(AP,e.normalizeProps(e.guardReactiveProps(s)),{default:e.withCtx(({open:d})=>[e.createVNode(WD,e.mergeProps(i,{nowrap:""}),{default:e.withCtx(()=>[e.renderSlot(c.$slots,"trigger")]),_:3},16),e.createVNode(e.unref(so),{to:c.to,disabled:!c.teleported},{default:e.withCtx(()=>[c.fullTransition?(e.openBlock(),e.createBlock(e.Transition,e.normalizeProps(e.mergeProps({key:0},c.transitionProps)),{default:e.withCtx(()=>[c.alwaysOn||d?(e.openBlock(),e.createBlock(Su,e.normalizeProps(e.mergeProps({key:0},a)),{arrow:e.withCtx(({style:p,side:f})=>[c.showArrow?(e.openBlock(),e.createBlock(vu,e.mergeProps({key:0},l,{style:p,side:f}),null,16,["style","side"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16)):e.createCommentVNode("v-if",!0)]),_:2},1040)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.alwaysOn||d?(e.openBlock(),e.createBlock(Su,e.normalizeProps(e.mergeProps({key:0},a)),{arrow:e.withCtx(({style:p,side:f})=>[c.showArrow?(e.openBlock(),e.createBlock(vu,e.mergeProps({key:0},l,{style:p,side:f}),null,16,["style","side"])):e.createCommentVNode("v-if",!0)]),default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},16)):e.createCommentVNode("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var YD=r._export_sfc(qD,[["__file","tooltip.vue"]]);const GD=r.withInstall(YD),nm="left-check-change",om="right-check-change",zn=r.buildProps({data:{type:r.definePropType(Array),default:()=>[]},titles:{type:r.definePropType(Array),default:()=>[]},buttonTexts:{type:r.definePropType(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:r.definePropType(Function)},leftDefaultChecked:{type:r.definePropType(Array),default:()=>[]},rightDefaultChecked:{type:r.definePropType(Array),default:()=>[]},renderContent:{type:r.definePropType(Function)},modelValue:{type:r.definePropType(Array),default:()=>[]},format:{type:r.definePropType(Object),default:()=>({})},filterable:Boolean,props:{type:r.definePropType(Object),default:()=>r.mutable({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),vs=(t,n)=>[t,n].every(r.isArray$1)||r.isArray$1(t)&&r.isNil(n),XD={[D.CHANGE_EVENT]:(t,n,o)=>[t,o].every(r.isArray$1)&&["left","right"].includes(n),[D.UPDATE_MODEL_EVENT]:t=>r.isArray$1(t),[nm]:vs,[om]:vs},gs="checked-change",JD=r.buildProps({data:zn.data,optionRender:{type:r.definePropType(Function)},placeholder:String,title:String,filterable:Boolean,format:zn.format,filterMethod:zn.filterMethod,defaultChecked:zn.leftDefaultChecked,props:zn.props}),ZD={[gs]:vs},zl=t=>{const n={label:"label",key:"key",disabled:"disabled"};return e.computed(()=>({...n,...t.props}))},QD=(t,n,o)=>{const l=zl(t),a=e.computed(()=>t.data.filter(p=>r.isFunction(t.filterMethod)?t.filterMethod(n.query,p):String(p[l.value.label]||p[l.value.key]).toLowerCase().includes(n.query.toLowerCase()))),s=e.computed(()=>a.value.filter(p=>!p[l.value.disabled])),i=e.computed(()=>{const p=n.checked.length,f=t.data.length,{noChecked:h,hasChecked:m}=t.format;return h&&m?p>0?m.replace(/\${checked}/g,p.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${p}/${f}`}),c=e.computed(()=>{const p=n.checked.length;return p>0&&p<s.value.length}),u=()=>{const p=s.value.map(f=>f[l.value.key]);n.allChecked=p.length>0&&p.every(f=>n.checked.includes(f))},d=p=>{n.checked=p?s.value.map(f=>f[l.value.key]):[]};return e.watch(()=>n.checked,(p,f)=>{if(u(),n.checkChangeByUser){const h=p.concat(f).filter(m=>!p.includes(m)||!f.includes(m));o(gs,p,h)}else o(gs,p),n.checkChangeByUser=!0}),e.watch(s,()=>{u()}),e.watch(()=>t.data,()=>{const p=[],f=a.value.map(h=>h[l.value.key]);n.checked.forEach(h=>{f.includes(h)&&p.push(h)}),n.checkChangeByUser=!1,n.checked=p}),e.watch(()=>t.defaultChecked,(p,f)=>{if(f&&p.length===f.length&&p.every(g=>f.includes(g)))return;const h=[],m=s.value.map(g=>g[l.value.key]);p.forEach(g=>{m.includes(g)&&h.push(g)}),n.checkChangeByUser=!1,n.checked=h},{immediate:!0}),{filteredData:a,checkableData:s,checkedSummary:i,isIndeterminate:c,updateAllChecked:u,handleAllCheckedChange:d}},e$=e.defineComponent({name:"ElTransferPanel"}),t$=e.defineComponent({...e$,props:JD,emits:ZD,setup(t,{expose:n,emit:o}){const l=t,a=e.useSlots(),s=({option:y})=>y,{t:i}=r.useLocale(),c=r.useNamespace("transfer"),u=e.reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=zl(l),{filteredData:p,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:m}=QD(l,u,o),g=e.computed(()=>!r.isEmpty(u.query)&&r.isEmpty(p.value)),v=e.computed(()=>!r.isEmpty(a.default()[0].children)),{checked:k,allChecked:b,query:S}=e.toRefs(u);return n({query:S}),(y,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(c).b("panel"))},[e.createElementVNode("p",{class:e.normalizeClass(e.unref(c).be("panel","header"))},[e.createVNode(e.unref(Bt),{modelValue:e.unref(b),"onUpdate:modelValue":E=>e.isRef(b)?b.value=E:null,indeterminate:e.unref(h),"validate-event":!1,onChange:e.unref(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title)+" ",1),e.createElementVNode("span",null,e.toDisplayString(e.unref(f)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(c).be("panel","body"),e.unref(c).is("with-footer",e.unref(v))])},[y.filterable?(e.openBlock(),e.createBlock(e.unref(D.ElInput),{key:0,modelValue:e.unref(S),"onUpdate:modelValue":E=>e.isRef(S)?S.value=E:null,class:e.normalizeClass(e.unref(c).be("panel","filter")),size:"default",placeholder:y.placeholder,"prefix-icon":e.unref(r.search_default),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(e.unref(Ad),{modelValue:e.unref(k),"onUpdate:modelValue":E=>e.isRef(k)?k.value=E:null,"validate-event":!1,class:e.normalizeClass([e.unref(c).is("filterable",y.filterable),e.unref(c).be("panel","list")])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),E=>(e.openBlock(),e.createBlock(e.unref(Bt),{key:E[e.unref(d).key],class:e.normalizeClass(e.unref(c).be("panel","item")),value:E[e.unref(d).key],disabled:E[e.unref(d).disabled],"validate-event":!1},{default:e.withCtx(()=>{var w;return[e.createVNode(s,{option:(w=y.optionRender)==null?void 0:w.call(y,E)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[e.vShow,!e.unref(g)&&!e.unref(r.isEmpty)(y.data)]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).be("panel","empty"))},[e.renderSlot(y.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(g)?e.unref(i)("el.transfer.noMatch"):e.unref(i)("el.transfer.noData")),1)])],2),[[e.vShow,e.unref(g)||e.unref(r.isEmpty)(y.data)]])],2),e.unref(v)?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(e.unref(c).be("panel","footer"))},[e.renderSlot(y.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],2))}});var Nu=r._export_sfc(t$,[["__file","transfer-panel.vue"]]);const n$=t=>{const n=zl(t),o=e.computed(()=>t.data.reduce((s,i)=>(s[i[n.value.key]]=i)&&s,{})),l=e.computed(()=>t.data.filter(s=>!t.modelValue.includes(s[n.value.key]))),a=e.computed(()=>t.targetOrder==="original"?t.data.filter(s=>t.modelValue.includes(s[n.value.key])):t.modelValue.reduce((s,i)=>{const c=o.value[i];return c&&s.push(c),s},[]));return{sourceData:l,targetData:a}},o$=(t,n,o)=>{const l=zl(t),a=(c,u,d)=>{o(D.UPDATE_MODEL_EVENT,c),o(D.CHANGE_EVENT,c,u,d)};return{addToLeft:()=>{const c=t.modelValue.slice();n.rightChecked.forEach(u=>{const d=c.indexOf(u);d>-1&&c.splice(d,1)}),a(c,"left",n.rightChecked)},addToRight:()=>{let c=t.modelValue.slice();const u=t.data.filter(d=>{const p=d[l.value.key];return n.leftChecked.includes(p)&&!t.modelValue.includes(p)}).map(d=>d[l.value.key]);c=t.targetOrder==="unshift"?u.concat(c):c.concat(u),t.targetOrder==="original"&&(c=t.data.filter(d=>c.includes(d[l.value.key])).map(d=>d[l.value.key])),a(c,"right",n.leftChecked)}}},l$=(t,n)=>({onSourceCheckedChange:(a,s)=>{t.leftChecked=a,s&&n(nm,a,s)},onTargetCheckedChange:(a,s)=>{t.rightChecked=a,s&&n(om,a,s)}}),r$=e.defineComponent({name:"ElTransfer"}),a$=e.defineComponent({...r$,props:zn,emits:XD,setup(t,{expose:n,emit:o}){const l=t,a=e.useSlots(),{t:s}=r.useLocale(),i=r.useNamespace("transfer"),{formItem:c}=D.useFormItem(),u=e.reactive({leftChecked:[],rightChecked:[]}),d=zl(l),{sourceData:p,targetData:f}=n$(l),{onSourceCheckedChange:h,onTargetCheckedChange:m}=l$(u,o),{addToLeft:g,addToRight:v}=o$(l,u,o),k=e.ref(),b=e.ref(),S=T=>{switch(T){case"left":k.value.query="";break;case"right":b.value.query="";break}},y=e.computed(()=>l.buttonTexts.length===2),C=e.computed(()=>l.titles[0]||s("el.transfer.titles.0")),E=e.computed(()=>l.titles[1]||s("el.transfer.titles.1")),w=e.computed(()=>l.filterPlaceholder||s("el.transfer.filterPlaceholder"));e.watch(()=>l.modelValue,()=>{var T;l.validateEvent&&((T=c==null?void 0:c.validate)==null||T.call(c,"change").catch(N=>r.debugWarn(N)))});const V=e.computed(()=>T=>{var N;if(l.renderContent)return l.renderContent(e.h,T);const _=(((N=a.default)==null?void 0:N.call(a,{option:T}))||[]).filter(P=>P.type!==e.Comment);return _.length?_:e.h("span",T[d.value.label]||T[d.value.key])});return n({clearQuery:S,leftPanel:k,rightPanel:b}),(T,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(i).b())},[e.createVNode(Nu,{ref_key:"leftPanel",ref:k,data:e.unref(p),"option-render":e.unref(V),placeholder:e.unref(w),title:e.unref(C),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:l.props,onCheckedChange:e.unref(h)},{empty:e.withCtx(()=>[e.renderSlot(T.$slots,"left-empty")]),default:e.withCtx(()=>[e.renderSlot(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(i).e("buttons"))},[e.createVNode(e.unref(D.ElButton),{type:"primary",class:e.normalizeClass([e.unref(i).e("button"),e.unref(i).is("with-texts",e.unref(y))]),disabled:e.unref(r.isEmpty)(u.rightChecked),onClick:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.arrow_left_default))]),_:1}),e.unref(r.isUndefined)(T.buttonTexts[0])?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),e.createVNode(e.unref(D.ElButton),{type:"primary",class:e.normalizeClass([e.unref(i).e("button"),e.unref(i).is("with-texts",e.unref(y))]),disabled:e.unref(r.isEmpty)(u.leftChecked),onClick:e.unref(v)},{default:e.withCtx(()=>[e.unref(r.isUndefined)(T.buttonTexts[1])?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(T.buttonTexts[1]),1)),e.createVNode(e.unref(r.ElIcon),null,{default:e.withCtx(()=>[e.createVNode(e.unref(r.arrow_right_default))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),e.createVNode(Nu,{ref_key:"rightPanel",ref:b,data:e.unref(f),"option-render":e.unref(V),placeholder:e.unref(w),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:e.unref(E),"default-checked":T.rightDefaultChecked,props:l.props,onCheckedChange:e.unref(m)},{empty:e.withCtx(()=>[e.renderSlot(T.$slots,"right-empty")]),default:e.withCtx(()=>[e.renderSlot(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var s$=r._export_sfc(a$,[["__file","transfer.vue"]]);const i$=r.withInstall(s$),Wn="$treeNodeId",Tu=function(t,n){!n||n[Wn]||Object.defineProperty(n,Wn,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},Di=(t,n)=>n==null?void 0:n[t||Wn],ys=(t,n,o)=>{const l=t.value.currentNode;o();const a=t.value.currentNode;l!==a&&n("current-change",a?a.data:null,a)},bs=t=>{let n=!0,o=!0,l=!0;for(let a=0,s=t.length;a<s;a++){const i=t[a];(i.checked!==!0||i.indeterminate)&&(n=!1,i.disabled||(l=!1)),(i.checked!==!1||i.indeterminate)&&(o=!1)}return{all:n,none:o,allWithoutDisable:l,half:!n&&!o}},rl=function(t){if(t.childNodes.length===0||t.loading)return;const{all:n,none:o,half:l}=bs(t.childNodes);n?(t.checked=!0,t.indeterminate=!1):l?(t.checked=!1,t.indeterminate=!0):o&&(t.checked=!1,t.indeterminate=!1);const a=t.parent;!a||a.level===0||t.store.checkStrictly||rl(a)},Gl=function(t,n){const o=t.store.props,l=t.data||{},a=o[n];if(r.isFunction(a))return a(l,t);if(r.isString(a))return l[a];if(r.isUndefined(a)){const s=l[n];return r.isUndefined(s)?"":s}};let c$=0,Cs=class Cr{constructor(n){this.id=c$++,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 o in n)r.hasOwn(n,o)&&(this[o]=n[o]);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 o=n.props;if(o&&typeof o.isLeaf<"u"){const s=Gl(this,"isLeaf");r.isBoolean(s)&&(this.isLeafByUser=s)}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.isLeafByUser&&this.expand(),r.isArray$1(this.data)||Tu(this,this.data),!this.data)return;const l=n.defaultExpandedKeys,a=n.key;a&&l&&l.includes(this.key)&&this.expand(null,n.autoExpandParent),a&&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){r.isArray$1(n)||Tu(this,n),this.data=n,this.childNodes=[];let o;this.level===0&&r.isArray$1(this.data)?o=this.data:o=Gl(this,"children")||[];for(let l=0,a=o.length;l<a;l++)this.insertChild({data:o[l]})}get label(){return Gl(this,"label")}get key(){const n=this.store.key;return this.data?this.data[n]:null}get disabled(){return Gl(this,"disabled")}get nextSibling(){const n=this.parent;if(n){const o=n.childNodes.indexOf(this);if(o>-1)return n.childNodes[o+1]}return null}get previousSibling(){const n=this.parent;if(n){const o=n.childNodes.indexOf(this);if(o>-1)return o>0?n.childNodes[o-1]:null}return null}contains(n,o=!0){return(this.childNodes||[]).some(l=>l===n||o&&l.contains(n))}remove(){const n=this.parent;n&&n.removeChild(this)}insertChild(n,o,l){if(!n)throw new Error("InsertChild error: child is required.");if(!(n instanceof Cr)){if(!l){const a=this.getChildren(!0);a.includes(n.data)||(r.isUndefined(o)||o<0?a.push(n.data):a.splice(o,0,n.data))}Object.assign(n,{parent:this,store:this.store}),n=e.reactive(new Cr(n)),n instanceof Cr&&n.initialize()}n.level=this.level+1,r.isUndefined(o)||o<0?this.childNodes.push(n):this.childNodes.splice(o,0,n),this.updateLeafState()}insertBefore(n,o){let l;o&&(l=this.childNodes.indexOf(o)),this.insertChild(n,l)}insertAfter(n,o){let l;o&&(l=this.childNodes.indexOf(o),l!==-1&&(l+=1)),this.insertChild(n,l)}removeChild(n){const o=this.getChildren()||[],l=o.indexOf(n.data);l>-1&&o.splice(l,1);const a=this.childNodes.indexOf(n);a>-1&&(this.store&&this.store.deregisterNode(n),n.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(n){let o=null;for(let l=0;l<this.childNodes.length;l++)if(this.childNodes[l].data===n){o=this.childNodes[l];break}o&&this.removeChild(o)}expand(n,o){const l=()=>{if(o){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,n&&n(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{r.isArray$1(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||rl(this),l())}):l()}doCreateChildren(n,o={}){n.forEach(l=>{this.insertChild(Object.assign({data:l},o),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,o,l,a){if(this.indeterminate=n==="half",this.checked=n===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:i,allWithoutDisable:c}=bs(this.childNodes);!this.isLeaf&&!i&&c&&(this.checked=!1,n=!1);const u=()=>{if(o){const d=this.childNodes;for(let h=0,m=d.length;h<m;h++){const g=d[h];a=a||n!==!1;const v=g.disabled?g.checked:a;g.setChecked(v,o,!0,a)}const{half:p,all:f}=bs(d);f||(this.checked=f,this.indeterminate=p)}};if(this.shouldLoadData()){this.loadData(()=>{u(),rl(this)},{checked:n!==!1});return}else u()}const s=this.parent;!s||s.level===0||l||rl(s)}getChildren(n=!1){if(this.level===0)return this.data;const o=this.data;if(!o)return null;const l=this.store.props;let a="children";return l&&(a=l.children||"children"),r.isUndefined(o[a])&&(o[a]=null),n&&!o[a]&&(o[a]=[]),o[a]}updateChildren(){const n=this.getChildren()||[],o=this.childNodes.map(s=>s.data),l={},a=[];n.forEach((s,i)=>{const c=s[Wn];!!c&&o.findIndex(d=>d[Wn]===c)>=0?l[c]={index:i,data:s}:a.push({index:i,data:s})}),this.store.lazy||o.forEach(s=>{l[s[Wn]]||this.removeChildByData(s)}),a.forEach(({index:s,data:i})=>{this.insertChild({data:i},s)}),this.updateLeafState()}loadData(n,o={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(o).length)){this.loading=!0;const l=s=>{this.childNodes=[],this.doCreateChildren(s,o),this.loaded=!0,this.loading=!1,this.updateLeafState(),n&&n.call(this,s)},a=()=>{this.loading=!1};this.store.load(this,l,a)}else n&&n.call(this)}eachNode(n){const o=[this];for(;o.length;){const l=o.shift();o.unshift(...l.childNodes),n(l)}}reInitChecked(){this.store.checkStrictly||rl(this)}};class u${constructor(n){this.currentNode=null,this.currentNodeKey=null;for(const o in n)r.hasOwn(n,o)&&(this[o]=n[o]);this.nodesMap={}}initialize(){if(this.root=new Cs({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const n=this.load;n(this.root,o=>{this.root.doCreateChildren(o),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(n){const o=this.filterNodeMethod,l=this.lazy,a=async function(s){const i=s.root?s.root.childNodes:s.childNodes;for(const[c,u]of i.entries())u.visible=o.call(u,n,u.data,u),c%80===0&&c>0&&await e.nextTick(),await a(u);if(!s.visible&&i.length){let c=!0;c=!i.some(u=>u.visible),s.root?s.root.visible=c===!1:s.visible=c===!1}n&&s.visible&&!s.isLeaf&&(!l||s.loaded)&&s.expand()};a(this)}setData(n){n!==this.root.data?(this.nodesMap={},this.root.setData(n),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(n){if(n instanceof Cs)return n;const o=r.isObject$1(n)?Di(this.key,n):n;return this.nodesMap[o]||null}insertBefore(n,o){const l=this.getNode(o);l.parent.insertBefore({data:n},l)}insertAfter(n,o){const l=this.getNode(o);l.parent.insertAfter({data:n},l)}remove(n){const o=this.getNode(n);o&&o.parent&&(o===this.currentNode&&(this.currentNode=null),o.parent.removeChild(o))}append(n,o){const l=r.isPropAbsent(o)?this.root:this.getNode(o);l&&l.insertChild({data:n})}_initDefaultCheckedNodes(){const n=this.defaultCheckedKeys||[],o=this.nodesMap;n.forEach(l=>{const a=o[l];a&&a.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 o=this.key;!n||!n.data||(o?n.key!==void 0&&(this.nodesMap[n.key]=n):this.nodesMap[n.id]=n)}deregisterNode(n){!this.key||!n||!n.data||(n.childNodes.forEach(l=>{this.deregisterNode(l)}),delete this.nodesMap[n.key])}getCheckedNodes(n=!1,o=!1){const l=[],a=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(c=>{(c.checked||o&&c.indeterminate)&&(!n||n&&c.isLeaf)&&l.push(c.data),a(c)})};return a(this),l}getCheckedKeys(n=!1){return this.getCheckedNodes(n).map(o=>(o||{})[this.key])}getHalfCheckedNodes(){const n=[],o=function(l){(l.root?l.root.childNodes:l.childNodes).forEach(s=>{s.indeterminate&&n.push(s.data),o(s)})};return o(this),n}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(n=>(n||{})[this.key])}_getAllNodes(){const n=[],o=this.nodesMap;for(const l in o)r.hasOwn(o,l)&&n.push(o[l]);return n}updateChildren(n,o){const l=this.nodesMap[n];if(!l)return;const a=l.childNodes;for(let s=a.length-1;s>=0;s--){const i=a[s];this.remove(i.data)}for(let s=0,i=o.length;s<i;s++){const c=o[s];this.append(c,l.data)}}_setCheckedKeys(n,o=!1,l){const a=this._getAllNodes().sort((u,d)=>u.level-d.level),s=Object.create(null),i=Object.keys(l);a.forEach(u=>u.setChecked(!1,!1));const c=u=>{u.childNodes.forEach(d=>{var p;s[d.data[n]]=!0,(p=d.childNodes)!=null&&p.length&&c(d)})};for(let u=0,d=a.length;u<d;u++){const p=a[u],f=p.data[n].toString();if(!i.includes(f)){p.checked&&!s[f]&&p.setChecked(!1,!1);continue}if(p.childNodes.length&&c(p),p.isLeaf||this.checkStrictly){p.setChecked(!0,!1);continue}if(p.setChecked(!0,!0),o){p.setChecked(!1,!1);const m=function(g){g.childNodes.forEach(k=>{k.isLeaf||k.setChecked(!1,!1),m(k)})};m(p)}}}setCheckedNodes(n,o=!1){const l=this.key,a={};n.forEach(s=>{a[(s||{})[l]]=!0}),this._setCheckedKeys(l,o,a)}setCheckedKeys(n,o=!1){this.defaultCheckedKeys=n;const l=this.key,a={};n.forEach(s=>{a[s]=!0}),this._setCheckedKeys(l,o,a)}setDefaultExpandedKeys(n){n=n||[],this.defaultExpandedKeys=n,n.forEach(o=>{const l=this.getNode(o);l&&l.expand(null,this.autoExpandParent)})}setChecked(n,o,l){const a=this.getNode(n);a&&a.setChecked(!!o,l)}getCurrentNode(){return this.currentNode}setCurrentNode(n){const o=this.currentNode;o&&(o.isCurrent=!1),this.currentNode=n,this.currentNode.isCurrent=!0}setUserCurrentNode(n,o=!0){const l=n[this.key],a=this.nodesMap[l];this.setCurrentNode(a),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(n,o=!0){if(this.currentNodeKey=n,r.isPropAbsent(n)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const l=this.getNode(n);l&&(this.setCurrentNode(l),o&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const $i="RootTree",lm="NodeInstance",_u="TreeNodeMap",d$=e.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const n=r.useNamespace("tree"),o=e.inject(lm),l=e.inject($i);return()=>{const a=t.node,{data:s,store:i}=a;return t.renderContent?t.renderContent(e.h,{_self:o,node:a,data:s,store:i}):e.renderSlot(l.ctx.slots,"default",{node:a,data:s},()=>[e.h(Ci,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[a.label])])}}});var f$=r._export_sfc(d$,[["__file","tree-node-content.vue"]]);function rm(t){const n=e.inject(_u,null),o={treeNodeExpand:l=>{t.node!==l&&t.node.collapse()},children:[]};return n&&n.children.push(o),e.provide(_u,o),{broadcastExpanded:l=>{if(t.accordion)for(const a of o.children)a.treeNodeExpand(l)}}}const am=Symbol("dragEvents");function p$({props:t,ctx:n,el$:o,dropIndicator$:l,store:a}){const s=r.useNamespace("tree"),i=e.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),c=({event:p,treeNode:f})=>{if(r.isFunction(t.allowDrag)&&!t.allowDrag(f.node))return p.preventDefault(),!1;p.dataTransfer.effectAllowed="move";try{p.dataTransfer.setData("text/plain","")}catch{}i.value.draggingNode=f,n.emit("node-drag-start",f.node,p)},u=({event:p,treeNode:f})=>{const h=f,m=i.value.dropNode;m&&m.node.id!==h.node.id&&r.removeClass(m.$el,s.is("drop-inner"));const g=i.value.draggingNode;if(!g||!h)return;let v=!0,k=!0,b=!0,S=!0;r.isFunction(t.allowDrop)&&(v=t.allowDrop(g.node,h.node,"prev"),S=k=t.allowDrop(g.node,h.node,"inner"),b=t.allowDrop(g.node,h.node,"next")),p.dataTransfer.dropEffect=k||v||b?"move":"none",(v||k||b)&&(m==null?void 0:m.node.id)!==h.node.id&&(m&&n.emit("node-drag-leave",g.node,m.node,p),n.emit("node-drag-enter",g.node,h.node,p)),v||k||b?i.value.dropNode=h:i.value.dropNode=null,h.node.nextSibling===g.node&&(b=!1),h.node.previousSibling===g.node&&(v=!1),h.node.contains(g.node,!1)&&(k=!1),(g.node===h.node||g.node.contains(h.node))&&(v=!1,k=!1,b=!1);const y=h.$el.querySelector(`.${s.be("node","content")}`).getBoundingClientRect(),C=o.value.getBoundingClientRect();let E;const w=v?k?.25:b?.45:1:-1,V=b?k?.75:v?.55:0:1;let T=-9999;const N=p.clientY-y.top;N<y.height*w?E="before":N>y.height*V?E="after":k?E="inner":E="none";const _=h.$el.querySelector(`.${s.be("node","expand-icon")}`).getBoundingClientRect(),P=l.value;E==="before"?T=_.top-C.top:E==="after"&&(T=_.bottom-C.top),P.style.top=`${T}px`,P.style.left=`${_.right-C.left}px`,E==="inner"?r.addClass(h.$el,s.is("drop-inner")):r.removeClass(h.$el,s.is("drop-inner")),i.value.showDropIndicator=E==="before"||E==="after",i.value.allowDrop=i.value.showDropIndicator||S,i.value.dropType=E,n.emit("node-drag-over",g.node,h.node,p)},d=p=>{const{draggingNode:f,dropType:h,dropNode:m}=i.value;if(p.preventDefault(),p.dataTransfer&&(p.dataTransfer.dropEffect="move"),f&&m){const g={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?m.node.parent.insertBefore(g,m.node):h==="after"?m.node.parent.insertAfter(g,m.node):h==="inner"&&m.node.insertChild(g),h!=="none"&&(a.value.registerNode(g),a.value.key&&f.node.eachNode(v=>{var k;(k=a.value.nodesMap[v.data[a.value.key]])==null||k.setChecked(v.checked,!a.value.checkStrictly)})),r.removeClass(m.$el,s.is("drop-inner")),n.emit("node-drag-end",f.node,m.node,h,p),h!=="none"&&n.emit("node-drop",f.node,m.node,h,p)}f&&!m&&n.emit("node-drag-end",f.node,null,h,p),i.value.showDropIndicator=!1,i.value.draggingNode=null,i.value.dropNode=null,i.value.allowDrop=!0};return e.provide(am,{treeNodeDragStart:c,treeNodeDragOver:u,treeNodeDragEnd:d}),{dragState:i}}const m$=e.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:Zr,ElCheckbox:Bt,NodeContent:f$,ElIcon:r.ElIcon,Loading:r.loading_default},props:{node:{type:Cs,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,n){const o=r.useNamespace("tree"),{broadcastExpanded:l}=rm(t),a=e.inject($i),s=e.ref(!1),i=e.ref(!1),c=e.ref(),u=e.ref(),d=e.ref(),p=e.inject(am),f=e.getCurrentInstance();e.provide(lm,f),a||r.debugWarn("Tree","Can not find node's tree."),t.node.expanded&&(s.value=!0,i.value=!0);const h=a.props.props.children||"children";e.watch(()=>{var N;const _=(N=t.node.data)==null?void 0:N[h];return _&&[..._]},()=>{t.node.updateChildren()}),e.watch(()=>t.node.indeterminate,N=>{v(t.node.checked,N)}),e.watch(()=>t.node.checked,N=>{v(N,t.node.indeterminate)}),e.watch(()=>t.node.childNodes.length,()=>t.node.reInitChecked()),e.watch(()=>t.node.expanded,N=>{e.nextTick(()=>s.value=N),N&&(i.value=!0)});const m=N=>Di(a.props.nodeKey,N.data),g=N=>{const _=t.props.class;if(!_)return{};let P;if(r.isFunction(_)){const{data:B}=N;P=_(B,N)}else P=_;return r.isString(P)?{[P]:!0}:P},v=(N,_)=>{(c.value!==N||u.value!==_)&&a.ctx.emit("check-change",t.node.data,N,_),c.value=N,u.value=_},k=N=>{ys(a.store,a.ctx.emit,()=>{var _;if((_=a==null?void 0:a.props)==null?void 0:_.nodeKey){const B=m(t.node);a.store.value.setCurrentNodeKey(B)}else a.store.value.setCurrentNode(t.node)}),a.currentNode.value=t.node,a.props.expandOnClickNode&&S(),(a.props.checkOnClickNode||t.node.isLeaf&&a.props.checkOnClickLeaf&&t.showCheckbox)&&!t.node.disabled&&y(!t.node.checked),a.ctx.emit("node-click",t.node.data,t.node,f,N)},b=N=>{var _;(_=a.instance.vnode.props)!=null&&_.onNodeContextmenu&&(N.stopPropagation(),N.preventDefault()),a.ctx.emit("node-contextmenu",N,t.node.data,t.node,f)},S=()=>{t.node.isLeaf||(s.value?(a.ctx.emit("node-collapse",t.node.data,t.node,f),t.node.collapse()):t.node.expand(()=>{n.emit("node-expand",t.node.data,t.node,f)}))},y=N=>{t.node.setChecked(N,!(a!=null&&a.props.checkStrictly)),e.nextTick(()=>{const _=a.store.value;a.ctx.emit("check",t.node.data,{checkedNodes:_.getCheckedNodes(),checkedKeys:_.getCheckedKeys(),halfCheckedNodes:_.getHalfCheckedNodes(),halfCheckedKeys:_.getHalfCheckedKeys()})})};return{ns:o,node$:d,tree:a,expanded:s,childNodeRendered:i,oldChecked:c,oldIndeterminate:u,getNodeKey:m,getNodeClass:g,handleSelectChange:v,handleClick:k,handleContextMenu:b,handleExpandIconClick:S,handleCheckChange:y,handleChildNodeExpand:(N,_,P)=>{l(_),a.ctx.emit("node-expand",N,_,P)},handleDragStart:N=>{a.props.draggable&&p.treeNodeDragStart({event:N,treeNode:t})},handleDragOver:N=>{N.preventDefault(),a.props.draggable&&p.treeNodeDragOver({event:N,treeNode:{$el:d.value,node:t.node}})},handleDrop:N=>{N.preventDefault()},handleDragEnd:N=>{a.props.draggable&&p.treeNodeDragEnd(N)},CaretRight:r.caret_right_default}}});function h$(t,n,o,l,a,s){const i=e.resolveComponent("el-icon"),c=e.resolveComponent("el-checkbox"),u=e.resolveComponent("loading"),d=e.resolveComponent("node-content"),p=e.resolveComponent("el-tree-node"),f=e.resolveComponent("el-collapse-transition");return e.withDirectives((e.openBlock(),e.createElementBlock("div",{ref:"node$",class:e.normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e.withModifiers(t.handleClick,["stop"]),onContextmenu:t.handleContextMenu,onDragstart:e.withModifiers(t.handleDragStart,["stop"]),onDragover:e.withModifiers(t.handleDragOver,["stop"]),onDragend:e.withModifiers(t.handleDragEnd,["stop"]),onDrop:e.withModifiers(t.handleDrop,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(t.ns.be("node","content")),style:e.normalizeStyle({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(e.openBlock(),e.createBlock(i,{key:0,class:e.normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:e.withModifiers(t.handleExpandIconClick,["stop"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0),t.showCheckbox?(e.openBlock(),e.createBlock(c,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e.withModifiers(()=>{},["stop"]),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):e.createCommentVNode("v-if",!0),t.node.loading?(e.openBlock(),e.createBlock(i,{key:2,class:e.normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:e.withCtx(()=>[e.createVNode(u)]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createVNode(d,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),e.createVNode(f,null,{default:e.withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded,onClick:e.withModifiers(()=>{},["stop"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.childNodes,h=>(e.openBlock(),e.createBlock(p,{key:t.getNodeKey(h),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:h,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded","onClick"])),[[e.vShow,t.expanded]]):e.createCommentVNode("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[e.vShow,t.node.visible]])}var v$=r._export_sfc(m$,[["render",h$],["__file","tree-node.vue"]]);function g$({el$:t},n){const o=r.useNamespace("tree");e.onMounted(()=>{a()}),e.onUpdated(()=>{Array.from(t.value.querySelectorAll("input[type=checkbox]")).forEach(i=>{i.setAttribute("tabindex","-1")})});const l=s=>{const i=s.target;if(!i.className.includes(o.b("node")))return;const c=s.code,u=Array.from(t.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`)),d=u.indexOf(i);let p;if([r.EVENT_CODE.up,r.EVENT_CODE.down].includes(c)){if(s.preventDefault(),c===r.EVENT_CODE.up){p=d===-1?0:d!==0?d-1:u.length-1;const h=p;for(;!n.value.getNode(u[p].dataset.key).canFocus;){if(p--,p===h){p=-1;break}p<0&&(p=u.length-1)}}else{p=d===-1?0:d<u.length-1?d+1:0;const h=p;for(;!n.value.getNode(u[p].dataset.key).canFocus;){if(p++,p===h){p=-1;break}p>=u.length&&(p=0)}}p!==-1&&u[p].focus()}[r.EVENT_CODE.left,r.EVENT_CODE.right].includes(c)&&(s.preventDefault(),i.click());const f=i.querySelector('[type="checkbox"]');[r.EVENT_CODE.enter,r.EVENT_CODE.numpadEnter,r.EVENT_CODE.space].includes(c)&&f&&(s.preventDefault(),f.click())};r.useEventListener(t,"keydown",l);const a=()=>{var s;const i=Array.from(t.value.querySelectorAll(`.${o.is("focusable")}[role=treeitem]`));Array.from(t.value.querySelectorAll("input[type=checkbox]")).forEach(d=>{d.setAttribute("tabindex","-1")});const u=t.value.querySelectorAll(`.${o.is("checked")}[role=treeitem]`);if(u.length){u[0].setAttribute("tabindex","0");return}(s=i[0])==null||s.setAttribute("tabindex","0")}}const y$=e.defineComponent({name:"ElTree",components:{ElTreeNode:v$},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,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:r.iconPropType}},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(t,n){const{t:o}=r.useLocale(),l=r.useNamespace("tree"),a=e.inject(co,null),s=e.ref(new u$({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));s.value.initialize();const i=e.ref(s.value.root),c=e.ref(null),u=e.ref(null),d=e.ref(null),{broadcastExpanded:p}=rm(t),{dragState:f}=p$({props:t,ctx:n,el$:u,dropIndicator$:d,store:s});g$({el$:u},s);const h=e.computed(()=>{const{childNodes:$}=i.value,O=a?a.hasFilteredOptions!==0:!1;return(!$||$.length===0||$.every(({visible:q})=>!q))&&!O});e.watch(()=>t.currentNodeKey,$=>{s.value.setCurrentNodeKey($)}),e.watch(()=>t.defaultCheckedKeys,$=>{s.value.setDefaultCheckedKey($)}),e.watch(()=>t.defaultExpandedKeys,$=>{s.value.setDefaultExpandedKeys($)}),e.watch(()=>t.data,$=>{s.value.setData($)},{deep:!0}),e.watch(()=>t.checkStrictly,$=>{s.value.checkStrictly=$});const m=$=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");s.value.filter($)},g=$=>Di(t.nodeKey,$.data),v=$=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const O=s.value.getNode($);if(!O)return[];const q=[O.data];let F=O.parent;for(;F&&F!==i.value;)q.push(F.data),F=F.parent;return q.reverse()},k=($,O)=>s.value.getCheckedNodes($,O),b=$=>s.value.getCheckedKeys($),S=()=>{const $=s.value.getCurrentNode();return $?$.data:null},y=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const $=S();return $?$[t.nodeKey]:null},C=($,O)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");s.value.setCheckedNodes($,O)},E=($,O)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");s.value.setCheckedKeys($,O)},w=($,O,q)=>{s.value.setChecked($,O,q)},V=()=>s.value.getHalfCheckedNodes(),T=()=>s.value.getHalfCheckedKeys(),N=($,O=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");ys(s,n.emit,()=>{p($),s.value.setUserCurrentNode($,O)})},_=($,O=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");ys(s,n.emit,()=>{p(),s.value.setCurrentNodeKey($,O)})},P=$=>s.value.getNode($),B=$=>{s.value.remove($)},A=($,O)=>{s.value.append($,O)},j=($,O)=>{s.value.insertBefore($,O)},M=($,O)=>{s.value.insertAfter($,O)},I=($,O,q)=>{p(O),n.emit("node-expand",$,O,q)},K=($,O)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");s.value.updateChildren($,O)};return e.provide($i,{ctx:n,props:t,store:s,root:i,currentNode:c,instance:e.getCurrentInstance()}),e.provide(D.formItemContextKey,void 0),{ns:l,store:s,root:i,currentNode:c,dragState:f,el$:u,dropIndicator$:d,isEmpty:h,filter:m,getNodeKey:g,getNodePath:v,getCheckedNodes:k,getCheckedKeys:b,getCurrentNode:S,getCurrentKey:y,setCheckedNodes:C,setCheckedKeys:E,setChecked:w,getHalfCheckedNodes:V,getHalfCheckedKeys:T,setCurrentNode:N,setCurrentKey:_,t:o,getNode:P,remove:B,append:A,insertBefore:j,insertAfter:M,handleNodeExpand:I,updateKeyChildren:K}}});function b$(t,n,o,l,a,s){const i=e.resolveComponent("el-tree-node");return e.openBlock(),e.createElementBlock("div",{ref:"el$",class:e.normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.root.childNodes,c=>(e.openBlock(),e.createBlock(i,{key:t.getNodeKey(c),node:c,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.ns.e("empty-block"))},[e.renderSlot(t.$slots,"empty",{},()=>{var c;return[e.createElementVNode("span",{class:e.normalizeClass(t.ns.e("empty-text"))},e.toDisplayString((c=t.emptyText)!=null?c:t.t("el.tree.emptyText")),3)]})],2)):e.createCommentVNode("v-if",!0),e.withDirectives(e.createElementVNode("div",{ref:"dropIndicator$",class:e.normalizeClass(t.ns.e("drop-indicator"))},null,2),[[e.vShow,t.dragState.showDropIndicator]])],2)}var C$=r._export_sfc(y$,[["render",b$],["__file","tree.vue"]]);const Wr=r.withInstall(C$),k$=(t,{attrs:n,emit:o},{select:l,tree:a,key:s})=>{const i=r.useNamespace("tree-select");return e.watch(()=>t.data,()=>{t.filterable&&e.nextTick(()=>{var u,d;(d=a.value)==null||d.filter((u=l.value)==null?void 0:u.states.inputValue)})},{flush:"post"}),{...D.pick(e.toRefs(t),Object.keys(wn.props)),...n,class:e.computed(()=>n.class),style:e.computed(()=>n.style),"onUpdate:modelValue":u=>o(D.UPDATE_MODEL_EVENT,u),valueKey:s,popperClass:e.computed(()=>{const u=[i.e("popper")];return t.popperClass&&u.push(t.popperClass),u.join(" ")}),filterMethod:(u="")=>{var d;t.filterMethod?t.filterMethod(u):t.remoteMethod?t.remoteMethod(u):(d=a.value)==null||d.filter(u)}}},w$=e.defineComponent({extends:Ir,setup(t,n){const o=Ir.setup(t,n);delete o.selectOptionClick;const l=e.getCurrentInstance().proxy;return e.nextTick(()=>{o.select.states.cachedOptions.get(l.value)||o.select.onOptionCreate(l)}),e.watch(()=>n.attrs.visible,a=>{e.nextTick(()=>{o.states.visible=a})},{immediate:!0}),o},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function ks(t){return t||t===0}function Ii(t){return r.isArray$1(t)&&t.length}function Mn(t){return r.isArray$1(t)?t:ks(t)?[t]:[]}function kr(t,n,o,l,a){for(let s=0;s<t.length;s++){const i=t[s];if(n(i,s,t,a))return l?l(i,s,t,a):i;{const c=o(i);if(Ii(c)){const u=kr(c,n,o,l,i);if(u)return u}}}}function wr(t,n,o,l){for(let a=0;a<t.length;a++){const s=t[a];n(s,a,t,l);const i=o(s);Ii(i)&&wr(i,n,o,s)}}const E$=(t,{attrs:n,slots:o,emit:l},{select:a,tree:s,key:i})=>{e.watch([()=>t.modelValue,s],()=>{t.showCheckbox&&e.nextTick(()=>{const h=s.value;h&&!D.isEqual(h.getCheckedKeys(),Mn(t.modelValue))&&h.setCheckedKeys(Mn(t.modelValue))})},{immediate:!0,deep:!0});const c=e.computed(()=>({value:i.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...t.props})),u=(h,m)=>{var g;const v=c.value[h];return r.isFunction(v)?v(m,(g=s.value)==null?void 0:g.getNode(u("value",m))):m[v]},d=Mn(t.modelValue).map(h=>kr(t.data||[],m=>u("value",m)===h,m=>u("children",m),(m,g,v,k)=>k&&u("value",k))).filter(h=>ks(h)),p=e.computed(()=>{if(!t.renderAfterExpand&&!t.lazy)return[];const h=[];return wr(t.data.concat(t.cacheData),m=>{const g=u("value",m);h.push({value:g,currentLabel:u("label",m),isDisabled:u("disabled",m)})},m=>u("children",m)),h}),f=()=>{var h;return(h=s.value)==null?void 0:h.getCheckedKeys().filter(m=>{var g;const v=(g=s.value)==null?void 0:g.getNode(m);return!r.isNil(v)&&r.isEmpty(v.childNodes)})};return{...D.pick(e.toRefs(t),Object.keys(Wr.props)),...n,nodeKey:i,expandOnClickNode:e.computed(()=>!t.checkStrictly&&t.expandOnClickNode),defaultExpandedKeys:e.computed(()=>t.defaultExpandedKeys?t.defaultExpandedKeys.concat(d):d),renderContent:(h,{node:m,data:g,store:v})=>h(w$,{value:u("value",g),label:u("label",g),disabled:u("disabled",g),visible:m.visible},t.renderContent?()=>t.renderContent(h,{node:m,data:g,store:v}):o.default?()=>o.default({node:m,data:g,store:v}):void 0),filterNodeMethod:(h,m,g)=>t.filterNodeMethod?t.filterNodeMethod(h,m,g):h?new RegExp(Ls(h),"i").test(u("label",m)||""):!0,onNodeClick:(h,m,g)=>{var v,k,b,S;if((v=n.onNodeClick)==null||v.call(n,h,m,g),!(t.showCheckbox&&t.checkOnClickNode)){if(!t.showCheckbox&&(t.checkStrictly||m.isLeaf)){if(!u("disabled",h)){const y=(k=a.value)==null?void 0:k.states.options.get(u("value",h));(b=a.value)==null||b.handleOptionSelect(y)}}else t.expandOnClickNode&&g.proxy.handleExpandIconClick();(S=a.value)==null||S.focus()}},onCheck:(h,m)=>{var g;if(!t.showCheckbox)return;const v=u("value",h),k={};wr([s.value.store.root],C=>k[C.key]=C,C=>C.childNodes);const b=m.checkedKeys,S=t.multiple?Mn(t.modelValue).filter(C=>!(C in k)&&!b.includes(C)):[],y=S.concat(b);if(t.checkStrictly)l(D.UPDATE_MODEL_EVENT,t.multiple?y:y.includes(v)?v:void 0);else if(t.multiple){const C=f();l(D.UPDATE_MODEL_EVENT,S.concat(C))}else{const C=kr([h],V=>!Ii(u("children",V))&&!u("disabled",V),V=>u("children",V)),E=C?u("value",C):void 0,w=ks(t.modelValue)&&!!kr([h],V=>u("value",V)===t.modelValue,V=>u("children",V));l(D.UPDATE_MODEL_EVENT,E===t.modelValue||w?void 0:E)}e.nextTick(()=>{var C;const E=Mn(t.modelValue);s.value.setCheckedKeys(E),(C=n.onCheck)==null||C.call(n,h,{checkedKeys:s.value.getCheckedKeys(),checkedNodes:s.value.getCheckedNodes(),halfCheckedKeys:s.value.getHalfCheckedKeys(),halfCheckedNodes:s.value.getHalfCheckedNodes()})}),(g=a.value)==null||g.focus()},onNodeExpand:(h,m,g)=>{var v;(v=n.onNodeExpand)==null||v.call(n,h,m,g),e.nextTick(()=>{if(!t.checkStrictly&&t.lazy&&t.multiple&&m.checked){const k={},b=s.value.getCheckedKeys();wr([s.value.store.root],C=>k[C.key]=C,C=>C.childNodes);const S=Mn(t.modelValue).filter(C=>!(C in k)&&!b.includes(C)),y=f();l(D.UPDATE_MODEL_EVENT,S.concat(y))}})},cacheOptions:p}};var S$=e.defineComponent({props:{data:{type:Array,default:()=>[]}},setup(t){const n=e.inject(co);return e.watch(()=>t.data,()=>{var o;t.data.forEach(a=>{n.states.cachedOptions.has(a.value)||n.states.cachedOptions.set(a.value,a)});const l=((o=n.selectRef)==null?void 0:o.querySelectorAll("input"))||[];r.isClient&&!Array.from(l).includes(document.activeElement)&&n.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const N$=e.defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...wn.props,...Wr.props,cacheData:{type:Array,default:()=>[]}},setup(t,n){const{slots:o,expose:l}=n,a=e.ref(),s=e.ref(),i=e.computed(()=>t.nodeKey||t.valueKey||"value"),c=k$(t,n,{select:a,tree:s,key:i}),{cacheOptions:u,...d}=E$(t,n,{select:a,tree:s,key:i}),p=e.reactive({});return l(p),e.onMounted(()=>{Object.assign(p,{...D.pick(s.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...D.pick(a.value,["focus","blur","selectedLabel"])})}),()=>e.h(wn,e.reactive({...c,ref:f=>a.value=f}),{...o,default:()=>[e.h(S$,{data:u.value}),e.h(Wr,e.reactive({...d,ref:f=>s.value=f}))]})}});var T$=r._export_sfc(N$,[["__file","tree-select.vue"]]);const _$=r.withInstall(T$),Oi=Symbol(),V$={key:-1,level:-1,data:{}};var al=(t=>(t.KEY="id",t.LABEL="label",t.CHILDREN="children",t.DISABLED="disabled",t.CLASS="",t))(al||{}),ws=(t=>(t.ADD="add",t.DELETE="delete",t))(ws||{});const sm={type:Number,default:26},B$=r.buildProps({data:{type:r.definePropType(Array),default:()=>r.mutable([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:r.definePropType(Object),default:()=>r.mutable({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:r.definePropType(Array),default:()=>r.mutable([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:r.definePropType(Array),default:()=>r.mutable([])},indent:{type:Number,default:16},itemSize:sm,icon:{type:r.iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:r.definePropType([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:r.definePropType(Function)},perfMode:{type:Boolean,default:!0}}),P$=r.buildProps({node:{type:r.definePropType(Object),default:()=>r.mutable(V$)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:sm}),D$=r.buildProps({node:{type:r.definePropType(Object),required:!0}}),im="node-click",cm="node-drop",um="node-expand",dm="node-collapse",fm="current-change",pm="check",mm="check-change",hm="node-contextmenu",$$={[im]:(t,n,o)=>t&&n&&o,[cm]:(t,n,o)=>t&&n&&o,[um]:(t,n)=>t&&n,[dm]:(t,n)=>t&&n,[fm]:(t,n)=>t&&n,[pm]:(t,n)=>t&&n,[mm]:(t,n)=>t&&r.isBoolean(n),[hm]:(t,n,o)=>t&&n&&o},I$={click:(t,n)=>!!(t&&n),drop:(t,n)=>!!(t&&n),toggle:t=>!!t,check:(t,n)=>t&&r.isBoolean(n)};function O$(t,n){const o=e.ref(new Set),l=e.ref(new Set),{emit:a}=e.getCurrentInstance();e.watch([()=>n.value,()=>t.defaultCheckedKeys],()=>e.nextTick(()=>{S(t.defaultCheckedKeys)}),{immediate:!0});const s=()=>{if(!n.value||!t.showCheckbox||t.checkStrictly)return;const{levelTreeNodeMap:y,maxLevel:C}=n.value,E=o.value,w=new Set;for(let V=C-1;V>=1;--V){const T=y.get(V);T&&T.forEach(N=>{const _=N.children;if(_){let P=!0,B=!1;for(const A of _){const j=A.key;if(E.has(j))B=!0;else if(w.has(j)){P=!1,B=!0;break}else P=!1}P?E.add(N.key):B?(w.add(N.key),E.delete(N.key)):(E.delete(N.key),w.delete(N.key))}})}l.value=w},i=y=>o.value.has(y.key),c=y=>l.value.has(y.key),u=(y,C,E=!0,w=!0)=>{const V=o.value,T=(N,_)=>{V[_?ws.ADD:ws.DELETE](N.key);const P=N.children;!t.checkStrictly&&P&&P.forEach(B=>{B.disabled||T(B,_)})};T(y,C),w&&s(),E&&d(y,C)},d=(y,C)=>{const{checkedNodes:E,checkedKeys:w}=g(),{halfCheckedNodes:V,halfCheckedKeys:T}=v();a(pm,y.data,{checkedKeys:w,checkedNodes:E,halfCheckedKeys:T,halfCheckedNodes:V}),a(mm,y.data,C)};function p(y=!1){return g(y).checkedKeys}function f(y=!1){return g(y).checkedNodes}function h(){return v().halfCheckedKeys}function m(){return v().halfCheckedNodes}function g(y=!1){const C=[],E=[];if(n!=null&&n.value&&t.showCheckbox){const{treeNodeMap:w}=n.value;o.value.forEach(V=>{const T=w.get(V);T&&(!y||y&&T.isLeaf)&&(E.push(V),C.push(T.data))})}return{checkedKeys:E,checkedNodes:C}}function v(){const y=[],C=[];if(n!=null&&n.value&&t.showCheckbox){const{treeNodeMap:E}=n.value;l.value.forEach(w=>{const V=E.get(w);V&&(C.push(w),y.push(V.data))})}return{halfCheckedNodes:y,halfCheckedKeys:C}}function k(y){o.value.clear(),l.value.clear(),e.nextTick(()=>{S(y)})}function b(y,C){if(n!=null&&n.value&&t.showCheckbox){const E=n.value.treeNodeMap.get(y);E&&u(E,C,!1)}}function S(y){if(n!=null&&n.value){const{treeNodeMap:C}=n.value;if(t.showCheckbox&&C&&(y==null?void 0:y.length)>0){for(const E of y){const w=C.get(E);w&&!i(w)&&u(w,!0,!1,!1)}s()}}}return{updateCheckedKeys:s,toggleCheckbox:u,isChecked:i,isIndeterminate:c,getCheckedKeys:p,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:m,setChecked:b,setCheckedKeys:k}}function M$(t,n){const o=e.ref(new Set([])),l=e.ref(new Set([])),a=e.computed(()=>r.isFunction(t.filterMethod));function s(c){var u;if(!a.value)return;const d=new Set,p=l.value,f=o.value,h=[],m=((u=n.value)==null?void 0:u.treeNodes)||[],g=t.filterMethod;f.clear();function v(k){k.forEach(b=>{h.push(b),g!=null&&g(c,b.data,b)?h.forEach(y=>{d.add(y.key)}):b.isLeaf&&f.add(b.key);const S=b.children;if(S&&v(S),!b.isLeaf){if(!d.has(b.key))f.add(b.key);else if(S){let y=!0;for(const C of S)if(!f.has(C.key)){y=!1;break}y?p.add(b.key):p.delete(b.key)}}h.pop()})}return v(m),d}function i(c){return l.value.has(c.key)}return{hiddenExpandIconKeySet:l,hiddenNodeKeySet:o,doFilter:s,isForceHiddenExpandIcon:i}}function x$(t,n){const o=e.ref(new Set(t.defaultExpandedKeys)),l=e.ref(),a=e.shallowRef(),s=e.ref(),{isIndeterminate:i,isChecked:c,toggleCheckbox:u,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}=O$(t,a),{doFilter:v,hiddenNodeKeySet:k,isForceHiddenExpandIcon:b}=M$(t,a),S=e.computed(()=>{var U;return((U=t.props)==null?void 0:U.value)||al.KEY}),y=e.computed(()=>{var U;return((U=t.props)==null?void 0:U.children)||al.CHILDREN}),C=e.computed(()=>{var U;return((U=t.props)==null?void 0:U.disabled)||al.DISABLED}),E=e.computed(()=>{var U;return((U=t.props)==null?void 0:U.label)||al.LABEL}),w=e.computed(()=>{var U;const J=o.value,ce=k.value,oe=[],ie=((U=a.value)==null?void 0:U.treeNodes)||[],ne=[];for(let le=ie.length-1;le>=0;--le)ne.push(ie[le]);for(;ne.length;){const le=ne.pop();if(!ce.has(le.key)&&(oe.push(le),le.children&&J.has(le.key)))for(let ue=le.children.length-1;ue>=0;--ue)ne.push(le.children[ue])}return oe}),V=e.computed(()=>w.value.length>0);function T(U){const J=new Map,ce=new Map;let oe=1;function ie(le,ue=1,me=void 0){var ke;const Ee=[];for(const Ne of le){const Pe=P(Ne),_e={level:ue,key:Pe,data:Ne};_e.label=A(Ne),_e.parent=me;const Me=_(Ne);_e.disabled=B(Ne),_e.isLeaf=!Me||Me.length===0,Me&&Me.length&&(_e.children=ie(Me,ue+1,_e)),Ee.push(_e),J.set(Pe,_e),ce.has(ue)||ce.set(ue,[]),(ke=ce.get(ue))==null||ke.push(_e)}return ue>oe&&(oe=ue),Ee}const ne=ie(U);return{treeNodeMap:J,levelTreeNodeMap:ce,maxLevel:oe,treeNodes:ne}}function N(U){const J=v(U);J&&(o.value=J)}function _(U){return U[y.value]}function P(U){return U?U[S.value]:""}function B(U){return U[C.value]}function A(U){return U[E.value]}function j(U){o.value.has(U.key)?F(U):q(U)}function M(U){const J=new Set,ce=a.value.treeNodeMap;U.forEach(oe=>{let ie=ce.get(oe);for(;ie&&!J.has(ie.key);)J.add(ie.key),ie=ie.parent}),o.value=J}function I(U,J){n(im,U.data,U,J),$(U),t.expandOnClickNode&&j(U),t.showCheckbox&&(t.checkOnClickNode||U.isLeaf&&t.checkOnClickLeaf)&&!U.disabled&&u(U,!c(U),!0)}function K(U,J){n(cm,U.data,U,J)}function $(U){G(U)||(l.value=U.key,n(fm,U.data,U))}function O(U,J){u(U,J)}function q(U){const J=o.value;if(a.value&&t.accordion){const{treeNodeMap:ce}=a.value;J.forEach(oe=>{const ie=ce.get(oe);U&&U.level===(ie==null?void 0:ie.level)&&J.delete(oe)})}J.add(U.key),n(um,U.data,U)}function F(U){o.value.delete(U.key),n(dm,U.data,U)}function X(U){return o.value.has(U.key)}function L(U){return!!U.disabled}function G(U){const J=l.value;return J!==void 0&&J===U.key}function Z(){var U,J;if(l.value)return(J=(U=a.value)==null?void 0:U.treeNodeMap.get(l.value))==null?void 0:J.data}function ee(){return l.value}function Y(U){l.value=U}function z(U){a.value=T(U)}function R(U){var J;const ce=r.isObject$1(U)?P(U):U;return(J=a.value)==null?void 0:J.treeNodeMap.get(ce)}function x(U,J="auto"){const ce=R(U);ce&&s.value&&s.value.scrollToItem(w.value.indexOf(ce),J)}function Q(U){var J;(J=s.value)==null||J.scrollTo(U)}return e.watch(()=>t.currentNodeKey,U=>{l.value=U},{immediate:!0}),e.watch(()=>t.data,U=>{z(U)},{immediate:!0}),{tree:a,flattenTree:w,isNotEmpty:V,listRef:s,getKey:P,getChildren:_,toggleExpand:j,toggleCheckbox:u,isExpanded:X,isChecked:c,isIndeterminate:i,isDisabled:L,isCurrent:G,isForceHiddenExpandIcon:b,handleNodeClick:I,handleNodeDrop:K,handleNodeCheck:O,getCurrentNode:Z,getCurrentKey:ee,setCurrentKey:Y,getCheckedKeys:d,getCheckedNodes:p,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g,filter:N,setData:z,getNode:R,expandNode:q,collapseNode:F,setExpandedKeys:M,scrollToNode:x,scrollTo:Q}}var A$=e.defineComponent({name:"ElTreeNodeContent",props:D$,setup(t){const n=e.inject(Oi),o=r.useNamespace("tree");return()=>{const l=t.node,{data:a}=l;return n!=null&&n.ctx.slots.default?n.ctx.slots.default({node:l,data:a}):e.h(Ci,{tag:"span",truncated:!0,class:o.be("node","label")},()=>[l==null?void 0:l.label])}}});const z$=e.defineComponent({name:"ElTreeNode"}),R$=e.defineComponent({...z$,props:P$,emits:I$,setup(t,{emit:n}){const o=t,l=e.inject(Oi),a=r.useNamespace("tree"),s=e.computed(()=>{var m;return(m=l==null?void 0:l.props.indent)!=null?m:16}),i=e.computed(()=>{var m;return(m=l==null?void 0:l.props.icon)!=null?m:r.caret_right_default}),c=m=>{const g=l==null?void 0:l.props.props.class;if(!g)return{};let v;if(r.isFunction(g)){const{data:k}=m;v=g(k,m)}else v=g;return r.isString(v)?{[v]:!0}:v},u=m=>{n("click",o.node,m)},d=m=>{n("drop",o.node,m)},p=()=>{n("toggle",o.node)},f=m=>{n("check",o.node,m)},h=m=>{var g,v,k,b;(k=(v=(g=l==null?void 0:l.instance)==null?void 0:g.vnode)==null?void 0:v.props)!=null&&k.onNodeContextmenu&&(m.stopPropagation(),m.preventDefault()),l==null||l.ctx.emit(hm,m,(b=o.node)==null?void 0:b.data,o.node)};return(m,g)=>{var v,k,b;return e.openBlock(),e.createElementBlock("div",{ref:"node$",class:e.normalizeClass([e.unref(a).b("node"),e.unref(a).is("expanded",m.expanded),e.unref(a).is("current",m.current),e.unref(a).is("focusable",!m.disabled),e.unref(a).is("checked",!m.disabled&&m.checked),c(m.node)]),role:"treeitem",tabindex:"-1","aria-expanded":m.expanded,"aria-disabled":m.disabled,"aria-checked":m.checked,"data-key":(v=m.node)==null?void 0:v.key,onClick:e.withModifiers(u,["stop"]),onContextmenu:h,onDragover:e.withModifiers(()=>{},["prevent"]),onDragenter:e.withModifiers(()=>{},["prevent"]),onDrop:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).be("node","content")),style:e.normalizeStyle({paddingLeft:`${(m.node.level-1)*e.unref(s)}px`,height:m.itemSize+"px"})},[e.unref(i)?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass([e.unref(a).is("leaf",!!((k=m.node)!=null&&k.isLeaf)),e.unref(a).is("hidden",m.hiddenExpandIcon),{expanded:!((b=m.node)!=null&&b.isLeaf)&&m.expanded},e.unref(a).be("node","expand-icon")]),onClick:e.withModifiers(p,["stop"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(i))))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0),m.showCheckbox?(e.openBlock(),e.createBlock(e.unref(Bt),{key:1,"model-value":m.checked,indeterminate:m.indeterminate,disabled:m.disabled,onChange:f,onClick:e.withModifiers(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(A$),{node:m.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var L$=r._export_sfc(R$,[["__file","tree-node.vue"]]);const F$=e.defineComponent({name:"ElTreeV2"}),K$=e.defineComponent({...F$,props:B$,emits:$$,setup(t,{expose:n,emit:o}){const l=t,a=e.useSlots(),s=e.computed(()=>l.itemSize);e.provide(Oi,{ctx:{emit:o,slots:a},props:l,instance:e.getCurrentInstance()}),e.provide(D.formItemContextKey,void 0);const{t:i}=r.useLocale(),c=r.useNamespace("tree"),{flattenTree:u,isNotEmpty:d,listRef:p,toggleExpand:f,isExpanded:h,isIndeterminate:m,isChecked:g,isDisabled:v,isCurrent:k,isForceHiddenExpandIcon:b,handleNodeClick:S,handleNodeDrop:y,handleNodeCheck:C,toggleCheckbox:E,getCurrentNode:w,getCurrentKey:V,setCurrentKey:T,getCheckedKeys:N,getCheckedNodes:_,getHalfCheckedKeys:P,getHalfCheckedNodes:B,setChecked:A,setCheckedKeys:j,filter:M,setData:I,getNode:K,expandNode:$,collapseNode:O,setExpandedKeys:q,scrollToNode:F,scrollTo:X}=x$(l,o);return n({toggleCheckbox:E,getCurrentNode:w,getCurrentKey:V,setCurrentKey:T,getCheckedKeys:N,getCheckedNodes:_,getHalfCheckedKeys:P,getHalfCheckedNodes:B,setChecked:A,setCheckedKeys:j,filter:M,setData:I,getNode:K,expandNode:$,collapseNode:O,setExpandedKeys:q,scrollToNode:F,scrollTo:X}),(L,G)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c).b(),{[e.unref(c).m("highlight-current")]:L.highlightCurrent}]),role:"tree"},[e.unref(d)?(e.openBlock(),e.createBlock(e.unref(Jf),{key:0,ref_key:"listRef",ref:p,"class-name":e.unref(c).b("virtual-list"),data:e.unref(u),total:e.unref(u).length,height:L.height,"item-size":e.unref(s),"perf-mode":L.perfMode},{default:e.withCtx(({data:Z,index:ee,style:Y})=>[(e.openBlock(),e.createBlock(L$,{key:Z[ee].key,style:e.normalizeStyle(Y),node:Z[ee],expanded:e.unref(h)(Z[ee]),"show-checkbox":L.showCheckbox,checked:e.unref(g)(Z[ee]),indeterminate:e.unref(m)(Z[ee]),"item-size":e.unref(s),disabled:e.unref(v)(Z[ee]),current:e.unref(k)(Z[ee]),"hidden-expand-icon":e.unref(b)(Z[ee]),onClick:e.unref(S),onToggle:e.unref(f),onCheck:e.unref(C),onDrop:e.unref(y)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(c).e("empty-block"))},[e.renderSlot(L.$slots,"empty",{},()=>{var Z;return[e.createElementVNode("span",{class:e.normalizeClass(e.unref(c).e("empty-text"))},e.toDisplayString((Z=L.emptyText)!=null?Z:e.unref(i)("el.tree.emptyText")),3)]})],2))],2))}});var H$=r._export_sfc(K$,[["__file","tree.vue"]]);const j$=r.withInstall(H$),vm=Symbol("uploadContextKey"),W$=r.buildProps({files:{type:r.definePropType(Array),default:()=>r.mutable([])},disabled:{type:Boolean,default:!1},handlePreview:{type:r.definePropType(Function),default:r.NOOP},listType:{type:String,values:Un.uploadListTypes,default:"text"},crossorigin:{type:r.definePropType(String)}}),U$={remove:t=>!!t},q$=e.defineComponent({name:"ElUploadList"}),Y$=e.defineComponent({...q$,props:W$,emits:U$,setup(t,{emit:n}){const o=t,{t:l}=r.useLocale(),a=r.useNamespace("upload"),s=r.useNamespace("icon"),i=r.useNamespace("list"),c=D.useFormDisabled(),u=e.ref(!1),d=e.computed(()=>[a.b("list"),a.bm("list",o.listType),a.is("disabled",o.disabled)]),p=f=>{n("remove",f)};return(f,h)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{tag:"ul",class:e.normalizeClass(e.unref(d)),name:e.unref(i).b()},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.files,(m,g)=>(e.openBlock(),e.createElementBlock("li",{key:m.uid||m.name,class:e.normalizeClass([e.unref(a).be("list","item"),e.unref(a).is(m.status),{focusing:u.value}]),tabindex:"0",onKeydown:e.withKeys(v=>!e.unref(c)&&p(m),["delete"]),onFocus:v=>u.value=!0,onBlur:v=>u.value=!1,onClick:v=>u.value=!1},[e.renderSlot(f.$slots,"default",{file:m,index:g},()=>[f.listType==="picture"||m.status!=="uploading"&&f.listType==="picture-card"?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(e.unref(a).be("list","item-thumbnail")),src:m.url,crossorigin:f.crossorigin,alt:""},null,10,["src","crossorigin"])):e.createCommentVNode("v-if",!0),m.status==="uploading"||f.listType!=="picture-card"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(a).be("list","item-info"))},[e.createElementVNode("a",{class:e.normalizeClass(e.unref(a).be("list","item-name")),onClick:e.withModifiers(v=>f.handlePreview(m),["prevent"])},[e.createVNode(e.unref(r.ElIcon),{class:e.normalizeClass(e.unref(s).m("document"))},{default:e.withCtx(()=>[e.createVNode(e.unref(r.document_default))]),_:1},8,["class"]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(a).be("list","item-file-name")),title:m.name},e.toDisplayString(m.name),11,["title"])],10,["onClick"]),m.status==="uploading"?(e.openBlock(),e.createBlock(e.unref(Ff),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(m.percentage),style:e.normalizeStyle(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):e.createCommentVNode("v-if",!0)],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("label",{class:e.normalizeClass(e.unref(a).be("list","item-status-label"))},[f.listType==="text"?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass([e.unref(s).m("upload-success"),e.unref(s).m("circle-check")])},{default:e.withCtx(()=>[e.createVNode(e.unref(r.circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:1,class:e.normalizeClass([e.unref(s).m("upload-success"),e.unref(s).m("check")])},{default:e.withCtx(()=>[e.createVNode(e.unref(r.check_default))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0)],2),e.unref(c)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:2,class:e.normalizeClass(e.unref(s).m("close")),onClick:v=>p(m)},{default:e.withCtx(()=>[e.createVNode(e.unref(r.close_default))]),_:2},1032,["class","onClick"])),e.createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),e.createCommentVNode(" This is a bug which needs to be fixed "),e.createCommentVNode(" TODO: Fix the incorrect navigation interaction "),e.unref(c)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("i",{key:3,class:e.normalizeClass(e.unref(s).m("close-tip"))},e.toDisplayString(e.unref(l)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(e.openBlock(),e.createElementBlock("span",{key:4,class:e.normalizeClass(e.unref(a).be("list","item-actions"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(a).be("list","item-preview")),onClick:v=>f.handlePreview(m)},[e.createVNode(e.unref(r.ElIcon),{class:e.normalizeClass(e.unref(s).m("zoom-in"))},{default:e.withCtx(()=>[e.createVNode(e.unref(r.zoom_in_default))]),_:1},8,["class"])],10,["onClick"]),e.unref(c)?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(a).be("list","item-delete")),onClick:v=>p(m)},[e.createVNode(e.unref(r.ElIcon),{class:e.normalizeClass(e.unref(s).m("delete"))},{default:e.withCtx(()=>[e.createVNode(e.unref(r.delete_default))]),_:1},8,["class"])],10,["onClick"]))],2)):e.createCommentVNode("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),e.renderSlot(f.$slots,"append")]),_:3},8,["class","name"]))}});var Vu=r._export_sfc(Y$,[["__file","upload-list.vue"]]);const G$=r.buildProps({disabled:{type:Boolean,default:!1}}),X$={file:t=>r.isArray$1(t)},gm="ElUploadDrag",J$=e.defineComponent({name:gm}),Z$=e.defineComponent({...J$,props:G$,emits:X$,setup(t,{emit:n}){e.inject(vm)||r.throwError(gm,"usage: <el-upload><el-upload-dragger /></el-upload>");const l=r.useNamespace("upload"),a=e.ref(!1),s=D.useFormDisabled(),i=u=>{if(s.value)return;a.value=!1,u.stopPropagation();const d=Array.from(u.dataTransfer.files),p=u.dataTransfer.items||[];d.forEach((f,h)=>{var m;const g=p[h],v=(m=g==null?void 0:g.webkitGetAsEntry)==null?void 0:m.call(g);v&&(f.isDirectory=v.isDirectory)}),n("file",d)},c=()=>{s.value||(a.value=!0)};return(u,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l).b("dragger"),e.unref(l).is("dragover",a.value)]),onDrop:e.withModifiers(i,["prevent"]),onDragover:e.withModifiers(c,["prevent"]),onDragleave:e.withModifiers(p=>a.value=!1,["prevent"])},[e.renderSlot(u.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var Q$=r._export_sfc(Z$,[["__file","upload-dragger.vue"]]);const eI=r.buildProps({...Un.uploadBaseProps,beforeUpload:{type:r.definePropType(Function),default:r.NOOP},onRemove:{type:r.definePropType(Function),default:r.NOOP},onStart:{type:r.definePropType(Function),default:r.NOOP},onSuccess:{type:r.definePropType(Function),default:r.NOOP},onProgress:{type:r.definePropType(Function),default:r.NOOP},onError:{type:r.definePropType(Function),default:r.NOOP},onExceed:{type:r.definePropType(Function),default:r.NOOP}}),tI=e.defineComponent({name:"ElUploadContent",inheritAttrs:!1}),nI=e.defineComponent({...tI,props:eI,setup(t,{expose:n}){const o=t,l=r.useNamespace("upload"),a=D.useFormDisabled(),s=e.shallowRef({}),i=e.shallowRef(),c=v=>{if(v.length===0)return;const{autoUpload:k,limit:b,fileList:S,multiple:y,onStart:C,onExceed:E}=o;if(b&&S.length+v.length>b){E(v,S);return}y||(v=v.slice(0,1));for(const w of v){const V=w;V.uid=Un.genFileId(),C(V),k&&u(V)}},u=async v=>{if(i.value.value="",!o.beforeUpload)return p(v);let k,b={};try{const y=o.data,C=o.beforeUpload(v);b=r.isPlainObject(o.data)?r.cloneDeep(o.data):o.data,k=await C,r.isPlainObject(o.data)&&D.isEqual(y,b)&&(b=r.cloneDeep(o.data))}catch{k=!1}if(k===!1){o.onRemove(v);return}let S=v;k instanceof Blob&&(k instanceof File?S=k:S=new File([k],v.name,{type:v.type})),p(Object.assign(S,{uid:v.uid}),b)},d=async(v,k)=>r.isFunction(v)?v(k):v,p=async(v,k)=>{const{headers:b,data:S,method:y,withCredentials:C,name:E,action:w,onProgress:V,onSuccess:T,onError:N,httpRequest:_}=o;try{k=await d(k??S,v)}catch{o.onRemove(v);return}const{uid:P}=v,B={headers:b||{},withCredentials:C,file:v,data:k,method:y,filename:E,action:w,onProgress:j=>{V(j,v)},onSuccess:j=>{T(j,v),delete s.value[P]},onError:j=>{N(j,v),delete s.value[P]}},A=_(B);s.value[P]=A,A instanceof Promise&&A.then(B.onSuccess,B.onError)},f=v=>{const k=v.target.files;k&&c(Array.from(k))},h=()=>{a.value||(i.value.value="",i.value.click())},m=()=>{h()};return n({abort:v=>{r.entriesOf(s.value).filter(v?([b])=>String(v.uid)===b:()=>!0).forEach(([b,S])=>{S instanceof XMLHttpRequest&&S.abort(),delete s.value[b]})},upload:u}),(v,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l).b(),e.unref(l).m(v.listType),e.unref(l).is("drag",v.drag),e.unref(l).is("disabled",e.unref(a))]),tabindex:e.unref(a)?"-1":"0",onClick:h,onKeydown:e.withKeys(e.withModifiers(m,["self"]),["enter","space"])},[v.drag?(e.openBlock(),e.createBlock(Q$,{key:0,disabled:e.unref(a),onFile:c},{default:e.withCtx(()=>[e.renderSlot(v.$slots,"default")]),_:3},8,["disabled"])):e.renderSlot(v.$slots,"default",{key:1}),e.createElementVNode("input",{ref_key:"inputRef",ref:i,class:e.normalizeClass(e.unref(l).e("input")),name:v.name,disabled:e.unref(a),multiple:v.multiple,accept:v.accept,type:"file",onChange:f,onClick:e.withModifiers(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var Bu=r._export_sfc(nI,[["__file","upload-content.vue"]]);const Pu="ElUpload",Du=t=>{var n;(n=t.url)!=null&&n.startsWith("blob:")&&URL.revokeObjectURL(t.url)},oI=(t,n)=>{const o=r.useVModel(t,"fileList",void 0,{passive:!0}),l=m=>o.value.find(g=>g.uid===m.uid);function a(m){var g;(g=n.value)==null||g.abort(m)}function s(m=["ready","uploading","success","fail"]){o.value=o.value.filter(g=>!m.includes(g.status))}function i(m){o.value=o.value.filter(g=>g.uid!==m.uid)}const c=(m,g)=>{const v=l(g);v&&(console.error(m),v.status="fail",i(v),t.onError(m,v,o.value),t.onChange(v,o.value))},u=(m,g)=>{const v=l(g);v&&(t.onProgress(m,v,o.value),v.status="uploading",v.percentage=Math.round(m.percent))},d=(m,g)=>{const v=l(g);v&&(v.status="success",v.response=m,t.onSuccess(m,v,o.value),t.onChange(v,o.value))},p=m=>{r.isNil(m.uid)&&(m.uid=Un.genFileId());const g={name:m.name,percentage:0,status:"ready",size:m.size,raw:m,uid:m.uid};if(t.listType==="picture-card"||t.listType==="picture")try{g.url=URL.createObjectURL(m)}catch(v){r.debugWarn(Pu,v.message),t.onError(v,g,o.value)}o.value=[...o.value,g],t.onChange(g,o.value)},f=async m=>{const g=m instanceof File?l(m):m;g||r.throwError(Pu,"file to be removed not found");const v=k=>{a(k),i(k),t.onRemove(k,o.value),Du(k)};t.beforeRemove?await t.beforeRemove(g,o.value)!==!1&&v(g):v(g)};function h(){o.value.filter(({status:m})=>m==="ready").forEach(({raw:m})=>{var g;return m&&((g=n.value)==null?void 0:g.upload(m))})}return e.watch(()=>t.listType,m=>{m!=="picture-card"&&m!=="picture"||(o.value=o.value.map(g=>{const{raw:v,url:k}=g;if(!k&&v)try{g.url=URL.createObjectURL(v)}catch(b){t.onError(b,g,o.value)}return g}))}),e.watch(o,m=>{for(const g of m)g.uid||(g.uid=Un.genFileId()),g.status||(g.status="success")},{immediate:!0,deep:!0}),{uploadFiles:o,abort:a,clearFiles:s,handleError:c,handleProgress:u,handleStart:p,handleSuccess:d,handleRemove:f,submit:h,revokeFileObjectURL:Du}},lI=e.defineComponent({name:"ElUpload"}),rI=e.defineComponent({...lI,props:Un.uploadProps,setup(t,{expose:n}){const o=t,l=D.useFormDisabled(),a=e.shallowRef(),{abort:s,submit:i,clearFiles:c,uploadFiles:u,handleStart:d,handleError:p,handleRemove:f,handleSuccess:h,handleProgress:m,revokeFileObjectURL:g}=oI(o,a),v=e.computed(()=>o.listType==="picture-card"),k=e.computed(()=>({...o,fileList:u.value,onStart:d,onProgress:m,onSuccess:h,onError:p,onRemove:f}));return e.onBeforeUnmount(()=>{u.value.forEach(g)}),e.provide(vm,{accept:e.toRef(o,"accept")}),n({abort:s,submit:i,clearFiles:c,handleStart:d,handleRemove:f}),(b,S)=>(e.openBlock(),e.createElementBlock("div",null,[e.unref(v)&&b.showFileList?(e.openBlock(),e.createBlock(Vu,{key:0,disabled:e.unref(l),"list-type":b.listType,files:e.unref(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:e.unref(f)},e.createSlots({append:e.withCtx(()=>[e.createVNode(Bu,e.mergeProps({ref_key:"uploadRef",ref:a},e.unref(k)),{default:e.withCtx(()=>[b.$slots.trigger?e.renderSlot(b.$slots,"trigger",{key:0}):e.createCommentVNode("v-if",!0),!b.$slots.trigger&&b.$slots.default?e.renderSlot(b.$slots,"default",{key:1}):e.createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[b.$slots.file?{name:"default",fn:e.withCtx(({file:y,index:C})=>[e.renderSlot(b.$slots,"file",{file:y,index:C})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):e.createCommentVNode("v-if",!0),!e.unref(v)||e.unref(v)&&!b.showFileList?(e.openBlock(),e.createBlock(Bu,e.mergeProps({key:1,ref_key:"uploadRef",ref:a},e.unref(k)),{default:e.withCtx(()=>[b.$slots.trigger?e.renderSlot(b.$slots,"trigger",{key:0}):e.createCommentVNode("v-if",!0),!b.$slots.trigger&&b.$slots.default?e.renderSlot(b.$slots,"default",{key:1}):e.createCommentVNode("v-if",!0)]),_:3},16)):e.createCommentVNode("v-if",!0),b.$slots.trigger?e.renderSlot(b.$slots,"default",{key:2}):e.createCommentVNode("v-if",!0),e.renderSlot(b.$slots,"tip"),!e.unref(v)&&b.showFileList?(e.openBlock(),e.createBlock(Vu,{key:3,disabled:e.unref(l),"list-type":b.listType,files:e.unref(u),crossorigin:b.crossorigin,"handle-preview":b.onPreview,onRemove:e.unref(f)},e.createSlots({_:2},[b.$slots.file?{name:"default",fn:e.withCtx(({file:y,index:C})=>[e.renderSlot(b.$slots,"file",{file:y,index:C})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):e.createCommentVNode("v-if",!0)]))}});var aI=r._export_sfc(rI,[["__file","upload.vue"]]);const sI=r.withInstall(aI),iI=r.buildProps({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:r.definePropType([String,Array]),default:"Element Plus"},font:{type:r.definePropType(Object)},gap:{type:r.definePropType(Array),default:()=>[100,100]},offset:{type:r.definePropType(Array)}});function cI(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function uI(t){return Object.keys(t).map(n=>`${cI(n)}: ${t[n]};`).join(" ")}function dI(){return window.devicePixelRatio||1}const fI=(t,n)=>{let o=!1;return t.removedNodes.length&&n&&(o=Array.from(t.removedNodes).includes(n)),t.type==="attributes"&&t.target===n&&(o=!0),o},ym=3;function Ba(t,n,o=1){const l=document.createElement("canvas"),a=l.getContext("2d"),s=t*o,i=n*o;return l.setAttribute("width",`${s}px`),l.setAttribute("height",`${i}px`),a.save(),[a,l,s,i]}function pI(){function t(n,o,l,a,s,i,c,u){const[d,p,f,h]=Ba(a,s,l);if(n instanceof HTMLImageElement)d.drawImage(n,0,0,f,h);else{const{color:F,fontSize:X,fontStyle:L,fontWeight:G,fontFamily:Z,textAlign:ee,textBaseline:Y}=i,z=Number(X)*l;d.font=`${L} normal ${G} ${z}px/${s}px ${Z}`,d.fillStyle=F,d.textAlign=ee,d.textBaseline=Y;const R=r.isArray$1(n)?n:[n];R==null||R.forEach((x,Q)=>{d.fillText(x??"",f/2,Q*(z+ym*l))})}const m=Math.PI/180*Number(o),g=Math.max(a,s),[v,k,b]=Ba(g,g,l);v.translate(b/2,b/2),v.rotate(m),f>0&&h>0&&v.drawImage(p,-f/2,-h/2);function S(F,X){const L=F*Math.cos(m)-X*Math.sin(m),G=F*Math.sin(m)+X*Math.cos(m);return[L,G]}let y=0,C=0,E=0,w=0;const V=f/2,T=h/2;[[0-V,0-T],[0+V,0-T],[0+V,0+T],[0-V,0+T]].forEach(([F,X])=>{const[L,G]=S(F,X);y=Math.min(y,L),C=Math.max(C,L),E=Math.min(E,G),w=Math.max(w,G)});const _=y+b/2,P=E+b/2,B=C-y,A=w-E,j=c*l,M=u*l,I=(B+j)*2,K=A+M,[$,O]=Ba(I,K);function q(F=0,X=0){$.drawImage(k,_,P,B,A,F,X,B,A)}return q(),q(B+j,-A/2-M/2),q(B+j,+A/2+M/2),[O.toDataURL(),I/l,K/l]}return t}const mI=e.defineComponent({name:"ElWatermark"}),hI=e.defineComponent({...mI,props:iI,setup(t){const n=t,o={position:"relative"},l=e.computed(()=>{var _,P;return(P=(_=n.font)==null?void 0:_.color)!=null?P:"rgba(0,0,0,.15)"}),a=e.computed(()=>{var _,P;return(P=(_=n.font)==null?void 0:_.fontSize)!=null?P:16}),s=e.computed(()=>{var _,P;return(P=(_=n.font)==null?void 0:_.fontWeight)!=null?P:"normal"}),i=e.computed(()=>{var _,P;return(P=(_=n.font)==null?void 0:_.fontStyle)!=null?P:"normal"}),c=e.computed(()=>{var _,P;return(P=(_=n.font)==null?void 0:_.fontFamily)!=null?P:"sans-serif"}),u=e.computed(()=>{var _,P;return(P=(_=n.font)==null?void 0:_.textAlign)!=null?P:"center"}),d=e.computed(()=>{var _,P;return(P=(_=n.font)==null?void 0:_.textBaseline)!=null?P:"hanging"}),p=e.computed(()=>n.gap[0]),f=e.computed(()=>n.gap[1]),h=e.computed(()=>p.value/2),m=e.computed(()=>f.value/2),g=e.computed(()=>{var _,P;return(P=(_=n.offset)==null?void 0:_[0])!=null?P:h.value}),v=e.computed(()=>{var _,P;return(P=(_=n.offset)==null?void 0:_[1])!=null?P:m.value}),k=()=>{const _={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let P=g.value-h.value,B=v.value-m.value;return P>0&&(_.left=`${P}px`,_.width=`calc(100% - ${P}px)`,P=0),B>0&&(_.top=`${B}px`,_.height=`calc(100% - ${B}px)`,B=0),_.backgroundPosition=`${P}px ${B}px`,_},b=e.shallowRef(null),S=e.shallowRef(),y=e.ref(!1),C=()=>{S.value&&(S.value.remove(),S.value=void 0)},E=(_,P)=>{var B;b.value&&S.value&&(y.value=!0,S.value.setAttribute("style",uI({...k(),backgroundImage:`url('${_}')`,backgroundSize:`${Math.floor(P)}px`})),(B=b.value)==null||B.append(S.value),setTimeout(()=>{y.value=!1}))},w=_=>{let P=120,B=64;const{image:A,content:j,width:M,height:I,rotate:K}=n;if(!A&&_.measureText){_.font=`${Number(a.value)}px ${c.value}`;const $=r.isArray$1(j)?j:[j];let O=0,q=0;$.forEach(L=>{const{width:G,fontBoundingBoxAscent:Z,fontBoundingBoxDescent:ee,actualBoundingBoxAscent:Y,actualBoundingBoxDescent:z}=_.measureText(L),R=r.isUndefined(Z)?Y+z:Z+ee;G>O&&(O=Math.ceil(G)),R>q&&(q=Math.ceil(R))}),P=O,B=q*$.length+($.length-1)*ym;const F=Math.PI/180*Number(K),X=Math.ceil(Math.abs(Math.sin(F)*B)/2);P+=X}return[M??P,I??B]},V=pI(),T=()=>{const P=document.createElement("canvas").getContext("2d"),B=n.image,A=n.content,j=n.rotate;if(P){S.value||(S.value=document.createElement("div"));const M=dI(),[I,K]=w(P),$=O=>{const[q,F]=V(O||"",j,M,I,K,{color:l.value,fontSize:a.value,fontStyle:i.value,fontWeight:s.value,fontFamily:c.value,textAlign:u.value,textBaseline:d.value},p.value,f.value);E(q,F)};if(B){const O=new Image;O.onload=()=>{$(O)},O.onerror=()=>{$(A)},O.crossOrigin="anonymous",O.referrerPolicy="no-referrer",O.src=B}else $(A)}};e.onMounted(()=>{T()}),e.watch(()=>n,()=>{T()},{deep:!0,flush:"post"}),e.onBeforeUnmount(()=>{C()});const N=_=>{y.value||_.forEach(P=>{fI(P,S.value)&&(C(),T())})};return r.useMutationObserver(b,N,{attributes:!0,subtree:!0,childList:!0}),(_,P)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:b,style:e.normalizeStyle([o])},[e.renderSlot(_.$slots,"default")],4))}});var vI=r._export_sfc(hI,[["__file","watermark.vue"]]);const gI=r.withInstall(vI),yI=r.buildProps({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:r.definePropType(Object)},targetAreaClickable:{type:Boolean,default:!0}}),bI=(t,n,o,l,a)=>{const s=e.ref(null),i=()=>{let f;return r.isString(t.value)?f=document.querySelector(t.value):r.isFunction(t.value)?f=t.value():f=t.value,f},c=()=>{const f=i();if(!f||!n.value){s.value=null;return}CI(f)||f.scrollIntoView(a.value);const{left:h,top:m,width:g,height:v}=f.getBoundingClientRect();s.value={left:h,top:m,width:g,height:v,radius:0}};e.onMounted(()=>{e.watch([n,t],()=>{c()},{immediate:!0}),window.addEventListener("resize",c)}),e.onBeforeUnmount(()=>{window.removeEventListener("resize",c)});const u=f=>{var h;return(h=r.isArray$1(o.value.offset)?o.value.offset[f]:o.value.offset)!=null?h:6},d=e.computed(()=>{var f;if(!s.value)return s.value;const h=u(0),m=u(1),g=((f=o.value)==null?void 0:f.radius)||2;return{left:s.value.left-h,top:s.value.top-m,width:s.value.width+h*2,height:s.value.height+m*2,radius:g}}),p=e.computed(()=>{const f=i();return!l.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var h,m,g,v;return window.DOMRect.fromRect({width:((h=d.value)==null?void 0:h.width)||0,height:((m=d.value)==null?void 0:m.height)||0,x:((g=d.value)==null?void 0:g.left)||0,y:((v=d.value)==null?void 0:v.top)||0})}}});return{mergedPosInfo:d,triggerTarget:p}},ua=Symbol("ElTour");function CI(t){const n=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,{top:l,right:a,bottom:s,left:i}=t.getBoundingClientRect();return l>=0&&i>=0&&a<=n&&s<=o}const kI=(t,n,o,l,a,s,i,c)=>{const u=e.ref(),d=e.ref(),p=e.ref({}),f={x:u,y:d,placement:l,strategy:a,middlewareData:p},h=e.computed(()=>{const b=[Qp(e.unref(s)),DD(),PD(),wI()];return e.unref(c)&&e.unref(o)&&b.push(em({element:e.unref(o)})),b}),m=async()=>{if(!r.isClient)return;const b=e.unref(t),S=e.unref(n);if(!b||!S)return;const y=await tm(b,S,{placement:e.unref(l),strategy:e.unref(a),middleware:e.unref(h)});r.keysOf(f).forEach(C=>{f[C].value=y[C]})},g=e.computed(()=>{if(!e.unref(t))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:e.unref(i)};const{overflow:b}=e.unref(p);return{position:e.unref(a),zIndex:e.unref(i),top:e.unref(d)!=null?`${e.unref(d)}px`:"",left:e.unref(u)!=null?`${e.unref(u)}px`:"",maxWidth:b!=null&&b.maxWidth?`${b==null?void 0:b.maxWidth}px`:""}}),v=e.computed(()=>{if(!e.unref(c))return{};const{arrow:b}=e.unref(p);return{left:(b==null?void 0:b.x)!=null?`${b==null?void 0:b.x}px`:"",top:(b==null?void 0:b.y)!=null?`${b==null?void 0:b.y}px`:""}});let k;return e.onMounted(()=>{const b=e.unref(t),S=e.unref(n);b&&S&&(k=VD(b,S,m)),e.watchEffect(()=>{m()})}),e.onBeforeUnmount(()=>{k&&k()}),{update:m,contentStyle:g,arrowStyle:v}},wI=()=>({name:"overflow",async fn(t){const n=await BD(t);let o=0;return n.left>0&&(o=n.left),n.right>0&&(o=n.right),{data:{maxWidth:t.rects.floating.width-o}}}}),EI=e.defineComponent({name:"ElTourMask",inheritAttrs:!1}),SI=e.defineComponent({...EI,props:yI,setup(t){const n=t,{ns:o}=e.inject(ua),l=e.computed(()=>{var c,u;return(u=(c=n.pos)==null?void 0:c.radius)!=null?u:2}),a=e.computed(()=>{const c=l.value,u=`a${c},${c} 0 0 1`;return{topRight:`${u} ${c},${c}`,bottomRight:`${u} ${-c},${c}`,bottomLeft:`${u} ${-c},${-c}`,topLeft:`${u} ${c},${-c}`}}),s=e.computed(()=>{const c=window.innerWidth,u=window.innerHeight,d=a.value,p=`M${c},0 L0,0 L0,${u} L${c},${u} L${c},0 Z`,f=l.value;return n.pos?`${p} M${n.pos.left+f},${n.pos.top} h${n.pos.width-f*2} ${d.topRight} v${n.pos.height-f*2} ${d.bottomRight} h${-n.pos.width+f*2} ${d.bottomLeft} v${-n.pos.height+f*2} ${d.topLeft} z`:p}),i=e.computed(()=>({fill:n.fill,pointerEvents:"auto",cursor:"auto"}));return D.useLockscreen(e.toRef(n,"visible"),{ns:o}),(c,u)=>c.visible?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:e.unref(o).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:c.zIndex,pointerEvents:c.pos&&c.targetAreaClickable?"none":"auto"}},c.$attrs),[(e.openBlock(),e.createElementBlock("svg",{style:{width:"100%",height:"100%"}},[e.createElementVNode("path",{class:e.normalizeClass(e.unref(o).e("hollow")),style:e.normalizeStyle(e.unref(i)),d:e.unref(s)},null,14,["d"])]))],16)):e.createCommentVNode("v-if",!0)}});var NI=r._export_sfc(SI,[["__file","mask.vue"]]);const TI=["absolute","fixed"],_I=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],Mi=r.buildProps({placement:{type:r.definePropType(String),values:_I,default:"bottom"},reference:{type:r.definePropType(Object),default:null},strategy:{type:r.definePropType(String),values:TI,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),VI={close:()=>!0},BI=e.defineComponent({name:"ElTourContent"}),PI=e.defineComponent({...BI,props:Mi,emits:VI,setup(t,{emit:n}){const o=t,l=e.ref(o.placement),a=e.ref(o.strategy),s=e.ref(null),i=e.ref(null);e.watch(()=>o.placement,()=>{l.value=o.placement});const{contentStyle:c,arrowStyle:u}=kI(e.toRef(o,"reference"),s,i,l,a,e.toRef(o,"offset"),e.toRef(o,"zIndex"),e.toRef(o,"showArrow")),d=e.computed(()=>l.value.split("-")[0]),{ns:p}=e.inject(ua),f=()=>{n("close")},h=m=>{m.detail.focusReason==="pointer"&&m.preventDefault()};return(m,g)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"contentRef",ref:s,style:e.normalizeStyle(e.unref(c)),class:e.normalizeClass(e.unref(p).e("content")),"data-side":e.unref(d),tabindex:"-1"},[e.createVNode(e.unref(D.ElFocusTrap),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":s.value||void 0,onReleaseRequested:f,onFocusoutPrevented:h},{default:e.withCtx(()=>[e.renderSlot(m.$slots,"default")]),_:3},8,["focus-trap-el"]),m.showArrow?(e.openBlock(),e.createElementBlock("span",{key:0,ref_key:"arrowRef",ref:i,style:e.normalizeStyle(e.unref(u)),class:e.normalizeClass(e.unref(p).e("arrow"))},null,6)):e.createCommentVNode("v-if",!0)],14,["data-side"]))}});var DI=r._export_sfc(PI,[["__file","content.vue"]]),$I=e.defineComponent({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(t,{slots:n,emit:o}){let l=0;return()=>{var a,s;const i=(a=n.default)==null?void 0:a.call(n),c=[];let u=0;function d(p){r.isArray$1(p)&&p.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(c.push(f),u+=1)})}return i.length&&d(D.flattedChildren((s=i[0])==null?void 0:s.children)),l!==u&&(l=u,o("update-total",u)),c.length?c[t.current]:null}}});const II=r.buildProps({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:r.iconPropType},placement:Mi.placement,contentStyle:{type:r.definePropType([Object])},mask:{type:r.definePropType([Boolean,Object]),default:!0},gap:{type:r.definePropType(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:r.definePropType([Boolean,Object]),default:()=>({block:"center"})},type:{type:r.definePropType(String)},appendTo:{type:Xr.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),OI={[D.UPDATE_MODEL_EVENT]:t=>r.isBoolean(t),"update:current":t=>r.isNumber(t),close:t=>r.isNumber(t),finish:()=>!0,change:t=>r.isNumber(t)},MI=e.defineComponent({name:"ElTour"}),xI=e.defineComponent({...MI,props:II,emits:OI,setup(t,{emit:n}){const o=t,l=r.useNamespace("tour"),a=e.ref(0),s=e.ref(),i=r.useVModel(o,"current",n,{passive:!0}),c=e.computed(()=>{var N;return(N=s.value)==null?void 0:N.target}),u=e.computed(()=>[l.b(),k.value==="primary"?l.m("primary"):""]),d=e.computed(()=>{var N;return((N=s.value)==null?void 0:N.placement)||o.placement}),p=e.computed(()=>{var N,_;return(_=(N=s.value)==null?void 0:N.contentStyle)!=null?_:o.contentStyle}),f=e.computed(()=>{var N,_;return(_=(N=s.value)==null?void 0:N.mask)!=null?_:o.mask}),h=e.computed(()=>!!f.value&&o.modelValue),m=e.computed(()=>r.isBoolean(f.value)?void 0:f.value),g=e.computed(()=>{var N,_;return!!c.value&&((_=(N=s.value)==null?void 0:N.showArrow)!=null?_:o.showArrow)}),v=e.computed(()=>{var N,_;return(_=(N=s.value)==null?void 0:N.scrollIntoViewOptions)!=null?_:o.scrollIntoViewOptions}),k=e.computed(()=>{var N,_;return(_=(N=s.value)==null?void 0:N.type)!=null?_:o.type}),{nextZIndex:b}=r.useZIndex(),S=b(),y=e.computed(()=>{var N;return(N=o.zIndex)!=null?N:S}),{mergedPosInfo:C,triggerTarget:E}=bI(c,e.toRef(o,"modelValue"),e.toRef(o,"gap"),f,v);e.watch(()=>o.modelValue,N=>{N||(i.value=0)});const w=()=>{o.closeOnPressEscape&&(n(D.UPDATE_MODEL_EVENT,!1),n("close",i.value))},V=N=>{a.value=N},T=e.useSlots();return e.provide(ua,{currentStep:s,current:i,total:a,showClose:e.toRef(o,"showClose"),closeIcon:e.toRef(o,"closeIcon"),mergedType:k,ns:l,slots:T,updateModelValue(N){n(D.UPDATE_MODEL_EVENT,N)},onClose(){n("close",i.value)},onFinish(){n("finish")},onChange(){n(D.CHANGE_EVENT,i.value)}}),(N,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(so),{to:N.appendTo},{default:e.withCtx(()=>{var P,B;return[e.createElementVNode("div",e.mergeProps({class:e.unref(u)},N.$attrs),[e.createVNode(NI,{visible:e.unref(h),fill:(P=e.unref(m))==null?void 0:P.color,style:e.normalizeStyle((B=e.unref(m))==null?void 0:B.style),pos:e.unref(C),"z-index":e.unref(y),"target-area-clickable":N.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),N.modelValue?(e.openBlock(),e.createBlock(DI,{key:e.unref(i),reference:e.unref(E),placement:e.unref(d),"show-arrow":e.unref(g),"z-index":e.unref(y),style:e.normalizeStyle(e.unref(p)),onClose:w},{default:e.withCtx(()=>[e.createVNode(e.unref($I),{current:e.unref(i),onUpdateTotal:V},{default:e.withCtx(()=>[e.renderSlot(N.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):e.createCommentVNode("v-if",!0)],16)]}),_:3},8,["to"]),e.createCommentVNode(" just for IDE "),e.createCommentVNode("v-if",!0)],64))}});var AI=r._export_sfc(xI,[["__file","tour.vue"]]);const zI=r.buildProps({target:{type:r.definePropType([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:r.iconPropType},showArrow:{type:Boolean,default:void 0},placement:Mi.placement,mask:{type:r.definePropType([Boolean,Object]),default:void 0},contentStyle:{type:r.definePropType([Object])},prevButtonProps:{type:r.definePropType(Object)},nextButtonProps:{type:r.definePropType(Object)},scrollIntoViewOptions:{type:r.definePropType([Boolean,Object]),default:void 0},type:{type:r.definePropType(String)}}),RI={close:()=>!0},LI=e.defineComponent({name:"ElTourStep"}),FI=e.defineComponent({...LI,props:zI,emits:RI,setup(t,{emit:n}){const o=t,{Close:l}=r.CloseComponents,{t:a}=r.useLocale(),{currentStep:s,current:i,total:c,showClose:u,closeIcon:d,mergedType:p,ns:f,slots:h,updateModelValue:m,onClose:g,onFinish:v,onChange:k}=e.inject(ua);e.watch(o,T=>{s.value=T},{immediate:!0});const b=e.computed(()=>{var T;return(T=o.showClose)!=null?T:u.value}),S=e.computed(()=>{var T,N;return(N=(T=o.closeIcon)!=null?T:d.value)!=null?N:l}),y=T=>{if(T)return hh(T,["children","onClick"])},C=()=>{var T,N;i.value-=1,(T=o.prevButtonProps)!=null&&T.onClick&&((N=o.prevButtonProps)==null||N.onClick()),k()},E=()=>{var T;i.value>=c.value-1?w():i.value+=1,(T=o.nextButtonProps)!=null&&T.onClick&&o.nextButtonProps.onClick(),k()},w=()=>{V(),v()},V=()=>{m(!1),g(),n("close")};return(T,N)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(b)?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":"Close",class:e.normalizeClass(e.unref(f).e("closebtn")),type:"button",onClick:V},[e.createVNode(e.unref(r.ElIcon),{class:e.normalizeClass(e.unref(f).e("close"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(S))))]),_:1},8,["class"])],2)):e.createCommentVNode("v-if",!0),e.createElementVNode("header",{class:e.normalizeClass([e.unref(f).e("header"),{"show-close":e.unref(u)}])},[e.renderSlot(T.$slots,"header",{},()=>[e.createElementVNode("span",{role:"heading",class:e.normalizeClass(e.unref(f).e("title"))},e.toDisplayString(T.title),3)])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("body"))},[e.renderSlot(T.$slots,"default",{},()=>[e.createElementVNode("span",null,e.toDisplayString(T.description),1)])],2),e.createElementVNode("footer",{class:e.normalizeClass(e.unref(f).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).b("indicators"))},[e.unref(h).indicators?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(h).indicators),{key:0,current:e.unref(i),total:e.unref(c)},null,8,["current","total"])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref(c),(_,P)=>(e.openBlock(),e.createElementBlock("span",{key:_,class:e.normalizeClass([e.unref(f).b("indicator"),P===e.unref(i)?"is-active":""])},null,2))),128))],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).b("buttons"))},[e.unref(i)>0?(e.openBlock(),e.createBlock(e.unref(D.ElButton),e.mergeProps({key:0,size:"small",type:e.unref(p)},y(T.prevButtonProps),{onClick:C}),{default:e.withCtx(()=>{var _,P;return[e.createTextVNode(e.toDisplayString((P=(_=T.prevButtonProps)==null?void 0:_.children)!=null?P:e.unref(a)("el.tour.previous")),1)]}),_:1},16,["type"])):e.createCommentVNode("v-if",!0),e.unref(i)<=e.unref(c)-1?(e.openBlock(),e.createBlock(e.unref(D.ElButton),e.mergeProps({key:1,size:"small",type:e.unref(p)==="primary"?"default":"primary"},y(T.nextButtonProps),{onClick:E}),{default:e.withCtx(()=>{var _,P;return[e.createTextVNode(e.toDisplayString((P=(_=T.nextButtonProps)==null?void 0:_.children)!=null?P:e.unref(i)===e.unref(c)-1?e.unref(a)("el.tour.finish"):e.unref(a)("el.tour.next")),1)]}),_:1},16,["type"])):e.createCommentVNode("v-if",!0)],2)],2)],64))}});var bm=r._export_sfc(FI,[["__file","step.vue"]]);const KI=r.withInstall(AI,{TourStep:bm}),HI=r.withNoopInstall(bm),jI=r.buildProps({container:{type:r.definePropType([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:r.definePropType(String),default:"default"},direction:{type:r.definePropType(String),default:"vertical"},selectScrollTop:{type:Boolean,default:!1}}),WI={change:t=>r.isString(t),click:(t,n)=>t instanceof MouseEvent&&(r.isString(n)||r.isUndefined(n))},Cm=Symbol("anchor"),Xl=t=>{if(!r.isClient||t==="")return null;if(r.isString(t))try{return document.querySelector(t)}catch{return null}return t};function UI(t){let n=0;const o=(...l)=>{n&&D.cAF(n),n=D.rAF(()=>{t(...l),n=0})};return o.cancel=()=>{D.cAF(n),n=0},o}const qI=e.defineComponent({name:"ElAnchor"}),YI=e.defineComponent({...qI,props:jI,emits:WI,setup(t,{expose:n,emit:o}){const l=t,a=e.ref(""),s=e.ref(null),i=e.ref(null),c=e.ref(),u={};let d=!1,p=0;const f=r.useNamespace("anchor"),h=e.computed(()=>[f.b(),l.type==="underline"?f.m("underline"):"",f.m(l.direction)]),m=T=>{u[T.href]=T.el},g=T=>{delete u[T]},v=T=>{a.value!==T&&(a.value=T,o(D.CHANGE_EVENT,T))};let k=null;const b=T=>{if(!c.value)return;const N=Xl(T);if(!N)return;k&&k(),d=!0;const _=D.getScrollElement(N,c.value),P=Aa(N,_),B=_.scrollHeight-_.clientHeight,A=Math.min(P-l.offset,B);k=D.animateScrollTo(c.value,p,A,l.duration,()=>{setTimeout(()=>{d=!1},20)})},S=T=>{T&&(v(T),b(T))},y=(T,N)=>{o("click",T,N),S(N)},C=UI(()=>{c.value&&(p=D.getScrollTop(c.value));const T=E();d||r.isUndefined(T)||v(T)}),E=()=>{if(!c.value)return;const T=D.getScrollTop(c.value),N=[];for(const _ of Object.keys(u)){const P=Xl(_);if(!P)continue;const B=D.getScrollElement(P,c.value),A=Aa(P,B);N.push({top:A-l.offset-l.bound,href:_})}N.sort((_,P)=>_.top-P.top);for(let _=0;_<N.length;_++){const P=N[_],B=N[_+1];if(_===0&&T===0)return l.selectScrollTop?P.href:"";if(P.top<=T&&(!B||B.top>T))return P.href}},w=()=>{const T=Xl(l.container);!T||r.isWindow(T)?c.value=window:c.value=T};r.useEventListener(c,"scroll",C);const V=e.computed(()=>{if(!s.value||!i.value||!a.value)return{};const T=u[a.value];if(!T)return{};const N=s.value.getBoundingClientRect(),_=i.value.getBoundingClientRect(),P=T.getBoundingClientRect();return l.direction==="horizontal"?{left:`${P.left-N.left}px`,width:`${P.width}px`,opacity:1}:{top:`${P.top-N.top+(P.height-_.height)/2}px`,opacity:1}});return e.onMounted(()=>{w();const T=decodeURIComponent(window.location.hash);Xl(T)?S(T):C()}),e.watch(()=>l.container,()=>{w()}),e.provide(Cm,{ns:f,direction:l.direction,currentAnchor:a,addLink:m,removeLink:g,handleClick:y}),n({scrollTo:S}),(T,N)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"anchorRef",ref:s,class:e.normalizeClass(e.unref(h))},[T.marker?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"markerRef",ref:i,class:e.normalizeClass(e.unref(f).e("marker")),style:e.normalizeStyle(e.unref(V))},null,6)):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("list"))},[e.renderSlot(T.$slots,"default")],2)],2))}});var GI=r._export_sfc(YI,[["__file","anchor.vue"]]);const XI=r.buildProps({title:String,href:String}),JI=e.defineComponent({name:"ElAnchorLink"}),ZI=e.defineComponent({...JI,props:XI,setup(t){const n=t,o=e.ref(null),{ns:l,direction:a,currentAnchor:s,addLink:i,removeLink:c,handleClick:u}=e.inject(Cm),d=e.computed(()=>[l.e("link"),l.is("active",s.value===n.href)]),p=f=>{u(f,n.href)};return e.watch(()=>n.href,(f,h)=>{e.nextTick(()=>{h&&c(h),f&&i({href:f,el:o.value})})}),e.onMounted(()=>{const{href:f}=n;f&&i({href:f,el:o.value})}),e.onBeforeUnmount(()=>{const{href:f}=n;f&&c(f)}),(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(l).e("item"))},[e.createElementVNode("a",{ref_key:"linkRef",ref:o,class:e.normalizeClass(e.unref(d)),href:f.href,onClick:p},[e.renderSlot(f.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(f.title),1)])],10,["href"]),f.$slots["sub-link"]&&e.unref(a)==="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l).e("list"))},[e.renderSlot(f.$slots,"sub-link")],2)):e.createCommentVNode("v-if",!0)],2))}});var km=r._export_sfc(ZI,[["__file","anchor-link.vue"]]);const QI=r.withInstall(GI,{AnchorLink:km}),eO=r.withNoopInstall(km),wm={label:"label",value:"value",disabled:"disabled"},tO=r.buildProps({direction:{type:r.definePropType(String),default:"horizontal"},options:{type:r.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:r.definePropType(Object),default:()=>wm},block:Boolean,size:r.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...D.useAriaProps(["ariaLabel"])}),nO={[D.UPDATE_MODEL_EVENT]:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t),[D.CHANGE_EVENT]:t=>r.isString(t)||r.isNumber(t)||r.isBoolean(t)},oO=e.defineComponent({name:"ElSegmented"}),lO=e.defineComponent({...oO,props:tO,emits:nO,setup(t,{emit:n}){const o=t,l=r.useNamespace("segmented"),a=D.useId(),s=D.useFormSize(),i=D.useFormDisabled(),{formItem:c}=D.useFormItem(),{inputId:u,isLabeledByFormItem:d}=D.useFormItemInputId(o,{formItemContext:c}),p=e.ref(null),f=r.useActiveElement(),h=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),m=_=>{const P=v(_);n(D.UPDATE_MODEL_EVENT,P),n(D.CHANGE_EVENT,P)},g=e.computed(()=>({...wm,...o.props})),v=_=>r.isObject$1(_)?_[g.value.value]:_,k=_=>r.isObject$1(_)?_[g.value.label]:_,b=_=>!!(i.value||r.isObject$1(_)&&_[g.value.disabled]),S=_=>o.modelValue===v(_),y=_=>o.options.find(P=>v(P)===_),C=_=>[l.e("item"),l.is("selected",S(_)),l.is("disabled",b(_))],E=()=>{if(!p.value)return;const _=p.value.querySelector(".is-selected"),P=p.value.querySelector(".is-selected input");if(!_||!P){h.width=0,h.height=0,h.translateX=0,h.translateY=0,h.focusVisible=!1;return}const B=_.getBoundingClientRect();h.isInit=!0,o.direction==="vertical"?(h.height=B.height,h.translateY=_.offsetTop):(h.width=B.width,h.translateX=_.offsetLeft);try{h.focusVisible=P.matches(":focus-visible")}catch{}},w=e.computed(()=>[l.b(),l.m(s.value),l.is("block",o.block)]),V=e.computed(()=>({width:o.direction==="vertical"?"100%":`${h.width}px`,height:o.direction==="vertical"?`${h.height}px`:"100%",transform:o.direction==="vertical"?`translateY(${h.translateY}px)`:`translateX(${h.translateX}px)`,display:h.isInit?"block":"none"})),T=e.computed(()=>[l.e("item-selected"),l.is("disabled",b(y(o.modelValue))),l.is("focus-visible",h.focusVisible)]),N=e.computed(()=>o.name||a.value);return r.useResizeObserver(p,E),e.watch(f,E),e.watch(()=>o.modelValue,()=>{var _;E(),o.validateEvent&&((_=c==null?void 0:c.validate)==null||_.call(c,"change").catch(P=>r.debugWarn(P)))},{flush:"post"}),(_,P)=>_.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(u),ref_key:"segmentedRef",ref:p,class:e.normalizeClass(e.unref(w)),role:"radiogroup","aria-label":e.unref(d)?void 0:_.ariaLabel||"segmented","aria-labelledby":e.unref(d)?e.unref(c).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l).e("group"),e.unref(l).m(o.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(V)),class:e.normalizeClass(e.unref(T))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.options,(B,A)=>(e.openBlock(),e.createElementBlock("label",{key:A,class:e.normalizeClass(C(B))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(l).e("item-input")),type:"radio",name:e.unref(N),disabled:b(B),checked:S(B),onChange:j=>m(B)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("item-label"))},[e.renderSlot(_.$slots,"default",{item:B},()=>[e.createTextVNode(e.toDisplayString(k(B)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var rO=r._export_sfc(lO,[["__file","segmented.vue"]]);const aO=r.withInstall(rO),sO=(t,n)=>{const o=t.toLowerCase();return(n.label||n.value).toLowerCase().includes(o)},iO=(t,n,o)=>{const{selectionEnd:l}=t;if(l===null)return;const a=t.value,s=rt(n);let i=-1,c;for(let u=l-1;u>=0;--u){const d=a[u];if(d===o||d===`
56
- `||d==="\r"){i=u;continue}if(s.includes(d)){const p=i===-1?l:i;c={pattern:a.slice(u+1,p),start:u+1,end:p,prefix:d,prefixIndex:u,splitIndex:i,selectionEnd:l};break}}return c},cO=(t,n={debug:!1,useSelectionEnd:!1})=>{const o=t.selectionStart!==null?t.selectionStart:0,l=t.selectionEnd!==null?t.selectionEnd:0,a=n.useSelectionEnd?l:o,s=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(n.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const i=document.createElement("div");i.id="input-textarea-caret-position-mirror-div",document.body.appendChild(i);const c=i.style,u=window.getComputedStyle(t),d=t.nodeName==="INPUT";c.whiteSpace=d?"nowrap":"pre-wrap",d||(c.wordWrap="break-word"),c.position="absolute",n.debug||(c.visibility="hidden"),s.forEach(h=>{if(d&&h==="lineHeight")if(u.boxSizing==="border-box"){const m=Number.parseInt(u.height),g=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=g+Number.parseInt(u.lineHeight);m>v?c.lineHeight=`${m-g}px`:m===v?c.lineHeight=u.lineHeight:c.lineHeight="0"}else c.lineHeight=u.height;else c[h]=u[h]}),D.isFirefox()?t.scrollHeight>Number.parseInt(u.height)&&(c.overflowY="scroll"):c.overflow="hidden",i.textContent=t.value.slice(0,Math.max(0,a)),d&&i.textContent&&(i.textContent=i.textContent.replace(/\s/g," "));const p=document.createElement("span");p.textContent=t.value.slice(Math.max(0,a))||".",p.style.position="relative",p.style.left=`${-t.scrollLeft}px`,p.style.top=`${-t.scrollTop}px`,i.appendChild(p);const f={top:p.offsetTop+Number.parseInt(u.borderTopWidth),left:p.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return n.debug?p.style.backgroundColor="#aaa":document.body.removeChild(i),f.left>=t.clientWidth&&(f.left=t.clientWidth),f},uO=r.buildProps({...D.inputProps,options:{type:r.definePropType(Array),default:()=>[]},prefix:{type:r.definePropType([String,Array]),default:"@",validator:t=>r.isString(t)?t.length===1:t.every(n=>r.isString(n)&&n.length===1)},split:{type:String,default:" ",validator:t=>t.length===1},filterOption:{type:r.definePropType([Boolean,Function]),default:()=>sO,validator:t=>t===!1?!0:r.isFunction(t)},placement:{type:r.definePropType(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:r.definePropType(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:r.definePropType(Object),default:()=>({})}}),dO={[D.UPDATE_MODEL_EVENT]:t=>r.isString(t),input:t=>r.isString(t),search:(t,n)=>r.isString(t)&&r.isString(n),select:(t,n)=>r.isString(t.value)&&r.isString(n),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},fO=r.buildProps({options:{type:r.definePropType(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),pO={select:t=>r.isString(t.value)},mO=e.defineComponent({name:"ElMentionDropdown"}),hO=e.defineComponent({...mO,props:fO,emits:pO,setup(t,{expose:n,emit:o}){const l=t,a=r.useNamespace("mention"),{t:s}=r.useLocale(),i=e.ref(-1),c=e.ref(),u=e.ref(),d=e.ref(),p=(y,C)=>[a.be("dropdown","item"),a.is("hovering",i.value===C),a.is("disabled",y.disabled||l.disabled)],f=y=>{y.disabled||l.disabled||o("select",y)},h=y=>{i.value=y},m=e.computed(()=>l.disabled||l.options.every(y=>y.disabled)),g=e.computed(()=>l.options[i.value]),v=()=>{g.value&&o("select",g.value)},k=y=>{const{options:C}=l;if(C.length===0||m.value)return;y==="next"?(i.value++,i.value===C.length&&(i.value=0)):y==="prev"&&(i.value--,i.value<0&&(i.value=C.length-1));const E=C[i.value];if(E.disabled){k(y);return}e.nextTick(()=>b(E))},b=y=>{var C,E,w,V;const{options:T}=l,N=T.findIndex(P=>P.value===y.value),_=(C=u.value)==null?void 0:C[N];if(_){const P=(w=(E=d.value)==null?void 0:E.querySelector)==null?void 0:w.call(E,`.${a.be("dropdown","wrap")}`);P&&D.scrollIntoView(P,_)}(V=c.value)==null||V.handleScroll()},S=()=>{m.value||l.options.length===0?i.value=-1:i.value=0};return e.watch(()=>l.options,S,{immediate:!0}),n({hoveringIndex:i,navigateOptions:k,selectHoverOption:v,hoverOption:g}),(y,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:d,class:e.normalizeClass(e.unref(a).b("dropdown"))},[y.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(a).be("dropdown","header"))},[e.renderSlot(y.$slots,"header")],2)):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(e.unref(Pt),{id:y.contentId,ref_key:"scrollbarRef",ref:c,tag:"ul","wrap-class":e.unref(a).be("dropdown","wrap"),"view-class":e.unref(a).be("dropdown","list"),role:"listbox","aria-label":y.ariaLabel,"aria-orientation":"vertical"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(E,w)=>(e.openBlock(),e.createElementBlock("li",{id:`${y.contentId}-${w}`,ref_for:!0,ref_key:"optionRefs",ref:u,key:w,class:e.normalizeClass(p(E,w)),role:"option","aria-disabled":E.disabled||y.disabled||void 0,"aria-selected":i.value===w,onMousemove:V=>h(w),onClick:e.withModifiers(V=>f(E),["stop"])},[e.renderSlot(y.$slots,"label",{item:E,index:w},()=>{var V;return[e.createElementVNode("span",null,e.toDisplayString((V=E.label)!=null?V:E.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[e.vShow,y.options.length>0&&!y.loading]]),y.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(a).be("dropdown","loading"))},[e.renderSlot(y.$slots,"loading",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("el.mention.loading")),1)])],2)):e.createCommentVNode("v-if",!0),y.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(a).be("dropdown","footer"))},[e.renderSlot(y.$slots,"footer")],2)):e.createCommentVNode("v-if",!0)],2))}});var vO=r._export_sfc(hO,[["__file","mention-dropdown.vue"]]);const gO=e.defineComponent({name:"ElMention",inheritAttrs:!1}),yO=e.defineComponent({...gO,props:uO,emits:dO,setup(t,{expose:n,emit:o}){const l=t,a=e.computed(()=>D.pick(l,Object.keys(D.inputProps))),s=r.useNamespace("mention"),i=D.useFormDisabled(),c=D.useId(),u=e.ref(),d=e.ref(),p=e.ref(),f=e.ref(!1),h=e.ref(),m=e.ref(),g=e.computed(()=>l.showArrow?l.placement:`${l.placement}-start`),v=e.computed(()=>l.showArrow?["bottom","top"]:["bottom-start","top-start"]),k=e.computed(()=>{const{filterOption:B,options:A}=l;return!m.value||!B?A:A.filter(j=>B(m.value.pattern,j))}),b=e.computed(()=>f.value&&(!!k.value.length||l.loading)),S=e.computed(()=>{var B;return`${c.value}-${(B=p.value)==null?void 0:B.hoveringIndex}`}),y=B=>{o(D.UPDATE_MODEL_EVENT,B),o(D.INPUT_EVENT,B),N()},C=B=>{var A,j,M,I;if(!(!("code"in B)||(A=u.value)!=null&&A.isComposing))switch(B.code){case r.EVENT_CODE.left:case r.EVENT_CODE.right:N();break;case r.EVENT_CODE.up:case r.EVENT_CODE.down:if(!f.value)return;B.preventDefault(),(j=p.value)==null||j.navigateOptions(B.code===r.EVENT_CODE.up?"prev":"next");break;case r.EVENT_CODE.enter:case r.EVENT_CODE.numpadEnter:if(!f.value)return;B.preventDefault(),(M=p.value)!=null&&M.hoverOption?(I=p.value)==null||I.selectHoverOption():f.value=!1;break;case r.EVENT_CODE.esc:if(!f.value)return;B.preventDefault(),f.value=!1;break;case r.EVENT_CODE.backspace:if(l.whole&&m.value){const{splitIndex:K,selectionEnd:$,pattern:O,prefixIndex:q,prefix:F}=m.value,X=T();if(!X)return;const L=X.value,G=l.options.find(ee=>ee.value===O);if((r.isFunction(l.checkIsWhole)?l.checkIsWhole(O,F):G)&&K!==-1&&K+1===$){B.preventDefault();const ee=L.slice(0,q)+L.slice(K+1);o(D.UPDATE_MODEL_EVENT,ee),o(D.INPUT_EVENT,ee);const Y=q;e.nextTick(()=>{X.selectionStart=Y,X.selectionEnd=Y,P()})}}}},{wrapperRef:E}=D.useFocusController(u,{beforeFocus(){return i.value},afterFocus(){N()},beforeBlur(B){var A;return(A=d.value)==null?void 0:A.isFocusInsideContent(B)},afterBlur(){f.value=!1}}),w=()=>{N()},V=B=>{if(!m.value)return;const A=T();if(!A)return;const j=A.value,{split:M}=l,I=j.slice(m.value.end),K=I.startsWith(M),$=`${B.value}${K?"":M}`,O=j.slice(0,m.value.start)+$+I;o(D.UPDATE_MODEL_EVENT,O),o(D.INPUT_EVENT,O),o("select",B,m.value.prefix);const q=m.value.start+$.length+(K?1:0);e.nextTick(()=>{A.selectionStart=q,A.selectionEnd=q,A.focus(),P()})},T=()=>{var B,A;return l.type==="textarea"?(B=u.value)==null?void 0:B.textarea:(A=u.value)==null?void 0:A.input},N=()=>{setTimeout(()=>{_(),P(),e.nextTick(()=>{var B;return(B=d.value)==null?void 0:B.updatePopper()})},0)},_=()=>{const B=T();if(!B)return;const A=cO(B),j=B.getBoundingClientRect(),M=u.value.$el.getBoundingClientRect();h.value={position:"absolute",width:0,height:`${A.height}px`,left:`${A.left+j.left-M.left}px`,top:`${A.top+j.top-M.top}px`}},P=()=>{const B=T();if(document.activeElement!==B){f.value=!1;return}const{prefix:A,split:j}=l;if(m.value=iO(B,A,j),m.value&&m.value.splitIndex===-1){f.value=!0,o("search",m.value.pattern,m.value.prefix);return}f.value=!1};return n({input:u,tooltip:d,dropdownVisible:b}),(B,A)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:E,class:e.normalizeClass(e.unref(s).b())},[e.createVNode(e.unref(D.ElInput),e.mergeProps(e.mergeProps(e.unref(a),B.$attrs),{ref_key:"elInputRef",ref:u,"model-value":B.modelValue,disabled:e.unref(i),role:e.unref(b)?"combobox":void 0,"aria-activedescendant":e.unref(b)?e.unref(S)||"":void 0,"aria-controls":e.unref(b)?e.unref(c):void 0,"aria-expanded":e.unref(b)||void 0,"aria-label":B.ariaLabel,"aria-autocomplete":e.unref(b)?"none":void 0,"aria-haspopup":e.unref(b)?"listbox":void 0,onInput:y,onKeydown:C,onMousedown:w}),e.createSlots({_:2},[e.renderList(B.$slots,(j,M)=>({name:M,fn:e.withCtx(I=>[e.renderSlot(B.$slots,M,e.normalizeProps(e.guardReactiveProps(I)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),e.createVNode(e.unref(nt),{ref_key:"tooltipRef",ref:d,visible:e.unref(b),"popper-class":[e.unref(s).e("popper"),B.popperClass],"popper-options":B.popperOptions,placement:e.unref(g),"fallback-placements":e.unref(v),effect:"light",pure:"",offset:B.offset,"show-arrow":B.showArrow},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(h.value)},null,4)]),content:e.withCtx(()=>{var j;return[e.createVNode(vO,{ref_key:"dropdownRef",ref:p,options:e.unref(k),disabled:e.unref(i),loading:B.loading,"content-id":e.unref(c),"aria-label":B.ariaLabel,onSelect:V,onClick:e.withModifiers((j=u.value)==null?void 0:j.focus,["stop"])},e.createSlots({_:2},[e.renderList(B.$slots,(M,I)=>({name:I,fn:e.withCtx(K=>[e.renderSlot(B.$slots,I,e.normalizeProps(e.guardReactiveProps(K)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var bO=r._export_sfc(yO,[["__file","mention.vue"]]);const CO=r.withInstall(bO),kO=r.buildProps({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]}}),Em=Symbol("splitterRootContextKey");function wO(t){const n=e.ref(),{width:o,height:l}=r.useElementSize(n),a=e.computed(()=>t.value==="horizontal"?o.value:l.value);return{containerEl:n,containerSize:a}}function xi(t){return Number(t.slice(0,-1))/100}function Ai(t){return Number(t.slice(0,-2))}function zi(t){return r.isString(t)&&t.endsWith("%")}function Ri(t){return r.isString(t)&&t.endsWith("px")}function EO(t,n){const o=e.computed(()=>t.value.map(c=>c.size)),l=e.computed(()=>t.value.length),a=e.ref([]);e.watch([o,l,n],()=>{var c;let u=[],d=0;for(let f=0;f<l.value;f+=1){const h=(c=t.value[f])==null?void 0:c.size;if(zi(h))u[f]=xi(h);else if(Ri(h))u[f]=Ai(h)/n.value;else if(h||h===0){const m=Number(h);Number.isNaN(m)||(u[f]=m/n.value)}else d+=1,u[f]=void 0}const p=u.reduce((f,h)=>f+(h||0),0);if(p>1||!d){const f=1/p;u=u.map(h=>h===void 0?0:h*f)}else{const f=(1-p)/d;u=u.map(h=>h===void 0?f:h)}a.value=u});const s=c=>c*n.value,i=e.computed(()=>a.value.map(s));return{percentSizes:a,pxSizes:i}}function SO(t,n,o){const l=m=>m*n.value||0;function a(m,g){return zi(m)?l(xi(m)):Ri(m)?Ai(m):m??g}const s=e.ref(null);let i=[];const c=e.computed(()=>t.value.map(m=>[m.min,m.max])),u=m=>{s.value={index:m,confirmed:!1},i=o.value},d=(m,g)=>{var v,k;let b=null;if((!s.value||!s.value.confirmed)&&g!==0){if(g>0)b=m,s.value={index:m,confirmed:!0};else for(let _=m;_>=0;_-=1)if(i[_]>0){b=_,s.value={index:_,confirmed:!0};break}}const S=(k=b??((v=s.value)==null?void 0:v.index))!=null?k:m,y=[...i],C=S+1,E=a(c.value[S][0],0),w=a(c.value[C][0],0),V=a(c.value[S][1],n.value||0),T=a(c.value[C][1],n.value||0);let N=g;y[S]+N<E&&(N=E-y[S]),y[C]-N<w&&(N=y[C]-w),y[S]+N>V&&(N=V-y[S]),y[C]-N>T&&(N=y[C]-T),y[S]+=N,y[C]-=N,t.value.forEach((_,P)=>{_.size=y[P]})},p=()=>{s.value=null,i=[]},f=[];return{onMoveStart:u,onMoving:d,onMoveEnd:p,movingIndex:s,onCollapse:(m,g)=>{const v=o.value,k=g==="start"?m:m+1,b=g==="start"?m+1:m,S=v[k],y=v[b];if(S!==0&&y!==0)v[k]=0,v[b]+=S,f[m]=S;else{const C=S+y,E=f[m],w=C-E;v[b]=E,v[k]=w}t.value.forEach((C,E)=>{C.size=v[E]})}}}const NO=e.defineComponent({name:"ElSplitter"}),TO=e.defineComponent({...NO,props:kO,emits:["resizeStart","resize","resizeEnd"],setup(t,{emit:n}){const o=t,l=r.useNamespace("splitter"),{containerEl:a,containerSize:s}=wO(e.toRef(o,"layout")),{removeChild:i,children:c,addChild:u}=Jr(e.getCurrentInstance(),"ElSplitterPanel");e.watch(c,()=>{c.value.forEach((y,C)=>{y.setIndex(C)})});const{percentSizes:d,pxSizes:p}=EO(c,s),{onMoveStart:f,onMoving:h,onMoveEnd:m,onCollapse:g,movingIndex:v}=SO(c,s,p),k=y=>{f(y),n("resizeStart",y,p.value)},b=(y,C)=>{h(y,C),n("resize",y,p.value)},S=y=>{m(),n("resizeEnd",y,p.value)};return e.provide(Em,e.reactive({panels:c,percentSizes:d,pxSizes:p,layout:o.layout,movingIndex:v,containerSize:s,onMoveStart:k,onMoving:b,onMoveEnd:S,onCollapse:g,registerPanel:y=>{c.value.push(y)},sortPanel:u,unregisterPanel:i})),(y,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerEl",ref:a,class:e.normalizeClass([e.unref(l).b(),e.unref(l).e(y.layout)])},[e.renderSlot(y.$slots,"default"),e.createCommentVNode(" Prevent iframe touch events from breaking "),e.unref(v)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l).e("mask"),e.unref(l).e(`mask-${y.layout}`)])},null,2)):e.createCommentVNode("v-if",!0)],2))}});var _O=r._export_sfc(TO,[["__file","splitter.vue"]]);function VO(t){return t&&r.isObject$1(t)?t:{start:!!t,end:!!t}}function $u(t,n,o,l){return!!(t!=null&&t.collapsible.end&&n>0||o!=null&&o.collapsible.start&&l===0&&n>0)}const BO=e.defineComponent({name:"ElSplitterBar"}),PO=e.defineComponent({...BO,props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},startCollapsible:{type:Boolean},endCollapsible:{type:Boolean}},emits:["moveStart","moving","moveEnd","collapse"],setup(t,{emit:n}){const o=t,l=r.useNamespace("splitter-bar"),a=e.computed(()=>o.layout==="horizontal"),s=e.computed(()=>a.value?{width:0}:{height:0}),i=e.computed(()=>({width:a.value?"16px":"100%",height:a.value?"100%":"16px",cursor:a.value?"col-resize":"row-resize",touchAction:"none"})),c=e.computed(()=>{const b=l.e("dragger");let S=a.value?`${b}-horizontal`:`${b}-vertical`;return u.value&&(S+=` ${b}-active`),S}),u=e.ref(null),d=b=>{o.resizable&&(u.value=[b.pageX,b.pageY],n("moveStart",o.index),window.addEventListener("mouseup",m),window.addEventListener("mousemove",f))},p=b=>{if(o.resizable&&b.touches.length===1){b.preventDefault();const S=b.touches[0];u.value=[S.pageX,S.pageY],n("moveStart",o.index),window.addEventListener("touchend",g),window.addEventListener("touchmove",h)}},f=b=>{const{pageX:S,pageY:y}=b,C=S-u.value[0],E=y-u.value[1],w=a.value?C:E;n("moving",o.index,w)},h=b=>{if(b.touches.length===1){b.preventDefault();const S=b.touches[0],y=S.pageX-u.value[0],C=S.pageY-u.value[1],E=a.value?y:C;n("moving",o.index,E)}},m=()=>{u.value=null,window.removeEventListener("mouseup",m),window.removeEventListener("mousemove",f),n("moveEnd",o.index)},g=()=>{u.value=null,window.removeEventListener("touchend",g),window.removeEventListener("touchmove",h),n("moveEnd",o.index)},v=e.computed(()=>a.value?r.arrow_left_default:r.arrow_up_default),k=e.computed(()=>a.value?r.arrow_right_default:r.arrow_down_default);return(b,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l).b()]),style:e.normalizeStyle(e.unref(s))},[t.startCollapsible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l).e("collapse-icon"),e.unref(l).e(`${t.layout}-collapse-icon-start`)]),onClick:y=>n("collapse",t.index,"start")},[e.renderSlot(b.$slots,"start-collapsible",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(v)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(l).e("dragger"),e.unref(c),t.resizable?"":e.unref(l).e("disable")]),style:e.normalizeStyle(e.unref(i)),onMousedown:d,onTouchstart:p},null,38),t.endCollapsible?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(l).e("collapse-icon"),e.unref(l).e(`${t.layout}-collapse-icon-end`)]),onClick:y=>n("collapse",t.index,"end")},[e.renderSlot(b.$slots,"end-collapsible",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(k)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):e.createCommentVNode("v-if",!0)],6))}});var DO=r._export_sfc(PO,[["__file","split-bar.vue"]]);const $O=r.buildProps({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!1}}),Sm="ElSplitterPanel",IO=e.defineComponent({name:Sm}),OO=e.defineComponent({...IO,props:$O,emits:["update:size"],setup(t,{emit:n}){const o=t,l=r.useNamespace("splitter-panel"),a=e.inject(Em);a||r.throwError(Sm,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:s,layout:i,containerSize:c,pxSizes:u}=e.toRefs(a),{registerPanel:d,sortPanel:p,unregisterPanel:f,onCollapse:h,onMoveEnd:m,onMoveStart:g,onMoving:v}=a,k=e.ref(),b=e.getCurrentInstance().uid,S=e.ref(0),y=e.computed(()=>s.value[S.value]),C=M=>{S.value=M},E=e.computed(()=>{var M;return y.value&&(M=u.value[S.value])!=null?M:0}),w=e.computed(()=>{var M;return y.value&&(M=u.value[S.value+1])!=null?M:0}),V=e.computed(()=>y.value?s.value[S.value+1]:null),T=e.computed(()=>{var M;return V.value?o.resizable&&((M=V.value)==null?void 0:M.resizable)&&(E.value!==0||!o.min)&&(w.value!==0||!V.value.min):!1}),N=e.computed(()=>y.value?S.value!==s.value.length-1:!1),_=e.computed(()=>$u(y.value,E.value,V.value,w.value)),P=e.computed(()=>$u(V.value,w.value,y.value,E.value));function B(M){return zi(M)?xi(M)*c.value||0:Ri(M)?Ai(M):M??0}let A=!1;e.watch(()=>o.size,()=>{if(y.value){const M=B(o.size),I=B(o.max),K=B(o.min),$=Math.min(Math.max(M,K||0),I||M);$!==M&&(A=!0,n("update:size",$)),y.value.size=$,e.nextTick(()=>A=!1)}}),e.watch(()=>{var M;return(M=y.value)==null?void 0:M.size},M=>{!A&&M!==o.size&&n("update:size",M)}),e.watch(()=>o.resizable,M=>{y.value&&(y.value.resizable=M)});const j=e.reactive({el:k.value,uid:b,setIndex:C,...o,collapsible:VO(o.collapsible)});return d(j),e.onMounted(()=>{p(j)}),e.onUnmounted(()=>f==null?void 0:f(b)),(M,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({ref_key:"panelEl",ref:k,class:[e.unref(l).b()],style:{flexBasis:`${e.unref(E)}px`}},M.$attrs),[e.renderSlot(M.$slots,"default")],16),e.unref(N)?(e.openBlock(),e.createBlock(DO,{key:0,index:S.value,layout:e.unref(i),resizable:e.unref(T),"start-collapsible":e.unref(_),"end-collapsible":e.unref(P),onMoveStart:e.unref(g),onMoving:e.unref(v),onMoveEnd:e.unref(m),onCollapse:e.unref(h)},{"start-collapsible":e.withCtx(()=>[e.renderSlot(M.$slots,"start-collapsible")]),"end-collapsible":e.withCtx(()=>[e.renderSlot(M.$slots,"end-collapsible")]),_:3},8,["index","layout","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):e.createCommentVNode("v-if",!0)],64))}});var Nm=r._export_sfc(OO,[["__file","split-panel.vue"]]);const MO=r.withInstall(_O,{SplitPanel:Nm}),xO=r.withNoopInstall(Nm);var AO=[Vh,Mh,Gg,XB,ty,iy,r.ElBadge,vy,gy,D.ElButton,D.ElButtonGroup,Ry,jy,nb,ob,lC,Ud,uC,Bt,gb,Ad,hC,DC,$C,Zr,tk,nk,mk,hk,vk,gk,yk,Ww,tE,nE,uE,gf,CE,c0,u0,d0,_f,cS,uS,r.ElIcon,kS,Df,D.ElInput,$f,xS,KS,sN,iN,cN,uN,vN,sT,pT,wT,bd,Ff,jd,Pb,Bb,$T,AT,jT,Pt,wn,Ir,FN,E1,$1,I1,Z1,o_,ep,m_,E_,S_,P_,LV,FV,GB,dP,fP,Qn,Ci,cw,wP,VP,BP,nt,GD,i$,Wr,_$,j$,sI,gI,KI,HI,QI,eO,aO,CO,MO,xO];const St="ElInfiniteScroll",zO=50,RO=200,LO=0,FO={delay:{type:Number,default:RO},distance:{type:Number,default:LO},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Li=(t,n)=>Object.entries(FO).reduce((o,[l,a])=>{var s,i;const{type:c,default:u}=a,d=t.getAttribute(`infinite-scroll-${l}`);let p=(i=(s=n[d])!=null?s:d)!=null?i:u;return p=p==="false"?!1:p,p=c(p),o[l]=Number.isNaN(p)?u:p,o},{}),Tm=t=>{const{observer:n}=t[St];n&&(n.disconnect(),delete t[St].observer)},KO=(t,n)=>{const{container:o,containerEl:l,instance:a,observer:s,lastScrollTop:i}=t[St],{disabled:c,distance:u}=Li(t,a),{clientHeight:d,scrollHeight:p,scrollTop:f}=l,h=f-i;if(t[St].lastScrollTop=f,s||c||h<0)return;let m=!1;if(o===t)m=p-(d+f)<=u;else{const{clientTop:g,scrollHeight:v}=t,k=Aa(t,l);m=f+d>=k+g+v-u}m&&n.call(a)};function Pa(t,n){const{containerEl:o,instance:l}=t[St],{disabled:a}=Li(t,l);a||o.clientHeight===0||(o.scrollHeight<=o.clientHeight?n.call(l):Tm(t))}const HO={async mounted(t,n){const{instance:o,value:l}=n;r.isFunction(l)||r.throwError(St,"'v-infinite-scroll' binding value must be a function"),await e.nextTick();const{delay:a,immediate:s}=Li(t,o),i=D.getScrollContainer(t,!0),c=i===window?document.documentElement:i,u=yn(KO.bind(null,t,l),a);if(i){if(t[St]={instance:o,container:i,containerEl:c,delay:a,cb:l,onScroll:u,lastScrollTop:c.scrollTop},s){const d=new MutationObserver(yn(Pa.bind(null,t,l),zO));t[St].observer=d,d.observe(t,{childList:!0,subtree:!0}),Pa(t,l)}i.addEventListener("scroll",u)}},unmounted(t){if(!t[St])return;const{container:n,onScroll:o}=t[St];n==null||n.removeEventListener("scroll",o),Tm(t)},async updated(t){if(!t[St])await e.nextTick();else{const{containerEl:n,cb:o,observer:l}=t[St];n.clientHeight&&l&&Pa(t,o)}}},Es=HO;Es.install=t=>{t.directive("InfiniteScroll",Es)};const jO=Es,_m=["primary","success","info","warning","error"],WO=r.buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:r.iconPropType},id:{type:String,default:""},message:{type:r.definePropType([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:r.definePropType(Function),default:()=>{}},onClose:{type:r.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:[..._m,""],default:""},zIndex:Number,closeIcon:{type:r.iconPropType,default:r.close_default}}),UO={destroy:()=>!0},qO=e.defineComponent({name:"ElNotification"}),YO=e.defineComponent({...qO,props:WO,emits:UO,setup(t,{expose:n}){const o=t,{ns:l,zIndex:a}=r.useGlobalComponentSettings("notification"),{nextZIndex:s,currentZIndex:i}=a,c=e.ref(!1);let u;const d=e.computed(()=>{const S=o.type;return S&&r.TypeComponentsMap[o.type]?l.m(S):""}),p=e.computed(()=>o.type&&r.TypeComponentsMap[o.type]||o.icon),f=e.computed(()=>o.position.endsWith("right")?"right":"left"),h=e.computed(()=>o.position.startsWith("top")?"top":"bottom"),m=e.computed(()=>{var S;return{[h.value]:`${o.offset}px`,zIndex:(S=o.zIndex)!=null?S:i.value}});function g(){o.duration>0&&({stop:u}=r.useTimeoutFn(()=>{c.value&&k()},o.duration))}function v(){u==null||u()}function k(){c.value=!1}function b({code:S}){S===r.EVENT_CODE.delete||S===r.EVENT_CODE.backspace?v():S===r.EVENT_CODE.esc?c.value&&k():g()}return e.onMounted(()=>{g(),s(),c.value=!0}),r.useEventListener(document,"keydown",b),n({visible:c,close:k}),(S,y)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(l).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:C=>S.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:S.id,class:e.normalizeClass([e.unref(l).b(),S.customClass,e.unref(f)]),style:e.normalizeStyle(e.unref(m)),role:"alert",onMouseenter:v,onMouseleave:g,onClick:S.onClick},[e.unref(p)?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass([e.unref(l).e("icon"),e.unref(d)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("group"))},[e.createElementVNode("h2",{class:e.normalizeClass(e.unref(l).e("title")),textContent:e.toDisplayString(S.title)},null,10,["textContent"]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("content")),style:e.normalizeStyle(S.title?void 0:{margin:0})},[e.renderSlot(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{innerHTML:S.message},null,8,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0},e.toDisplayString(S.message),1))])],6),[[e.vShow,S.message]]),S.showClose?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(l).e("closeBtn")),onClick:e.withModifiers(k,["stop"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.closeIcon)))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],2)],46,["id","onClick"]),[[e.vShow,c.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var GO=r._export_sfc(YO,[["__file","notification.vue"]]);const Ur={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ss=16;let XO=1;const ao=function(t={},n){if(!r.isClient)return{close:()=>{}};(r.isString(t)||e.isVNode(t))&&(t={message:t});const o=t.position||"top-right";let l=t.offset||0;Ur[o].forEach(({vm:p})=>{var f;l+=(((f=p.el)==null?void 0:f.offsetHeight)||0)+Ss}),l+=Ss;const a=`notification_${XO++}`,s=t.onClose,i={...t,offset:l,id:a,onClose:()=>{JO(a,o,s)}};let c=document.body;r.isElement(t.appendTo)?c=t.appendTo:r.isString(t.appendTo)&&(c=document.querySelector(t.appendTo)),r.isElement(c)||(r.debugWarn("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),c=document.body);const u=document.createElement("div"),d=e.createVNode(GO,i,r.isFunction(i.message)?i.message:e.isVNode(i.message)?()=>i.message:null);return d.appContext=r.isUndefined(n)?ao._context:n,d.props.onDestroy=()=>{e.render(null,u)},e.render(d,u),Ur[o].push({vm:d}),c.appendChild(u.firstElementChild),{close:()=>{d.component.exposed.visible.value=!1}}};_m.forEach(t=>{ao[t]=(n={},o)=>((r.isString(n)||e.isVNode(n))&&(n={message:n}),ao({...n,type:t},o))});function JO(t,n,o){const l=Ur[n],a=l.findIndex(({vm:d})=>{var p;return((p=d.component)==null?void 0:p.props.id)===t});if(a===-1)return;const{vm:s}=l[a];if(!s)return;o==null||o(s);const i=s.el.offsetHeight,c=n.split("-")[0];l.splice(a,1);const u=l.length;if(!(u<1))for(let d=a;d<u;d++){const{el:p,component:f}=l[d].vm,h=Number.parseInt(p.style[c],10)-i-Ss;f.props.offset=h}}function ZO(){for(const t of Object.values(Ur))t.forEach(({vm:n})=>{n.component.exposed.visible.value=!1})}ao.closeAll=ZO;ao._context=null;const QO=r.withInstallFunction(ao,"$notify");var eM=[jO,Sr.ElLoading,r.ElMessage,D.ElMessageBox,QO,Lf],tM=wh([...AO,...eM]);const nM={key:0,class:"dialog-overlay"},oM={class:"dialog-content"},lM={class:"dialog"},rM={class:"dialog-value"},aM={class:"dialog-item"},sM={class:"dialog-child"},iM={class:"dialog-actions"},cM={__name:"index",setup(t,{expose:n}){const o=e.ref(!1),l=e.ref(null);e.ref(!0);const a=e.ref([]),s=e.ref({}),i=e.ref([{label:"保留",value:"保留"},{label:"替换",value:"替换"}]),c=p=>{var h;o.value=!0,a.value=Object.keys(p);let f={};return(h=Object.keys(p))==null||h.forEach(m=>{f[m]="替换"}),s.value=f,new Promise(m=>{l.value=m})},u=(p,f)=>{let h=r.cloneDeep(s.value);h[p]=f,s.value=h},d=()=>{var p;o.value=!1,(p=l.value)==null||p.call(l,r.cloneDeep(s.value))};return e.onUnmounted(()=>{fM()}),n({show:c}),(p,f)=>o.value?(e.openBlock(),e.createElementBlock("div",nM,[e.createElementVNode("div",oM,[e.createElementVNode("div",lM,[f[1]||(f[1]=e.createElementVNode("div",{class:"dialog-title"},e.toDisplayString("冲突页面选择"),-1)),e.createElementVNode("div",rM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,h=>(e.openBlock(),e.createElementBlock("div",aM,[e.createElementVNode("div",sM,[e.createElementVNode("div",null,e.toDisplayString(h),1),e.createElementVNode("div",null,[e.createVNode(Sr.ssRadio,{content:i.value,modelValue:s.value[h],"onUpdate:modelValue":m=>s.value[h]=m,onChange:m=>u(h,m)},null,8,["content","modelValue","onUpdate:modelValue","onChange"])])])]))),256))])]),e.createElementVNode("div",iM,[e.createVNode(e.unref($m._sfc_main),{class:"menu-button click-button",onClickTrigger:f[0]||(f[0]=h=>d()),modelValue:"继续"})])])])):e.createCommentVNode("",!0)}},uM=Im._export_sfc(cM,[["__scopeId","data-v-4033db15"]]);let Er=null;const Iu=D.useMenuState();let sl=null;const dM=()=>{const t=e.createApp(uM);t.use(tM);const n=document.createElement("div");return document.body.appendChild(n),t.mount(n)},Ou=(t,n)=>{var l;return(l=D.tableEveryContents(r.cloneDeep(t)))==null?void 0:l.map(a=>{var s,i,c,u,d;if(t.comp==="Table"){let p={comp:(s=D.tableToStruct(r.cloneDeep(a)))==null?void 0:s.comp,compData:(i=D.tableToStruct(r.cloneDeep(a)))==null?void 0:i.compData,isShow:a==null?void 0:a.isShow};return(u=(c=Object.keys(a))==null?void 0:c.filter(f=>f==null?void 0:f.includes("name")))==null||u.forEach(f=>{var h;p[f]=(h=D.tableToStruct(r.cloneDeep(a)))==null?void 0:h[f]}),{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structure",version:1,parentTable:(a==null?void 0:a.parentTableContents)??"",parentPageKey:n==null?void 0:n.parentPath},value:{pageData:p}}}else if((a==null?void 0:a.key)==="extraButton"){if(((d=Object.values(a==null?void 0:a.value))==null?void 0:d.length)!==0)return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structureMethod",version:1},value:{pageData:a.value}}}else return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structure",version:1,parentTable:(a==null?void 0:a.parentTableContents)??"",parentPageKey:n==null?void 0:n.parentPath},value:{pageData:a}}})},fM=()=>{sl==null||sl(!0),Er=null,sl=null},pM=async t=>(Er||(Er=dM()),await new Promise(async n=>{sl=n;const o=await Er.show(t);n(o)})),mM=async t=>{var f,h,m,g,v;let n=[],o=[],l=await r.getInsofDataApi({key:{type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((f=l==null?void 0:l.data)==null?void 0:f.code)!==200)return;let a=new WeakMap,s=(m=(h=l==null?void 0:l.data)==null?void 0:h.result)==null?void 0:m.filter(k=>{var b;return((b=k==null?void 0:k.key)==null?void 0:b.pageKey)!=="menu"});(s==null?void 0:s.length)===0||s==null||s.forEach(k=>{a[k.key.pageKey]={id:k==null?void 0:k.id,contents:k==null?void 0:k.value}});const i=new WeakMap;t==null||t.forEach(k=>{a[k.name]&&(i[k.name]=a[k.name])});let c=[],u=[];if(((g=Object.keys(i))==null?void 0:g.length)>0){Iu.setImportLoading(!1);const k=await pM(i);for(let b in k)k[b]==="保留"?c.push(b):u.push(b);Iu.setImportLoading(!0)}let d=r.cloneDeep(t);if((u==null?void 0:u.length)>0){let k=[];const b=u==null?void 0:u.map(async S=>{var C,E,w,V;const y=await r.getInsofDataApi({key:{pageKey:S,systemKey:sessionStorage.getItem("systemKey")}});((E=(C=y==null?void 0:y.data)==null?void 0:C.result)==null?void 0:E.length)>0&&((V=(w=y==null?void 0:y.data)==null?void 0:w.result)==null||V.forEach(T=>{k.push(T==null?void 0:T.id)}))});await Promise.all(b),await r.batchDeleteInsofDataApi({ids:k})}(c==null?void 0:c.length)>0&&(d=(v=r.cloneDeep(d))==null?void 0:v.filter(k=>!c.includes(k==null?void 0:k.name)));let p=[];d==null||d.map(async k=>{var b;await((b=k.compData)==null?void 0:b.forEach(async S=>{var C;const y=(C=r.cloneDeep(S==null?void 0:S.contents))==null?void 0:C.map(E=>{if(!Array.isArray(E)){const w=Ou(r.cloneDeep(E),k);return w==null?void 0:w[0]}});y==null||y.forEach(E=>{p.push(E)})}))}),(p==null?void 0:p.length)>0&&await r.batchAddInsofDataApi({dataList:p}),d==null||d.map(async k=>{var b;await((b=k.compData)==null?void 0:b.forEach(async S=>{var C,E,w;const y=(C=r.cloneDeep(S==null?void 0:S.contents))==null?void 0:C.map(V=>{if(!Array.isArray(V)){const T=Ou(r.cloneDeep(V),k);return T==null?void 0:T[0]}});o.push({parentKey:D.getParentKey((E=r.cloneDeep(k))==null?void 0:E.name),content:y}),(w=S.contents)==null||w.map(async V=>{var T;Array.isArray(V)||(T=D.tableEveryContents(r.cloneDeep(V)))==null||T.forEach(async N=>{var _,P,B,A,j,M,I,K;if(V.comp==="Table"){let $={comp:(_=D.tableToStruct(r.cloneDeep(N)))==null?void 0:_.comp,compData:(P=D.tableToStruct(r.cloneDeep(N)))==null?void 0:P.compData,isShow:N==null?void 0:N.isShow};(A=(B=Object.keys(N))==null?void 0:B.filter(G=>G==null?void 0:G.includes("name")))==null||A.forEach(G=>{var Z;$[G]=(Z=D.tableToStruct(r.cloneDeep(N)))==null?void 0:Z[G]});const q=(M=(j=(await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:k.name,type:"structure",version:1,parentTable:(N==null?void 0:N.parentTableContents)??""},value:{pageData:$}})).data.result)==null?void 0:j[0])==null?void 0:M.id,F=(I=D.tableToContents(r.cloneDeep(N)))==null?void 0:I.map(G=>{var Z,ee,Y,z;if((G==null?void 0:G.length)!==0)return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:k.name,type:"data",tableId:q},value:{tableData:D.getValueToObjectValue(G,(z=D.getColumnContents((Y=(ee=(Z=D.tableToStruct(r.cloneDeep(N)))==null?void 0:Z.compData)==null?void 0:ee.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:Y.contents))==null?void 0:z.filter(R=>R!=="操作"))}}}),X=await r.batchAddInsofDataApi({dataList:F});n.push(X);const L=await((K=D.tableToContents(r.cloneDeep(N)))==null?void 0:K.map(async G=>{var z,R,x,Q,U;let Z;return(G==null?void 0:G.length)!==0&&(Z=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:k.name,type:"data",tableId:q},value:{tableData:D.getValueToObjectValue(G,(Q=D.getColumnContents((x=(R=(z=D.tableToStruct(r.cloneDeep(N)))==null?void 0:z.compData)==null?void 0:R.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:x.contents))==null?void 0:Q.filter(J=>J!=="操作"))}})),await((U=(await r.getInsofDataApi({key:{parentTable:G,systemKey:sessionStorage.getItem("systemKey"),pageKey:k.name,type:"structure"}})).data.result)==null?void 0:U.map(async J=>{var oe,ie;return await r.updateInsofDataApi({id:J.id,key:{systemKey:J.key.systemKey,pageKey:J.key.pageKey,type:J.key.type,version:J.key.version,parentTable:J.key.parentTable===""?"":(ie=(oe=Z.data.result)==null?void 0:oe[0])==null?void 0:ie.id}})}))}));n.push(L)}})})}))}),await Promise.all(n),await D.getParentConstruct(o)},nl=t=>{var l;let n="",o=[];return(l=r.cloneDeep(t).split("/"))==null||l.forEach((a,s)=>{s!==r.cloneDeep(t).split("/").length-1&&o.push(a)}),o==null||o.forEach(a=>{n=n===""?n+a:n+"/"+a}),n},Mu=(t,n)=>{var a;let o=(a=t==null?void 0:t.filter(s=>(s==null?void 0:s.label)!=="操作"))==null?void 0:a.map(s=>s==null?void 0:s.label);return n==null?void 0:n.map(s=>D.getValueToObjectValue(s,o))},xu=(t,n)=>{var o,l,a,s,i,c,u,d;return((l=(o=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:o.contents)==null?void 0:l.length)===0?Mu((i=(s=(a=n==null?void 0:n.value)==null?void 0:a.compData)==null?void 0:s.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:i.contents,(c=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="tableContents"))==null?void 0:c.contents):Mu((u=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:u.contents,(d=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="tableContents"))==null?void 0:d.contents)},Au=(t,n)=>{var l;let o=r.cloneDeep(t);return o.compData=(l=r.cloneDeep(o.compData))==null?void 0:l.map(a=>((a==null?void 0:a.key)==="formContent"&&(a.contents=n==null?void 0:n.map(s=>{var i,c;return s.value=((c=(i=a.contents)==null?void 0:i.find(u=>u.key===s.key))==null?void 0:c.value)??"",s})),a)),o},hM=async t=>{var i,c,u;let n=(i=r.cloneDeep(t))==null?void 0:i.map(d=>d==null?void 0:d.path);const o=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});if(o.data.code!==200)return;let l=new WeakMap;(c=o.data.result)==null||c.forEach(d=>{var f,h,m,g;let p=[{key:d==null?void 0:d.id,name:((h=(f=d==null?void 0:d.value)==null?void 0:f.pageData)==null?void 0:h.name)??"",value:(m=d==null?void 0:d.value)==null?void 0:m.pageData}];l[d.key.pageKey]=((g=l[d.key.pageKey])==null?void 0:g.length)>0?[...l[d.key.pageKey],...p]:p});let a=new WeakMap;n==null||n.forEach(d=>{l[d]&&(a[d]=l[d])});let s=r.cloneDeep(t);s=(u=r.cloneDeep(s))==null?void 0:u.map(d=>{var f,h,m,g;let p=(f=r.cloneDeep(d))==null?void 0:f.key;return p.tableId=(m=(h=a[d==null?void 0:d.path])==null?void 0:h.find(v=>{var k;return(v==null?void 0:v.name)===((k=r.cloneDeep(d))==null?void 0:k.name)}))==null?void 0:m.key,d={key:p,value:(g=r.cloneDeep(d))==null?void 0:g.value},d}),s.length!==0&&await r.batchAddInsofDataApi({dataList:s})},Jl=(t,n)=>{var o,l,a,s,i,c,u,d,p,f,h,m,g,v,k;if(((l=(o=r.cloneDeep(t))==null?void 0:o.filter(b=>{var S;return(b==null?void 0:b.name)===((S=r.cloneDeep(n))==null?void 0:S.name)}))==null?void 0:l.length)===1)return{contents:(u=(c=(i=(s=(a=r.cloneDeep(t))==null?void 0:a.find(b=>{var S;return(b==null?void 0:b.name)===((S=r.cloneDeep(n))==null?void 0:S.name)}))==null?void 0:s.value)==null?void 0:i.compData)==null?void 0:c.find(b=>(b==null?void 0:b.key)==="formContent"))==null?void 0:u.contents,key:(p=(d=r.cloneDeep(t))==null?void 0:d.find(b=>{var S;return(b==null?void 0:b.name)===((S=r.cloneDeep(n))==null?void 0:S.name)}))==null?void 0:p.key};{let b,S,y=(g=(m=(h=(f=r.cloneDeep(n))==null?void 0:f.compData)==null?void 0:h.find(C=>(C==null?void 0:C.key)==="formContent"))==null?void 0:m.contents)==null?void 0:g.map(C=>C==null?void 0:C.key);return(k=(v=r.cloneDeep(t))==null?void 0:v.filter(C=>{var E;return(C==null?void 0:C.name)===((E=r.cloneDeep(n))==null?void 0:E.name)}))==null||k.forEach(C=>{var w,V,T,N,_,P,B,A;let E=(_=(N=(T=(V=(w=r.cloneDeep(C))==null?void 0:w.value)==null?void 0:V.compData)==null?void 0:T.find(j=>(j==null?void 0:j.key)==="formContent"))==null?void 0:N.contents)==null?void 0:_.map(j=>j==null?void 0:j.key);E&&y.every(j=>E.includes(j))&&(b=(A=(B=(P=C==null?void 0:C.value)==null?void 0:P.compData)==null?void 0:B.find(j=>(j==null?void 0:j.key)==="formContent"))==null?void 0:A.contents,S=C==null?void 0:C.key)}),{contents:b,key:S}}},vM=async t=>{var u,d,p;let n=[];(u=r.cloneDeep(t))==null||u.forEach(f=>{n.push(f.name);let h=nl(r.cloneDeep(f.name));h!==""&&n.push(h)}),n=[...new Set(n)];const o=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});if(o.data.code!==200)return;let l=new WeakMap;(d=o.data.result)==null||d.forEach(f=>{var m,g,v,k;let h=[{key:f==null?void 0:f.id,name:((g=(m=f==null?void 0:f.value)==null?void 0:m.pageData)==null?void 0:g.name)??"",value:(v=f==null?void 0:f.value)==null?void 0:v.pageData}];l[f.key.pageKey]=((k=l[f.key.pageKey])==null?void 0:k.length)>0?[...l[f.key.pageKey],...h]:h});let a=new WeakMap;for(let f in l)n!=null&&n.find(h=>h===f)&&(a[f]=l[f]);let s=[],i=[],c=[];(p=r.cloneDeep(t))==null||p.forEach(f=>{var h,m;a!=null&&a[f.name]?(h=f==null?void 0:f.compData)==null||h.forEach(g=>{var v;(v=g==null?void 0:g.contents)==null||v.forEach(k=>{var b,S,y,C,E,w,V;if((k==null?void 0:k.comp)==="Table"){let T=xu((b=r.cloneDeep(k))==null?void 0:b.compData,(S=r.cloneDeep(a==null?void 0:a[f.name]))==null?void 0:S.find(N=>(N==null?void 0:N.name)===(k==null?void 0:k.name)));T==null||T.forEach(N=>{var _,P;i.push({key:{type:"data",pageKey:f==null?void 0:f.name,tableId:(P=(_=a==null?void 0:a[f.name])==null?void 0:_.find(B=>(B==null?void 0:B.name)===(k==null?void 0:k.name)))==null?void 0:P.key,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:N}})})}else if((C=Jl((y=r.cloneDeep(a))==null?void 0:y[f.name],r.cloneDeep(k)))!=null&&C.contents){let T=Au(r.cloneDeep(k),(E=Jl(a==null?void 0:a[f.name],r.cloneDeep(k)))==null?void 0:E.contents);s!=null&&s.find(N=>{var _,P;return(N==null?void 0:N.id)===((P=Jl((_=r.cloneDeep(a))==null?void 0:_[f.name],r.cloneDeep(k)))==null?void 0:P.key)})||s.push({id:(V=Jl((w=r.cloneDeep(a))==null?void 0:w[f.name],r.cloneDeep(k)))==null?void 0:V.key,value:{pageData:T}})}})}):a!=null&&a[nl(f.name)]&&((m=f==null?void 0:f.compData)==null||m.forEach(g=>{var v;(v=g==null?void 0:g.contents)==null||v.forEach(k=>{var b,S,y,C,E,w,V,T,N;if((k==null?void 0:k.comp)==="Table"){let _=(S=(b=a==null?void 0:a[nl(f.name)])==null?void 0:b.find(B=>(B==null?void 0:B.name)===(k==null?void 0:k.name)))==null?void 0:S.value;i.push({key:{type:"structure",pageKey:f==null?void 0:f.name,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),version:1},value:{pageData:_}});let P=xu((y=r.cloneDeep(k))==null?void 0:y.compData,(C=r.cloneDeep(a==null?void 0:a[nl(f.name)]))==null?void 0:C.find(B=>(B==null?void 0:B.name)===(k==null?void 0:k.name)));P==null||P.forEach(B=>{c.push({name:k.name,path:f.name,key:{type:"data",pageKey:f==null?void 0:f.name,tableId:"",systemKey:sessionStorage.getItem("systemKey")},value:{tableData:B}})})}else{let _=Au(r.cloneDeep(k),(N=(T=(V=(w=(E=r.cloneDeep(a==null?void 0:a[nl(f.name)]))==null?void 0:E.find(P=>(P==null?void 0:P.name)===(k==null?void 0:k.name)))==null?void 0:w.value)==null?void 0:V.compData)==null?void 0:T.find(P=>(P==null?void 0:P.key)==="formContent"))==null?void 0:N.contents);i.push({key:{type:"structure",pageKey:f==null?void 0:f.name,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),version:1},value:{pageData:_}})}})}))}),i.length!==0&&(await r.batchAddInsofDataApi({dataList:i}),c.length!==0&&await hM(c),s.length!==0&&await r.batchUpdateInsofDataApi({dataList:s}))},Vm=D.useMenuState(),Ns=t=>t==null?void 0:t.map(n=>(n.contents&&(n.contents=n.contents.filter(o=>{var l;return((l=o.comp)==null?void 0:l.toUpperCase())!=="CALCULATOR"})),n.compData&&(n.compData=Ns(n.compData)),n)),gM=async t=>{var o,l,a,s,i,c,u,d,p,f,h,m,g,v,k,b,S,y,C,E,w,V,T;const n=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if((t==null?void 0:t.length)===0){if(((o=n==null?void 0:n.data)==null?void 0:o.code)===200&&(s=(a=(l=n==null?void 0:n.data)==null?void 0:l.result)==null?void 0:a[0])!=null&&s.id){const N=(c=(i=n==null?void 0:n.data)==null?void 0:i.result)==null?void 0:c[0],_=(p=(d=(u=n==null?void 0:n.data)==null?void 0:u.result)==null?void 0:d[0])==null?void 0:p.key;_.systemType="管理系统",await r.updateInsofDataApi({id:N==null?void 0:N.id,key:_})}return}try{if(((f=n==null?void 0:n.data)==null?void 0:f.code)===200&&(g=(m=(h=n==null?void 0:n.data)==null?void 0:h.result)==null?void 0:m[0])!=null&&g.id){const N=(k=(v=n==null?void 0:n.data)==null?void 0:v.result)==null?void 0:k[0],_=(y=(S=(b=n==null?void 0:n.data)==null?void 0:b.result)==null?void 0:S[0])==null?void 0:y.key,P=(C=r.cloneDeep(t))==null?void 0:C.map(B=>{var A;return(A=B.compData)==null?void 0:A[0]});_.systemType=(w=(E=P==null?void 0:P.find(B=>(B==null?void 0:B.key)==="type"))==null?void 0:E.contents)==null?void 0:w[0],_.name=(T=(V=P==null?void 0:P.find(B=>(B==null?void 0:B.key)==="name"))==null?void 0:V.contents)==null?void 0:T[0],await r.updateInsofDataApi({id:N==null?void 0:N.id,key:_})}}catch(N){return Promise.reject(N)}},zu=async t=>{var n,o,l,a;try{const s=await r.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu",type:"structure"},value:{pageData:t}});if(((n=s==null?void 0:s.data)==null?void 0:n.code)===200){const i=(l=(o=t==null?void 0:t.compData)==null?void 0:o[0])==null?void 0:l.contents;Vm.setRawMenus(i??[])}return(a=s==null?void 0:s.data)==null?void 0:a.code}catch(s){return Promise.reject(s)}},yM=async()=>{var t,n,o,l,a,s,i,c;try{const u=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu",type:"structure"}});return((t=u==null?void 0:u.data)==null?void 0:t.code)===200&&((l=(o=(n=u==null?void 0:u.data)==null?void 0:n.result)==null?void 0:o[0])!=null&&l.id)&&await r.deleteInsofDataApi({id:(i=(s=(a=u==null?void 0:u.data)==null?void 0:a.result)==null?void 0:s[0])==null?void 0:i.id}),(c=u==null?void 0:u.data)==null?void 0:c.code}catch(u){return Promise.reject(u)}},bM=async(t,n)=>{var o,l,a,s;try{const i=await r.updateInsofDataApi({id:t,value:{pageData:n}});if(((o=i==null?void 0:i.data)==null?void 0:o.code)===200){const c=(a=(l=n==null?void 0:n.compData)==null?void 0:l[0])==null?void 0:a.contents;Vm.setRawMenus(c??[])}return(s=i==null?void 0:i.data)==null?void 0:s.code}catch(i){return Promise.reject(i)}},CM=async()=>{var t;try{const n=D.generateKeyPair(),o=await r.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"secret",type:"system"},value:{cryptoInfo:{publicKey:n.publicKey,privateKey:n.privateKey}}});return((t=o==null?void 0:o.data)==null?void 0:t.code)===200}catch(n){throw n}},kM=async()=>{var n,o,l;const t=await r.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return!(((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&((l=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:l.length)>0)},wM=async()=>{var n,o,l;const t=await r.getInsofDataApi({key:{type:"system",pageKey:"secret",systemKey:sessionStorage.getItem("systemKey")}});return!(((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&((l=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:l.length)>0)},EM=async t=>{var o,l;let n=r.cloneDeep(t);if(n=[...n,Om.tempMenuPageData,Mm.tempMainMenuPageData],sessionStorage.getItem("systemKey"))if(t!=null&&t.find(a=>(a==null?void 0:a.comp)==="System")){const a=n==null?void 0:n.find(d=>d.comp==="Menu"),s=n==null?void 0:n.filter(d=>d.comp==="System"),i=await kM(),c=await wM();i&&await zu(a),await gM(s),c&&CM();const u=(o=Ns(r.cloneDeep(n)))==null?void 0:o.filter(d=>{var p,f,h;return((p=d==null?void 0:d.comp)==null?void 0:p.toUpperCase())!=="MENU"&&((f=d==null?void 0:d.comp)==null?void 0:f.toUpperCase())!=="MENUTOP"&&((h=d==null?void 0:d.comp)==null?void 0:h.toUpperCase())!=="SYSTEM"});await mM(u)}else{const a=n==null?void 0:n.find(i=>i.comp==="Menu");await yM(),await zu(a);const s=(l=Ns(r.cloneDeep(n)))==null?void 0:l.filter(i=>{var c,u,d;return((c=i==null?void 0:i.comp)==null?void 0:c.toUpperCase())!=="MENU"&&((u=i==null?void 0:i.comp)==null?void 0:u.toUpperCase())!=="MENUTOP"&&((d=i==null?void 0:i.comp)==null?void 0:d.toUpperCase())!=="SYSTEM"});await vM(s)}},SM=e.defineComponent({name:"menu",components:{ssMenu:qi.ssMenu,DynamicIcon:qi._sfc_main$1},setup(){const t=e.defineProps({mode:{type:String,default:"vertical"}}),n=e.ref("sub-menu-more"),o=D.useMenuState(),l=D.useModelComp(r.pinia),a=e.ref(0),s=Dm.useRouter(),{rawMenus:i,activeTopMenuPath:c,isRefreshMenus:u,menuTriggerType:d,permissionSideMenus:p,platform:f,cacheInputMenu:h,activeMainMenu:m,linkMenuInfo:g}=r.storeToRefs(o),v=r.useLoginState(),{structureData:k}=r.storeToRefs(v),b=e.ref([]),S=e.ref([]),y=e.computed(()=>t==null?void 0:t.mode),C=e.ref({}),E=z=>z==null?void 0:z.map(R=>R.children&&R.children.length>0?{...R,children:R.level===0?[]:R.children??[],childMenus:E(R.children)}:R),w=(z,R)=>{var x,Q;return(Q=(x=S.value)==null?void 0:x.find(U=>(z.title+R).includes(U.value)))==null?void 0:Q.value},V=["系统管理/角色管理","系统管理/用户管理","系统管理/个人中心"],T=(z,R="",x=0)=>{var ce;let Q=r.cloneDeep(z);const U=Array.from(new Set([...(ce=k.value)==null?void 0:ce.map(oe=>{var ie;return(ie=oe==null?void 0:oe.key)==null?void 0:ie.pageKey})]));return Array.isArray(Q)||(Q=[Q]),Q==null?void 0:Q.map(oe=>{let ie,ne=R?`${R}/${oe.title}`:oe.title;V!=null&&V.includes(ne)?ie=R?`/${R}/${oe.title}`:oe.title:ie=ne;const le={...oe,path:ie,level:x,show:!0,icon:w(oe,x),carryData:U==null?void 0:U.includes(ne),isPenultimate:!oe.children,isRouter:V==null?void 0:V.includes(ne),children:[],childMenus:[]};return oe.children&&oe.children.length>0&&(le.children=T(oe.children,ie,x+1)),le})},N=e.computed(()=>{let z=r.cloneDeep(b.value);if(z=[...z,...p.value],(z==null?void 0:z.length)===0)return s.push("/"),[];const R=X(z,q.value);R.isFlag||(z=R==null?void 0:R.data);const x=E(z);return o.setMenus(x),x}),_=async z=>{var U,J,ce;let R,x;(z==null?void 0:z.level)===0?x={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),rootNodePath:z==null?void 0:z.path,tableId:""}}:x={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/平台管理/菜单管理/"+(z==null?void 0:z.path),tableId:""}};const Q=await r.getInsofDataApi(x);return((U=Q==null?void 0:Q.data)==null?void 0:U.code)===200&&(R=(ce=(J=Q.data)==null?void 0:J.result)==null?void 0:ce.map(oe=>{var ie;return{id:oe==null?void 0:oe.id,...(ie=oe==null?void 0:oe.value)==null?void 0:ie.tableData}}),(z==null?void 0:z.level)===0&&(C.value=r.cloneDeep(R))),(R==null?void 0:R.length)>0?R:null},P=(z,R)=>{var Q,U;const x=z==null?void 0:z.find(J=>(J==null?void 0:J.operateType)==="新增");return((U=(Q=h.value)==null?void 0:Q.data)==null?void 0:U.path)===(R==null?void 0:R.path)?x==null?void 0:x.menuIcon:w(R,R==null?void 0:R.level)},B=async(z,R)=>{if(!Array.isArray(R))return z;for(const x of R)if((x==null?void 0:x.path)===z.path)return{...z,config:await _(z)};return z},A=e.ref(null),j=async(z,R=null)=>await Promise.all(z==null?void 0:z.map(async x=>{var J;let Q=await B(x,C.value);const U=(Q==null?void 0:Q.config)??((J=R==null?void 0:R.filter(ce=>ce.allowInherit))==null?void 0:J.map(ce=>{var oe;return{...ce,structureIds:(oe=R==null?void 0:R.find(ie=>{var ne;return((ne=ie==null?void 0:ie.structureIds)==null?void 0:ne.length)>0}))==null?void 0:oe.structureIds}}));return Q!=null&&Q.childMenus&&(Q==null?void 0:Q.childMenus.length)>0&&(Q={...Q,icon:P(U,x),config:U,children:await j(x==null?void 0:x.childMenus,U),childMenus:await j(x==null?void 0:x.childMenus,U)}),{...Q,icon:P(U,x),config:U}})),M=async z=>(A.value=null,await j(z.childMenus));e.watch(()=>g.value,z=>{var x,Q,U;if(!z)return;const R=(Q=(x=z==null?void 0:z.path)==null?void 0:x.split("/"))==null?void 0:Q[0];if(R){const J=(U=b.value)==null?void 0:U.find(ce=>(ce==null?void 0:ce.path)===R);if(!J||(o.setActiveTopMenuPath(R),!(J!=null&&J.children)))return;o.setAsideMenus(J==null?void 0:J.children),o.setActiveMenuPath(z==null?void 0:z.path),l.setRouteToChildPath(z==null?void 0:z.path)}},{immediate:!0});const I=async z=>{var R,x,Q,U;if(o.setLinkMenuInfo(null),o.setAsideMenuLoading(!0),l.setRouteToChildPath(""),o.setActiveTopMenuPath(z==null?void 0:z.path),o.setActiveMainMenu(z),A.value=null,z!=null&&z.childMenus&&((R=z==null?void 0:z.childMenus)==null?void 0:R.length)>0){const J=await M(z),ce=(J==null?void 0:J.length)===0?z==null?void 0:z.childMenus:J;o.setAsideMenus(ce);const oe=(Q=(x=z==null?void 0:z.childMenus)==null?void 0:x[0])==null?void 0:Q.path;o.setActiveMenuPath(oe),o.setActiveAsideMenu((U=z==null?void 0:z.childMenus)==null?void 0:U[0])}else o.setAsideMenus([]);z.isRouter?s.push(z.path):s.push("/"),o.setAsideMenuLoading(!1)},K=z=>{l.setRouteToChildPath(""),d.value==="click"?a.value===1?o.setActiveMenuPath(sessionStorage.getItem("pageKey")):z!==n.value&&o.setActiveMenuPath(z):o.setMenuTriggerType("click"),z!=null&&z.startsWith("/")?s.push(z):s.push("/"),a.value++},$=z=>{z!==n.value&&o.setActiveMenuPath(z)},O=z=>{const R=document.documentElement;z==null||z.forEach(x=>{R.style.setProperty(x.name,x.value)})};e.onMounted(()=>{a.value=1,S.value=Sr.getSvgIcons()});const q=e.computed(()=>{const z=sessionStorage.getItem("authority");return z?JSON.parse(z):[]});e.watch(()=>f.value,z=>{z==="browser"?(O(Vn.browserVerticalMenuClasses),O(Vn.browserHorizontalMenuClasses)):z==="client"?(O(Vn.clientHorizontalMenuClasses),O(Vn.clientVerticalMenuClasses)):z==="three"&&(O(Vn.threeHorizontalMenuClasses),O(Vn.threeVerticalMenuClasses))},{immediate:!0}),e.watch(()=>i.value,z=>{if(S.value=Sr.getSvgIcons(),z){o.setActiveMenuPath(""),o.setActiveTopMenuPath(""),o.setAsideMenus([]);const R=z;b.value=T(r.convertRawToTree(R))}},{immediate:!0});const F=(z,R)=>{function x(Q){Q==null||Q.forEach(U=>{var ce,oe;const J=(ce=U==null?void 0:U.path)!=null&&ce.startsWith("/")?(oe=U==null?void 0:U.path)==null?void 0:oe.substring(1):U==null?void 0:U.path;U.show=R==null?void 0:R.some(ie=>ie==null?void 0:ie.includes(J)),U.children&&x(U.children)})}return x(z),z},X=(z,R)=>{if(Array.isArray(R)){const x=Array.from(new Set(R==null?void 0:R.map(Q=>Q==null?void 0:Q.substring(0,Q.lastIndexOf("/")))));return{data:F(z,x),isFlag:!1}}else return{isFlag:(R==null?void 0:R.toUpperCase())==="SUPERADMIN"}},L=z=>{var x;const R=[z==null?void 0:z.title];if(z!=null&&z.children&&((x=z==null?void 0:z.children)==null?void 0:x.length)>0){const Q=z.children.map(U=>L(U));R.push(...Q)}return R},G=(z,R,x,Q)=>z.map(U=>{var J,ce;if(U.path===x){const oe={...U};return Q==="create"?oe.children.push(R):Q==="update"?oe.children=(J=oe.children)==null?void 0:J.map(ie=>(ie==null?void 0:ie.path)===(R==null?void 0:R.path)?R:ie):Q==="delete"&&(oe.children=(ce=oe.children)==null?void 0:ce.filter(ie=>(ie==null?void 0:ie.path)!==(R==null?void 0:R.path))),oe}else return{...U,children:G(U.children,R,x,Q)}}),Z=async z=>{var x,Q,U,J,ce,oe;const R=(x=k.value)==null?void 0:x.find(ie=>{var ne;return((ne=ie==null?void 0:ie.key)==null?void 0:ne.pageKey)==="menu"});if(R){const ie={...(Q=R.value)==null?void 0:Q.pageData,compData:(ce=(J=(U=R.value)==null?void 0:U.pageData)==null?void 0:J.compData)==null?void 0:ce.map(le=>le.key==="menuContents"?{...le,contents:z}:le)};await bM(R==null?void 0:R.id,ie);const ne=(oe=N.value)==null?void 0:oe.find(le=>(le==null?void 0:le.path)===c.value);await I(ne),o.setAsideMenuLoading(!1),o.setIsRefreshMenus(!1),r.ElMessage.success("响应成功")}},ee=async z=>{var Q,U,J,ce,oe;const R=await r.getInsofDataApi({id:z});let x;return((Q=R==null?void 0:R.data)==null?void 0:Q.code)===200&&(x=(oe=(ce=(J=(U=R==null?void 0:R.data)==null?void 0:U.result)==null?void 0:J[0])==null?void 0:ce.value)==null?void 0:oe.pageData),x},Y=async z=>{var oe,ie,ne;const R=(ne=(ie=(oe=z==null?void 0:z.config)==null?void 0:oe.find(le=>(le==null?void 0:le.operateType)==="新增"))==null?void 0:ie.structureIds)==null?void 0:ne.filter(le=>(le==null?void 0:le.key)==="contentConfig"),x=R==null?void 0:R.map(le=>le==null?void 0:le.id);let Q=[];x==null||x.forEach(le=>{le&&Q.push(ee(le))});const U=await Promise.all(Q),J=U==null?void 0:U.map(le=>{const{id:ue,...me}=le;return me}),ce=J==null?void 0:J.map(le=>({key:{pageKey:z==null?void 0:z.path,systemKey:sessionStorage.getItem("systemKey"),parentTable:"",version:1,type:"structure"},value:{pageData:le}}));await r.batchAddInsofDataApi({dataList:ce})};return e.watch(()=>u.value,async z=>{var R,x,Q,U,J,ce,oe,ie;if(z)try{const ne=(Q=(x=(R=h.value)==null?void 0:R.data)==null?void 0:x.path)==null?void 0:Q.split("/").slice(0,-1).join("/"),le=G(b.value,(U=h.value)==null?void 0:U.data,ne,(J=h.value)==null?void 0:J.type),ue=(ce=le==null?void 0:le.filter(Ee=>Ee.path!=="平台管理"))==null?void 0:ce.map(Ee=>L(Ee));await Y((oe=h.value)==null?void 0:oe.data),o.setAsideMenuLoading(!0),await Z(ue);const me=await M(m.value),ke=(me==null?void 0:me.length)===0?(ie=m.value)==null?void 0:ie.childMenus:me;o.setAsideMenus(ke)}catch(ne){throw r.ElMessage.error(ne),new Error(ne)}},{immediate:!0}),{mode:y,renderMenuList:N,clickMenu:I,openMenu:K,closeMenu:$,changeMenuStyle:O}}}),NM=t=>({comp:"MenuTop",compData:[{key:"menuContents",contents:JSON.parse(t==null?void 0:t.value.trim().replaceAll("'",'"'))}],name:""}),TM=t=>{const n=t==null?void 0:t.filter(l=>{var a;return!((a=l==null?void 0:l.key)!=null&&a.includes("("))}),o=n==null?void 0:n.find(l=>{var a;return D.IsJson(l.value.replaceAll("'",'"'))&&((a=JSON.parse(l.value.replaceAll("'",'"')))==null?void 0:a.every(s=>typeof s=="string"))});if(o)return NM(o)},_M=t=>{var a;let n=[];const o=t==null?void 0:t.filter(s=>{var i;return!((i=s==null?void 0:s.key)!=null&&i.includes("("))}),l=o==null?void 0:o.find(s=>{var i;return D.IsJson(s.value.replaceAll("'",'"'))&&!((i=JSON.parse(s.value.replaceAll("'",'"')))!=null&&i.every(c=>typeof c=="string"))});if(l)return(a=JSON.parse(l.value.replaceAll("'",'"')))==null||a.forEach(s=>{var i,c,u,d;((i=Object.keys(s))==null?void 0:i[0])==="类型"?n.push({comp:"System",compData:[{key:"type",contents:[(c=Object.values(s))==null?void 0:c[0]]}]}):((u=Object.keys(s))==null?void 0:u[0])==="名称"&&n.push({comp:"System",compData:[{key:"name",contents:[(d=Object.values(s))==null?void 0:d[0]]}]})}),n};e.ref(0);const VM=t=>{const n=[];let o=[];return t==null||t.forEach((l,a)=>{var s;(o==null?void 0:o.length)===0?o.push(l):(o.push(l),((s=t[a+1])==null?void 0:s.key)==="groupName"&&(n.push(o),o=[]))}),n.push(o),n},Bm=t=>{const n=[];let o=!1;return t.forEach(l=>{Array.isArray(l)&&(o=!0,l.forEach(a=>{const s=t.map(i=>i===l?a:i);n.push(...Bm(s))}))}),o?n:[t]},BM=D.useOriginalState(r.pinia),{originalPath:Zl}=r.storeToRefs(BM),PM=t=>{var s,i,c;const n=(s=t.map(u=>{var p,f;let d=(f=(p=u.key.split("("))==null?void 0:p[1])==null?void 0:f.trim();return d==null?void 0:d.slice(0,d.length-1)}))==null?void 0:s.filter(u=>u),o=[];n==null||n.forEach(u=>{var p,f;const d=[];if((p=qn.contentTrans(u))==null||p.forEach(h=>{var m,g,v,k,b,S,y,C,E;if(h.includes("{")&&h.includes("[")){let w=r.cloneDeep(h).split(":");h=(S=(g=(m=r.cloneDeep(w))==null?void 0:m[0])==null?void 0:g.split("{"))==null?void 0:S[((b=(k=(v=r.cloneDeep(w))==null?void 0:v[0])==null?void 0:k.split("{"))==null?void 0:b.length)-1].replaceAll("'",""),d.push(h)}else if(h.includes("{")){let w=(y=h.split(":"))==null?void 0:y[0];h=(E=w==null?void 0:w.split("{"))==null?void 0:E[((C=w==null?void 0:w.split("{"))==null?void 0:C.length)-1].replaceAll("'",""),d.push(h)}else d.push(h)}),!d.some(h=>Array.isArray(h)))o.push(d);else{let h=[];d==null||d.forEach((m,g)=>{g!==d.length-1&&h.push(m)}),(f=d==null?void 0:d[(d==null?void 0:d.length)-1])==null||f.forEach(m=>{let g=r.cloneDeep(h);g.push(m),o.push(g)})}});let l=[];o==null||o.forEach(u=>{var d;if(u!=null&&u.find(p=>p==null?void 0:p.includes("["))){let p=u==null?void 0:u.filter(h=>!(h!=null&&h.includes("["))),f=u==null?void 0:u.find(h=>h==null?void 0:h.includes("["));f=f==null?void 0:f.slice(1,(f==null?void 0:f.length)-1),(d=f==null?void 0:f.split(","))==null||d.forEach(h=>{let m=r.cloneDeep(p);m.push(h),l.push(m)})}else l.push(u)});const a=(c=(i=l.filter(u=>u.length!==0))==null?void 0:i.filter(u=>u.length!==0))==null?void 0:c.map(u=>{let d="";return u.forEach(p=>{!p.includes("{")&&!(p!=null&&p.includes("$"))&&(d=d===""?d+r.cloneDeep(p):d+"/"+r.cloneDeep(p))}),d});return qn.menuArray([...new Set(a)])},DM=t=>({comp:"Menu",compData:[{contents:PM(r.cloneDeep(t)),key:"menuContents"}],name:""}),$M=(t,n)=>{var c,u;if(!t)return;let o=[];const l=qn.getContentValue(t),a=r.cloneDeep(l).replaceAll("{","").replaceAll("}","").trim();let s=[];return a.split(":").forEach(d=>{var p;if(d.includes("[")){const f=(p=d.slice(1,d.length-1))==null?void 0:p.split(",");s.push(f)}else s.push(d)}),(c=Bm(s))==null||c.forEach(d=>{o.push(d)}),(u=o==null?void 0:o.filter(d=>d.length!==0))==null?void 0:u.map(d=>{let p="",f="",h=!0;return d.forEach(m=>{!m.includes("{")&&!(m!=null&&m.includes("$"))&&(m!=null&&m.includes("@")&&!(m!=null&&m.includes("@input"))&&!(m!=null&&m.includes("@output"))&&(m=""),p!=null&&p.includes("/")&&(n!=null&&n.includes(p))&&!(n!=null&&n.includes(p+"/"+m.trim()))&&h&&(n!=null&&n.includes(p+Zl.value))&&(h=!1),h?p=p===""?p+m.trim():m.trim()===""?p+Zl.value:m.trim().includes("@")?p+Zl.value+m.trim():p+"/"+m.trim():p=p+Zl.value+m.trim()),m!=null&&m.includes("$")&&(f=m.replaceAll("$",""))}),{path:p,parentPath:f}})},IM=t=>{let n=t;const o=[];let l="";for(const a of n)a.includes("{")||l.includes("{")||a.includes("[")||l.includes("[")||a.includes("【")||l.includes("【")||a.includes("(")||l.includes("(")||a.includes("(")||l.includes("(")||a.includes("/*")||l.includes("/*")?(l+=a.trim(),l.split("{").length-1===l.split("}").length-1&&l.split("【").length-1===l.split("】").length-1&&l.split("[").length-1===l.split("]").length-1&&l.split("(").length-1===l.split(")").length-1&&l.split("(").length-1===l.split(")").length-1&&l.split("/*").length-1===l.split("*/").length-1&&(l.match(/'/g)||[]).length%2===0&&(l==null?void 0:l[(l==null?void 0:l.length)-1])===","&&(o.push(l),l="")):(l+=a.trim(),(l==null?void 0:l[(l==null?void 0:l.length)-1])===","&&(o.push(l),l=""));return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o};let Je="$R",Ts="$/";const OM=D.useOriginalState(r.pinia),{originalPath:MM}=r.storeToRefs(OM),Ru=(t,n)=>{var i,c,u,d,p,f,h,m,g,v,k,b,S,y,C,E,w,V,T,N,_,P,B;let o;if(o=(c=(i=t==null?void 0:t.replace("[",Je))==null?void 0:i.split(Je))==null?void 0:c[1],!o)return;const l=o.lastIndexOf("]"),a=o.substring(0,l)+Je+o.substring(l+1);o=(d=(u=a==null?void 0:a.split(Je))==null?void 0:u[0])==null?void 0:d.replaceAll("'",""),o=(o==null?void 0:o[0])===":"?'""'+o:o,n!=null&&n.includes("#")&&(o!=null&&o.includes("[")?o=((f=(p=n==null?void 0:n.split("#"))==null?void 0:p[0])==null?void 0:f.replaceAll("'",""))+"#("+o+")":o=((m=(h=n==null?void 0:n.split("#"))==null?void 0:h[0])==null?void 0:m.replaceAll("'",""))+"#"+o);let s=(E=(C=(y=(S=(v=(g=r.cloneDeep(t))==null?void 0:g.replace("(",Je))==null?void 0:v.split(Je))==null?void 0:S[((b=(k=t==null?void 0:t.replace("(",Je))==null?void 0:k.split(Je))==null?void 0:b.length)-1])==null?void 0:y.replace(")",Je))==null?void 0:C.split(Je))==null?void 0:E[0].replaceAll(":","/").replaceAll("'","");if(o.includes(":")&&!o.includes(":[")&&((V=s==null?void 0:s.split("/"))==null?void 0:V[((w=s==null?void 0:s.split("/"))==null?void 0:w.length)-1])!==""?o=o+"["+s+"]":o=o+"["+s+"]()",n!=null&&n.includes("#")&&((N=Te.contentTransArrayToAllNoExtra((T=n==null?void 0:n.split("#"))==null?void 0:T[1],"/"))==null?void 0:N.length)>1){let A=(_=n==null?void 0:n.split("#"))==null?void 0:_[1],j=[];(B=(P=Te.contentTransArrayToAllNoExtra(A,"/"))==null?void 0:P.filter(M=>!(M!=null&&M.includes("("))))==null||B.forEach(M=>{M!=null&&M[(M==null?void 0:M.length)-1]?j.push(M.slice(0,(M==null?void 0:M.length)-1).replaceAll("'","")):j.push(M.replaceAll("'",""))}),o=o+"&&#"+j.join(Ts)}return o},xM=t=>{var s;let n=t;const o=[];let l="",a=0;for(const i of n)a++,i.includes("(")||l.includes("(")||i.includes(")")||l.includes(")")||i.includes("&")||l.includes("&")||i.includes("|")||l.includes("|")?(l+=i.trim(),((s=r.cloneDeep(l))==null?void 0:s[(l==null?void 0:l.length)-1])===")"||r.cloneDeep(l).includes("||")||r.cloneDeep(l).includes("&&")?(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l=""):a===(t==null?void 0:t.length)&&(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):(l+=i.trim(),o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="");return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o},AM=t=>{var a;let n=(a=xM(t))==null?void 0:a.map(s=>(s!=null&&s.includes("(")&&(s="("+(s==null?void 0:s.replaceAll("(",""))),s)),o=[],l={};return n==null||n.forEach((s,i)=>{var c,u;if(s!=null&&s.includes("(")){let d=(c=s.slice(1,(s==null?void 0:s.length)-1))==null?void 0:c.split("#"),p=d[0].replaceAll("'",""),f=(u=d[1])==null?void 0:u.replaceAll("'","");(p==null?void 0:p[(p==null?void 0:p.length)-1])!=="!"?l[p]=f:l[p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)]="!"+f}else s==="&&"||s==="||"&&(o.push(l),l={});i===n.length-1&&(o.push(l),l={})}),o},zM=t=>{var o,l;let n=(l=(o=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:o.split(","))==null?void 0:l.map(a=>{var s,i,c,u,d;return(d=(u=(c=(i=(s=a==null?void 0:a.split("=="))==null?void 0:s[0])==null?void 0:i.replaceAll("'",""))==null?void 0:c.split("#"))==null?void 0:u[0])==null?void 0:d.trim()});return n=JSON.stringify(n),n},_s=t=>{let n=r.cloneDeep(t),o=[],l="",a="",s=(n==null?void 0:n[0])==="["?Te.newContentTransArrayToAllNoExtra(n.slice(1,n.length-1),","):Te.newContentTransArrayToAllNoExtra(n,",");return s==null||s.forEach((i,c)=>{var d,p,f,h,m,g,v,k;let u=i;if(u[u.length-1]===","&&(u=u.slice(0,u.length-1)),u.slice(1,(u==null?void 0:u.length)-1).includes("[")&&(u==null?void 0:u[0])==="["){let b=_s(u);if((s==null?void 0:s.length)===2&&((p=s==null?void 0:s[0])==null?void 0:p[((d=s==null?void 0:s[0])==null?void 0:d.length)-1])===":"){let S=s[c-1].replaceAll(",","").trim();S[S.length-1]===":"&&(S=S.slice(0,S.length-1));let y=(f=_s(u))==null?void 0:f.parentStringContent;y="["+((h=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1))==null?void 0:h.replaceAll("'",'"'))+"]";let C={[S]:y};o.push(C)}else a=a+u+",";l=l+(b==null?void 0:b.stringContent),a=a+(b==null?void 0:b.parentStringContent),o=[...o,...b==null?void 0:b.parentColumns]}else if((u==null?void 0:u[0])!=="["&&u[u.length-1]===":")u=u.slice(0,u.length-1),l=l+u+",",a=a+((m=u==null?void 0:u.split("#"))==null?void 0:m[0])+",";else if((u==null?void 0:u[0])==="["&&s[c-1]){(v=(g=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))==null?void 0:g.split(","))==null||v.forEach(y=>{l=l+y+","});let b=s[c-1].replaceAll(",","").trim();b[b.length-1]===":"&&(b=b.slice(0,b.length-1));let S={[b]:zM(u)};o.push(S)}else l=l+u+",",a=a+((k=u==null?void 0:u.split("#"))==null?void 0:k[0])+","}),{parentColumns:o,stringContent:l,parentStringContent:a}},Da=t=>{var f,h,m,g,v,k,b,S,y,C,E,w,V,T,N,_,P,B,A,j,M,I,K,$,O,q,F,X,L,G,Z,ee,Y,z;((f=t==null?void 0:t.split("["))==null?void 0:f.length)!==((h=t==null?void 0:t.split("]"))==null?void 0:h.length)&&(t=t.replace(":[[","]:[["));let n=Te.checkIsShowTable(t)?(m=Te.contentTransArray(r.cloneDeep(t)))==null?void 0:m[0]:"[]";const o=Te.checkIsShowTable(t)?"["+((g=Te.contentTransArray(r.cloneDeep(t)))==null?void 0:g[2])+"]":"["+t+"]";let l=[],a=[],s="",i=[],c=[],u=[];const d=(k=(v=o==null?void 0:o.trim())==null?void 0:v.slice(1,(o==null?void 0:o.trim().length)-1))==null?void 0:k.replaceAll("'",'"');D.IsJson(d)?l=JSON.parse(d):D.IsJson((y=(S=(b=d==null?void 0:d.split("}"))==null?void 0:b[0])==null?void 0:S.replace(":",""))==null?void 0:y.replaceAll("\\","\\\\"))&&(l=JSON.parse((w=(E=(C=d==null?void 0:d.split("}"))==null?void 0:C[0])==null?void 0:E.replace(":",""))==null?void 0:w.replaceAll("\\","\\\\"))),l=l!=null&&l.every(R=>Array.isArray(R)&&R.every(x=>Array.isArray(x)))?l==null?void 0:l[0]:l;let p=IM(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));if(p!=null&&p.some(R=>(R==null?void 0:R[0])==="["&&(R==null?void 0:R.includes("]#")))){let R=[];p==null||p.forEach(x=>{var Q,U,J,ce,oe,ie,ne,le,ue,me;if((x==null?void 0:x[0])==="["&&(x!=null&&x.includes("]#"))){let ke=(Q=x==null?void 0:x.split("#"))==null?void 0:Q[1];s=(le=(ne=(ie=(oe=(ce=(J=(U=ke==null?void 0:ke.replace("(",Je))==null?void 0:U.split(Je))==null?void 0:J[1])==null?void 0:ce.replace(")",Je))==null?void 0:oe.split(Je))==null?void 0:ie[0])==null?void 0:ne.replaceAll(":","/"))==null?void 0:le.replaceAll("'",""),s=s+((me=(ue=ke==null?void 0:ke.replace(")",Je))==null?void 0:ue.split(Je))==null?void 0:me[1]),(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1))}else R.push(x)}),n="["+(R==null?void 0:R.join(""))+"]"}if((V=Te.newContentTransArrayToAllNoExtra(n.slice(1,n.length-1),","))!=null&&V.some(R=>(R==null?void 0:R[0])==="["||R[(R==null?void 0:R.length)-1]===":")){let R=_s(n);u=R==null?void 0:R.parentColumns;let x=R==null?void 0:R.stringContent;n="["+(x==null?void 0:x.slice(0,(x==null?void 0:x.length)-1))+"]"}if(n!=null&&n.includes("(")){let R=[],x=(($=(K=(I=(M=(j=n==null?void 0:n.split("["))==null?void 0:j[((A=n==null?void 0:n.split("["))==null?void 0:A.length)-1])==null?void 0:M.split("]"))==null?void 0:I[0])==null?void 0:K.split(":"))==null?void 0:$.length)!==1,Q=(q=(O=n==null?void 0:n.replace("=",Je))==null?void 0:O.split(Je))==null?void 0:q[0];if(((F=Te.contentTransArrayToAllNoExtra(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1),","))==null?void 0:F.length)>1||x&&(Q==null?void 0:Q[(Q==null?void 0:Q.length)-1])!=="]"){let U=(X=Te.contentTransArrayToAllNoExtra(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1),","))==null?void 0:X.map(J=>((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=r.cloneDeep(J).slice(0,(J==null?void 0:J.length)-1)),J));U==null||U.forEach(J=>{var ce,oe,ie,ne,le,ue,me,ke,Ee,Ne,Pe,_e,Me,be,he,Ve,we,$e,de;if((J==null?void 0:J[0])==="("&&(J==null?void 0:J[J.length-1])===")")i=AM(J);else if(!(J!=null&&J.includes("(")))J!=null&&J.includes("/")?R.push((ce=J==null?void 0:J.replaceAll("#","&&#"))==null?void 0:ce.replaceAll("/",Ts)):R.push(J==null?void 0:J.replaceAll("'",""));else if(J!=null&&J.includes("[")){let fe;const H=(_e=(Pe=r.cloneDeep(J))==null?void 0:Pe.replaceAll("{",""))==null?void 0:_e.replaceAll("}","");if(((be=(Me=H==null?void 0:H.split("#"))==null?void 0:Me[1])==null?void 0:be[0])==="["||H[0]==="["){let te,W="";H!=null&&H.includes("#")?(te=(he=H==null?void 0:H.split("#"))==null?void 0:he[1],W=((Ve=H==null?void 0:H.split("#"))==null?void 0:Ve[0])+"#["):(te=H,W="["),te=($e=r.cloneDeep(te))==null?void 0:$e.slice(1,((we=r.cloneDeep(te))==null?void 0:we.length)-1),(de=te==null?void 0:te.split(","))==null||de.forEach(ae=>{W=W+Ru(ae,r.cloneDeep(ae))+","}),fe=(W==null?void 0:W.slice(0,(W==null?void 0:W.length)-1))+"]"}else fe=Ru(H,r.cloneDeep(J));R.push(fe==null?void 0:fe.replaceAll('"',"'"))}else{let fe=(ue=(le=(ne=(ie=J==null?void 0:J.split(":"))==null?void 0:ie[((oe=J==null?void 0:J.split(":"))==null?void 0:oe.length)-1])==null?void 0:ne.split(")"))==null?void 0:le[0])==null?void 0:ue.replaceAll("'","");fe=fe+"["+((Ne=(Ee=(ke=J==null?void 0:J.split("("))==null?void 0:ke[((me=J==null?void 0:J.split("("))==null?void 0:me.length)-1])==null?void 0:Ee.split(")"))==null?void 0:Ne[0].replaceAll(":","/").replaceAll("'",""))+"]",R.push(fe)}}),a=R}else{let U=((ee=(Z=(G=(L=n==null?void 0:n.slice(1,n==null?void 0:n.length))==null?void 0:L.split("("))==null?void 0:G[1])==null?void 0:Z.split(")"))==null?void 0:ee[0]).replaceAll("{","").replaceAll("}","").replaceAll(":","/").replaceAll("'","");U=U.replaceAll("/[",MM.value+"[");let J=(z=(Y=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1))==null?void 0:Y.replace("[",Je))==null?void 0:z.split(Je);s=s+U+"["+(J==null?void 0:J[(J==null?void 0:J.length)-1])}}else if(!(n!=null&&n.includes("{"))&&D.IsJson(n==null?void 0:n.replaceAll("'",'"')))a=JSON.parse(n==null?void 0:n.replaceAll("'",'"'));else if(D.IsJson((N=(T=n==null?void 0:n.split("{"))==null?void 0:T[1])==null?void 0:N.replaceAll("'",'"')))a=JSON.parse((P=(_=n==null?void 0:n.split("{"))==null?void 0:_[1])==null?void 0:P.replaceAll("'",'"'));else{let R=n.slice(1,n.length-1);(B=R==null?void 0:R.split(","))==null||B.forEach(x=>{var Q,U,J,ce,oe,ie;x!=null&&x.includes("#")?x!=null&&x.includes("/")?a.push((oe=x==null?void 0:x.replaceAll("#","&&#"))==null?void 0:oe.replaceAll("/",Ts)):a.push(((U=(Q=x==null?void 0:x.split("#"))==null?void 0:Q[0])==null?void 0:U.replaceAll("'",""))+"@-"+((ce=(J=x==null?void 0:x.split("#"))==null?void 0:J[1])==null?void 0:ce.replaceAll("'",""))):a.push((ie=x.trim())==null?void 0:ie.replaceAll("'",""))})}return a=a==null?void 0:a.map(R=>R==null?void 0:R.replaceAll("'","")),{tableColumns:a,tableContents:l!=null&&l.every(R=>Array.isArray(R))?l:[l],tablePath:s,filterContents:i,childTree:c,parentColumns:u}};let Ke="$R";const RM=t=>{var o;let n="[["+t+"]]";return D.IsJson((o=n.slice(1,(n==null?void 0:n.length)-1))==null?void 0:o.replaceAll("'",'"'))},Vs=t=>{var l,a,s,i,c,u,d,p,f,h,m,g,v,k,b,S,y,C,E,w,V,T,N,_,P,B,A,j,M,I,K,$,O,q,F,X,L,G,Z,ee,Y,z,R,x,Q,U,J,ce,oe,ie,ne,le,ue,me,ke,Ee,Ne,Pe,_e,Me;let n="";t=t==null?void 0:t.replace("=",":"),t=t.replace(/:([^=]*)==/g,":");let o=t;if((Te.checkIsShowGroup(r.cloneDeep(t))!==null||Te.checkIsShowGroupForm(r.cloneDeep(t))!==null||Te.checkIsUsingGroup(t))&&(n=(s=(a=(l=r.cloneDeep(t).replace(":",Ke).split(Ke))==null?void 0:l[0])==null?void 0:a.replaceAll("'",""))==null?void 0:s.replaceAll("]",""),o=(i=r.cloneDeep(t).replace(":",Ke).split(Ke))==null?void 0:i[1]),Te.checkIsShowTable(r.cloneDeep(o).slice(1,((c=r.cloneDeep(o))==null?void 0:c.length)-1))||Te.checkForTableContents(r.cloneDeep(o).slice(1,((u=r.cloneDeep(o))==null?void 0:u.length)-1))||Te.checkIsTableCheck(o))if((o==null?void 0:o[0])!=="["&&(o==null?void 0:o[0])!=="{"&&(o="{["+o+"]:[[]]}"),((p=r.cloneDeep(o).slice(1,((d=r.cloneDeep(o))==null?void 0:d.length)-1))==null?void 0:p[1])!=="["){const be=Da(r.cloneDeep(o).slice(1,((f=r.cloneDeep(o))==null?void 0:f.length)-1));return{groupName:n,tableColumn:be==null?void 0:be.tableColumns,tableContents:be==null?void 0:be.tableContents,tableColumnPath:be==null?void 0:be.tablePath,filterContents:be==null?void 0:be.filterContents,childTree:be==null?void 0:be.childTree,parentColumns:be==null?void 0:be.parentColumns}}else if(r.cloneDeep(o).slice(1,((h=r.cloneDeep(o))==null?void 0:h.length)-1).includes("{")){let be=r.cloneDeep(o).slice(1,((m=r.cloneDeep(o))==null?void 0:m.length)-1),he=be.indexOf("{"),Ve=be.slice(he,(be==null?void 0:be.length)-he);return(v=(g=Te.contentTransArray(Ve))==null?void 0:g.filter($e=>$e==null?void 0:$e.includes("{")))==null?void 0:v.map(($e,de)=>{var H;let fe=Da(r.cloneDeep($e).slice(1,((H=r.cloneDeep($e))==null?void 0:H.length)-1));return{groupName:de===0?n:"",tableColumn:fe==null?void 0:fe.tableColumns,tableContents:fe==null?void 0:fe.tableContents,tableColumnPath:fe==null?void 0:fe.tablePath,filterContents:fe==null?void 0:fe.filterContents,childTree:fe==null?void 0:fe.childTree,parentColumns:fe==null?void 0:fe.parentColumns}})}else{const be=Da(r.cloneDeep(o).slice(1,((k=r.cloneDeep(o))==null?void 0:k.length)-1));return{groupName:n,tableColumn:be==null?void 0:be.tableColumns,tableContents:be==null?void 0:be.tableContents,tableColumnPath:be==null?void 0:be.tablePath,filterContents:be==null?void 0:be.filterContents,childTree:be==null?void 0:be.childTree,parentColumns:be==null?void 0:be.parentColumns}}else{let be=[];if(D.IsJson((b=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:b.replaceAll("'",'"')))be=[JSON.parse((S=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:S.replaceAll("'",'"'))];else if((!o.includes("(")||RM(o))&&!((o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["))if(o="[["+o+"]]",D.IsJson((y=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:y.replaceAll("'",'"')))be=JSON.parse((C=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:C.replaceAll("'",'"'));else if(o=o.slice(2,o.length-2),((V=(w=(E=o==null?void 0:o.replace(":",Ke))==null?void 0:E.split(Ke))==null?void 0:w[1])==null?void 0:V[0])!=="{"&&(o==null?void 0:o[0])!=="{"){o=((N=(T=o==null?void 0:o.replace(":",Ke))==null?void 0:T.split(Ke))==null?void 0:N[0])+":{["+((P=(_=o==null?void 0:o.replace(":",Ke))==null?void 0:_.split(Ke))==null?void 0:P[1])+"]}";const he=Vs(o);return he!=null&&he.tableColumn?{groupName:he==null?void 0:he.groupName,tableColumn:he==null?void 0:he.tableColumn,tableContents:he==null?void 0:he.tableContents,filterContents:he==null?void 0:he.filterContents,childTree:he==null?void 0:he.childTree,parentColumns:he==null?void 0:he.parentColumns}:{groupName:he==null?void 0:he.groupName,formContents:he==null?void 0:he.formContents}}else{let he=(A=(B=Te.contentTransArrayToAllNoExtra(o,","))==null?void 0:B.map(we=>we==null?void 0:we.replaceAll(",","")))==null?void 0:A.map(we=>Te.formToExtraContent(r.cloneDeep(we).slice(1,r.cloneDeep(we).length-1))),Ve=[];return(j=r.cloneDeep(he))==null||j.forEach(we=>{var $e;($e=we==null?void 0:we.formContents)==null||$e.forEach(de=>{de==null||de.forEach(fe=>{Ve.push(fe)})})}),{groupName:(M=he==null?void 0:he[0])==null?void 0:M.groupName,formContents:Ve}}else if((o==null?void 0:o[0])!=="{"&&(o==null?void 0:o[0])!=="["){let he=(O=($=(K=(I=r.cloneDeep(o))==null?void 0:I.split("]"))==null?void 0:K[0])==null?void 0:$.split("["))==null?void 0:O[1],Ve="",$e=((Z=(G=(L=(X=(F=(q=r.cloneDeep(o))==null?void 0:q.split(")"))==null?void 0:F[0])==null?void 0:X.split("("))==null?void 0:L[1])==null?void 0:G.replaceAll("[",""))==null?void 0:Z.replaceAll("]","")).replaceAll("'","").replaceAll(":","/");(ee=$e==null?void 0:$e.split("/"))==null||ee.forEach((fe,H)=>{var te;H!==((te=$e==null?void 0:$e.split("/"))==null?void 0:te.length)-1&&(Ve=Ve===""?Ve+fe:Ve+"/"+fe)});let de;return((x=(R=(z=(Y=r.cloneDeep(o))==null?void 0:Y.replace(",",Ke))==null?void 0:z.split(Ke))==null?void 0:R[1])==null?void 0:x[0])==="["&&(de=Te.getExtraContents((J=(U=(Q=r.cloneDeep(o))==null?void 0:Q.replace(",",Ke))==null?void 0:U.split(Ke))==null?void 0:J[1])),{groupName:"",extraButton:(oe=he==null?void 0:he.split(":"))==null?void 0:oe[((ce=he==null?void 0:he.split(":"))==null?void 0:ce.length)-1].replaceAll("'",""),extraPath:Ve,extraData:de}}else if((o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["&&(o=o.slice(1,(o==null?void 0:o.length)-1).replaceAll('"',"'")),(o==null?void 0:o[0])!=="["){let he;(o==null?void 0:o[1])==="["?he=o.slice(2,(o==null?void 0:o.length)-2):he=o;let Ve=(ne=(ie=Te.contentTransArray(he))==null?void 0:ie.filter($e=>$e!==","))==null?void 0:ne.map($e=>Te.formToExtraContent(r.cloneDeep($e).slice(1,r.cloneDeep($e).length-1))),we=[];return(le=r.cloneDeep(Ve))==null||le.forEach($e=>{var de;(de=$e==null?void 0:$e.formContents)==null||de.forEach(fe=>{fe==null||fe.forEach(H=>{we.push(H)})})}),{groupName:(ue=Ve==null?void 0:Ve[0])==null?void 0:ue.groupName,formContents:we}}else if((o==null?void 0:o[1])!=="["&&(o="["+o+"]"),(o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["){o=o.slice(1,(o==null?void 0:o.length)-1);let he=[],Ve=[];if(((ke=(me=Te.contentTransArray(o))==null?void 0:me.filter(we=>we!==","))==null?void 0:ke.length)===1){o=o.slice(1,(o==null?void 0:o.length)-1);let we=(Ne=(Ee=Te.contentTransArrayToAllNoExtra(o,","))==null?void 0:Ee.map(de=>de==null?void 0:de.replaceAll(",","")))==null?void 0:Ne.map(de=>Te.formToExtraContent(r.cloneDeep(de).slice(1,r.cloneDeep(de).length-1))),$e=[];(Pe=r.cloneDeep(we))==null||Pe.forEach(de=>{var fe;(fe=de==null?void 0:de.formContents)==null||fe.forEach(H=>{H==null||H.forEach(te=>{$e.push(te)})})}),he.push($e)}else(Me=(_e=Te.contentTransArray(o))==null?void 0:_e.filter(we=>we!==","))==null||Me.forEach(we=>{var $e,de,fe,H;if(!we.includes("&"))Array.isArray(Vl(we))||he.push(($e=Vl(we))==null?void 0:$e.formContents);else{let te=(H=(fe=(de=r.cloneDeep(we))==null?void 0:de.split("&"))==null?void 0:fe[1])==null?void 0:H.replaceAll("'",'"');D.IsJson(te)&&Ve.push({[JSON.parse(te)[0]]:JSON.parse(te)})}});return{groupName:n,formContents:he,formGroup:Ve}}return{groupName:n,formContents:be}}},Vl=t=>{var a,s,i,c,u,d,p;let n=!1,o=[],l=Te.checkIsShowGroup(t.slice(1,r.cloneDeep(t).length-1))!==null||Te.checkIsShowGroupForm(t.slice(1,r.cloneDeep(t).length-1))!==null;if(l){let f=(c=(a=r.cloneDeep(t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)).replace(":",Ke).split(Ke))==null?void 0:a[1])==null?void 0:c.slice(1,((i=(s=r.cloneDeep(t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)).replace(":",Ke).split(Ke))==null?void 0:s[1])==null?void 0:i.length)-1);(f==null?void 0:f[0])==="["&&(f==null?void 0:f[1])==="["&&(f=f.slice(1,(f==null?void 0:f.length)-1));let h=(u=Te.contentTransArrayToAllNoExtra(f,","))==null?void 0:u.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m));h!=null&&h.every(m=>Te.checkIsShowGroup(m.slice(1,r.cloneDeep(m).length-1))!==null||Te.checkIsShowGroupForm(m.slice(1,r.cloneDeep(m).length-1))!==null)&&(n=!0)}return l&&n?((d=qr(t))==null||d.forEach(f=>{o.push(f)}),o):((p=Te.contentTransArray(t))==null?void 0:p.length)===1?Vs(r.cloneDeep(t).slice(1,r.cloneDeep(t).length-1)):Vs(r.cloneDeep(t).slice(1,r.cloneDeep(t).length))},qr=(t,n=0)=>{var d,p,f,h,m;let o=t.slice(1,r.cloneDeep(t).length-1),l=(p=(d=r.cloneDeep(o).replace(":",Ke).split(Ke))==null?void 0:d[0])==null?void 0:p.replaceAll("'",""),a=(f=r.cloneDeep(o).replace(":",Ke).split(Ke))==null?void 0:f[1],s=[],i=!1;a=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1);let c=(h=Te.contentTransArrayToAllNoExtra(a,","))==null?void 0:h.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));if(c!=null&&c.every(g=>Te.checkIsShowGroup(g.slice(1,r.cloneDeep(g).length-1))!==null||Te.checkIsShowGroupForm(g.slice(1,r.cloneDeep(g).length-1))!==null||Te.checkIsQuote(g)!==null)&&(i=!0),!i)s=qr(a,n+1);else{let g=[];c!=null&&c.every(v=>Te.checkIsQuote(v)!==null)?g=c:g=(m=Te.contentTransArray(a))==null?void 0:m.filter(v=>v!==","),g==null||g.forEach(v=>{var C,E,w,V,T;let k=v.slice(1,r.cloneDeep(v).length-1),b=(V=(C=r.cloneDeep(k).replace(":",Ke).split(Ke))==null?void 0:C[1])==null?void 0:V.slice(1,((w=(E=r.cloneDeep(k).replace(":",Ke).split(Ke))==null?void 0:E[1])==null?void 0:w.length)-1);(b==null?void 0:b[0])==="["&&(b==null?void 0:b[1])==="["&&(b=b.slice(1,(b==null?void 0:b.length)-1));let S=(T=Te.contentTransArrayToAllNoExtra(b,","))==null?void 0:T.map(N=>((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),N));(S==null?void 0:S.every(N=>Te.checkIsShowGroup(N.slice(1,r.cloneDeep(N).length-1))!==null||Te.checkIsShowGroupForm(N.slice(1,r.cloneDeep(N).length-1))!==null))?s=[...s,...qr(v,n+1)]:s=[...s,...Pm(v)]})}return s==null?void 0:s.map(g=>(g["groupName"+n]=l,g))},Pm=t=>{var o,l,a;let n=[];if((t==null?void 0:t[0])==="["&&(t==null?void 0:t[1])==="["){let s=(o=Te.contentTransArray(t))==null?void 0:o.filter(i=>i!==",");s==null||s.forEach(i=>{n.push(Vl(i))})}else{let s=(a=(l=Te.newContentTransArrayToAllNoExtra(t,","))==null?void 0:l.filter(i=>i!==","))==null?void 0:a.map(i=>(i[(i==null?void 0:i.length)-1]===","&&(i=i.slice(0,(i==null?void 0:i.length)-1)),i));s==null||s.forEach(i=>{var d,p,f;let c=!1,u=Te.checkIsShowGroup(i.slice(1,r.cloneDeep(i).length-1))!==null||Te.checkIsShowGroupForm(i.slice(1,r.cloneDeep(i).length-1))!==null;if(u){let h=(d=r.cloneDeep(i==null?void 0:i.slice(1,(i==null?void 0:i.length)-1)).replace(":",Ke).split(Ke))==null?void 0:d[1];(h==null?void 0:h[0])==="["&&(h==null?void 0:h[1])==="["&&(h=h.slice(1,(h==null?void 0:h.length)-1));let m=(p=Te.contentTransArrayToAllNoExtra(h,","))==null?void 0:p.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));m!=null&&m.every(g=>Te.checkIsShowGroup(g.slice(1,r.cloneDeep(g).length-1))!==null||Te.checkIsShowGroupForm(g.slice(1,r.cloneDeep(g).length-1))!==null||Te.checkIsQuote(g)!==null)&&(c=!0)}u&&c?(f=qr(i))==null||f.forEach(h=>{n.push(h)}):n.push(Vl(i))})}return n},ol=e.ref(0);let Ql="$R";const LM=D.useOriginalState(r.pinia),{originalPath:er}=r.storeToRefs(LM),FM=(t,n)=>{var a;let o=[],l=n==null?void 0:n.length;return(a=r.cloneDeep(n))==null||a.forEach((s,i)=>{let c=[];s==null||s.forEach(u=>{var d,p,f,h,m,g,v,k,b,S;if(c.push(r.cloneDeep(u)),D.IsJson(r.cloneDeep(t.trim()).replaceAll("'",'"'))&&((d=JSON.parse(r.cloneDeep(t.trim()).replaceAll("'",'"')))!=null&&d.every(y=>typeof y=="string")))(p=JSON.parse(r.cloneDeep(t.trim()).replaceAll("'",'"')))==null||p.forEach(y=>{var C,E,w;o.push([{key:(C=r.cloneDeep(u))==null?void 0:C.key,value:((E=r.cloneDeep(u))==null?void 0:E.value)+"/"+y,parentPath:(w=r.cloneDeep(u))==null?void 0:w.parentPath}])});else{let y=[];if(((f=r.cloneDeep(t.trim()))==null?void 0:f[0])==="["&&((h=r.cloneDeep(t.trim()))==null?void 0:h[1])==="["){let C=t.trim().slice(1,((m=t.trim())==null?void 0:m.length)-1),E=Pm(C.trim());E!=null&&E.every(w=>Array.isArray(w))&&(E=E==null?void 0:E[0]),E==null||E.forEach(w=>{var V,T,N,_,P,B,A,j,M,I,K,$,O;if(w!=null&&w.tableColumn)((T=(V=Object.keys(w))==null?void 0:V.filter(q=>q==null?void 0:q.includes("groupName")))==null?void 0:T.length)===1?c.push({key:"groupName",value:w==null?void 0:w.groupName}):(_=(N=Object.keys(w))==null?void 0:N.filter(q=>q==null?void 0:q.includes("groupName")))==null||_.forEach(q=>{c.push({key:q,value:w==null?void 0:w[q]})}),c.push({key:"tableColumn",value:w==null?void 0:w.tableColumn}),c.push({key:"tableContents",value:w==null?void 0:w.tableContents}),c.push({key:"tablePath",value:(w==null?void 0:w.tableColumnPath)??""}),c.push({key:"tableFilter",value:(w==null?void 0:w.filterContents)??[]}),c.push({key:"childTree",value:(w==null?void 0:w.childTree)??[]}),c.push({key:"parentColumns",value:(w==null?void 0:w.parentColumns)??[]});else if(w!=null&&w.extraButton)c.push({key:"groupName",value:w==null?void 0:w.groupName}),c.push({key:"extraButton",value:w==null?void 0:w.extraButton,path:w==null?void 0:w.extraPath,data:w==null?void 0:w.extraData});else{let q=l===1?w==null?void 0:w.formContents:((P=w==null?void 0:w.formContents)==null?void 0:P.length)===1?(A=(B=w==null?void 0:w.formContents)==null?void 0:B[0])==null?void 0:A[i]:(j=w==null?void 0:w.formContents)==null?void 0:j[i];(q==null?void 0:q.length)>0&&(c.push({key:"groupName",value:w==null?void 0:w.groupName}),c.push({key:"formContent",value:l===1?w==null?void 0:w.formContents:((M=w==null?void 0:w.formContents)==null?void 0:M.length)===1?(K=(I=w==null?void 0:w.formContents)==null?void 0:I[0])==null?void 0:K[i]:($=w==null?void 0:w.formContents)==null?void 0:$[i]}),c.push({key:"formGroup",value:l===1?w==null?void 0:w.formGroup:(O=w==null?void 0:w.formGroup)==null?void 0:O[i]}))}})}else if(y=Vl(r.cloneDeep(t.trim())),Array.isArray(y))y==null||y.forEach(C=>{var E,w,V,T,N,_,P,B,A,j,M,I,K;if(C!=null&&C.tableColumn)((w=(E=Object.keys(C))==null?void 0:E.filter($=>$==null?void 0:$.includes("groupName")))==null?void 0:w.length)===1?c.push({key:"groupName",value:C==null?void 0:C.groupName}):(T=(V=Object.keys(C))==null?void 0:V.filter($=>$==null?void 0:$.includes("groupName")))==null||T.forEach($=>{c.push({key:$,value:C==null?void 0:C[$]})}),c.push({key:"tableColumn",value:C==null?void 0:C.tableColumn}),c.push({key:"tableContents",value:C==null?void 0:C.tableContents}),c.push({key:"tablePath",value:(C==null?void 0:C.tableColumnPath)??""}),c.push({key:"tableFilter",value:(C==null?void 0:C.filterContents)??[]}),c.push({key:"childTree",value:(C==null?void 0:C.childTree)??[]}),c.push({key:"parentColumns",value:(C==null?void 0:C.parentColumns)??[]});else if(C!=null&&C.extraButton)c.push({key:"groupName",value:C==null?void 0:C.groupName}),c.push({key:"extraButton",value:C==null?void 0:C.extraButton,path:C==null?void 0:C.extraPath,data:C==null?void 0:C.extraData});else{let $=l===1?C==null?void 0:C.formContents:((N=C==null?void 0:C.formContents)==null?void 0:N.length)===1?(P=(_=C==null?void 0:C.formContents)==null?void 0:_[0])==null?void 0:P[i]:(B=C==null?void 0:C.formContents)==null?void 0:B[i];($==null?void 0:$.length)>0&&(c.push({key:"groupName",value:C==null?void 0:C.groupName}),c.push({key:"formContent",value:l===1?C==null?void 0:C.formContents:((A=C==null?void 0:C.formContents)==null?void 0:A.length)===1?(M=(j=C==null?void 0:C.formContents)==null?void 0:j[0])==null?void 0:M[i]:(I=C==null?void 0:C.formContents)==null?void 0:I[i]}),c.push({key:"formGroup",value:l===1?C==null?void 0:C.formGroup:(K=C==null?void 0:C.formGroup)==null?void 0:K[i]}))}});else if(y!=null&&y.tableColumn)c.push({key:"groupName",value:y==null?void 0:y.groupName}),c.push({key:"tableColumn",value:y==null?void 0:y.tableColumn}),c.push({key:"tableContents",value:l!==1?[(g=y==null?void 0:y.tableContents)==null?void 0:g[i]]:y==null?void 0:y.tableContents}),c.push({key:"tableFilter",value:(y==null?void 0:y.filterContents)??[]}),c.push({key:"childTree",value:(y==null?void 0:y.childTree)??[]}),c.push({key:"parentColumns",value:(y==null?void 0:y.parentColumns)??[]});else{let C=l!==1?((v=y==null?void 0:y.formContents)==null?void 0:v.length)===1?[(b=(k=y==null?void 0:y.formContents)==null?void 0:k[0])==null?void 0:b[i]]:[(S=y==null?void 0:y.formContents)==null?void 0:S[i]]:y==null?void 0:y.formContents;(C==null?void 0:C.length)>0&&(c.push({key:"groupName",value:y==null?void 0:y.groupName}),c.push({key:"formContent",value:C}))}}}),o.push(c)}),o},KM=(t,n)=>{var s,i;const o=[],l=$M((s=r.cloneDeep(t))==null?void 0:s.key,n);return l&&(l==null?void 0:l.length)>0&&(l==null||l.forEach(c=>{o.push([{key:"contentPath",value:c==null?void 0:c.path,parentPath:c==null?void 0:c.parentPath}])})),FM((i=r.cloneDeep(t))==null?void 0:i.value,o)},Lu=t=>t.length===1&&(t==null?void 0:t[0])===void 0?[]:t,HM=(t,n,o)=>{const l=new Map;o.forEach(s=>{for(const[i,c]of Object.entries(s))try{l.set(i.replaceAll("'",""),JSON.parse(c))}catch{l.set(i,[])}});const a=s=>s.map(i=>{var d;const c={...i},u=l.get(i.label);if(u!=null&&u.length){const p=u.map(f=>n.find(h=>(h==null?void 0:h.label)===f)).filter(Boolean);c.children=(c.children||[]).concat(p)}return(d=c.children)!=null&&d.length&&(c.children=a(c.children)),c});return a(t)},jM=(t,n)=>{if(!n||(n==null?void 0:n.length)===0)return t;let o=[];n==null||n.forEach(s=>{var c,u;let i=(u=(c=Object.values(s))==null?void 0:c[0])==null?void 0:u.replaceAll("'",'"');if(D.IsJson(i)){let d=JSON.parse(i);d=d==null?void 0:d.map(p=>{var f,h;return{parent:(h=(f=Object.keys(s))==null?void 0:f[0])==null?void 0:h.replaceAll("'",""),value:p}}),o=[...o,...d]}});let l=[],a=[];return t==null||t.forEach((s,i)=>{o!=null&&o.find(c=>(c==null?void 0:c.value)===(s==null?void 0:s.label))&&(t==null?void 0:t.findIndex(c=>{var u;return(c==null?void 0:c.label)===((u=o==null?void 0:o.find(d=>(d==null?void 0:d.value)===(s==null?void 0:s.label)))==null?void 0:u.parent)}))<i?a.push(s):l.push(s)}),HM(l,a,n)},Fu=t=>{const n=t.lastIndexOf(")");return n===-1?[t,""]:[t.slice(0,n),t.slice(n+1)]},WM=t=>{var o,l;return(l=(o=r.cloneDeep(t))==null?void 0:o.map(a=>{var i,c,u;let s=[];if((i=VM(a==null?void 0:a.filter(d=>(d==null?void 0:d.key)!=="contentPath")))==null||i.forEach(d=>{var h,m,g,v,k,b,S,y,C,E,w,V,T,N,_,P,B,A,j,M,I,K,$,O,q,F,X,L,G,Z,ee,Y,z,R;let p=[];if(d.length===0)return;let f=(m=(h=d.find(x=>(x==null?void 0:x.key)==="tableColumn"))==null?void 0:h.value)==null?void 0:m.map(x=>({label:x}));if(Array.isArray(f)&&((g=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="tablePath"))!=null&&g.value&&((v=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="tablePath"))==null?void 0:v.value)!==""&&f.push({columnPath:(k=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="tablePath"))==null?void 0:k.value}),f=(b=r.cloneDeep(f))==null?void 0:b.map(x=>{var Q,U,J,ce,oe,ie,ne,le,ue,me,ke,Ee,Ne,Pe,_e,Me,be,he,Ve,we,$e,de,fe,H,te,W,ae,ge,De,ze,Fe,Le,st,je,et,pe,Ie,Se,Xe,ot,ut,wt,Mt,jt,Wt,Ut,qt,se,Ce,Ae,He,Ge,dt,lt,ft,pt,Et,re,ye,Be,xe,Ue,Ze,yt,bt,xt,Tn,cn,un,dn,fo,po,mo,ho,vo,go,yo,bo,Co,ko,wo,Eo,So,No,To,_o,Vo,Bo,Po,Do,$o,Io,Oo,Mo,xo,Ao,zo,Ro,Lo,Fo,Ko,Ho;if((Q=x==null?void 0:x.label)!=null&&Q.includes("&&#")){let Oe=(oe=(ce=(J=(U=r.cloneDeep(x==null?void 0:x.label))==null?void 0:U.split("&&#"))==null?void 0:J[1].replaceAll("'",""))==null?void 0:ce.split("$/"))==null?void 0:oe.map(qe=>({label:qe,value:qe}));return{label:(ue=(le=(ne=(ie=r.cloneDeep(x==null?void 0:x.label))==null?void 0:ie.split("&&#"))==null?void 0:ne[0].replaceAll("'",""))==null?void 0:le.split("#"))==null?void 0:ue[0],options:Oe,isRoute:((me=d.find(qe=>(qe==null?void 0:qe.key)==="tableColumn"))==null?void 0:me.isParent)??!1,formMenuSelect:(_e=(Pe=(Ne=(Ee=(ke=r.cloneDeep(x==null?void 0:x.label))==null?void 0:ke.split("["))==null?void 0:Ee[1])==null?void 0:Ne.split("]"))==null?void 0:Pe[0])==null?void 0:_e.split("/"),groupSelect:(Ve=(he=(be=(Me=r.cloneDeep(x==null?void 0:x.label).replace("#",Ql))==null?void 0:Me.split(Ql))==null?void 0:be[1])==null?void 0:he.split("["))==null?void 0:Ve[0],columnPath:(x==null?void 0:x.columnPath)??"",isRun:((we=d.find(qe=>(qe==null?void 0:qe.key)==="tableColumn"))==null?void 0:we.isRun)??!1,formType:"Select"}}else{if(($e=x==null?void 0:x.label)!=null&&$e.includes("@-"))return{label:(fe=(de=r.cloneDeep(x==null?void 0:x.label))==null?void 0:de.split("@-"))==null?void 0:fe[0],directiveLabel:(te=(H=r.cloneDeep(x==null?void 0:x.label))==null?void 0:H.split("@-"))==null?void 0:te[1],isRoute:((W=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:W.isParent)??!1,isRun:((ae=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:ae.isRun)??!1};if(x!=null&&x.label&&!((ge=x==null?void 0:x.label)!=null&&ge.includes("[")))return{label:x==null?void 0:x.label,isRoute:((De=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:De.isParent)??!1,isRun:((ze=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:ze.isRun)??!1};if(x!=null&&x.label&&((Fe=x==null?void 0:x.label)!=null&&Fe.includes(":")))if((Le=x==null?void 0:x.label)!=null&&Le.includes("#"))if((st=x==null?void 0:x.label)!=null&&st.includes("("))if(((Ce=(se=(qt=x==null?void 0:x.label)==null?void 0:qt.split("#"))==null?void 0:se[1])==null?void 0:Ce[0])==="["){let Oe=[];return(Et=(pt=(ft=(He=(Ae=x==null?void 0:x.label)==null?void 0:Ae.split("#"))==null?void 0:He[1])==null?void 0:ft.slice(1,((lt=(dt=(Ge=x==null?void 0:x.label)==null?void 0:Ge.split("#"))==null?void 0:dt[1])==null?void 0:lt.length)-1))==null?void 0:pt.split(","))==null||Et.forEach(qe=>{var jo,Wo,Uo,qo,Yo,Go,Xo;let Rl=(Yo=(qo=(Uo=(Wo=(jo=r.cloneDeep(qe))==null?void 0:jo.split("["))==null?void 0:Wo[1])==null?void 0:Uo.split("]"))==null?void 0:qo[0])==null?void 0:Yo.split("/"),Ll=(Xo=(Go=r.cloneDeep(qe))==null?void 0:Go.split("["))==null?void 0:Xo[0];Oe.push({formMenuSelect:Rl,groupSelect:Ll})}),{label:(Be=(ye=(re=r.cloneDeep(x==null?void 0:x.label))==null?void 0:re.split("#"))==null?void 0:ye[0])==null?void 0:Be.replaceAll("'",""),formMenuGroup:Oe,columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((xe=d.find(qe=>(qe==null?void 0:qe.key)==="tableColumn"))==null?void 0:xe.isParent)??!1,isRun:((Ue=d.find(qe=>(qe==null?void 0:qe.key)==="tableColumn"))==null?void 0:Ue.isRun)??!1}}else return{label:(yt=(Ze=r.cloneDeep(x==null?void 0:x.label))==null?void 0:Ze.split("#"))==null?void 0:yt[0],formMenuSelect:(dn=(un=(cn=(Tn=(xt=(bt=Fu(r.cloneDeep(x==null?void 0:x.label)))==null?void 0:bt[1])==null?void 0:xt.split("["))==null?void 0:Tn[1])==null?void 0:cn.split("]"))==null?void 0:un[0])==null?void 0:dn.split("/"),groupSelect:(ho=(mo=Fu((po=(fo=r.cloneDeep(x==null?void 0:x.label))==null?void 0:fo.split("#"))==null?void 0:po[1]))==null?void 0:mo[0])==null?void 0:ho.replace("(",""),columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((vo=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:vo.isParent)??!1,isRun:((go=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:go.isRun)??!1};else return{label:(et=(je=r.cloneDeep(x==null?void 0:x.label))==null?void 0:je.split("#"))==null?void 0:et[0],formMenuSelect:(ot=(Xe=(Se=(Ie=(pe=r.cloneDeep(x==null?void 0:x.label))==null?void 0:pe.split("["))==null?void 0:Ie[1])==null?void 0:Se.split("]"))==null?void 0:Xe[0])==null?void 0:ot.split("/"),groupSelect:(jt=(Mt=(wt=(ut=r.cloneDeep(x==null?void 0:x.label))==null?void 0:ut.split("#"))==null?void 0:wt[1])==null?void 0:Mt.split("["))==null?void 0:jt[0],columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((Wt=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Wt.isParent)??!1,isRun:((Ut=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Ut.isRun)??!1};else return{label:(No=(Co=(bo=(yo=r.cloneDeep(x==null?void 0:x.label))==null?void 0:yo.split("["))==null?void 0:bo[0])==null?void 0:Co.split(":"))==null?void 0:No[((So=(Eo=(wo=(ko=r.cloneDeep(x==null?void 0:x.label))==null?void 0:ko.split("["))==null?void 0:wo[0])==null?void 0:Eo.split(":"))==null?void 0:So.length)-1],formMenuSelect:(Po=(Bo=(Vo=(_o=(To=r.cloneDeep(x==null?void 0:x.label))==null?void 0:To.split("["))==null?void 0:_o[1])==null?void 0:Vo.split("]"))==null?void 0:Bo[0])==null?void 0:Po.split("/"),groupSelect:($o=(Do=r.cloneDeep(x==null?void 0:x.label))==null?void 0:Do.split("["))==null?void 0:$o[0],columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((Io=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Io.isParent)??!1,isRun:((Oo=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Oo.isRun)??!1};else return{label:(xo=(Mo=r.cloneDeep(x==null?void 0:x.label))==null?void 0:Mo.split("["))==null?void 0:xo[0],formMenuSelect:(Fo=(Lo=(Ro=(zo=(Ao=r.cloneDeep(x==null?void 0:x.label))==null?void 0:Ao.split("["))==null?void 0:zo[1])==null?void 0:Ro.split("]"))==null?void 0:Lo[0])==null?void 0:Fo.split("/"),columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((Ko=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Ko.isParent)??!1,isRun:((Ho=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Ho.isRun)??!1}}}),f=f==null?void 0:f.map(x=>{let Q=x;return Q.prop=x.label,Q.align="center",Q}),f=jM(f,(S=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="parentColumns"))==null?void 0:S.value),f.length!==0&&f.push({label:"操作"}),(y=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="parentColumns"))!=null&&y.value&&((E=(C=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="parentColumns"))==null?void 0:C.value)==null?void 0:E.length)>0&&(f=[f])),d!=null&&d.find(x=>(x==null?void 0:x.key)==="formContent")){const x=(w=d.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:w.value,Q=((V=d.find(J=>(J==null?void 0:J.key)==="formGroup"))==null?void 0:V.value)??[];let U=[];Array.isArray(x)&&x.forEach(J=>{let ce=1;Array.isArray(J)&&(J!=null&&J.every(oe=>!Array.isArray(oe)))&&(ce=J.length),J&&(Array.isArray(J)||(J=[J]),J.forEach(oe=>{Array.isArray(oe)||(oe=[oe]);let ie=[];oe==null||oe.forEach(ne=>{var le,ue,me,ke,Ee,Ne,Pe,_e,Me,be,he,Ve,we,$e,de,fe,H,te,W,ae,ge,De,ze,Fe,Le,st,je,et,pe,Ie,Se,Xe,ot,ut,wt,Mt,jt,Wt,Ut,qt,se,Ce,Ae,He,Ge,dt,lt,ft,pt,Et,re,ye,Be,xe,Ue,Ze,yt,bt,xt,Tn,cn,un,dn,fo,po,mo,ho,vo,go,yo,bo,Co,ko,wo,Eo,So,No,To,_o,Vo,Bo,Po,Do,$o,Io,Oo,Mo,xo,Ao,zo,Ro,Lo,Fo,Ko,Ho,Oe,qe,Rl,Ll,jo,Wo,Uo,qo,Yo,Go,Xo,Fi,Ki,Hi,ji;if(ol.value++,Array.isArray((le=Object.values(ne))==null?void 0:le[0]))ie.push({id:ol.value,key:(ue=Object.keys(ne))==null?void 0:ue[0],prop:(me=Object.keys(ne))==null?void 0:me[0],label:(ke=Object.keys(ne))==null?void 0:ke[0],value:"",width:Math.max(ce,oe.length),type:"Select",isMain:!!(!((Ne=(Ee=Object.values(ne))==null?void 0:Ee[0])!=null&&Ne.includes("loginUser"))&&((_e=(Pe=Object.values(ne))==null?void 0:Pe[0])!=null&&_e.includes("@"))),optionUrl:{type:"Select",selectRelateType:"自定义绑定",defaultSelect:(Me=Object.values(ne))==null?void 0:Me[0]}});else if(!((he=(be=Object.values(ne))==null?void 0:be[0])!=null&&he.includes("/")&&((we=(Ve=Object.values(ne))==null?void 0:Ve[0])!=null&&we.includes("[")))||(de=($e=Object.values(ne))==null?void 0:$e[0])!=null&&de.includes("loginUserSign"))(H=(fe=Object.values(ne))==null?void 0:fe[0])!=null&&H.includes("&&")||(W=(te=Object.values(ne))==null?void 0:te[0])!=null&&W.includes("loginUserSign")?ie.push({id:ol.value,key:(ae=Object.keys(ne))==null?void 0:ae[0],prop:(ge=Object.keys(ne))==null?void 0:ge[0],label:(De=Object.keys(ne))==null?void 0:De[0],value:!((Fe=(ze=Object.values(ne))==null?void 0:ze[0])!=null&&Fe.includes("loginUser"))&&!((st=(Le=Object.values(ne))==null?void 0:Le[0])!=null&&st.includes("loginUserSign"))&&((et=(je=Object.values(ne))==null?void 0:je[0])!=null&&et.includes("@"))?"":(Se=(Ie=(pe=Object.values(ne))==null?void 0:pe[0])==null?void 0:Ie.split("&&"))==null?void 0:Se[0],isShow:((wt=(ut=(ot=(Xe=Object.values(ne))==null?void 0:Xe[0])==null?void 0:ot.split("&&"))==null?void 0:ut[1])==null?void 0:wt.replace("#","==="))??"originalSignature",width:Math.max(ce,oe.length),isMain:!!(!((jt=(Mt=Object.values(ne))==null?void 0:Mt[0])!=null&&jt.includes("loginUser"))&&!((Ut=(Wt=Object.values(ne))==null?void 0:Wt[0])!=null&&Ut.includes("loginUserSign"))&&((se=(qt=Object.values(ne))==null?void 0:qt[0])!=null&&se.includes("@")))}):ie.push({id:ol.value,key:(Ce=Object.keys(ne))==null?void 0:Ce[0],prop:(Ae=Object.keys(ne))==null?void 0:Ae[0],label:(He=Object.keys(ne))==null?void 0:He[0],value:!((dt=(Ge=Object.values(ne))==null?void 0:Ge[0])!=null&&dt.includes("loginUser"))&&((ft=(lt=Object.values(ne))==null?void 0:lt[0])!=null&&ft.includes("@"))?"":(pt=Object.values(ne))==null?void 0:pt[0],width:Math.max(ce,oe.length),isMain:!!(!((re=(Et=Object.values(ne))==null?void 0:Et[0])!=null&&re.includes("loginUser"))&&((Be=(ye=Object.values(ne))==null?void 0:ye[0])!=null&&Be.includes("@"))&&!((Ue=(xe=Object.values(ne))==null?void 0:xe[0])!=null&&Ue.includes("#@"))),isMainUrl:(yt=(Ze=Object.values(ne))==null?void 0:Ze[0])==null?void 0:yt.includes("#@")});else{let _n;if((xt=(bt=Object.values(ne))==null?void 0:bt[0])!=null&&xt.includes("(")){let Jo;(cn=(Tn=Object.values(ne))==null?void 0:Tn[0])!=null&&cn.includes("$##")?Jo=(ho=(mo=(po=(fo=(dn=(un=Object.values(ne))==null?void 0:un[0])==null?void 0:dn.split("$##"))==null?void 0:fo[1])==null?void 0:po.split(")"))==null?void 0:mo[0])==null?void 0:ho.replaceAll("(",""):Jo=(bo=(yo=(go=(vo=Object.values(ne))==null?void 0:vo[0])==null?void 0:go.split(")"))==null?void 0:yo[0])==null?void 0:bo.replaceAll("(",""),_n=[],(Co=Te.contentTransArrayToAll(Jo,"/"))==null||Co.forEach(Yt=>{var Ui;Yt!=null&&Yt.includes("[")?_n.push((Ui=Yt==null?void 0:Yt.replace("/",":"))==null?void 0:Ui.replaceAll("/","")):_n.push(Yt==null?void 0:Yt.replaceAll("/",""))})}else(wo=(ko=Object.values(ne))==null?void 0:ko[0])!=null&&wo.includes("$##")?_n=(Vo=(_o=(To=(No=(So=(Eo=Object.values(ne))==null?void 0:Eo[0])==null?void 0:So.split("$##"))==null?void 0:No[1])==null?void 0:To.split("["))==null?void 0:_o[0])==null?void 0:Vo.split("/"):_n=($o=(Do=(Po=(Bo=Object.values(ne))==null?void 0:Bo[0])==null?void 0:Po.split("["))==null?void 0:Do[0])==null?void 0:$o.split("/");let tt;(Oo=(Io=Object.values(ne))==null?void 0:Io[0])!=null&&Oo.includes("$##")?tt=(Ro=(zo=(Ao=(xo=(Mo=Object.values(ne))==null?void 0:Mo[0])==null?void 0:xo.split("$##"))==null?void 0:Ao[1])==null?void 0:zo.split("@"))==null?void 0:Ro[0]:tt=(Ko=(Fo=(Lo=Object.values(ne))==null?void 0:Lo[0])==null?void 0:Fo.split("@"))==null?void 0:Ko[0],tt!=null&&tt.includes("(")&&(tt=(Ho=tt==null?void 0:tt.split(")"))==null?void 0:Ho[1]),tt=(qe=(Oe=tt==null?void 0:tt.replace("[",Ql))==null?void 0:Oe.split(Ql))==null?void 0:qe[1];let Fl=(Ll=(Rl=tt==null?void 0:tt.slice(0,tt.length-1))==null?void 0:Rl.split(":"))==null?void 0:Ll.map(Jo=>Jo.replaceAll("'","")),Wi=Fl;(Fl==null?void 0:Fl.length)===1&&Wi.unshift(""),ie.push({id:ol.value,key:(jo=Object.keys(ne))==null?void 0:jo[0],prop:(Wo=Object.keys(ne))==null?void 0:Wo[0],label:(Uo=Object.keys(ne))==null?void 0:Uo[0],value:"",width:Math.max(ce,oe.length),type:"Select",isMain:!!(!((Yo=(qo=Object.values(ne))==null?void 0:qo[0])!=null&&Yo.includes("loginUser"))&&((Go=Object.values(ne))==null?void 0:Go[0]).includes("@")),optionUrl:{type:"Select",selectRelateType:"关联绑定列",menuSelect:_n,groupSelect:Wi,filter:(Fi=(Xo=Object.values(ne))==null?void 0:Xo[0])!=null&&Fi.includes("$##")?(ji=(Hi=(Ki=Object.values(ne))==null?void 0:Ki[0])==null?void 0:Hi.split("$##"))==null?void 0:ji[0]:""}})}}),ie==null||ie.forEach(ne=>{U.push(ne)})}))}),p.push({key:"formFlex",contents:""}),p.push({key:"formGroup",contents:Q}),p.push({key:"formContent",contents:U}),s.push({comp:"Form",compData:r.cloneDeep(p),name:(N=(T=d.find(J=>(J==null?void 0:J.key)==="groupName"))==null?void 0:T.value)==null?void 0:N.replaceAll("'",""),isShow:!0})}else if(d!=null&&d.find(x=>(x==null?void 0:x.key)==="extraButton"))s.push({key:"extraButton",value:{method:(_=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="extraButton"))==null?void 0:_.value,value:[],path:(P=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="extraButton"))==null?void 0:P.path,data:(B=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="extraButton"))==null?void 0:B.data}});else if((f==null?void 0:f.length)!==0||((j=(A=d.find(x=>(x==null?void 0:x.key)==="tableContents"))==null?void 0:A.value)==null?void 0:j.length)>0)if(p.push({key:"header",contents:f}),p.push({key:"childTree",contents:Lu((M=d.find(x=>(x==null?void 0:x.key)==="childTree"))==null?void 0:M.value)??[]}),p.push({key:"tableContents",contents:Lu((I=d.find(x=>(x==null?void 0:x.key)==="tableContents"))==null?void 0:I.value)}),(K=f==null?void 0:f.filter(x=>(x==null?void 0:x.label)!=="操作"))!=null&&K.every(x=>(x==null?void 0:x.isRoute)===!0)&&((q=(O=($=a==null?void 0:a.find(x=>(x==null?void 0:x.key)==="contentPath"))==null?void 0:$.value)==null?void 0:O.split("/"))==null?void 0:q[0])!=="算法库"?(p.push({key:"extraButton",contents:[{label:"新建"},{label:"修改模板"},{label:"批量删除"},{label:"导入",type:"upload"},{label:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}]}),p.push({key:"rowButton",contents:[{label:"复制新增"},{label:"删除"}]})):(p.push({key:"extraButton",contents:[{label:"新增"},{label:"批量删除"},{label:"导入",type:"upload"},{label:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}]}),(F=f==null?void 0:f.filter(x=>(x==null?void 0:x.label)!=="操作"))!=null&&F.every(x=>(x==null?void 0:x.isRun)===!0)||((G=(L=(X=a==null?void 0:a.find(x=>(x==null?void 0:x.key)==="contentPath"))==null?void 0:X.value)==null?void 0:L.split("/"))==null?void 0:G[0])==="算法库"?p.push({key:"rowButton",contents:[{label:"查看"},{label:"复制新增"},{label:"编辑"},{label:"执行"},{label:"删除"}]}):p.push({key:"rowButton",contents:[{label:"查看"},{label:"复制新增"},{label:"编辑"},{label:"删除"}]})),p.push({key:"tableFilter",contents:(Z=d.find(x=>(x==null?void 0:x.key)==="tableFilter"))==null?void 0:Z.value}),((ee=d==null?void 0:d.filter(x=>{var Q;return(Q=x==null?void 0:x.key)==null?void 0:Q.includes("groupName")}))==null?void 0:ee.length)===1)s.push({comp:"Table",compData:p,name:(z=(Y=d.find(x=>(x==null?void 0:x.key)==="groupName"))==null?void 0:Y.value)==null?void 0:z.replaceAll("'",""),isShow:!0});else{let x={comp:"Table",compData:p,isShow:!0};(R=d==null?void 0:d.filter(Q=>{var U;return(U=Q==null?void 0:Q.key)==null?void 0:U.includes("groupName")}))==null||R.forEach(Q=>{x[Q.key.replace("groupName","name")]=Q.value}),s.push(x)}}),(s==null?void 0:s.length)>0)return{comp:"Group",compData:[{key:"groupContents",contents:s}],name:(c=a==null?void 0:a.find(p=>(p==null?void 0:p.key)==="contentPath"))==null?void 0:c.value,parentPath:(u=a==null?void 0:a.find(p=>(p==null?void 0:p.key)==="contentPath"))==null?void 0:u.parentPath}}))==null?void 0:l.filter(a=>a)},UM=t=>{var a,s,i;const n=(a=t.map(c=>{var d,p;let u=(p=(d=c.key.split("("))==null?void 0:d[1])==null?void 0:p.trim();return u==null?void 0:u.slice(0,u.length-1)}))==null?void 0:a.filter(c=>c),o=[];n==null||n.forEach(c=>{var d,p;const u=[];if((d=qn.contentTrans(c))==null||d.forEach(f=>{var h,m,g,v,k,b,S,y,C;if(f.includes("{")&&f.includes("[")){let E=r.cloneDeep(f).split(":");f=(b=(m=(h=r.cloneDeep(E))==null?void 0:h[0])==null?void 0:m.split("{"))==null?void 0:b[((k=(v=(g=r.cloneDeep(E))==null?void 0:g[0])==null?void 0:v.split("{"))==null?void 0:k.length)-1].replaceAll("'",""),u.push(f)}else if(f.includes("{")){let E=(S=f.split(":"))==null?void 0:S[0];f=(C=E==null?void 0:E.split("{"))==null?void 0:C[((y=E==null?void 0:E.split("{"))==null?void 0:y.length)-1].replaceAll("'",""),u.push(f)}else u.push(f)}),!u.some(f=>Array.isArray(f)))o.push(u);else{let f=[];u==null||u.forEach((h,m)=>{m!==u.length-1&&f.push(h)}),(p=u==null?void 0:u[(u==null?void 0:u.length)-1])==null||p.forEach(h=>{let m=r.cloneDeep(f);m.push(h),o.push(m)})}});const l=(i=(s=o.filter(c=>c.length!==0))==null?void 0:s.filter(c=>c.length!==0))==null?void 0:i.map(c=>{let u="";return c.forEach(d=>{!d.includes("{")&&!(d!=null&&d.includes("$"))&&(u=u===""?u+r.cloneDeep(d):u+"/"+r.cloneDeep(d))}),u});return[...new Set(l)]},qM=t=>{var p,f,h,m;let n=[];const o=UM(r.cloneDeep(t)),l=DM(r.cloneDeep(t));n.push(l);const a=TM(r.cloneDeep(t));a&&n.push(a);const s=_M(r.cloneDeep(t));s&&((p=r.cloneDeep(s))==null||p.forEach(g=>{n.push(g)}));const i=(f=r.cloneDeep(t))==null?void 0:f.filter(g=>{var v;return(v=g==null?void 0:g.key)==null?void 0:v.includes("(")}).map(g=>KM(g,o)).filter(g=>(g==null?void 0:g.length)!==0);let c=[];i==null||i.forEach(g=>{g==null||g.forEach(v=>{c!=null&&c.find(k=>{var b,S;return((b=k==null?void 0:k.find(y=>(y==null?void 0:y.key)==="contentPath"))==null?void 0:b.value)===((S=v==null?void 0:v.find(y=>(y==null?void 0:y.key)==="contentPath"))==null?void 0:S.value)})?c=c==null?void 0:c.map(k=>{var S,y;return((S=k==null?void 0:k.find(C=>(C==null?void 0:C.key)==="contentPath"))==null?void 0:S.value)===((y=v==null?void 0:v.find(C=>(C==null?void 0:C.key)==="contentPath"))==null?void 0:y.value)&&(k=[...k,...v.filter(C=>(C==null?void 0:C.key)!=="contentPath")]),k}):c.push(v)})});let u=(h=r.cloneDeep(i))==null?void 0:h.map(g=>{var v,k;return(k=(v=g==null?void 0:g[0])==null?void 0:v.find(b=>(b==null?void 0:b.key)==="contentPath"))==null?void 0:k.value}),d=[];return u==null||u.forEach(g=>{u!=null&&u.includes(g+er.value)&&d.push(g+"/")}),c=(m=r.cloneDeep(c))==null?void 0:m.map(g=>{var k,b,S;let v=(k=g==null?void 0:g.find(y=>(y==null?void 0:y.key)==="contentPath"))==null?void 0:k.value;return(b=r.cloneDeep(u))!=null&&b.find(y=>y===v+er.value)?g=g==null?void 0:g.map(y=>((y==null?void 0:y.key)==="tableColumn"&&(y.isParent=!0),y)):(v==null?void 0:v[(v==null?void 0:v.length)-1])===er.value?g=g==null?void 0:g.map(y=>((y==null?void 0:y.key)==="tableColumn"&&(g!=null&&g.find(C=>(C==null?void 0:C.key)==="groupName"&&(C==null?void 0:C.value)==="方法明细"))&&(y.isRun=!0),y)):((S=v==null?void 0:v.split("/"))==null?void 0:S[0])==="算法程序"?g=g==null?void 0:g.map(y=>((y==null?void 0:y.key)==="tableColumn"&&(y.isRun=!0),y)):d!=null&&d.find(y=>v.includes(y))&&(g=g==null?void 0:g.map(y=>{var C;if((y==null?void 0:y.key)==="contentPath"){let E=d==null?void 0:d.find(w=>v.includes(w)).slice(0,(d==null?void 0:d.find(w=>v.includes(w)).length)-1);y.value=y.value.replaceAll(E+"/",E+er.value),y.value=(C=y.value)==null?void 0:C.replace(/\^.+$/g,w=>w.replace(/\//g,"^"))}return y})),g}),n=[...n,...WM(c)],n},Ku=t=>{var s,i,c;let n=t;const o=[];let l="",a=0;for(const u of n)a++,u.includes("'")||l.includes("'")?(l+=u.trim(),((i=(s=r.cloneDeep(l))==null?void 0:s.split("'"))==null?void 0:i.length)===3&&((c=r.cloneDeep(l))==null?void 0:c[l.length-1])==="'"?(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l=""):a===(t==null?void 0:t.length)&&(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):(l+=u.trim(),o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="");return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o},YM=t=>{var a,s,i;const n=(s=(a=qn.contentTransArray(r.cloneDeep(t)))==null?void 0:a.filter(c=>c!==""))==null?void 0:s.map(c=>c.replaceAll("==","#").replaceAll(",",","));let o=(i=n==null?void 0:n.filter(c=>!c.includes("/*")&&!c.includes("*/")))==null?void 0:i.map(c=>qn.parseGroupValue(c));return o=o==null?void 0:o.map(c=>{var f,h;let u=(f=Ku(r.cloneDeep(c).value))==null?void 0:f.map(m=>{var g;return(m==null?void 0:m.length)===1&&(m=(g=m==null?void 0:m.replaceAll("<","["))==null?void 0:g.replaceAll(">","]")),m}).join("");return{key:(h=Ku(r.cloneDeep(c).key))==null?void 0:h.map(m=>{var g;return(m==null?void 0:m.length)===1&&(m=(g=m==null?void 0:m.replaceAll("<","["))==null?void 0:g.replaceAll(">","]")),m}).join(""),value:u}}),qM(o)};exports._sfc_main=SM;exports.expandToNewContents=YM;exports.savePageDataAsync=EM;
56
+ `||d==="\r"){i=u;continue}if(s.includes(d)){const p=i===-1?l:i;c={pattern:a.slice(u+1,p),start:u+1,end:p,prefix:d,prefixIndex:u,splitIndex:i,selectionEnd:l};break}}return c},cO=(t,n={debug:!1,useSelectionEnd:!1})=>{const o=t.selectionStart!==null?t.selectionStart:0,l=t.selectionEnd!==null?t.selectionEnd:0,a=n.useSelectionEnd?l:o,s=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(n.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const i=document.createElement("div");i.id="input-textarea-caret-position-mirror-div",document.body.appendChild(i);const c=i.style,u=window.getComputedStyle(t),d=t.nodeName==="INPUT";c.whiteSpace=d?"nowrap":"pre-wrap",d||(c.wordWrap="break-word"),c.position="absolute",n.debug||(c.visibility="hidden"),s.forEach(h=>{if(d&&h==="lineHeight")if(u.boxSizing==="border-box"){const m=Number.parseInt(u.height),g=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=g+Number.parseInt(u.lineHeight);m>v?c.lineHeight=`${m-g}px`:m===v?c.lineHeight=u.lineHeight:c.lineHeight="0"}else c.lineHeight=u.height;else c[h]=u[h]}),D.isFirefox()?t.scrollHeight>Number.parseInt(u.height)&&(c.overflowY="scroll"):c.overflow="hidden",i.textContent=t.value.slice(0,Math.max(0,a)),d&&i.textContent&&(i.textContent=i.textContent.replace(/\s/g," "));const p=document.createElement("span");p.textContent=t.value.slice(Math.max(0,a))||".",p.style.position="relative",p.style.left=`${-t.scrollLeft}px`,p.style.top=`${-t.scrollTop}px`,i.appendChild(p);const f={top:p.offsetTop+Number.parseInt(u.borderTopWidth),left:p.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return n.debug?p.style.backgroundColor="#aaa":document.body.removeChild(i),f.left>=t.clientWidth&&(f.left=t.clientWidth),f},uO=r.buildProps({...D.inputProps,options:{type:r.definePropType(Array),default:()=>[]},prefix:{type:r.definePropType([String,Array]),default:"@",validator:t=>r.isString(t)?t.length===1:t.every(n=>r.isString(n)&&n.length===1)},split:{type:String,default:" ",validator:t=>t.length===1},filterOption:{type:r.definePropType([Boolean,Function]),default:()=>sO,validator:t=>t===!1?!0:r.isFunction(t)},placement:{type:r.definePropType(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:r.definePropType(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:r.definePropType(Object),default:()=>({})}}),dO={[D.UPDATE_MODEL_EVENT]:t=>r.isString(t),input:t=>r.isString(t),search:(t,n)=>r.isString(t)&&r.isString(n),select:(t,n)=>r.isString(t.value)&&r.isString(n),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},fO=r.buildProps({options:{type:r.definePropType(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),pO={select:t=>r.isString(t.value)},mO=e.defineComponent({name:"ElMentionDropdown"}),hO=e.defineComponent({...mO,props:fO,emits:pO,setup(t,{expose:n,emit:o}){const l=t,a=r.useNamespace("mention"),{t:s}=r.useLocale(),i=e.ref(-1),c=e.ref(),u=e.ref(),d=e.ref(),p=(y,C)=>[a.be("dropdown","item"),a.is("hovering",i.value===C),a.is("disabled",y.disabled||l.disabled)],f=y=>{y.disabled||l.disabled||o("select",y)},h=y=>{i.value=y},m=e.computed(()=>l.disabled||l.options.every(y=>y.disabled)),g=e.computed(()=>l.options[i.value]),v=()=>{g.value&&o("select",g.value)},k=y=>{const{options:C}=l;if(C.length===0||m.value)return;y==="next"?(i.value++,i.value===C.length&&(i.value=0)):y==="prev"&&(i.value--,i.value<0&&(i.value=C.length-1));const E=C[i.value];if(E.disabled){k(y);return}e.nextTick(()=>b(E))},b=y=>{var C,E,w,V;const{options:T}=l,N=T.findIndex(P=>P.value===y.value),_=(C=u.value)==null?void 0:C[N];if(_){const P=(w=(E=d.value)==null?void 0:E.querySelector)==null?void 0:w.call(E,`.${a.be("dropdown","wrap")}`);P&&D.scrollIntoView(P,_)}(V=c.value)==null||V.handleScroll()},S=()=>{m.value||l.options.length===0?i.value=-1:i.value=0};return e.watch(()=>l.options,S,{immediate:!0}),n({hoveringIndex:i,navigateOptions:k,selectHoverOption:v,hoverOption:g}),(y,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:d,class:e.normalizeClass(e.unref(a).b("dropdown"))},[y.$slots.header?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(a).be("dropdown","header"))},[e.renderSlot(y.$slots,"header")],2)):e.createCommentVNode("v-if",!0),e.withDirectives(e.createVNode(e.unref(Pt),{id:y.contentId,ref_key:"scrollbarRef",ref:c,tag:"ul","wrap-class":e.unref(a).be("dropdown","wrap"),"view-class":e.unref(a).be("dropdown","list"),role:"listbox","aria-label":y.ariaLabel,"aria-orientation":"vertical"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.options,(E,w)=>(e.openBlock(),e.createElementBlock("li",{id:`${y.contentId}-${w}`,ref_for:!0,ref_key:"optionRefs",ref:u,key:w,class:e.normalizeClass(p(E,w)),role:"option","aria-disabled":E.disabled||y.disabled||void 0,"aria-selected":i.value===w,onMousemove:V=>h(w),onClick:e.withModifiers(V=>f(E),["stop"])},[e.renderSlot(y.$slots,"label",{item:E,index:w},()=>{var V;return[e.createElementVNode("span",null,e.toDisplayString((V=E.label)!=null?V:E.value),1)]})],42,["id","aria-disabled","aria-selected","onMousemove","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[e.vShow,y.options.length>0&&!y.loading]]),y.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(a).be("dropdown","loading"))},[e.renderSlot(y.$slots,"loading",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("el.mention.loading")),1)])],2)):e.createCommentVNode("v-if",!0),y.$slots.footer?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(a).be("dropdown","footer"))},[e.renderSlot(y.$slots,"footer")],2)):e.createCommentVNode("v-if",!0)],2))}});var vO=r._export_sfc(hO,[["__file","mention-dropdown.vue"]]);const gO=e.defineComponent({name:"ElMention",inheritAttrs:!1}),yO=e.defineComponent({...gO,props:uO,emits:dO,setup(t,{expose:n,emit:o}){const l=t,a=e.computed(()=>D.pick(l,Object.keys(D.inputProps))),s=r.useNamespace("mention"),i=D.useFormDisabled(),c=D.useId(),u=e.ref(),d=e.ref(),p=e.ref(),f=e.ref(!1),h=e.ref(),m=e.ref(),g=e.computed(()=>l.showArrow?l.placement:`${l.placement}-start`),v=e.computed(()=>l.showArrow?["bottom","top"]:["bottom-start","top-start"]),k=e.computed(()=>{const{filterOption:B,options:A}=l;return!m.value||!B?A:A.filter(j=>B(m.value.pattern,j))}),b=e.computed(()=>f.value&&(!!k.value.length||l.loading)),S=e.computed(()=>{var B;return`${c.value}-${(B=p.value)==null?void 0:B.hoveringIndex}`}),y=B=>{o(D.UPDATE_MODEL_EVENT,B),o(D.INPUT_EVENT,B),N()},C=B=>{var A,j,M,I;if(!(!("code"in B)||(A=u.value)!=null&&A.isComposing))switch(B.code){case r.EVENT_CODE.left:case r.EVENT_CODE.right:N();break;case r.EVENT_CODE.up:case r.EVENT_CODE.down:if(!f.value)return;B.preventDefault(),(j=p.value)==null||j.navigateOptions(B.code===r.EVENT_CODE.up?"prev":"next");break;case r.EVENT_CODE.enter:case r.EVENT_CODE.numpadEnter:if(!f.value)return;B.preventDefault(),(M=p.value)!=null&&M.hoverOption?(I=p.value)==null||I.selectHoverOption():f.value=!1;break;case r.EVENT_CODE.esc:if(!f.value)return;B.preventDefault(),f.value=!1;break;case r.EVENT_CODE.backspace:if(l.whole&&m.value){const{splitIndex:K,selectionEnd:$,pattern:O,prefixIndex:q,prefix:F}=m.value,X=T();if(!X)return;const L=X.value,G=l.options.find(ee=>ee.value===O);if((r.isFunction(l.checkIsWhole)?l.checkIsWhole(O,F):G)&&K!==-1&&K+1===$){B.preventDefault();const ee=L.slice(0,q)+L.slice(K+1);o(D.UPDATE_MODEL_EVENT,ee),o(D.INPUT_EVENT,ee);const Y=q;e.nextTick(()=>{X.selectionStart=Y,X.selectionEnd=Y,P()})}}}},{wrapperRef:E}=D.useFocusController(u,{beforeFocus(){return i.value},afterFocus(){N()},beforeBlur(B){var A;return(A=d.value)==null?void 0:A.isFocusInsideContent(B)},afterBlur(){f.value=!1}}),w=()=>{N()},V=B=>{if(!m.value)return;const A=T();if(!A)return;const j=A.value,{split:M}=l,I=j.slice(m.value.end),K=I.startsWith(M),$=`${B.value}${K?"":M}`,O=j.slice(0,m.value.start)+$+I;o(D.UPDATE_MODEL_EVENT,O),o(D.INPUT_EVENT,O),o("select",B,m.value.prefix);const q=m.value.start+$.length+(K?1:0);e.nextTick(()=>{A.selectionStart=q,A.selectionEnd=q,A.focus(),P()})},T=()=>{var B,A;return l.type==="textarea"?(B=u.value)==null?void 0:B.textarea:(A=u.value)==null?void 0:A.input},N=()=>{setTimeout(()=>{_(),P(),e.nextTick(()=>{var B;return(B=d.value)==null?void 0:B.updatePopper()})},0)},_=()=>{const B=T();if(!B)return;const A=cO(B),j=B.getBoundingClientRect(),M=u.value.$el.getBoundingClientRect();h.value={position:"absolute",width:0,height:`${A.height}px`,left:`${A.left+j.left-M.left}px`,top:`${A.top+j.top-M.top}px`}},P=()=>{const B=T();if(document.activeElement!==B){f.value=!1;return}const{prefix:A,split:j}=l;if(m.value=iO(B,A,j),m.value&&m.value.splitIndex===-1){f.value=!0,o("search",m.value.pattern,m.value.prefix);return}f.value=!1};return n({input:u,tooltip:d,dropdownVisible:b}),(B,A)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:E,class:e.normalizeClass(e.unref(s).b())},[e.createVNode(e.unref(D.ElInput),e.mergeProps(e.mergeProps(e.unref(a),B.$attrs),{ref_key:"elInputRef",ref:u,"model-value":B.modelValue,disabled:e.unref(i),role:e.unref(b)?"combobox":void 0,"aria-activedescendant":e.unref(b)?e.unref(S)||"":void 0,"aria-controls":e.unref(b)?e.unref(c):void 0,"aria-expanded":e.unref(b)||void 0,"aria-label":B.ariaLabel,"aria-autocomplete":e.unref(b)?"none":void 0,"aria-haspopup":e.unref(b)?"listbox":void 0,onInput:y,onKeydown:C,onMousedown:w}),e.createSlots({_:2},[e.renderList(B.$slots,(j,M)=>({name:M,fn:e.withCtx(I=>[e.renderSlot(B.$slots,M,e.normalizeProps(e.guardReactiveProps(I)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),e.createVNode(e.unref(nt),{ref_key:"tooltipRef",ref:d,visible:e.unref(b),"popper-class":[e.unref(s).e("popper"),B.popperClass],"popper-options":B.popperOptions,placement:e.unref(g),"fallback-placements":e.unref(v),effect:"light",pure:"",offset:B.offset,"show-arrow":B.showArrow},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(h.value)},null,4)]),content:e.withCtx(()=>{var j;return[e.createVNode(vO,{ref_key:"dropdownRef",ref:p,options:e.unref(k),disabled:e.unref(i),loading:B.loading,"content-id":e.unref(c),"aria-label":B.ariaLabel,onSelect:V,onClick:e.withModifiers((j=u.value)==null?void 0:j.focus,["stop"])},e.createSlots({_:2},[e.renderList(B.$slots,(M,I)=>({name:I,fn:e.withCtx(K=>[e.renderSlot(B.$slots,I,e.normalizeProps(e.guardReactiveProps(K)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var bO=r._export_sfc(yO,[["__file","mention.vue"]]);const CO=r.withInstall(bO),kO=r.buildProps({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]}}),Em=Symbol("splitterRootContextKey");function wO(t){const n=e.ref(),{width:o,height:l}=r.useElementSize(n),a=e.computed(()=>t.value==="horizontal"?o.value:l.value);return{containerEl:n,containerSize:a}}function xi(t){return Number(t.slice(0,-1))/100}function Ai(t){return Number(t.slice(0,-2))}function zi(t){return r.isString(t)&&t.endsWith("%")}function Ri(t){return r.isString(t)&&t.endsWith("px")}function EO(t,n){const o=e.computed(()=>t.value.map(c=>c.size)),l=e.computed(()=>t.value.length),a=e.ref([]);e.watch([o,l,n],()=>{var c;let u=[],d=0;for(let f=0;f<l.value;f+=1){const h=(c=t.value[f])==null?void 0:c.size;if(zi(h))u[f]=xi(h);else if(Ri(h))u[f]=Ai(h)/n.value;else if(h||h===0){const m=Number(h);Number.isNaN(m)||(u[f]=m/n.value)}else d+=1,u[f]=void 0}const p=u.reduce((f,h)=>f+(h||0),0);if(p>1||!d){const f=1/p;u=u.map(h=>h===void 0?0:h*f)}else{const f=(1-p)/d;u=u.map(h=>h===void 0?f:h)}a.value=u});const s=c=>c*n.value,i=e.computed(()=>a.value.map(s));return{percentSizes:a,pxSizes:i}}function SO(t,n,o){const l=m=>m*n.value||0;function a(m,g){return zi(m)?l(xi(m)):Ri(m)?Ai(m):m??g}const s=e.ref(null);let i=[];const c=e.computed(()=>t.value.map(m=>[m.min,m.max])),u=m=>{s.value={index:m,confirmed:!1},i=o.value},d=(m,g)=>{var v,k;let b=null;if((!s.value||!s.value.confirmed)&&g!==0){if(g>0)b=m,s.value={index:m,confirmed:!0};else for(let _=m;_>=0;_-=1)if(i[_]>0){b=_,s.value={index:_,confirmed:!0};break}}const S=(k=b??((v=s.value)==null?void 0:v.index))!=null?k:m,y=[...i],C=S+1,E=a(c.value[S][0],0),w=a(c.value[C][0],0),V=a(c.value[S][1],n.value||0),T=a(c.value[C][1],n.value||0);let N=g;y[S]+N<E&&(N=E-y[S]),y[C]-N<w&&(N=y[C]-w),y[S]+N>V&&(N=V-y[S]),y[C]-N>T&&(N=y[C]-T),y[S]+=N,y[C]-=N,t.value.forEach((_,P)=>{_.size=y[P]})},p=()=>{s.value=null,i=[]},f=[];return{onMoveStart:u,onMoving:d,onMoveEnd:p,movingIndex:s,onCollapse:(m,g)=>{const v=o.value,k=g==="start"?m:m+1,b=g==="start"?m+1:m,S=v[k],y=v[b];if(S!==0&&y!==0)v[k]=0,v[b]+=S,f[m]=S;else{const C=S+y,E=f[m],w=C-E;v[b]=E,v[k]=w}t.value.forEach((C,E)=>{C.size=v[E]})}}}const NO=e.defineComponent({name:"ElSplitter"}),TO=e.defineComponent({...NO,props:kO,emits:["resizeStart","resize","resizeEnd"],setup(t,{emit:n}){const o=t,l=r.useNamespace("splitter"),{containerEl:a,containerSize:s}=wO(e.toRef(o,"layout")),{removeChild:i,children:c,addChild:u}=Jr(e.getCurrentInstance(),"ElSplitterPanel");e.watch(c,()=>{c.value.forEach((y,C)=>{y.setIndex(C)})});const{percentSizes:d,pxSizes:p}=EO(c,s),{onMoveStart:f,onMoving:h,onMoveEnd:m,onCollapse:g,movingIndex:v}=SO(c,s,p),k=y=>{f(y),n("resizeStart",y,p.value)},b=(y,C)=>{h(y,C),n("resize",y,p.value)},S=y=>{m(),n("resizeEnd",y,p.value)};return e.provide(Em,e.reactive({panels:c,percentSizes:d,pxSizes:p,layout:o.layout,movingIndex:v,containerSize:s,onMoveStart:k,onMoving:b,onMoveEnd:S,onCollapse:g,registerPanel:y=>{c.value.push(y)},sortPanel:u,unregisterPanel:i})),(y,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerEl",ref:a,class:e.normalizeClass([e.unref(l).b(),e.unref(l).e(y.layout)])},[e.renderSlot(y.$slots,"default"),e.createCommentVNode(" Prevent iframe touch events from breaking "),e.unref(v)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l).e("mask"),e.unref(l).e(`mask-${y.layout}`)])},null,2)):e.createCommentVNode("v-if",!0)],2))}});var _O=r._export_sfc(TO,[["__file","splitter.vue"]]);function VO(t){return t&&r.isObject$1(t)?t:{start:!!t,end:!!t}}function $u(t,n,o,l){return!!(t!=null&&t.collapsible.end&&n>0||o!=null&&o.collapsible.start&&l===0&&n>0)}const BO=e.defineComponent({name:"ElSplitterBar"}),PO=e.defineComponent({...BO,props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},startCollapsible:{type:Boolean},endCollapsible:{type:Boolean}},emits:["moveStart","moving","moveEnd","collapse"],setup(t,{emit:n}){const o=t,l=r.useNamespace("splitter-bar"),a=e.computed(()=>o.layout==="horizontal"),s=e.computed(()=>a.value?{width:0}:{height:0}),i=e.computed(()=>({width:a.value?"16px":"100%",height:a.value?"100%":"16px",cursor:a.value?"col-resize":"row-resize",touchAction:"none"})),c=e.computed(()=>{const b=l.e("dragger");let S=a.value?`${b}-horizontal`:`${b}-vertical`;return u.value&&(S+=` ${b}-active`),S}),u=e.ref(null),d=b=>{o.resizable&&(u.value=[b.pageX,b.pageY],n("moveStart",o.index),window.addEventListener("mouseup",m),window.addEventListener("mousemove",f))},p=b=>{if(o.resizable&&b.touches.length===1){b.preventDefault();const S=b.touches[0];u.value=[S.pageX,S.pageY],n("moveStart",o.index),window.addEventListener("touchend",g),window.addEventListener("touchmove",h)}},f=b=>{const{pageX:S,pageY:y}=b,C=S-u.value[0],E=y-u.value[1],w=a.value?C:E;n("moving",o.index,w)},h=b=>{if(b.touches.length===1){b.preventDefault();const S=b.touches[0],y=S.pageX-u.value[0],C=S.pageY-u.value[1],E=a.value?y:C;n("moving",o.index,E)}},m=()=>{u.value=null,window.removeEventListener("mouseup",m),window.removeEventListener("mousemove",f),n("moveEnd",o.index)},g=()=>{u.value=null,window.removeEventListener("touchend",g),window.removeEventListener("touchmove",h),n("moveEnd",o.index)},v=e.computed(()=>a.value?r.arrow_left_default:r.arrow_up_default),k=e.computed(()=>a.value?r.arrow_right_default:r.arrow_down_default);return(b,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l).b()]),style:e.normalizeStyle(e.unref(s))},[t.startCollapsible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l).e("collapse-icon"),e.unref(l).e(`${t.layout}-collapse-icon-start`)]),onClick:y=>n("collapse",t.index,"start")},[e.renderSlot(b.$slots,"start-collapsible",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(v)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(l).e("dragger"),e.unref(c),t.resizable?"":e.unref(l).e("disable")]),style:e.normalizeStyle(e.unref(i)),onMousedown:d,onTouchstart:p},null,38),t.endCollapsible?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(l).e("collapse-icon"),e.unref(l).e(`${t.layout}-collapse-icon-end`)]),onClick:y=>n("collapse",t.index,"end")},[e.renderSlot(b.$slots,"end-collapsible",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(k)),{style:{width:"12px",height:"12px"}}))])],10,["onClick"])):e.createCommentVNode("v-if",!0)],6))}});var DO=r._export_sfc(PO,[["__file","split-bar.vue"]]);const $O=r.buildProps({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:{type:Boolean,default:!1}}),Sm="ElSplitterPanel",IO=e.defineComponent({name:Sm}),OO=e.defineComponent({...IO,props:$O,emits:["update:size"],setup(t,{emit:n}){const o=t,l=r.useNamespace("splitter-panel"),a=e.inject(Em);a||r.throwError(Sm,"usage: <el-splitter><el-splitter-panel /></el-splitter/>");const{panels:s,layout:i,containerSize:c,pxSizes:u}=e.toRefs(a),{registerPanel:d,sortPanel:p,unregisterPanel:f,onCollapse:h,onMoveEnd:m,onMoveStart:g,onMoving:v}=a,k=e.ref(),b=e.getCurrentInstance().uid,S=e.ref(0),y=e.computed(()=>s.value[S.value]),C=M=>{S.value=M},E=e.computed(()=>{var M;return y.value&&(M=u.value[S.value])!=null?M:0}),w=e.computed(()=>{var M;return y.value&&(M=u.value[S.value+1])!=null?M:0}),V=e.computed(()=>y.value?s.value[S.value+1]:null),T=e.computed(()=>{var M;return V.value?o.resizable&&((M=V.value)==null?void 0:M.resizable)&&(E.value!==0||!o.min)&&(w.value!==0||!V.value.min):!1}),N=e.computed(()=>y.value?S.value!==s.value.length-1:!1),_=e.computed(()=>$u(y.value,E.value,V.value,w.value)),P=e.computed(()=>$u(V.value,w.value,y.value,E.value));function B(M){return zi(M)?xi(M)*c.value||0:Ri(M)?Ai(M):M??0}let A=!1;e.watch(()=>o.size,()=>{if(y.value){const M=B(o.size),I=B(o.max),K=B(o.min),$=Math.min(Math.max(M,K||0),I||M);$!==M&&(A=!0,n("update:size",$)),y.value.size=$,e.nextTick(()=>A=!1)}}),e.watch(()=>{var M;return(M=y.value)==null?void 0:M.size},M=>{!A&&M!==o.size&&n("update:size",M)}),e.watch(()=>o.resizable,M=>{y.value&&(y.value.resizable=M)});const j=e.reactive({el:k.value,uid:b,setIndex:C,...o,collapsible:VO(o.collapsible)});return d(j),e.onMounted(()=>{p(j)}),e.onUnmounted(()=>f==null?void 0:f(b)),(M,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",e.mergeProps({ref_key:"panelEl",ref:k,class:[e.unref(l).b()],style:{flexBasis:`${e.unref(E)}px`}},M.$attrs),[e.renderSlot(M.$slots,"default")],16),e.unref(N)?(e.openBlock(),e.createBlock(DO,{key:0,index:S.value,layout:e.unref(i),resizable:e.unref(T),"start-collapsible":e.unref(_),"end-collapsible":e.unref(P),onMoveStart:e.unref(g),onMoving:e.unref(v),onMoveEnd:e.unref(m),onCollapse:e.unref(h)},{"start-collapsible":e.withCtx(()=>[e.renderSlot(M.$slots,"start-collapsible")]),"end-collapsible":e.withCtx(()=>[e.renderSlot(M.$slots,"end-collapsible")]),_:3},8,["index","layout","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):e.createCommentVNode("v-if",!0)],64))}});var Nm=r._export_sfc(OO,[["__file","split-panel.vue"]]);const MO=r.withInstall(_O,{SplitPanel:Nm}),xO=r.withNoopInstall(Nm);var AO=[Vh,Mh,Gg,XB,ty,iy,r.ElBadge,vy,gy,D.ElButton,D.ElButtonGroup,Ry,jy,nb,ob,lC,Ud,uC,Bt,gb,Ad,hC,DC,$C,Zr,tk,nk,mk,hk,vk,gk,yk,Ww,tE,nE,uE,gf,CE,c0,u0,d0,_f,cS,uS,r.ElIcon,kS,Df,D.ElInput,$f,xS,KS,sN,iN,cN,uN,vN,sT,pT,wT,bd,Ff,jd,Pb,Bb,$T,AT,jT,Pt,wn,Ir,FN,E1,$1,I1,Z1,o_,ep,m_,E_,S_,P_,LV,FV,GB,dP,fP,Qn,Ci,cw,wP,VP,BP,nt,GD,i$,Wr,_$,j$,sI,gI,KI,HI,QI,eO,aO,CO,MO,xO];const St="ElInfiniteScroll",zO=50,RO=200,LO=0,FO={delay:{type:Number,default:RO},distance:{type:Number,default:LO},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Li=(t,n)=>Object.entries(FO).reduce((o,[l,a])=>{var s,i;const{type:c,default:u}=a,d=t.getAttribute(`infinite-scroll-${l}`);let p=(i=(s=n[d])!=null?s:d)!=null?i:u;return p=p==="false"?!1:p,p=c(p),o[l]=Number.isNaN(p)?u:p,o},{}),Tm=t=>{const{observer:n}=t[St];n&&(n.disconnect(),delete t[St].observer)},KO=(t,n)=>{const{container:o,containerEl:l,instance:a,observer:s,lastScrollTop:i}=t[St],{disabled:c,distance:u}=Li(t,a),{clientHeight:d,scrollHeight:p,scrollTop:f}=l,h=f-i;if(t[St].lastScrollTop=f,s||c||h<0)return;let m=!1;if(o===t)m=p-(d+f)<=u;else{const{clientTop:g,scrollHeight:v}=t,k=Aa(t,l);m=f+d>=k+g+v-u}m&&n.call(a)};function Pa(t,n){const{containerEl:o,instance:l}=t[St],{disabled:a}=Li(t,l);a||o.clientHeight===0||(o.scrollHeight<=o.clientHeight?n.call(l):Tm(t))}const HO={async mounted(t,n){const{instance:o,value:l}=n;r.isFunction(l)||r.throwError(St,"'v-infinite-scroll' binding value must be a function"),await e.nextTick();const{delay:a,immediate:s}=Li(t,o),i=D.getScrollContainer(t,!0),c=i===window?document.documentElement:i,u=yn(KO.bind(null,t,l),a);if(i){if(t[St]={instance:o,container:i,containerEl:c,delay:a,cb:l,onScroll:u,lastScrollTop:c.scrollTop},s){const d=new MutationObserver(yn(Pa.bind(null,t,l),zO));t[St].observer=d,d.observe(t,{childList:!0,subtree:!0}),Pa(t,l)}i.addEventListener("scroll",u)}},unmounted(t){if(!t[St])return;const{container:n,onScroll:o}=t[St];n==null||n.removeEventListener("scroll",o),Tm(t)},async updated(t){if(!t[St])await e.nextTick();else{const{containerEl:n,cb:o,observer:l}=t[St];n.clientHeight&&l&&Pa(t,o)}}},Es=HO;Es.install=t=>{t.directive("InfiniteScroll",Es)};const jO=Es,_m=["primary","success","info","warning","error"],WO=r.buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:r.iconPropType},id:{type:String,default:""},message:{type:r.definePropType([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:r.definePropType(Function),default:()=>{}},onClose:{type:r.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:[..._m,""],default:""},zIndex:Number,closeIcon:{type:r.iconPropType,default:r.close_default}}),UO={destroy:()=>!0},qO=e.defineComponent({name:"ElNotification"}),YO=e.defineComponent({...qO,props:WO,emits:UO,setup(t,{expose:n}){const o=t,{ns:l,zIndex:a}=r.useGlobalComponentSettings("notification"),{nextZIndex:s,currentZIndex:i}=a,c=e.ref(!1);let u;const d=e.computed(()=>{const S=o.type;return S&&r.TypeComponentsMap[o.type]?l.m(S):""}),p=e.computed(()=>o.type&&r.TypeComponentsMap[o.type]||o.icon),f=e.computed(()=>o.position.endsWith("right")?"right":"left"),h=e.computed(()=>o.position.startsWith("top")?"top":"bottom"),m=e.computed(()=>{var S;return{[h.value]:`${o.offset}px`,zIndex:(S=o.zIndex)!=null?S:i.value}});function g(){o.duration>0&&({stop:u}=r.useTimeoutFn(()=>{c.value&&k()},o.duration))}function v(){u==null||u()}function k(){c.value=!1}function b({code:S}){S===r.EVENT_CODE.delete||S===r.EVENT_CODE.backspace?v():S===r.EVENT_CODE.esc?c.value&&k():g()}return e.onMounted(()=>{g(),s(),c.value=!0}),r.useEventListener(document,"keydown",b),n({visible:c,close:k}),(S,y)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(l).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:C=>S.$emit("destroy"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:S.id,class:e.normalizeClass([e.unref(l).b(),S.customClass,e.unref(f)]),style:e.normalizeStyle(e.unref(m)),role:"alert",onMouseenter:v,onMouseleave:g,onClick:S.onClick},[e.unref(p)?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass([e.unref(l).e("icon"),e.unref(d)])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p))))]),_:1},8,["class"])):e.createCommentVNode("v-if",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("group"))},[e.createElementVNode("h2",{class:e.normalizeClass(e.unref(l).e("title")),textContent:e.toDisplayString(S.title)},null,10,["textContent"]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("content")),style:e.normalizeStyle(S.title?void 0:{margin:0})},[e.renderSlot(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),e.createElementVNode("p",{innerHTML:S.message},null,8,["innerHTML"])],2112)):(e.openBlock(),e.createElementBlock("p",{key:0},e.toDisplayString(S.message),1))])],6),[[e.vShow,S.message]]),S.showClose?(e.openBlock(),e.createBlock(e.unref(r.ElIcon),{key:0,class:e.normalizeClass(e.unref(l).e("closeBtn")),onClick:e.withModifiers(k,["stop"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.closeIcon)))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],2)],46,["id","onClick"]),[[e.vShow,c.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var GO=r._export_sfc(YO,[["__file","notification.vue"]]);const Ur={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ss=16;let XO=1;const ao=function(t={},n){if(!r.isClient)return{close:()=>{}};(r.isString(t)||e.isVNode(t))&&(t={message:t});const o=t.position||"top-right";let l=t.offset||0;Ur[o].forEach(({vm:p})=>{var f;l+=(((f=p.el)==null?void 0:f.offsetHeight)||0)+Ss}),l+=Ss;const a=`notification_${XO++}`,s=t.onClose,i={...t,offset:l,id:a,onClose:()=>{JO(a,o,s)}};let c=document.body;r.isElement(t.appendTo)?c=t.appendTo:r.isString(t.appendTo)&&(c=document.querySelector(t.appendTo)),r.isElement(c)||(r.debugWarn("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),c=document.body);const u=document.createElement("div"),d=e.createVNode(GO,i,r.isFunction(i.message)?i.message:e.isVNode(i.message)?()=>i.message:null);return d.appContext=r.isUndefined(n)?ao._context:n,d.props.onDestroy=()=>{e.render(null,u)},e.render(d,u),Ur[o].push({vm:d}),c.appendChild(u.firstElementChild),{close:()=>{d.component.exposed.visible.value=!1}}};_m.forEach(t=>{ao[t]=(n={},o)=>((r.isString(n)||e.isVNode(n))&&(n={message:n}),ao({...n,type:t},o))});function JO(t,n,o){const l=Ur[n],a=l.findIndex(({vm:d})=>{var p;return((p=d.component)==null?void 0:p.props.id)===t});if(a===-1)return;const{vm:s}=l[a];if(!s)return;o==null||o(s);const i=s.el.offsetHeight,c=n.split("-")[0];l.splice(a,1);const u=l.length;if(!(u<1))for(let d=a;d<u;d++){const{el:p,component:f}=l[d].vm,h=Number.parseInt(p.style[c],10)-i-Ss;f.props.offset=h}}function ZO(){for(const t of Object.values(Ur))t.forEach(({vm:n})=>{n.component.exposed.visible.value=!1})}ao.closeAll=ZO;ao._context=null;const QO=r.withInstallFunction(ao,"$notify");var eM=[jO,Sr.ElLoading,r.ElMessage,D.ElMessageBox,QO,Lf],tM=wh([...AO,...eM]);const nM={key:0,class:"dialog-overlay"},oM={class:"dialog-content"},lM={class:"dialog"},rM={class:"dialog-value"},aM={class:"dialog-item"},sM={class:"dialog-child"},iM={class:"dialog-actions"},cM={__name:"index",setup(t,{expose:n}){const o=e.ref(!1),l=e.ref(null);e.ref(!0);const a=e.ref([]),s=e.ref({}),i=e.ref([{label:"保留",value:"保留"},{label:"替换",value:"替换"}]),c=p=>{var h;o.value=!0,a.value=Object.keys(p);let f={};return(h=Object.keys(p))==null||h.forEach(m=>{f[m]="替换"}),s.value=f,new Promise(m=>{l.value=m})},u=(p,f)=>{let h=r.cloneDeep(s.value);h[p]=f,s.value=h},d=()=>{var p;o.value=!1,(p=l.value)==null||p.call(l,r.cloneDeep(s.value))};return e.onUnmounted(()=>{fM()}),n({show:c}),(p,f)=>o.value?(e.openBlock(),e.createElementBlock("div",nM,[e.createElementVNode("div",oM,[e.createElementVNode("div",lM,[f[1]||(f[1]=e.createElementVNode("div",{class:"dialog-title"},e.toDisplayString("冲突页面选择"),-1)),e.createElementVNode("div",rM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,h=>(e.openBlock(),e.createElementBlock("div",aM,[e.createElementVNode("div",sM,[e.createElementVNode("div",null,e.toDisplayString(h),1),e.createElementVNode("div",null,[e.createVNode(Sr.ssRadio,{content:i.value,modelValue:s.value[h],"onUpdate:modelValue":m=>s.value[h]=m,onChange:m=>u(h,m)},null,8,["content","modelValue","onUpdate:modelValue","onChange"])])])]))),256))])]),e.createElementVNode("div",iM,[e.createVNode(e.unref($m._sfc_main),{class:"menu-button click-button",onClickTrigger:f[0]||(f[0]=h=>d()),modelValue:"继续"})])])])):e.createCommentVNode("",!0)}},uM=Im._export_sfc(cM,[["__scopeId","data-v-4033db15"]]);let Er=null;const Iu=D.useMenuState();let sl=null;const dM=()=>{const t=e.createApp(uM);t.use(tM);const n=document.createElement("div");return document.body.appendChild(n),t.mount(n)},Ou=(t,n)=>{var l;return(l=D.tableEveryContents(r.cloneDeep(t)))==null?void 0:l.map(a=>{var s,i,c,u,d;if(t.comp==="Table"){let p={comp:(s=D.tableToStruct(r.cloneDeep(a)))==null?void 0:s.comp,compData:(i=D.tableToStruct(r.cloneDeep(a)))==null?void 0:i.compData,isShow:a==null?void 0:a.isShow};return(u=(c=Object.keys(a))==null?void 0:c.filter(f=>f==null?void 0:f.includes("name")))==null||u.forEach(f=>{var h;p[f]=(h=D.tableToStruct(r.cloneDeep(a)))==null?void 0:h[f]}),{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structure",version:1,parentTable:(a==null?void 0:a.parentTableContents)??"",parentPageKey:n==null?void 0:n.parentPath},value:{pageData:p}}}else if((a==null?void 0:a.key)==="extraButton"){if(((d=Object.values(a==null?void 0:a.value))==null?void 0:d.length)!==0)return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structureMethod",version:1},value:{pageData:a.value}}}else return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n.name,type:"structure",version:1,parentTable:(a==null?void 0:a.parentTableContents)??"",parentPageKey:n==null?void 0:n.parentPath},value:{pageData:a}}})},fM=()=>{sl==null||sl(!0),Er=null,sl=null},pM=async t=>(Er||(Er=dM()),await new Promise(async n=>{sl=n;const o=await Er.show(t);n(o)})),mM=async t=>{var f,h,m,g,v;let n=[],o=[],l=await r.getInsofDataApi({key:{type:"structure",systemKey:sessionStorage.getItem("systemKey")}});if(((f=l==null?void 0:l.data)==null?void 0:f.code)!==200)return;let a=new WeakMap,s=(m=(h=l==null?void 0:l.data)==null?void 0:h.result)==null?void 0:m.filter(k=>{var b;return((b=k==null?void 0:k.key)==null?void 0:b.pageKey)!=="menu"});(s==null?void 0:s.length)===0||s==null||s.forEach(k=>{a[k.key.pageKey]={id:k==null?void 0:k.id,contents:k==null?void 0:k.value}});const i=new WeakMap;t==null||t.forEach(k=>{a[k.name]&&(i[k.name]=a[k.name])});let c=[],u=[];if(((g=Object.keys(i))==null?void 0:g.length)>0){Iu.setImportLoading(!1);const k=await pM(i);for(let b in k)k[b]==="保留"?c.push(b):u.push(b);Iu.setImportLoading(!0)}let d=r.cloneDeep(t);if((u==null?void 0:u.length)>0){let k=[];const b=u==null?void 0:u.map(async S=>{var C,E,w,V;const y=await r.getInsofDataApi({key:{pageKey:S,systemKey:sessionStorage.getItem("systemKey")}});((E=(C=y==null?void 0:y.data)==null?void 0:C.result)==null?void 0:E.length)>0&&((V=(w=y==null?void 0:y.data)==null?void 0:w.result)==null||V.forEach(T=>{k.push(T==null?void 0:T.id)}))});await Promise.all(b),await r.batchDeleteInsofDataApi({ids:k})}(c==null?void 0:c.length)>0&&(d=(v=r.cloneDeep(d))==null?void 0:v.filter(k=>!c.includes(k==null?void 0:k.name)));let p=[];d==null||d.map(async k=>{var b;await((b=k.compData)==null?void 0:b.forEach(async S=>{var C;const y=(C=r.cloneDeep(S==null?void 0:S.contents))==null?void 0:C.map(E=>{if(!Array.isArray(E)){const w=Ou(r.cloneDeep(E),k);return w==null?void 0:w[0]}});y==null||y.forEach(E=>{p.push(E)})}))}),(p==null?void 0:p.length)>0&&await r.batchAddInsofDataApi({dataList:p}),d==null||d.map(async k=>{var b;await((b=k.compData)==null?void 0:b.forEach(async S=>{var C,E,w;const y=(C=r.cloneDeep(S==null?void 0:S.contents))==null?void 0:C.map(V=>{if(!Array.isArray(V)){const T=Ou(r.cloneDeep(V),k);return T==null?void 0:T[0]}});o.push({parentKey:D.getParentKey((E=r.cloneDeep(k))==null?void 0:E.name),content:y}),(w=S.contents)==null||w.map(async V=>{var T;Array.isArray(V)||(T=D.tableEveryContents(r.cloneDeep(V)))==null||T.forEach(async N=>{var _,P,B,A,j,M,I,K;if(V.comp==="Table"){let $={comp:(_=D.tableToStruct(r.cloneDeep(N)))==null?void 0:_.comp,compData:(P=D.tableToStruct(r.cloneDeep(N)))==null?void 0:P.compData,isShow:N==null?void 0:N.isShow};(A=(B=Object.keys(N))==null?void 0:B.filter(G=>G==null?void 0:G.includes("name")))==null||A.forEach(G=>{var Z;$[G]=(Z=D.tableToStruct(r.cloneDeep(N)))==null?void 0:Z[G]});const q=(M=(j=(await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:k.name,type:"structure",version:1,parentTable:(N==null?void 0:N.parentTableContents)??""},value:{pageData:$}})).data.result)==null?void 0:j[0])==null?void 0:M.id,F=(I=D.tableToContents(r.cloneDeep(N)))==null?void 0:I.map(G=>{var Z,ee,Y,z;if((G==null?void 0:G.length)!==0)return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:k.name,type:"data",tableId:q},value:{tableData:D.getValueToObjectValue(G,(z=D.getColumnContents((Y=(ee=(Z=D.tableToStruct(r.cloneDeep(N)))==null?void 0:Z.compData)==null?void 0:ee.find(R=>(R==null?void 0:R.key)==="header"))==null?void 0:Y.contents))==null?void 0:z.filter(R=>R!=="操作"))}}}),X=await r.batchAddInsofDataApi({dataList:F});n.push(X);const L=await((K=D.tableToContents(r.cloneDeep(N)))==null?void 0:K.map(async G=>{var z,R,x,Q,U;let Z;return(G==null?void 0:G.length)!==0&&(Z=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:k.name,type:"data",tableId:q},value:{tableData:D.getValueToObjectValue(G,(Q=D.getColumnContents((x=(R=(z=D.tableToStruct(r.cloneDeep(N)))==null?void 0:z.compData)==null?void 0:R.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:x.contents))==null?void 0:Q.filter(J=>J!=="操作"))}})),await((U=(await r.getInsofDataApi({key:{parentTable:G,systemKey:sessionStorage.getItem("systemKey"),pageKey:k.name,type:"structure"}})).data.result)==null?void 0:U.map(async J=>{var oe,ie;return await r.updateInsofDataApi({id:J.id,key:{systemKey:J.key.systemKey,pageKey:J.key.pageKey,type:J.key.type,version:J.key.version,parentTable:J.key.parentTable===""?"":(ie=(oe=Z.data.result)==null?void 0:oe[0])==null?void 0:ie.id}})}))}));n.push(L)}})})}))}),await Promise.all(n),await D.getParentConstruct(o)},nl=t=>{var l;let n="",o=[];return(l=r.cloneDeep(t).split("/"))==null||l.forEach((a,s)=>{s!==r.cloneDeep(t).split("/").length-1&&o.push(a)}),o==null||o.forEach(a=>{n=n===""?n+a:n+"/"+a}),n},Mu=(t,n)=>{var a;let o=(a=t==null?void 0:t.filter(s=>(s==null?void 0:s.label)!=="操作"))==null?void 0:a.map(s=>s==null?void 0:s.label);return n==null?void 0:n.map(s=>D.getValueToObjectValue(s,o))},xu=(t,n)=>{var o,l,a,s,i,c,u,d;return((l=(o=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:o.contents)==null?void 0:l.length)===0?Mu((i=(s=(a=n==null?void 0:n.value)==null?void 0:a.compData)==null?void 0:s.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:i.contents,(c=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="tableContents"))==null?void 0:c.contents):Mu((u=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="header"))==null?void 0:u.contents,(d=t==null?void 0:t.find(p=>(p==null?void 0:p.key)==="tableContents"))==null?void 0:d.contents)},Au=(t,n)=>{var l;let o=r.cloneDeep(t);return o.compData=(l=r.cloneDeep(o.compData))==null?void 0:l.map(a=>((a==null?void 0:a.key)==="formContent"&&(a.contents=n==null?void 0:n.map(s=>{var i,c;return s.value=((c=(i=a.contents)==null?void 0:i.find(u=>u.key===s.key))==null?void 0:c.value)??"",s})),a)),o},hM=async t=>{var i,c,u;let n=(i=r.cloneDeep(t))==null?void 0:i.map(d=>d==null?void 0:d.path);const o=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});if(o.data.code!==200)return;let l=new WeakMap;(c=o.data.result)==null||c.forEach(d=>{var f,h,m,g;let p=[{key:d==null?void 0:d.id,name:((h=(f=d==null?void 0:d.value)==null?void 0:f.pageData)==null?void 0:h.name)??"",value:(m=d==null?void 0:d.value)==null?void 0:m.pageData}];l[d.key.pageKey]=((g=l[d.key.pageKey])==null?void 0:g.length)>0?[...l[d.key.pageKey],...p]:p});let a=new WeakMap;n==null||n.forEach(d=>{l[d]&&(a[d]=l[d])});let s=r.cloneDeep(t);s=(u=r.cloneDeep(s))==null?void 0:u.map(d=>{var f,h,m,g;let p=(f=r.cloneDeep(d))==null?void 0:f.key;return p.tableId=(m=(h=a[d==null?void 0:d.path])==null?void 0:h.find(v=>{var k;return(v==null?void 0:v.name)===((k=r.cloneDeep(d))==null?void 0:k.name)}))==null?void 0:m.key,d={key:p,value:(g=r.cloneDeep(d))==null?void 0:g.value},d}),s.length!==0&&await r.batchAddInsofDataApi({dataList:s})},Jl=(t,n)=>{var o,l,a,s,i,c,u,d,p,f,h,m,g,v,k;if(((l=(o=r.cloneDeep(t))==null?void 0:o.filter(b=>{var S;return(b==null?void 0:b.name)===((S=r.cloneDeep(n))==null?void 0:S.name)}))==null?void 0:l.length)===1)return{contents:(u=(c=(i=(s=(a=r.cloneDeep(t))==null?void 0:a.find(b=>{var S;return(b==null?void 0:b.name)===((S=r.cloneDeep(n))==null?void 0:S.name)}))==null?void 0:s.value)==null?void 0:i.compData)==null?void 0:c.find(b=>(b==null?void 0:b.key)==="formContent"))==null?void 0:u.contents,key:(p=(d=r.cloneDeep(t))==null?void 0:d.find(b=>{var S;return(b==null?void 0:b.name)===((S=r.cloneDeep(n))==null?void 0:S.name)}))==null?void 0:p.key};{let b,S,y=(g=(m=(h=(f=r.cloneDeep(n))==null?void 0:f.compData)==null?void 0:h.find(C=>(C==null?void 0:C.key)==="formContent"))==null?void 0:m.contents)==null?void 0:g.map(C=>C==null?void 0:C.key);return(k=(v=r.cloneDeep(t))==null?void 0:v.filter(C=>{var E;return(C==null?void 0:C.name)===((E=r.cloneDeep(n))==null?void 0:E.name)}))==null||k.forEach(C=>{var w,V,T,N,_,P,B,A;let E=(_=(N=(T=(V=(w=r.cloneDeep(C))==null?void 0:w.value)==null?void 0:V.compData)==null?void 0:T.find(j=>(j==null?void 0:j.key)==="formContent"))==null?void 0:N.contents)==null?void 0:_.map(j=>j==null?void 0:j.key);E&&y.every(j=>E.includes(j))&&(b=(A=(B=(P=C==null?void 0:C.value)==null?void 0:P.compData)==null?void 0:B.find(j=>(j==null?void 0:j.key)==="formContent"))==null?void 0:A.contents,S=C==null?void 0:C.key)}),{contents:b,key:S}}},vM=async t=>{var u,d,p;let n=[];(u=r.cloneDeep(t))==null||u.forEach(f=>{n.push(f.name);let h=nl(r.cloneDeep(f.name));h!==""&&n.push(h)}),n=[...new Set(n)];const o=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});if(o.data.code!==200)return;let l=new WeakMap;(d=o.data.result)==null||d.forEach(f=>{var m,g,v,k;let h=[{key:f==null?void 0:f.id,name:((g=(m=f==null?void 0:f.value)==null?void 0:m.pageData)==null?void 0:g.name)??"",value:(v=f==null?void 0:f.value)==null?void 0:v.pageData}];l[f.key.pageKey]=((k=l[f.key.pageKey])==null?void 0:k.length)>0?[...l[f.key.pageKey],...h]:h});let a=new WeakMap;for(let f in l)n!=null&&n.find(h=>h===f)&&(a[f]=l[f]);let s=[],i=[],c=[];(p=r.cloneDeep(t))==null||p.forEach(f=>{var h,m;a!=null&&a[f.name]?(h=f==null?void 0:f.compData)==null||h.forEach(g=>{var v;(v=g==null?void 0:g.contents)==null||v.forEach(k=>{var b,S,y,C,E,w,V;if((k==null?void 0:k.comp)==="Table"){let T=xu((b=r.cloneDeep(k))==null?void 0:b.compData,(S=r.cloneDeep(a==null?void 0:a[f.name]))==null?void 0:S.find(N=>(N==null?void 0:N.name)===(k==null?void 0:k.name)));T==null||T.forEach(N=>{var _,P;i.push({key:{type:"data",pageKey:f==null?void 0:f.name,tableId:(P=(_=a==null?void 0:a[f.name])==null?void 0:_.find(B=>(B==null?void 0:B.name)===(k==null?void 0:k.name)))==null?void 0:P.key,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:N}})})}else if((C=Jl((y=r.cloneDeep(a))==null?void 0:y[f.name],r.cloneDeep(k)))!=null&&C.contents){let T=Au(r.cloneDeep(k),(E=Jl(a==null?void 0:a[f.name],r.cloneDeep(k)))==null?void 0:E.contents);s!=null&&s.find(N=>{var _,P;return(N==null?void 0:N.id)===((P=Jl((_=r.cloneDeep(a))==null?void 0:_[f.name],r.cloneDeep(k)))==null?void 0:P.key)})||s.push({id:(V=Jl((w=r.cloneDeep(a))==null?void 0:w[f.name],r.cloneDeep(k)))==null?void 0:V.key,value:{pageData:T}})}})}):a!=null&&a[nl(f.name)]&&((m=f==null?void 0:f.compData)==null||m.forEach(g=>{var v;(v=g==null?void 0:g.contents)==null||v.forEach(k=>{var b,S,y,C,E,w,V,T,N;if((k==null?void 0:k.comp)==="Table"){let _=(S=(b=a==null?void 0:a[nl(f.name)])==null?void 0:b.find(B=>(B==null?void 0:B.name)===(k==null?void 0:k.name)))==null?void 0:S.value;i.push({key:{type:"structure",pageKey:f==null?void 0:f.name,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),version:1},value:{pageData:_}});let P=xu((y=r.cloneDeep(k))==null?void 0:y.compData,(C=r.cloneDeep(a==null?void 0:a[nl(f.name)]))==null?void 0:C.find(B=>(B==null?void 0:B.name)===(k==null?void 0:k.name)));P==null||P.forEach(B=>{c.push({name:k.name,path:f.name,key:{type:"data",pageKey:f==null?void 0:f.name,tableId:"",systemKey:sessionStorage.getItem("systemKey")},value:{tableData:B}})})}else{let _=Au(r.cloneDeep(k),(N=(T=(V=(w=(E=r.cloneDeep(a==null?void 0:a[nl(f.name)]))==null?void 0:E.find(P=>(P==null?void 0:P.name)===(k==null?void 0:k.name)))==null?void 0:w.value)==null?void 0:V.compData)==null?void 0:T.find(P=>(P==null?void 0:P.key)==="formContent"))==null?void 0:N.contents);i.push({key:{type:"structure",pageKey:f==null?void 0:f.name,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),version:1},value:{pageData:_}})}})}))}),i.length!==0&&(await r.batchAddInsofDataApi({dataList:i}),c.length!==0&&await hM(c),s.length!==0&&await r.batchUpdateInsofDataApi({dataList:s}))},Vm=D.useMenuState(),Ns=t=>t==null?void 0:t.map(n=>(n.contents&&(n.contents=n.contents.filter(o=>{var l;return((l=o.comp)==null?void 0:l.toUpperCase())!=="CALCULATOR"})),n.compData&&(n.compData=Ns(n.compData)),n)),gM=async t=>{var o,l,a,s,i,c,u,d,p,f,h,m,g,v,k,b,S,y,C,E,w,V,T;const n=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),layer:"superAdmin"}});if((t==null?void 0:t.length)===0){if(((o=n==null?void 0:n.data)==null?void 0:o.code)===200&&(s=(a=(l=n==null?void 0:n.data)==null?void 0:l.result)==null?void 0:a[0])!=null&&s.id){const N=(c=(i=n==null?void 0:n.data)==null?void 0:i.result)==null?void 0:c[0],_=(p=(d=(u=n==null?void 0:n.data)==null?void 0:u.result)==null?void 0:d[0])==null?void 0:p.key;_.systemType="管理系统",await r.updateInsofDataApi({id:N==null?void 0:N.id,key:_})}return}try{if(((f=n==null?void 0:n.data)==null?void 0:f.code)===200&&(g=(m=(h=n==null?void 0:n.data)==null?void 0:h.result)==null?void 0:m[0])!=null&&g.id){const N=(k=(v=n==null?void 0:n.data)==null?void 0:v.result)==null?void 0:k[0],_=(y=(S=(b=n==null?void 0:n.data)==null?void 0:b.result)==null?void 0:S[0])==null?void 0:y.key,P=(C=r.cloneDeep(t))==null?void 0:C.map(B=>{var A;return(A=B.compData)==null?void 0:A[0]});_.systemType=(w=(E=P==null?void 0:P.find(B=>(B==null?void 0:B.key)==="type"))==null?void 0:E.contents)==null?void 0:w[0],_.name=(T=(V=P==null?void 0:P.find(B=>(B==null?void 0:B.key)==="name"))==null?void 0:V.contents)==null?void 0:T[0],await r.updateInsofDataApi({id:N==null?void 0:N.id,key:_})}}catch(N){return Promise.reject(N)}},zu=async t=>{var n,o,l,a;try{const s=await r.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu",type:"structure"},value:{pageData:t}});if(((n=s==null?void 0:s.data)==null?void 0:n.code)===200){const i=(l=(o=t==null?void 0:t.compData)==null?void 0:o[0])==null?void 0:l.contents;Vm.setRawMenus(i??[])}return(a=s==null?void 0:s.data)==null?void 0:a.code}catch(s){return Promise.reject(s)}},yM=async()=>{var t,n,o,l,a,s,i,c;try{const u=await r.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu",type:"structure"}});return((t=u==null?void 0:u.data)==null?void 0:t.code)===200&&((l=(o=(n=u==null?void 0:u.data)==null?void 0:n.result)==null?void 0:o[0])!=null&&l.id)&&await r.deleteInsofDataApi({id:(i=(s=(a=u==null?void 0:u.data)==null?void 0:a.result)==null?void 0:s[0])==null?void 0:i.id}),(c=u==null?void 0:u.data)==null?void 0:c.code}catch(u){return Promise.reject(u)}},bM=async(t,n)=>{var o,l,a,s;try{const i=await r.updateInsofDataApi({id:t,value:{pageData:n}});if(((o=i==null?void 0:i.data)==null?void 0:o.code)===200){const c=(a=(l=n==null?void 0:n.compData)==null?void 0:l[0])==null?void 0:a.contents;Vm.setRawMenus(c??[])}return(s=i==null?void 0:i.data)==null?void 0:s.code}catch(i){return Promise.reject(i)}},CM=async()=>{var t;try{const n=D.generateKeyPair(),o=await r.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"secret",type:"system"},value:{cryptoInfo:{publicKey:n.publicKey,privateKey:n.privateKey}}});return((t=o==null?void 0:o.data)==null?void 0:t.code)===200}catch(n){throw n}},kM=async()=>{var n,o,l;const t=await r.getInsofDataApi({key:{type:"structure",pageKey:"menu",systemKey:sessionStorage.getItem("systemKey")}});return!(((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&((l=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:l.length)>0)},wM=async()=>{var n,o,l;const t=await r.getInsofDataApi({key:{type:"system",pageKey:"secret",systemKey:sessionStorage.getItem("systemKey")}});return!(((n=t==null?void 0:t.data)==null?void 0:n.code)===200&&((l=(o=t==null?void 0:t.data)==null?void 0:o.result)==null?void 0:l.length)>0)},EM=async t=>{var o,l;let n=r.cloneDeep(t);if(n=[...n,Om.tempMenuPageData,Mm.tempMainMenuPageData],sessionStorage.getItem("systemKey"))if(t!=null&&t.find(a=>(a==null?void 0:a.comp)==="System")){const a=n==null?void 0:n.find(d=>d.comp==="Menu"),s=n==null?void 0:n.filter(d=>d.comp==="System"),i=await kM(),c=await wM();i&&await zu(a),await gM(s),c&&CM();const u=(o=Ns(r.cloneDeep(n)))==null?void 0:o.filter(d=>{var p,f,h;return((p=d==null?void 0:d.comp)==null?void 0:p.toUpperCase())!=="MENU"&&((f=d==null?void 0:d.comp)==null?void 0:f.toUpperCase())!=="MENUTOP"&&((h=d==null?void 0:d.comp)==null?void 0:h.toUpperCase())!=="SYSTEM"});await mM(u)}else{const a=n==null?void 0:n.find(i=>i.comp==="Menu");await yM(),await zu(a);const s=(l=Ns(r.cloneDeep(n)))==null?void 0:l.filter(i=>{var c,u,d;return((c=i==null?void 0:i.comp)==null?void 0:c.toUpperCase())!=="MENU"&&((u=i==null?void 0:i.comp)==null?void 0:u.toUpperCase())!=="MENUTOP"&&((d=i==null?void 0:i.comp)==null?void 0:d.toUpperCase())!=="SYSTEM"});await vM(s)}},SM=e.defineComponent({name:"menu",components:{ssMenu:qi.ssMenu,DynamicIcon:qi._sfc_main$1},setup(){const t=e.defineProps({mode:{type:String,default:"vertical"}}),n=e.ref("sub-menu-more"),o=D.useMenuState(),l=D.useModelComp(r.pinia),a=e.ref(0),s=Dm.useRouter(),{rawMenus:i,activeTopMenuPath:c,isRefreshMenus:u,menuTriggerType:d,permissionSideMenus:p,platform:f,cacheInputMenu:h,activeMainMenu:m,linkMenuInfo:g}=r.storeToRefs(o),v=r.useLoginState(),{structureData:k}=r.storeToRefs(v),b=e.ref([]),S=e.ref([]),y=e.computed(()=>t==null?void 0:t.mode),C=e.ref({}),E=z=>z==null?void 0:z.map(R=>R.children&&R.children.length>0?{...R,children:R.level===0?[]:R.children??[],childMenus:E(R.children)}:R),w=(z,R)=>{var x,Q;return(Q=(x=S.value)==null?void 0:x.find(U=>(z.title+R).includes(U.value)))==null?void 0:Q.value},V=["系统管理/角色管理","系统管理/用户管理","系统管理/个人中心"],T=(z,R="",x=0)=>{var ce;let Q=r.cloneDeep(z);const U=Array.from(new Set([...(ce=k.value)==null?void 0:ce.map(oe=>{var ie;return(ie=oe==null?void 0:oe.key)==null?void 0:ie.pageKey})]));return Array.isArray(Q)||(Q=[Q]),Q==null?void 0:Q.map(oe=>{let ie,ne=R?`${R}/${oe.title}`:oe.title;V!=null&&V.includes(ne)?ie=R?`/${R}/${oe.title}`:oe.title:ie=ne;const le={...oe,path:ie,level:x,show:!0,icon:w(oe,x),carryData:U==null?void 0:U.includes(ne),isPenultimate:!oe.children,isRouter:V==null?void 0:V.includes(ne),children:[],childMenus:[]};return oe.children&&oe.children.length>0&&(le.children=T(oe.children,ie,x+1)),le})},N=e.computed(()=>{let z=r.cloneDeep(b.value);if(z=[...z,...p.value],(z==null?void 0:z.length)===0)return s.push("/"),[];const R=X(z,q.value);R.isFlag||(z=R==null?void 0:R.data);const x=E(z);return o.setMenus(x),x}),_=async z=>{var U,J,ce;let R,x;(z==null?void 0:z.level)===0?x={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),rootNodePath:z==null?void 0:z.path,tableId:""}}:x={key:{type:"menuConfigData",systemKey:sessionStorage.getItem("systemKey"),pageKey:"/平台管理/菜单管理/"+(z==null?void 0:z.path),tableId:""}};const Q=await r.getInsofDataApi(x);return((U=Q==null?void 0:Q.data)==null?void 0:U.code)===200&&(R=(ce=(J=Q.data)==null?void 0:J.result)==null?void 0:ce.map(oe=>{var ie;return{id:oe==null?void 0:oe.id,...(ie=oe==null?void 0:oe.value)==null?void 0:ie.tableData}}),(z==null?void 0:z.level)===0&&(C.value=r.cloneDeep(R))),(R==null?void 0:R.length)>0?R:null},P=(z,R)=>{var Q,U;const x=z==null?void 0:z.find(J=>(J==null?void 0:J.operateType)==="新增");return((U=(Q=h.value)==null?void 0:Q.data)==null?void 0:U.path)===(R==null?void 0:R.path)?x==null?void 0:x.menuIcon:w(R,R==null?void 0:R.level)},B=async(z,R)=>{if(!Array.isArray(R))return z;for(const x of R)if((x==null?void 0:x.path)===z.path)return{...z,config:await _(z)};return z},A=e.ref(null),j=async(z,R=null)=>await Promise.all(z==null?void 0:z.map(async x=>{var J;let Q=await B(x,C.value);const U=(Q==null?void 0:Q.config)??((J=R==null?void 0:R.filter(ce=>ce.allowInherit))==null?void 0:J.map(ce=>{var oe;return{...ce,structureIds:(oe=R==null?void 0:R.find(ie=>{var ne;return((ne=ie==null?void 0:ie.structureIds)==null?void 0:ne.length)>0}))==null?void 0:oe.structureIds}}));return Q!=null&&Q.childMenus&&(Q==null?void 0:Q.childMenus.length)>0&&(Q={...Q,icon:P(U,x),config:U,children:await j(x==null?void 0:x.childMenus,U),childMenus:await j(x==null?void 0:x.childMenus,U)}),{...Q,icon:P(U,x),config:U}})),M=async z=>(A.value=null,await j(z.childMenus));e.watch(()=>g.value,z=>{var x,Q,U;if(!z)return;const R=(Q=(x=z==null?void 0:z.path)==null?void 0:x.split("/"))==null?void 0:Q[0];if(R){const J=(U=b.value)==null?void 0:U.find(ce=>(ce==null?void 0:ce.path)===R);if(!J||(o.setActiveTopMenuPath(R),!(J!=null&&J.children)))return;o.setAsideMenus(J==null?void 0:J.children),o.setActiveMenuPath(z==null?void 0:z.path),l.setRouteToChildPath(z==null?void 0:z.path)}},{immediate:!0});const I=async z=>{var R,x,Q,U;if(o.setLinkMenuInfo(null),o.setAsideMenuLoading(!0),l.setRouteToChildPath(""),o.setActiveTopMenuPath(z==null?void 0:z.path),o.setActiveMainMenu(z),A.value=null,z!=null&&z.childMenus&&((R=z==null?void 0:z.childMenus)==null?void 0:R.length)>0){const J=await M(z),ce=(J==null?void 0:J.length)===0?z==null?void 0:z.childMenus:J;o.setAsideMenus(ce);const oe=(Q=(x=z==null?void 0:z.childMenus)==null?void 0:x[0])==null?void 0:Q.path;o.setActiveMenuPath(oe),o.setActiveAsideMenu((U=z==null?void 0:z.childMenus)==null?void 0:U[0])}else o.setAsideMenus([]);z.isRouter?s.push(z.path):s.push("/"),o.setAsideMenuLoading(!1)},K=z=>{l.setRouteToChildPath(""),d.value==="click"?a.value===1?o.setActiveMenuPath(sessionStorage.getItem("pageKey")):z!==n.value&&o.setActiveMenuPath(z):o.setMenuTriggerType("click"),z!=null&&z.startsWith("/")?s.push(z):s.push("/"),a.value++},$=z=>{z!==n.value&&o.setActiveMenuPath(z)},O=z=>{const R=document.documentElement;z==null||z.forEach(x=>{R.style.setProperty(x.name,x.value)})};e.onMounted(()=>{a.value=1,S.value=Sr.getSvgIcons()});const q=e.computed(()=>{const z=sessionStorage.getItem("authority");return z?JSON.parse(z):[]});e.watch(()=>f.value,z=>{z==="browser"?(O(Vn.browserVerticalMenuClasses),O(Vn.browserHorizontalMenuClasses)):z==="client"?(O(Vn.clientHorizontalMenuClasses),O(Vn.clientVerticalMenuClasses)):z==="three"&&(O(Vn.threeHorizontalMenuClasses),O(Vn.threeVerticalMenuClasses))},{immediate:!0}),e.watch(()=>i.value,z=>{if(S.value=Sr.getSvgIcons(),z){o.setActiveMenuPath(""),o.setActiveTopMenuPath(""),o.setAsideMenus([]);const R=z;b.value=T(r.convertRawToTree(R))}},{immediate:!0});const F=(z,R)=>{function x(Q){Q==null||Q.forEach(U=>{var ce,oe;const J=(ce=U==null?void 0:U.path)!=null&&ce.startsWith("/")?(oe=U==null?void 0:U.path)==null?void 0:oe.substring(1):U==null?void 0:U.path;U.show=R==null?void 0:R.some(ie=>ie==null?void 0:ie.includes(J)),U.children&&x(U.children)})}return x(z),z},X=(z,R)=>{if(Array.isArray(R)){const x=Array.from(new Set(R==null?void 0:R.map(Q=>Q==null?void 0:Q.substring(0,Q.lastIndexOf("/")))));return{data:F(z,x),isFlag:!1}}else return{isFlag:(R==null?void 0:R.toUpperCase())==="SUPERADMIN"}},L=z=>{var x;const R=[z==null?void 0:z.title];if(z!=null&&z.children&&((x=z==null?void 0:z.children)==null?void 0:x.length)>0){const Q=z.children.map(U=>L(U));R.push(...Q)}return R},G=(z,R,x,Q)=>z.map(U=>{var J,ce;if(U.path===x){const oe={...U};return Q==="create"?oe.children.push(R):Q==="update"?oe.children=(J=oe.children)==null?void 0:J.map(ie=>(ie==null?void 0:ie.path)===(R==null?void 0:R.path)?R:ie):Q==="delete"&&(oe.children=(ce=oe.children)==null?void 0:ce.filter(ie=>(ie==null?void 0:ie.path)!==(R==null?void 0:R.path))),oe}else return{...U,children:G(U.children,R,x,Q)}}),Z=async z=>{var x,Q,U,J,ce,oe;const R=(x=k.value)==null?void 0:x.find(ie=>{var ne;return((ne=ie==null?void 0:ie.key)==null?void 0:ne.pageKey)==="menu"});if(R){const ie={...(Q=R.value)==null?void 0:Q.pageData,compData:(ce=(J=(U=R.value)==null?void 0:U.pageData)==null?void 0:J.compData)==null?void 0:ce.map(le=>le.key==="menuContents"?{...le,contents:z}:le)};await bM(R==null?void 0:R.id,ie);const ne=(oe=N.value)==null?void 0:oe.find(le=>(le==null?void 0:le.path)===c.value);await I(ne),o.setAsideMenuLoading(!1),o.setIsRefreshMenus(!1),r.ElMessage.success("响应成功")}},ee=async z=>{var Q,U,J,ce,oe;const R=await r.getInsofDataApi({id:z});let x;return((Q=R==null?void 0:R.data)==null?void 0:Q.code)===200&&(x=(oe=(ce=(J=(U=R==null?void 0:R.data)==null?void 0:U.result)==null?void 0:J[0])==null?void 0:ce.value)==null?void 0:oe.pageData),x},Y=async z=>{var oe,ie,ne;const R=(ne=(ie=(oe=z==null?void 0:z.config)==null?void 0:oe.find(le=>(le==null?void 0:le.operateType)==="新增"))==null?void 0:ie.structureIds)==null?void 0:ne.filter(le=>(le==null?void 0:le.key)==="contentConfig"),x=R==null?void 0:R.map(le=>le==null?void 0:le.id);let Q=[];x==null||x.forEach(le=>{le&&Q.push(ee(le))});const U=await Promise.all(Q),J=U==null?void 0:U.map(le=>{const{id:ue,...me}=le;return me}),ce=J==null?void 0:J.map(le=>({key:{pageKey:z==null?void 0:z.path,systemKey:sessionStorage.getItem("systemKey"),parentTable:"",version:1,type:"structure"},value:{pageData:le}}));await r.batchAddInsofDataApi({dataList:ce})};return e.watch(()=>u.value,async z=>{var R,x,Q,U,J,ce,oe,ie;if(z)try{const ne=(Q=(x=(R=h.value)==null?void 0:R.data)==null?void 0:x.path)==null?void 0:Q.split("/").slice(0,-1).join("/"),le=G(b.value,(U=h.value)==null?void 0:U.data,ne,(J=h.value)==null?void 0:J.type),ue=(ce=le==null?void 0:le.filter(Ee=>Ee.path!=="平台管理"))==null?void 0:ce.map(Ee=>L(Ee));await Y((oe=h.value)==null?void 0:oe.data),o.setAsideMenuLoading(!0),await Z(ue);const me=await M(m.value),ke=(me==null?void 0:me.length)===0?(ie=m.value)==null?void 0:ie.childMenus:me;o.setAsideMenus(ke)}catch(ne){throw r.ElMessage.error(ne),new Error(ne)}},{immediate:!0}),{mode:y,renderMenuList:N,clickMenu:I,openMenu:K,closeMenu:$,changeMenuStyle:O}}}),NM=t=>({comp:"MenuTop",compData:[{key:"menuContents",contents:JSON.parse(t==null?void 0:t.value.trim().replaceAll("'",'"'))}],name:""}),TM=t=>{const n=t==null?void 0:t.filter(l=>{var a;return!((a=l==null?void 0:l.key)!=null&&a.includes("("))}),o=n==null?void 0:n.find(l=>{var a;return D.IsJson(l.value.replaceAll("'",'"'))&&((a=JSON.parse(l.value.replaceAll("'",'"')))==null?void 0:a.every(s=>typeof s=="string"))});if(o)return NM(o)},_M=t=>{var a;let n=[];const o=t==null?void 0:t.filter(s=>{var i;return!((i=s==null?void 0:s.key)!=null&&i.includes("("))}),l=o==null?void 0:o.find(s=>{var i;return D.IsJson(s.value.replaceAll("'",'"'))&&!((i=JSON.parse(s.value.replaceAll("'",'"')))!=null&&i.every(c=>typeof c=="string"))});if(l)return(a=JSON.parse(l.value.replaceAll("'",'"')))==null||a.forEach(s=>{var i,c,u,d;((i=Object.keys(s))==null?void 0:i[0])==="类型"?n.push({comp:"System",compData:[{key:"type",contents:[(c=Object.values(s))==null?void 0:c[0]]}]}):((u=Object.keys(s))==null?void 0:u[0])==="名称"&&n.push({comp:"System",compData:[{key:"name",contents:[(d=Object.values(s))==null?void 0:d[0]]}]})}),n};e.ref(0);const VM=t=>{const n=[];let o=[];return t==null||t.forEach((l,a)=>{var s;(o==null?void 0:o.length)===0?o.push(l):(o.push(l),((s=t[a+1])==null?void 0:s.key)==="groupName"&&(n.push(o),o=[]))}),n.push(o),n},Bm=t=>{const n=[];let o=!1;return t.forEach(l=>{Array.isArray(l)&&(o=!0,l.forEach(a=>{const s=t.map(i=>i===l?a:i);n.push(...Bm(s))}))}),o?n:[t]},BM=D.useOriginalState(r.pinia),{originalPath:Zl}=r.storeToRefs(BM),PM=t=>{var s,i,c;const n=(s=t.map(u=>{var p,f;let d=(f=(p=u.key.split("("))==null?void 0:p[1])==null?void 0:f.trim();return d==null?void 0:d.slice(0,d.length-1)}))==null?void 0:s.filter(u=>u),o=[];n==null||n.forEach(u=>{var p,f;const d=[];if((p=qn.contentTrans(u))==null||p.forEach(h=>{var m,g,v,k,b,S,y,C,E;if(h.includes("{")&&h.includes("[")){let w=r.cloneDeep(h).split(":");h=(S=(g=(m=r.cloneDeep(w))==null?void 0:m[0])==null?void 0:g.split("{"))==null?void 0:S[((b=(k=(v=r.cloneDeep(w))==null?void 0:v[0])==null?void 0:k.split("{"))==null?void 0:b.length)-1].replaceAll("'",""),d.push(h)}else if(h.includes("{")){let w=(y=h.split(":"))==null?void 0:y[0];h=(E=w==null?void 0:w.split("{"))==null?void 0:E[((C=w==null?void 0:w.split("{"))==null?void 0:C.length)-1].replaceAll("'",""),d.push(h)}else d.push(h)}),!d.some(h=>Array.isArray(h)))o.push(d);else{let h=[];d==null||d.forEach((m,g)=>{g!==d.length-1&&h.push(m)}),(f=d==null?void 0:d[(d==null?void 0:d.length)-1])==null||f.forEach(m=>{let g=r.cloneDeep(h);g.push(m),o.push(g)})}});let l=[];o==null||o.forEach(u=>{var d;if(u!=null&&u.find(p=>p==null?void 0:p.includes("["))){let p=u==null?void 0:u.filter(h=>!(h!=null&&h.includes("["))),f=u==null?void 0:u.find(h=>h==null?void 0:h.includes("["));f=f==null?void 0:f.slice(1,(f==null?void 0:f.length)-1),(d=f==null?void 0:f.split(","))==null||d.forEach(h=>{let m=r.cloneDeep(p);m.push(h),l.push(m)})}else l.push(u)});const a=(c=(i=l.filter(u=>u.length!==0))==null?void 0:i.filter(u=>u.length!==0))==null?void 0:c.map(u=>{let d="";return u.forEach(p=>{!p.includes("{")&&!(p!=null&&p.includes("$"))&&(d=d===""?d+r.cloneDeep(p):d+"/"+r.cloneDeep(p))}),d});return qn.menuArray([...new Set(a)])},DM=t=>({comp:"Menu",compData:[{contents:PM(r.cloneDeep(t)),key:"menuContents"}],name:""}),$M=(t,n)=>{var c,u;if(!t)return;let o=[];const l=qn.getContentValue(t),a=r.cloneDeep(l).replaceAll("{","").replaceAll("}","").trim();let s=[];return a.split(":").forEach(d=>{var p;if(d.includes("[")){const f=(p=d.slice(1,d.length-1))==null?void 0:p.split(",");s.push(f)}else s.push(d)}),(c=Bm(s))==null||c.forEach(d=>{o.push(d)}),(u=o==null?void 0:o.filter(d=>d.length!==0))==null?void 0:u.map(d=>{let p="",f="",h=!0;return d.forEach(m=>{!m.includes("{")&&!(m!=null&&m.includes("$"))&&(m!=null&&m.includes("@")&&!(m!=null&&m.includes("@input"))&&!(m!=null&&m.includes("@output"))&&(m=""),p!=null&&p.includes("/")&&(n!=null&&n.includes(p))&&!(n!=null&&n.includes(p+"/"+m.trim()))&&h&&(n!=null&&n.includes(p+Zl.value))&&(h=!1),h?p=p===""?p+m.trim():m.trim()===""?p+Zl.value:m.trim().includes("@")?p+Zl.value+m.trim():p+"/"+m.trim():p=p+Zl.value+m.trim()),m!=null&&m.includes("$")&&(f=m.replaceAll("$",""))}),{path:p,parentPath:f}})},IM=t=>{let n=t;const o=[];let l="";for(const a of n)a.includes("{")||l.includes("{")||a.includes("[")||l.includes("[")||a.includes("【")||l.includes("【")||a.includes("(")||l.includes("(")||a.includes("(")||l.includes("(")||a.includes("/*")||l.includes("/*")?(l+=a.trim(),l.split("{").length-1===l.split("}").length-1&&l.split("【").length-1===l.split("】").length-1&&l.split("[").length-1===l.split("]").length-1&&l.split("(").length-1===l.split(")").length-1&&l.split("(").length-1===l.split(")").length-1&&l.split("/*").length-1===l.split("*/").length-1&&(l.match(/'/g)||[]).length%2===0&&(l==null?void 0:l[(l==null?void 0:l.length)-1])===","&&(o.push(l),l="")):(l+=a.trim(),(l==null?void 0:l[(l==null?void 0:l.length)-1])===","&&(o.push(l),l=""));return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o};let Je="$R",Ts="$/";const OM=D.useOriginalState(r.pinia),{originalPath:MM}=r.storeToRefs(OM),Ru=(t,n)=>{var i,c,u,d,p,f,h,m,g,v,k,b,S,y,C,E,w,V,T,N,_,P,B;let o;if(o=(c=(i=t==null?void 0:t.replace("[",Je))==null?void 0:i.split(Je))==null?void 0:c[1],!o)return;const l=o.lastIndexOf("]"),a=o.substring(0,l)+Je+o.substring(l+1);o=(d=(u=a==null?void 0:a.split(Je))==null?void 0:u[0])==null?void 0:d.replaceAll("'",""),o=(o==null?void 0:o[0])===":"?'""'+o:o,n!=null&&n.includes("#")&&(o!=null&&o.includes("[")?o=((f=(p=n==null?void 0:n.split("#"))==null?void 0:p[0])==null?void 0:f.replaceAll("'",""))+"#("+o+")":o=((m=(h=n==null?void 0:n.split("#"))==null?void 0:h[0])==null?void 0:m.replaceAll("'",""))+"#"+o);let s=(E=(C=(y=(S=(v=(g=r.cloneDeep(t))==null?void 0:g.replace("(",Je))==null?void 0:v.split(Je))==null?void 0:S[((b=(k=t==null?void 0:t.replace("(",Je))==null?void 0:k.split(Je))==null?void 0:b.length)-1])==null?void 0:y.replace(")",Je))==null?void 0:C.split(Je))==null?void 0:E[0].replaceAll(":","/").replaceAll("'","");if(o.includes(":")&&!o.includes(":[")&&((V=s==null?void 0:s.split("/"))==null?void 0:V[((w=s==null?void 0:s.split("/"))==null?void 0:w.length)-1])!==""?o=o+"["+s+"]":o=o+"["+s+"]()",n!=null&&n.includes("#")&&((N=Te.contentTransArrayToAllNoExtra((T=n==null?void 0:n.split("#"))==null?void 0:T[1],"/"))==null?void 0:N.length)>1){let A=(_=n==null?void 0:n.split("#"))==null?void 0:_[1],j=[];(B=(P=Te.contentTransArrayToAllNoExtra(A,"/"))==null?void 0:P.filter(M=>!(M!=null&&M.includes("("))))==null||B.forEach(M=>{M!=null&&M[(M==null?void 0:M.length)-1]?j.push(M.slice(0,(M==null?void 0:M.length)-1).replaceAll("'","")):j.push(M.replaceAll("'",""))}),o=o+"&&#"+j.join(Ts)}return o},xM=t=>{var s;let n=t;const o=[];let l="",a=0;for(const i of n)a++,i.includes("(")||l.includes("(")||i.includes(")")||l.includes(")")||i.includes("&")||l.includes("&")||i.includes("|")||l.includes("|")?(l+=i.trim(),((s=r.cloneDeep(l))==null?void 0:s[(l==null?void 0:l.length)-1])===")"||r.cloneDeep(l).includes("||")||r.cloneDeep(l).includes("&&")?(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l=""):a===(t==null?void 0:t.length)&&(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):(l+=i.trim(),o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="");return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o},AM=t=>{var a;let n=(a=xM(t))==null?void 0:a.map(s=>(s!=null&&s.includes("(")&&(s="("+(s==null?void 0:s.replaceAll("(",""))),s)),o=[],l={};return n==null||n.forEach((s,i)=>{var c,u;if(s!=null&&s.includes("(")){let d=(c=s.slice(1,(s==null?void 0:s.length)-1))==null?void 0:c.split("#"),p=d[0].replaceAll("'",""),f=(u=d[1])==null?void 0:u.replaceAll("'","");(p==null?void 0:p[(p==null?void 0:p.length)-1])!=="!"?l[p]=f:l[p==null?void 0:p.slice(0,(p==null?void 0:p.length)-1)]="!"+f}else s==="&&"||s==="||"&&(o.push(l),l={});i===n.length-1&&(o.push(l),l={})}),o},zM=t=>{var o,l;let n=(l=(o=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1))==null?void 0:o.split(","))==null?void 0:l.map(a=>{var s,i,c,u,d;return(d=(u=(c=(i=(s=a==null?void 0:a.split("=="))==null?void 0:s[0])==null?void 0:i.replaceAll("'",""))==null?void 0:c.split("#"))==null?void 0:u[0])==null?void 0:d.trim()});return n=JSON.stringify(n),n},_s=t=>{let n=r.cloneDeep(t),o=[],l="",a="",s=(n==null?void 0:n[0])==="["?Te.newContentTransArrayToAllNoExtra(n.slice(1,n.length-1),","):Te.newContentTransArrayToAllNoExtra(n,",");return s==null||s.forEach((i,c)=>{var d,p,f,h,m,g,v,k;let u=i;if(u[u.length-1]===","&&(u=u.slice(0,u.length-1)),u.slice(1,(u==null?void 0:u.length)-1).includes("[")&&(u==null?void 0:u[0])==="["){let b=_s(u);if((s==null?void 0:s.length)===2&&((p=s==null?void 0:s[0])==null?void 0:p[((d=s==null?void 0:s[0])==null?void 0:d.length)-1])===":"){let S=s[c-1].replaceAll(",","").trim();S[S.length-1]===":"&&(S=S.slice(0,S.length-1));let y=(f=_s(u))==null?void 0:f.parentStringContent;y="["+((h=y==null?void 0:y.slice(0,(y==null?void 0:y.length)-1))==null?void 0:h.replaceAll("'",'"'))+"]";let C={[S]:y};o.push(C)}else a=a+u+",";l=l+(b==null?void 0:b.stringContent),a=a+(b==null?void 0:b.parentStringContent),o=[...o,...b==null?void 0:b.parentColumns]}else if((u==null?void 0:u[0])!=="["&&u[u.length-1]===":")u=u.slice(0,u.length-1),l=l+u+",",a=a+((m=u==null?void 0:u.split("#"))==null?void 0:m[0])+",";else if((u==null?void 0:u[0])==="["&&s[c-1]){(v=(g=u==null?void 0:u.slice(1,(u==null?void 0:u.length)-1))==null?void 0:g.split(","))==null||v.forEach(y=>{l=l+y+","});let b=s[c-1].replaceAll(",","").trim();b[b.length-1]===":"&&(b=b.slice(0,b.length-1));let S={[b]:zM(u)};o.push(S)}else l=l+u+",",a=a+((k=u==null?void 0:u.split("#"))==null?void 0:k[0])+","}),{parentColumns:o,stringContent:l,parentStringContent:a}},Da=t=>{var f,h,m,g,v,k,b,S,y,C,E,w,V,T,N,_,P,B,A,j,M,I,K,$,O,q,F,X,L,G,Z,ee,Y,z;((f=t==null?void 0:t.split("["))==null?void 0:f.length)!==((h=t==null?void 0:t.split("]"))==null?void 0:h.length)&&(t=t.replace(":[[","]:[["));let n=Te.checkIsShowTable(t)?(m=Te.contentTransArray(r.cloneDeep(t)))==null?void 0:m[0]:"[]";const o=Te.checkIsShowTable(t)?"["+((g=Te.contentTransArray(r.cloneDeep(t)))==null?void 0:g[2])+"]":"["+t+"]";let l=[],a=[],s="",i=[],c=[],u=[];const d=(k=(v=o==null?void 0:o.trim())==null?void 0:v.slice(1,(o==null?void 0:o.trim().length)-1))==null?void 0:k.replaceAll("'",'"');D.IsJson(d)?l=JSON.parse(d):D.IsJson((y=(S=(b=d==null?void 0:d.split("}"))==null?void 0:b[0])==null?void 0:S.replace(":",""))==null?void 0:y.replaceAll("\\","\\\\"))&&(l=JSON.parse((w=(E=(C=d==null?void 0:d.split("}"))==null?void 0:C[0])==null?void 0:E.replace(":",""))==null?void 0:w.replaceAll("\\","\\\\"))),l=l!=null&&l.every(R=>Array.isArray(R)&&R.every(x=>Array.isArray(x)))?l==null?void 0:l[0]:l;let p=IM(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));if(p!=null&&p.some(R=>(R==null?void 0:R[0])==="["&&(R==null?void 0:R.includes("]#")))){let R=[];p==null||p.forEach(x=>{var Q,U,J,ce,oe,ie,ne,le,ue,me;if((x==null?void 0:x[0])==="["&&(x!=null&&x.includes("]#"))){let ke=(Q=x==null?void 0:x.split("#"))==null?void 0:Q[1];s=(le=(ne=(ie=(oe=(ce=(J=(U=ke==null?void 0:ke.replace("(",Je))==null?void 0:U.split(Je))==null?void 0:J[1])==null?void 0:ce.replace(")",Je))==null?void 0:oe.split(Je))==null?void 0:ie[0])==null?void 0:ne.replaceAll(":","/"))==null?void 0:le.replaceAll("'",""),s=s+((me=(ue=ke==null?void 0:ke.replace(")",Je))==null?void 0:ue.split(Je))==null?void 0:me[1]),(s==null?void 0:s[(s==null?void 0:s.length)-1])===","&&(s=s.slice(0,(s==null?void 0:s.length)-1))}else R.push(x)}),n="["+(R==null?void 0:R.join(""))+"]"}if((V=Te.newContentTransArrayToAllNoExtra(n.slice(1,n.length-1),","))!=null&&V.some(R=>(R==null?void 0:R[0])==="["||R[(R==null?void 0:R.length)-1]===":")){let R=_s(n);u=R==null?void 0:R.parentColumns;let x=R==null?void 0:R.stringContent;n="["+(x==null?void 0:x.slice(0,(x==null?void 0:x.length)-1))+"]"}if(n!=null&&n.includes("(")){let R=[],x=(($=(K=(I=(M=(j=n==null?void 0:n.split("["))==null?void 0:j[((A=n==null?void 0:n.split("["))==null?void 0:A.length)-1])==null?void 0:M.split("]"))==null?void 0:I[0])==null?void 0:K.split(":"))==null?void 0:$.length)!==1,Q=(q=(O=n==null?void 0:n.replace("=",Je))==null?void 0:O.split(Je))==null?void 0:q[0];if(((F=Te.contentTransArrayToAllNoExtra(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1),","))==null?void 0:F.length)>1||x&&(Q==null?void 0:Q[(Q==null?void 0:Q.length)-1])!=="]"){let U=(X=Te.contentTransArrayToAllNoExtra(n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1),","))==null?void 0:X.map(J=>((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=r.cloneDeep(J).slice(0,(J==null?void 0:J.length)-1)),J));U==null||U.forEach(J=>{var ce,oe,ie,ne,le,ue,me,ke,Ee,Ne,Pe,_e,Me,be,he,Ve,we,$e,de;if((J==null?void 0:J[0])==="("&&(J==null?void 0:J[J.length-1])===")")i=AM(J);else if(!(J!=null&&J.includes("(")))J!=null&&J.includes("/")?R.push((ce=J==null?void 0:J.replaceAll("#","&&#"))==null?void 0:ce.replaceAll("/",Ts)):R.push(J==null?void 0:J.replaceAll("'",""));else if(J!=null&&J.includes("[")){let fe;const H=(_e=(Pe=r.cloneDeep(J))==null?void 0:Pe.replaceAll("{",""))==null?void 0:_e.replaceAll("}","");if(((be=(Me=H==null?void 0:H.split("#"))==null?void 0:Me[1])==null?void 0:be[0])==="["||H[0]==="["){let te,W="";H!=null&&H.includes("#")?(te=(he=H==null?void 0:H.split("#"))==null?void 0:he[1],W=((Ve=H==null?void 0:H.split("#"))==null?void 0:Ve[0])+"#["):(te=H,W="["),te=($e=r.cloneDeep(te))==null?void 0:$e.slice(1,((we=r.cloneDeep(te))==null?void 0:we.length)-1),(de=te==null?void 0:te.split(","))==null||de.forEach(ae=>{W=W+Ru(ae,r.cloneDeep(ae))+","}),fe=(W==null?void 0:W.slice(0,(W==null?void 0:W.length)-1))+"]"}else fe=Ru(H,r.cloneDeep(J));R.push(fe==null?void 0:fe.replaceAll('"',"'"))}else{let fe=(ue=(le=(ne=(ie=J==null?void 0:J.split(":"))==null?void 0:ie[((oe=J==null?void 0:J.split(":"))==null?void 0:oe.length)-1])==null?void 0:ne.split(")"))==null?void 0:le[0])==null?void 0:ue.replaceAll("'","");fe=fe+"["+((Ne=(Ee=(ke=J==null?void 0:J.split("("))==null?void 0:ke[((me=J==null?void 0:J.split("("))==null?void 0:me.length)-1])==null?void 0:Ee.split(")"))==null?void 0:Ne[0].replaceAll(":","/").replaceAll("'",""))+"]",R.push(fe)}}),a=R}else{let U=((ee=(Z=(G=(L=n==null?void 0:n.slice(1,n==null?void 0:n.length))==null?void 0:L.split("("))==null?void 0:G[1])==null?void 0:Z.split(")"))==null?void 0:ee[0]).replaceAll("{","").replaceAll("}","").replaceAll(":","/").replaceAll("'","");U=U.replaceAll("/[",MM.value+"[");let J=(z=(Y=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1))==null?void 0:Y.replace("[",Je))==null?void 0:z.split(Je);s=s+U+"["+(J==null?void 0:J[(J==null?void 0:J.length)-1])}}else if(!(n!=null&&n.includes("{"))&&D.IsJson(n==null?void 0:n.replaceAll("'",'"')))a=JSON.parse(n==null?void 0:n.replaceAll("'",'"'));else if(D.IsJson((N=(T=n==null?void 0:n.split("{"))==null?void 0:T[1])==null?void 0:N.replaceAll("'",'"')))a=JSON.parse((P=(_=n==null?void 0:n.split("{"))==null?void 0:_[1])==null?void 0:P.replaceAll("'",'"'));else{let R=n.slice(1,n.length-1);(B=R==null?void 0:R.split(","))==null||B.forEach(x=>{var Q,U,J,ce,oe,ie;x!=null&&x.includes("#")?x!=null&&x.includes("/")?a.push((oe=x==null?void 0:x.replaceAll("#","&&#"))==null?void 0:oe.replaceAll("/",Ts)):a.push(((U=(Q=x==null?void 0:x.split("#"))==null?void 0:Q[0])==null?void 0:U.replaceAll("'",""))+"@-"+((ce=(J=x==null?void 0:x.split("#"))==null?void 0:J[1])==null?void 0:ce.replaceAll("'",""))):a.push((ie=x.trim())==null?void 0:ie.replaceAll("'",""))})}return a=a==null?void 0:a.map(R=>R==null?void 0:R.replaceAll("'","")),{tableColumns:a,tableContents:l!=null&&l.every(R=>Array.isArray(R))?l:[l],tablePath:s,filterContents:i,childTree:c,parentColumns:u}};let Ke="$R";const RM=t=>{var o;let n="[["+t+"]]";return D.IsJson((o=n.slice(1,(n==null?void 0:n.length)-1))==null?void 0:o.replaceAll("'",'"'))},Vs=t=>{var l,a,s,i,c,u,d,p,f,h,m,g,v,k,b,S,y,C,E,w,V,T,N,_,P,B,A,j,M,I,K,$,O,q,F,X,L,G,Z,ee,Y,z,R,x,Q,U,J,ce,oe,ie,ne,le,ue,me,ke,Ee,Ne,Pe,_e,Me;let n="";t=t==null?void 0:t.replace("=",":"),t=t.replace(/:([^=]*)==/g,":");let o=t;if((Te.checkIsShowGroup(r.cloneDeep(t))!==null||Te.checkIsShowGroupForm(r.cloneDeep(t))!==null||Te.checkIsUsingGroup(t))&&(n=(s=(a=(l=r.cloneDeep(t).replace(":",Ke).split(Ke))==null?void 0:l[0])==null?void 0:a.replaceAll("'",""))==null?void 0:s.replaceAll("]",""),o=(i=r.cloneDeep(t).replace(":",Ke).split(Ke))==null?void 0:i[1]),Te.checkIsShowTable(r.cloneDeep(o).slice(1,((c=r.cloneDeep(o))==null?void 0:c.length)-1))||Te.checkForTableContents(r.cloneDeep(o).slice(1,((u=r.cloneDeep(o))==null?void 0:u.length)-1))||Te.checkIsTableCheck(o))if((o==null?void 0:o[0])!=="["&&(o==null?void 0:o[0])!=="{"&&(o="{["+o+"]:[[]]}"),((p=r.cloneDeep(o).slice(1,((d=r.cloneDeep(o))==null?void 0:d.length)-1))==null?void 0:p[1])!=="["){const be=Da(r.cloneDeep(o).slice(1,((f=r.cloneDeep(o))==null?void 0:f.length)-1));return{groupName:n,tableColumn:be==null?void 0:be.tableColumns,tableContents:be==null?void 0:be.tableContents,tableColumnPath:be==null?void 0:be.tablePath,filterContents:be==null?void 0:be.filterContents,childTree:be==null?void 0:be.childTree,parentColumns:be==null?void 0:be.parentColumns}}else if(r.cloneDeep(o).slice(1,((h=r.cloneDeep(o))==null?void 0:h.length)-1).includes("{")){let be=r.cloneDeep(o).slice(1,((m=r.cloneDeep(o))==null?void 0:m.length)-1),he=be.indexOf("{"),Ve=be.slice(he,(be==null?void 0:be.length)-he);return(v=(g=Te.contentTransArray(Ve))==null?void 0:g.filter($e=>$e==null?void 0:$e.includes("{")))==null?void 0:v.map(($e,de)=>{var H;let fe=Da(r.cloneDeep($e).slice(1,((H=r.cloneDeep($e))==null?void 0:H.length)-1));return{groupName:de===0?n:"",tableColumn:fe==null?void 0:fe.tableColumns,tableContents:fe==null?void 0:fe.tableContents,tableColumnPath:fe==null?void 0:fe.tablePath,filterContents:fe==null?void 0:fe.filterContents,childTree:fe==null?void 0:fe.childTree,parentColumns:fe==null?void 0:fe.parentColumns}})}else{const be=Da(r.cloneDeep(o).slice(1,((k=r.cloneDeep(o))==null?void 0:k.length)-1));return{groupName:n,tableColumn:be==null?void 0:be.tableColumns,tableContents:be==null?void 0:be.tableContents,tableColumnPath:be==null?void 0:be.tablePath,filterContents:be==null?void 0:be.filterContents,childTree:be==null?void 0:be.childTree,parentColumns:be==null?void 0:be.parentColumns}}else{let be=[];if(D.IsJson((b=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:b.replaceAll("'",'"')))be=[JSON.parse((S=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:S.replaceAll("'",'"'))];else if((!o.includes("(")||RM(o))&&!((o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["))if(o="[["+o+"]]",D.IsJson((y=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:y.replaceAll("'",'"')))be=JSON.parse((C=o.slice(1,(o==null?void 0:o.length)-1))==null?void 0:C.replaceAll("'",'"'));else if(o=o.slice(2,o.length-2),((V=(w=(E=o==null?void 0:o.replace(":",Ke))==null?void 0:E.split(Ke))==null?void 0:w[1])==null?void 0:V[0])!=="{"&&(o==null?void 0:o[0])!=="{"){o=((N=(T=o==null?void 0:o.replace(":",Ke))==null?void 0:T.split(Ke))==null?void 0:N[0])+":{["+((P=(_=o==null?void 0:o.replace(":",Ke))==null?void 0:_.split(Ke))==null?void 0:P[1])+"]}";const he=Vs(o);return he!=null&&he.tableColumn?{groupName:he==null?void 0:he.groupName,tableColumn:he==null?void 0:he.tableColumn,tableContents:he==null?void 0:he.tableContents,filterContents:he==null?void 0:he.filterContents,childTree:he==null?void 0:he.childTree,parentColumns:he==null?void 0:he.parentColumns}:{groupName:he==null?void 0:he.groupName,formContents:he==null?void 0:he.formContents}}else{let he=(A=(B=Te.contentTransArrayToAllNoExtra(o,","))==null?void 0:B.map(we=>we==null?void 0:we.replaceAll(",","")))==null?void 0:A.map(we=>Te.formToExtraContent(r.cloneDeep(we).slice(1,r.cloneDeep(we).length-1))),Ve=[];return(j=r.cloneDeep(he))==null||j.forEach(we=>{var $e;($e=we==null?void 0:we.formContents)==null||$e.forEach(de=>{de==null||de.forEach(fe=>{Ve.push(fe)})})}),{groupName:(M=he==null?void 0:he[0])==null?void 0:M.groupName,formContents:Ve}}else if((o==null?void 0:o[0])!=="{"&&(o==null?void 0:o[0])!=="["){let he=(O=($=(K=(I=r.cloneDeep(o))==null?void 0:I.split("]"))==null?void 0:K[0])==null?void 0:$.split("["))==null?void 0:O[1],Ve="",$e=((Z=(G=(L=(X=(F=(q=r.cloneDeep(o))==null?void 0:q.split(")"))==null?void 0:F[0])==null?void 0:X.split("("))==null?void 0:L[1])==null?void 0:G.replaceAll("[",""))==null?void 0:Z.replaceAll("]","")).replaceAll("'","").replaceAll(":","/");(ee=$e==null?void 0:$e.split("/"))==null||ee.forEach((fe,H)=>{var te;H!==((te=$e==null?void 0:$e.split("/"))==null?void 0:te.length)-1&&(Ve=Ve===""?Ve+fe:Ve+"/"+fe)});let de;return((x=(R=(z=(Y=r.cloneDeep(o))==null?void 0:Y.replace(",",Ke))==null?void 0:z.split(Ke))==null?void 0:R[1])==null?void 0:x[0])==="["&&(de=Te.getExtraContents((J=(U=(Q=r.cloneDeep(o))==null?void 0:Q.replace(",",Ke))==null?void 0:U.split(Ke))==null?void 0:J[1])),{groupName:"",extraButton:(oe=he==null?void 0:he.split(":"))==null?void 0:oe[((ce=he==null?void 0:he.split(":"))==null?void 0:ce.length)-1].replaceAll("'",""),extraPath:Ve,extraData:de}}else if((o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["&&(o=o.slice(1,(o==null?void 0:o.length)-1).replaceAll('"',"'")),(o==null?void 0:o[0])!=="["){let he;(o==null?void 0:o[1])==="["?he=o.slice(2,(o==null?void 0:o.length)-2):he=o;let Ve=(ne=(ie=Te.contentTransArray(he))==null?void 0:ie.filter($e=>$e!==","))==null?void 0:ne.map($e=>Te.formToExtraContent(r.cloneDeep($e).slice(1,r.cloneDeep($e).length-1))),we=[];return(le=r.cloneDeep(Ve))==null||le.forEach($e=>{var de;(de=$e==null?void 0:$e.formContents)==null||de.forEach(fe=>{fe==null||fe.forEach(H=>{we.push(H)})})}),{groupName:(ue=Ve==null?void 0:Ve[0])==null?void 0:ue.groupName,formContents:we}}else if((o==null?void 0:o[1])!=="["&&(o="["+o+"]"),(o==null?void 0:o[0])==="["&&(o==null?void 0:o[1])==="["){o=o.slice(1,(o==null?void 0:o.length)-1);let he=[],Ve=[];if(((ke=(me=Te.contentTransArray(o))==null?void 0:me.filter(we=>we!==","))==null?void 0:ke.length)===1){o=o.slice(1,(o==null?void 0:o.length)-1);let we=(Ne=(Ee=Te.contentTransArrayToAllNoExtra(o,","))==null?void 0:Ee.map(de=>de==null?void 0:de.replaceAll(",","")))==null?void 0:Ne.map(de=>Te.formToExtraContent(r.cloneDeep(de).slice(1,r.cloneDeep(de).length-1))),$e=[];(Pe=r.cloneDeep(we))==null||Pe.forEach(de=>{var fe;(fe=de==null?void 0:de.formContents)==null||fe.forEach(H=>{H==null||H.forEach(te=>{$e.push(te)})})}),he.push($e)}else(Me=(_e=Te.contentTransArray(o))==null?void 0:_e.filter(we=>we!==","))==null||Me.forEach(we=>{var $e,de,fe,H;if(!we.includes("&"))Array.isArray(Vl(we))||he.push(($e=Vl(we))==null?void 0:$e.formContents);else{let te=(H=(fe=(de=r.cloneDeep(we))==null?void 0:de.split("&"))==null?void 0:fe[1])==null?void 0:H.replaceAll("'",'"');D.IsJson(te)&&Ve.push({[JSON.parse(te)[0]]:JSON.parse(te)})}});return{groupName:n,formContents:he,formGroup:Ve}}return{groupName:n,formContents:be}}},Vl=t=>{var a,s,i,c,u,d,p;let n=!1,o=[],l=Te.checkIsShowGroup(t.slice(1,r.cloneDeep(t).length-1))!==null||Te.checkIsShowGroupForm(t.slice(1,r.cloneDeep(t).length-1))!==null;if(l){let f=(c=(a=r.cloneDeep(t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)).replace(":",Ke).split(Ke))==null?void 0:a[1])==null?void 0:c.slice(1,((i=(s=r.cloneDeep(t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)).replace(":",Ke).split(Ke))==null?void 0:s[1])==null?void 0:i.length)-1);(f==null?void 0:f[0])==="["&&(f==null?void 0:f[1])==="["&&(f=f.slice(1,(f==null?void 0:f.length)-1));let h=(u=Te.contentTransArrayToAllNoExtra(f,","))==null?void 0:u.map(m=>((m==null?void 0:m[(m==null?void 0:m.length)-1])===","&&(m=m==null?void 0:m.slice(0,(m==null?void 0:m.length)-1)),m));h!=null&&h.every(m=>Te.checkIsShowGroup(m.slice(1,r.cloneDeep(m).length-1))!==null||Te.checkIsShowGroupForm(m.slice(1,r.cloneDeep(m).length-1))!==null)&&(n=!0)}return l&&n?((d=qr(t))==null||d.forEach(f=>{o.push(f)}),o):((p=Te.contentTransArray(t))==null?void 0:p.length)===1?Vs(r.cloneDeep(t).slice(1,r.cloneDeep(t).length-1)):Vs(r.cloneDeep(t).slice(1,r.cloneDeep(t).length))},qr=(t,n=0)=>{var d,p,f,h,m;let o=t.slice(1,r.cloneDeep(t).length-1),l=(p=(d=r.cloneDeep(o).replace(":",Ke).split(Ke))==null?void 0:d[0])==null?void 0:p.replaceAll("'",""),a=(f=r.cloneDeep(o).replace(":",Ke).split(Ke))==null?void 0:f[1],s=[],i=!1;a=a==null?void 0:a.slice(1,(a==null?void 0:a.length)-1);let c=(h=Te.contentTransArrayToAllNoExtra(a,","))==null?void 0:h.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));if(c!=null&&c.every(g=>Te.checkIsShowGroup(g.slice(1,r.cloneDeep(g).length-1))!==null||Te.checkIsShowGroupForm(g.slice(1,r.cloneDeep(g).length-1))!==null||Te.checkIsQuote(g)!==null)&&(i=!0),!i)s=qr(a,n+1);else{let g=[];c!=null&&c.every(v=>Te.checkIsQuote(v)!==null)?g=c:g=(m=Te.contentTransArray(a))==null?void 0:m.filter(v=>v!==","),g==null||g.forEach(v=>{var C,E,w,V,T;let k=v.slice(1,r.cloneDeep(v).length-1),b=(V=(C=r.cloneDeep(k).replace(":",Ke).split(Ke))==null?void 0:C[1])==null?void 0:V.slice(1,((w=(E=r.cloneDeep(k).replace(":",Ke).split(Ke))==null?void 0:E[1])==null?void 0:w.length)-1);(b==null?void 0:b[0])==="["&&(b==null?void 0:b[1])==="["&&(b=b.slice(1,(b==null?void 0:b.length)-1));let S=(T=Te.contentTransArrayToAllNoExtra(b,","))==null?void 0:T.map(N=>((N==null?void 0:N[(N==null?void 0:N.length)-1])===","&&(N=N==null?void 0:N.slice(0,(N==null?void 0:N.length)-1)),N));(S==null?void 0:S.every(N=>Te.checkIsShowGroup(N.slice(1,r.cloneDeep(N).length-1))!==null||Te.checkIsShowGroupForm(N.slice(1,r.cloneDeep(N).length-1))!==null))?s=[...s,...qr(v,n+1)]:s=[...s,...Pm(v)]})}return s==null?void 0:s.map(g=>(g["groupName"+n]=l,g))},Pm=t=>{var o,l,a;let n=[];if((t==null?void 0:t[0])==="["&&(t==null?void 0:t[1])==="["){let s=(o=Te.contentTransArray(t))==null?void 0:o.filter(i=>i!==",");s==null||s.forEach(i=>{n.push(Vl(i))})}else{let s=(a=(l=Te.newContentTransArrayToAllNoExtra(t,","))==null?void 0:l.filter(i=>i!==","))==null?void 0:a.map(i=>(i[(i==null?void 0:i.length)-1]===","&&(i=i.slice(0,(i==null?void 0:i.length)-1)),i));s==null||s.forEach(i=>{var d,p,f;let c=!1,u=Te.checkIsShowGroup(i.slice(1,r.cloneDeep(i).length-1))!==null||Te.checkIsShowGroupForm(i.slice(1,r.cloneDeep(i).length-1))!==null;if(u){let h=(d=r.cloneDeep(i==null?void 0:i.slice(1,(i==null?void 0:i.length)-1)).replace(":",Ke).split(Ke))==null?void 0:d[1];(h==null?void 0:h[0])==="["&&(h==null?void 0:h[1])==="["&&(h=h.slice(1,(h==null?void 0:h.length)-1));let m=(p=Te.contentTransArrayToAllNoExtra(h,","))==null?void 0:p.map(g=>((g==null?void 0:g[(g==null?void 0:g.length)-1])===","&&(g=g==null?void 0:g.slice(0,(g==null?void 0:g.length)-1)),g));m!=null&&m.every(g=>Te.checkIsShowGroup(g.slice(1,r.cloneDeep(g).length-1))!==null||Te.checkIsShowGroupForm(g.slice(1,r.cloneDeep(g).length-1))!==null||Te.checkIsQuote(g)!==null)&&(c=!0)}u&&c?(f=qr(i))==null||f.forEach(h=>{n.push(h)}):n.push(Vl(i))})}return n},ol=e.ref(0);let Ql="$R";const LM=D.useOriginalState(r.pinia),{originalPath:er}=r.storeToRefs(LM),FM=(t,n)=>{var a;let o=[],l=n==null?void 0:n.length;return(a=r.cloneDeep(n))==null||a.forEach((s,i)=>{let c=[];s==null||s.forEach(u=>{var d,p,f,h,m,g,v,k,b,S;if(c.push(r.cloneDeep(u)),D.IsJson(r.cloneDeep(t.trim()).replaceAll("'",'"'))&&((d=JSON.parse(r.cloneDeep(t.trim()).replaceAll("'",'"')))!=null&&d.every(y=>typeof y=="string")))(p=JSON.parse(r.cloneDeep(t.trim()).replaceAll("'",'"')))==null||p.forEach(y=>{var C,E,w;o.push([{key:(C=r.cloneDeep(u))==null?void 0:C.key,value:((E=r.cloneDeep(u))==null?void 0:E.value)+"/"+y,parentPath:(w=r.cloneDeep(u))==null?void 0:w.parentPath}])});else{let y=[];if(((f=r.cloneDeep(t.trim()))==null?void 0:f[0])==="["&&((h=r.cloneDeep(t.trim()))==null?void 0:h[1])==="["){let C=t.trim().slice(1,((m=t.trim())==null?void 0:m.length)-1),E=Pm(C.trim());E!=null&&E.every(w=>Array.isArray(w))&&(E=E==null?void 0:E[0]),E==null||E.forEach(w=>{var V,T,N,_,P,B,A,j,M,I,K,$,O;if(w!=null&&w.tableColumn)((T=(V=Object.keys(w))==null?void 0:V.filter(q=>q==null?void 0:q.includes("groupName")))==null?void 0:T.length)===1?c.push({key:"groupName",value:w==null?void 0:w.groupName}):(_=(N=Object.keys(w))==null?void 0:N.filter(q=>q==null?void 0:q.includes("groupName")))==null||_.forEach((q,F)=>{q==="groupName"?c.push({key:q,value:w==null?void 0:w[q]}):c.push({key:"groupName"+(F-1),value:w==null?void 0:w[q]})}),c.push({key:"tableColumn",value:w==null?void 0:w.tableColumn}),c.push({key:"tableContents",value:w==null?void 0:w.tableContents}),c.push({key:"tablePath",value:(w==null?void 0:w.tableColumnPath)??""}),c.push({key:"tableFilter",value:(w==null?void 0:w.filterContents)??[]}),c.push({key:"childTree",value:(w==null?void 0:w.childTree)??[]}),c.push({key:"parentColumns",value:(w==null?void 0:w.parentColumns)??[]});else if(w!=null&&w.extraButton)c.push({key:"groupName",value:w==null?void 0:w.groupName}),c.push({key:"extraButton",value:w==null?void 0:w.extraButton,path:w==null?void 0:w.extraPath,data:w==null?void 0:w.extraData});else{let q=l===1?w==null?void 0:w.formContents:((P=w==null?void 0:w.formContents)==null?void 0:P.length)===1?(A=(B=w==null?void 0:w.formContents)==null?void 0:B[0])==null?void 0:A[i]:(j=w==null?void 0:w.formContents)==null?void 0:j[i];(q==null?void 0:q.length)>0&&(c.push({key:"groupName",value:w==null?void 0:w.groupName}),c.push({key:"formContent",value:l===1?w==null?void 0:w.formContents:((M=w==null?void 0:w.formContents)==null?void 0:M.length)===1?(K=(I=w==null?void 0:w.formContents)==null?void 0:I[0])==null?void 0:K[i]:($=w==null?void 0:w.formContents)==null?void 0:$[i]}),c.push({key:"formGroup",value:l===1?w==null?void 0:w.formGroup:(O=w==null?void 0:w.formGroup)==null?void 0:O[i]}))}})}else if(y=Vl(r.cloneDeep(t.trim())),Array.isArray(y))y==null||y.forEach(C=>{var E,w,V,T,N,_,P,B,A,j,M,I,K;if(C!=null&&C.tableColumn)((w=(E=Object.keys(C))==null?void 0:E.filter($=>$==null?void 0:$.includes("groupName")))==null?void 0:w.length)===1?c.push({key:"groupName",value:C==null?void 0:C.groupName}):(T=(V=Object.keys(C))==null?void 0:V.filter($=>$==null?void 0:$.includes("groupName")))==null||T.forEach($=>{c.push({key:$,value:C==null?void 0:C[$]})}),c.push({key:"tableColumn",value:C==null?void 0:C.tableColumn}),c.push({key:"tableContents",value:C==null?void 0:C.tableContents}),c.push({key:"tablePath",value:(C==null?void 0:C.tableColumnPath)??""}),c.push({key:"tableFilter",value:(C==null?void 0:C.filterContents)??[]}),c.push({key:"childTree",value:(C==null?void 0:C.childTree)??[]}),c.push({key:"parentColumns",value:(C==null?void 0:C.parentColumns)??[]});else if(C!=null&&C.extraButton)c.push({key:"groupName",value:C==null?void 0:C.groupName}),c.push({key:"extraButton",value:C==null?void 0:C.extraButton,path:C==null?void 0:C.extraPath,data:C==null?void 0:C.extraData});else{let $=l===1?C==null?void 0:C.formContents:((N=C==null?void 0:C.formContents)==null?void 0:N.length)===1?(P=(_=C==null?void 0:C.formContents)==null?void 0:_[0])==null?void 0:P[i]:(B=C==null?void 0:C.formContents)==null?void 0:B[i];($==null?void 0:$.length)>0&&(c.push({key:"groupName",value:C==null?void 0:C.groupName}),c.push({key:"formContent",value:l===1?C==null?void 0:C.formContents:((A=C==null?void 0:C.formContents)==null?void 0:A.length)===1?(M=(j=C==null?void 0:C.formContents)==null?void 0:j[0])==null?void 0:M[i]:(I=C==null?void 0:C.formContents)==null?void 0:I[i]}),c.push({key:"formGroup",value:l===1?C==null?void 0:C.formGroup:(K=C==null?void 0:C.formGroup)==null?void 0:K[i]}))}});else if(y!=null&&y.tableColumn)c.push({key:"groupName",value:y==null?void 0:y.groupName}),c.push({key:"tableColumn",value:y==null?void 0:y.tableColumn}),c.push({key:"tableContents",value:l!==1?[(g=y==null?void 0:y.tableContents)==null?void 0:g[i]]:y==null?void 0:y.tableContents}),c.push({key:"tableFilter",value:(y==null?void 0:y.filterContents)??[]}),c.push({key:"childTree",value:(y==null?void 0:y.childTree)??[]}),c.push({key:"parentColumns",value:(y==null?void 0:y.parentColumns)??[]});else{let C=l!==1?((v=y==null?void 0:y.formContents)==null?void 0:v.length)===1?[(b=(k=y==null?void 0:y.formContents)==null?void 0:k[0])==null?void 0:b[i]]:[(S=y==null?void 0:y.formContents)==null?void 0:S[i]]:y==null?void 0:y.formContents;(C==null?void 0:C.length)>0&&(c.push({key:"groupName",value:y==null?void 0:y.groupName}),c.push({key:"formContent",value:C}))}}}),o.push(c)}),o},KM=(t,n)=>{var s,i;const o=[],l=$M((s=r.cloneDeep(t))==null?void 0:s.key,n);return l&&(l==null?void 0:l.length)>0&&(l==null||l.forEach(c=>{o.push([{key:"contentPath",value:c==null?void 0:c.path,parentPath:c==null?void 0:c.parentPath}])})),FM((i=r.cloneDeep(t))==null?void 0:i.value,o)},Lu=t=>t.length===1&&(t==null?void 0:t[0])===void 0?[]:t,HM=(t,n,o)=>{const l=new Map;o.forEach(s=>{for(const[i,c]of Object.entries(s))try{l.set(i.replaceAll("'",""),JSON.parse(c))}catch{l.set(i,[])}});const a=s=>s.map(i=>{var d;const c={...i},u=l.get(i.label);if(u!=null&&u.length){const p=u.map(f=>n.find(h=>(h==null?void 0:h.label)===f)).filter(Boolean);c.children=(c.children||[]).concat(p)}return(d=c.children)!=null&&d.length&&(c.children=a(c.children)),c});return a(t)},jM=(t,n)=>{if(!n||(n==null?void 0:n.length)===0)return t;let o=[];n==null||n.forEach(s=>{var c,u;let i=(u=(c=Object.values(s))==null?void 0:c[0])==null?void 0:u.replaceAll("'",'"');if(D.IsJson(i)){let d=JSON.parse(i);d=d==null?void 0:d.map(p=>{var f,h;return{parent:(h=(f=Object.keys(s))==null?void 0:f[0])==null?void 0:h.replaceAll("'",""),value:p}}),o=[...o,...d]}});let l=[],a=[];return t==null||t.forEach((s,i)=>{o!=null&&o.find(c=>(c==null?void 0:c.value)===(s==null?void 0:s.label))&&(t==null?void 0:t.findIndex(c=>{var u;return(c==null?void 0:c.label)===((u=o==null?void 0:o.find(d=>(d==null?void 0:d.value)===(s==null?void 0:s.label)))==null?void 0:u.parent)}))<i?a.push(s):l.push(s)}),HM(l,a,n)},Fu=t=>{const n=t.lastIndexOf(")");return n===-1?[t,""]:[t.slice(0,n),t.slice(n+1)]},WM=t=>{var o,l;return(l=(o=r.cloneDeep(t))==null?void 0:o.map(a=>{var i,c,u;let s=[];if((i=VM(a==null?void 0:a.filter(d=>(d==null?void 0:d.key)!=="contentPath")))==null||i.forEach(d=>{var h,m,g,v,k,b,S,y,C,E,w,V,T,N,_,P,B,A,j,M,I,K,$,O,q,F,X,L,G,Z,ee,Y,z,R;let p=[];if(d.length===0)return;let f=(m=(h=d.find(x=>(x==null?void 0:x.key)==="tableColumn"))==null?void 0:h.value)==null?void 0:m.map(x=>({label:x}));if(Array.isArray(f)&&((g=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="tablePath"))!=null&&g.value&&((v=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="tablePath"))==null?void 0:v.value)!==""&&f.push({columnPath:(k=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="tablePath"))==null?void 0:k.value}),f=(b=r.cloneDeep(f))==null?void 0:b.map(x=>{var Q,U,J,ce,oe,ie,ne,le,ue,me,ke,Ee,Ne,Pe,_e,Me,be,he,Ve,we,$e,de,fe,H,te,W,ae,ge,De,ze,Fe,Le,st,je,et,pe,Ie,Se,Xe,ot,ut,wt,Mt,jt,Wt,Ut,qt,se,Ce,Ae,He,Ge,dt,lt,ft,pt,Et,re,ye,Be,xe,Ue,Ze,yt,bt,xt,Tn,cn,un,dn,fo,po,mo,ho,vo,go,yo,bo,Co,ko,wo,Eo,So,No,To,_o,Vo,Bo,Po,Do,$o,Io,Oo,Mo,xo,Ao,zo,Ro,Lo,Fo,Ko,Ho;if((Q=x==null?void 0:x.label)!=null&&Q.includes("&&#")){let Oe=(oe=(ce=(J=(U=r.cloneDeep(x==null?void 0:x.label))==null?void 0:U.split("&&#"))==null?void 0:J[1].replaceAll("'",""))==null?void 0:ce.split("$/"))==null?void 0:oe.map(qe=>({label:qe,value:qe}));return{label:(ue=(le=(ne=(ie=r.cloneDeep(x==null?void 0:x.label))==null?void 0:ie.split("&&#"))==null?void 0:ne[0].replaceAll("'",""))==null?void 0:le.split("#"))==null?void 0:ue[0],options:Oe,isRoute:((me=d.find(qe=>(qe==null?void 0:qe.key)==="tableColumn"))==null?void 0:me.isParent)??!1,formMenuSelect:(_e=(Pe=(Ne=(Ee=(ke=r.cloneDeep(x==null?void 0:x.label))==null?void 0:ke.split("["))==null?void 0:Ee[1])==null?void 0:Ne.split("]"))==null?void 0:Pe[0])==null?void 0:_e.split("/"),groupSelect:(Ve=(he=(be=(Me=r.cloneDeep(x==null?void 0:x.label).replace("#",Ql))==null?void 0:Me.split(Ql))==null?void 0:be[1])==null?void 0:he.split("["))==null?void 0:Ve[0],columnPath:(x==null?void 0:x.columnPath)??"",isRun:((we=d.find(qe=>(qe==null?void 0:qe.key)==="tableColumn"))==null?void 0:we.isRun)??!1,formType:"Select"}}else{if(($e=x==null?void 0:x.label)!=null&&$e.includes("@-"))return{label:(fe=(de=r.cloneDeep(x==null?void 0:x.label))==null?void 0:de.split("@-"))==null?void 0:fe[0],directiveLabel:(te=(H=r.cloneDeep(x==null?void 0:x.label))==null?void 0:H.split("@-"))==null?void 0:te[1],isRoute:((W=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:W.isParent)??!1,isRun:((ae=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:ae.isRun)??!1};if(x!=null&&x.label&&!((ge=x==null?void 0:x.label)!=null&&ge.includes("[")))return{label:x==null?void 0:x.label,isRoute:((De=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:De.isParent)??!1,isRun:((ze=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:ze.isRun)??!1};if(x!=null&&x.label&&((Fe=x==null?void 0:x.label)!=null&&Fe.includes(":")))if((Le=x==null?void 0:x.label)!=null&&Le.includes("#"))if((st=x==null?void 0:x.label)!=null&&st.includes("("))if(((Ce=(se=(qt=x==null?void 0:x.label)==null?void 0:qt.split("#"))==null?void 0:se[1])==null?void 0:Ce[0])==="["){let Oe=[];return(Et=(pt=(ft=(He=(Ae=x==null?void 0:x.label)==null?void 0:Ae.split("#"))==null?void 0:He[1])==null?void 0:ft.slice(1,((lt=(dt=(Ge=x==null?void 0:x.label)==null?void 0:Ge.split("#"))==null?void 0:dt[1])==null?void 0:lt.length)-1))==null?void 0:pt.split(","))==null||Et.forEach(qe=>{var jo,Wo,Uo,qo,Yo,Go,Xo;let Rl=(Yo=(qo=(Uo=(Wo=(jo=r.cloneDeep(qe))==null?void 0:jo.split("["))==null?void 0:Wo[1])==null?void 0:Uo.split("]"))==null?void 0:qo[0])==null?void 0:Yo.split("/"),Ll=(Xo=(Go=r.cloneDeep(qe))==null?void 0:Go.split("["))==null?void 0:Xo[0];Oe.push({formMenuSelect:Rl,groupSelect:Ll})}),{label:(Be=(ye=(re=r.cloneDeep(x==null?void 0:x.label))==null?void 0:re.split("#"))==null?void 0:ye[0])==null?void 0:Be.replaceAll("'",""),formMenuGroup:Oe,columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((xe=d.find(qe=>(qe==null?void 0:qe.key)==="tableColumn"))==null?void 0:xe.isParent)??!1,isRun:((Ue=d.find(qe=>(qe==null?void 0:qe.key)==="tableColumn"))==null?void 0:Ue.isRun)??!1}}else return{label:(yt=(Ze=r.cloneDeep(x==null?void 0:x.label))==null?void 0:Ze.split("#"))==null?void 0:yt[0],formMenuSelect:(dn=(un=(cn=(Tn=(xt=(bt=Fu(r.cloneDeep(x==null?void 0:x.label)))==null?void 0:bt[1])==null?void 0:xt.split("["))==null?void 0:Tn[1])==null?void 0:cn.split("]"))==null?void 0:un[0])==null?void 0:dn.split("/"),groupSelect:(ho=(mo=Fu((po=(fo=r.cloneDeep(x==null?void 0:x.label))==null?void 0:fo.split("#"))==null?void 0:po[1]))==null?void 0:mo[0])==null?void 0:ho.replace("(",""),columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((vo=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:vo.isParent)??!1,isRun:((go=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:go.isRun)??!1};else return{label:(et=(je=r.cloneDeep(x==null?void 0:x.label))==null?void 0:je.split("#"))==null?void 0:et[0],formMenuSelect:(ot=(Xe=(Se=(Ie=(pe=r.cloneDeep(x==null?void 0:x.label))==null?void 0:pe.split("["))==null?void 0:Ie[1])==null?void 0:Se.split("]"))==null?void 0:Xe[0])==null?void 0:ot.split("/"),groupSelect:(jt=(Mt=(wt=(ut=r.cloneDeep(x==null?void 0:x.label))==null?void 0:ut.split("#"))==null?void 0:wt[1])==null?void 0:Mt.split("["))==null?void 0:jt[0],columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((Wt=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Wt.isParent)??!1,isRun:((Ut=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Ut.isRun)??!1};else return{label:(No=(Co=(bo=(yo=r.cloneDeep(x==null?void 0:x.label))==null?void 0:yo.split("["))==null?void 0:bo[0])==null?void 0:Co.split(":"))==null?void 0:No[((So=(Eo=(wo=(ko=r.cloneDeep(x==null?void 0:x.label))==null?void 0:ko.split("["))==null?void 0:wo[0])==null?void 0:Eo.split(":"))==null?void 0:So.length)-1],formMenuSelect:(Po=(Bo=(Vo=(_o=(To=r.cloneDeep(x==null?void 0:x.label))==null?void 0:To.split("["))==null?void 0:_o[1])==null?void 0:Vo.split("]"))==null?void 0:Bo[0])==null?void 0:Po.split("/"),groupSelect:($o=(Do=r.cloneDeep(x==null?void 0:x.label))==null?void 0:Do.split("["))==null?void 0:$o[0],columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((Io=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Io.isParent)??!1,isRun:((Oo=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Oo.isRun)??!1};else return{label:(xo=(Mo=r.cloneDeep(x==null?void 0:x.label))==null?void 0:Mo.split("["))==null?void 0:xo[0],formMenuSelect:(Fo=(Lo=(Ro=(zo=(Ao=r.cloneDeep(x==null?void 0:x.label))==null?void 0:Ao.split("["))==null?void 0:zo[1])==null?void 0:Ro.split("]"))==null?void 0:Lo[0])==null?void 0:Fo.split("/"),columnPath:(x==null?void 0:x.columnPath)??"",isRoute:((Ko=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Ko.isParent)??!1,isRun:((Ho=d.find(Oe=>(Oe==null?void 0:Oe.key)==="tableColumn"))==null?void 0:Ho.isRun)??!1}}}),f=f==null?void 0:f.map(x=>{let Q=x;return Q.prop=x.label,Q.align="center",Q}),f=jM(f,(S=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="parentColumns"))==null?void 0:S.value),f.length!==0&&f.push({label:"操作"}),(y=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="parentColumns"))!=null&&y.value&&((E=(C=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="parentColumns"))==null?void 0:C.value)==null?void 0:E.length)>0&&(f=[f])),d!=null&&d.find(x=>(x==null?void 0:x.key)==="formContent")){const x=(w=d.find(J=>(J==null?void 0:J.key)==="formContent"))==null?void 0:w.value,Q=((V=d.find(J=>(J==null?void 0:J.key)==="formGroup"))==null?void 0:V.value)??[];let U=[];Array.isArray(x)&&x.forEach(J=>{let ce=1;Array.isArray(J)&&(J!=null&&J.every(oe=>!Array.isArray(oe)))&&(ce=J.length),J&&(Array.isArray(J)||(J=[J]),J.forEach(oe=>{Array.isArray(oe)||(oe=[oe]);let ie=[];oe==null||oe.forEach(ne=>{var le,ue,me,ke,Ee,Ne,Pe,_e,Me,be,he,Ve,we,$e,de,fe,H,te,W,ae,ge,De,ze,Fe,Le,st,je,et,pe,Ie,Se,Xe,ot,ut,wt,Mt,jt,Wt,Ut,qt,se,Ce,Ae,He,Ge,dt,lt,ft,pt,Et,re,ye,Be,xe,Ue,Ze,yt,bt,xt,Tn,cn,un,dn,fo,po,mo,ho,vo,go,yo,bo,Co,ko,wo,Eo,So,No,To,_o,Vo,Bo,Po,Do,$o,Io,Oo,Mo,xo,Ao,zo,Ro,Lo,Fo,Ko,Ho,Oe,qe,Rl,Ll,jo,Wo,Uo,qo,Yo,Go,Xo,Fi,Ki,Hi,ji;if(ol.value++,Array.isArray((le=Object.values(ne))==null?void 0:le[0]))ie.push({id:ol.value,key:(ue=Object.keys(ne))==null?void 0:ue[0],prop:(me=Object.keys(ne))==null?void 0:me[0],label:(ke=Object.keys(ne))==null?void 0:ke[0],value:"",width:Math.max(ce,oe.length),type:"Select",isMain:!!(!((Ne=(Ee=Object.values(ne))==null?void 0:Ee[0])!=null&&Ne.includes("loginUser"))&&((_e=(Pe=Object.values(ne))==null?void 0:Pe[0])!=null&&_e.includes("@"))),optionUrl:{type:"Select",selectRelateType:"自定义绑定",defaultSelect:(Me=Object.values(ne))==null?void 0:Me[0]}});else if(!((he=(be=Object.values(ne))==null?void 0:be[0])!=null&&he.includes("/")&&((we=(Ve=Object.values(ne))==null?void 0:Ve[0])!=null&&we.includes("[")))||(de=($e=Object.values(ne))==null?void 0:$e[0])!=null&&de.includes("loginUserSign"))(H=(fe=Object.values(ne))==null?void 0:fe[0])!=null&&H.includes("&&")||(W=(te=Object.values(ne))==null?void 0:te[0])!=null&&W.includes("loginUserSign")?ie.push({id:ol.value,key:(ae=Object.keys(ne))==null?void 0:ae[0],prop:(ge=Object.keys(ne))==null?void 0:ge[0],label:(De=Object.keys(ne))==null?void 0:De[0],value:!((Fe=(ze=Object.values(ne))==null?void 0:ze[0])!=null&&Fe.includes("loginUser"))&&!((st=(Le=Object.values(ne))==null?void 0:Le[0])!=null&&st.includes("loginUserSign"))&&((et=(je=Object.values(ne))==null?void 0:je[0])!=null&&et.includes("@"))?"":(Se=(Ie=(pe=Object.values(ne))==null?void 0:pe[0])==null?void 0:Ie.split("&&"))==null?void 0:Se[0],isShow:((wt=(ut=(ot=(Xe=Object.values(ne))==null?void 0:Xe[0])==null?void 0:ot.split("&&"))==null?void 0:ut[1])==null?void 0:wt.replace("#","==="))??"originalSignature",width:Math.max(ce,oe.length),isMain:!!(!((jt=(Mt=Object.values(ne))==null?void 0:Mt[0])!=null&&jt.includes("loginUser"))&&!((Ut=(Wt=Object.values(ne))==null?void 0:Wt[0])!=null&&Ut.includes("loginUserSign"))&&((se=(qt=Object.values(ne))==null?void 0:qt[0])!=null&&se.includes("@")))}):ie.push({id:ol.value,key:(Ce=Object.keys(ne))==null?void 0:Ce[0],prop:(Ae=Object.keys(ne))==null?void 0:Ae[0],label:(He=Object.keys(ne))==null?void 0:He[0],value:!((dt=(Ge=Object.values(ne))==null?void 0:Ge[0])!=null&&dt.includes("loginUser"))&&((ft=(lt=Object.values(ne))==null?void 0:lt[0])!=null&&ft.includes("@"))?"":(pt=Object.values(ne))==null?void 0:pt[0],width:Math.max(ce,oe.length),isMain:!!(!((re=(Et=Object.values(ne))==null?void 0:Et[0])!=null&&re.includes("loginUser"))&&((Be=(ye=Object.values(ne))==null?void 0:ye[0])!=null&&Be.includes("@"))&&!((Ue=(xe=Object.values(ne))==null?void 0:xe[0])!=null&&Ue.includes("#@"))),isMainUrl:(yt=(Ze=Object.values(ne))==null?void 0:Ze[0])==null?void 0:yt.includes("#@")});else{let _n;if((xt=(bt=Object.values(ne))==null?void 0:bt[0])!=null&&xt.includes("(")){let Jo;(cn=(Tn=Object.values(ne))==null?void 0:Tn[0])!=null&&cn.includes("$##")?Jo=(ho=(mo=(po=(fo=(dn=(un=Object.values(ne))==null?void 0:un[0])==null?void 0:dn.split("$##"))==null?void 0:fo[1])==null?void 0:po.split(")"))==null?void 0:mo[0])==null?void 0:ho.replaceAll("(",""):Jo=(bo=(yo=(go=(vo=Object.values(ne))==null?void 0:vo[0])==null?void 0:go.split(")"))==null?void 0:yo[0])==null?void 0:bo.replaceAll("(",""),_n=[],(Co=Te.contentTransArrayToAll(Jo,"/"))==null||Co.forEach(Yt=>{var Ui;Yt!=null&&Yt.includes("[")?_n.push((Ui=Yt==null?void 0:Yt.replace("/",":"))==null?void 0:Ui.replaceAll("/","")):_n.push(Yt==null?void 0:Yt.replaceAll("/",""))})}else(wo=(ko=Object.values(ne))==null?void 0:ko[0])!=null&&wo.includes("$##")?_n=(Vo=(_o=(To=(No=(So=(Eo=Object.values(ne))==null?void 0:Eo[0])==null?void 0:So.split("$##"))==null?void 0:No[1])==null?void 0:To.split("["))==null?void 0:_o[0])==null?void 0:Vo.split("/"):_n=($o=(Do=(Po=(Bo=Object.values(ne))==null?void 0:Bo[0])==null?void 0:Po.split("["))==null?void 0:Do[0])==null?void 0:$o.split("/");let tt;(Oo=(Io=Object.values(ne))==null?void 0:Io[0])!=null&&Oo.includes("$##")?tt=(Ro=(zo=(Ao=(xo=(Mo=Object.values(ne))==null?void 0:Mo[0])==null?void 0:xo.split("$##"))==null?void 0:Ao[1])==null?void 0:zo.split("@"))==null?void 0:Ro[0]:tt=(Ko=(Fo=(Lo=Object.values(ne))==null?void 0:Lo[0])==null?void 0:Fo.split("@"))==null?void 0:Ko[0],tt!=null&&tt.includes("(")&&(tt=(Ho=tt==null?void 0:tt.split(")"))==null?void 0:Ho[1]),tt=(qe=(Oe=tt==null?void 0:tt.replace("[",Ql))==null?void 0:Oe.split(Ql))==null?void 0:qe[1];let Fl=(Ll=(Rl=tt==null?void 0:tt.slice(0,tt.length-1))==null?void 0:Rl.split(":"))==null?void 0:Ll.map(Jo=>Jo.replaceAll("'","")),Wi=Fl;(Fl==null?void 0:Fl.length)===1&&Wi.unshift(""),ie.push({id:ol.value,key:(jo=Object.keys(ne))==null?void 0:jo[0],prop:(Wo=Object.keys(ne))==null?void 0:Wo[0],label:(Uo=Object.keys(ne))==null?void 0:Uo[0],value:"",width:Math.max(ce,oe.length),type:"Select",isMain:!!(!((Yo=(qo=Object.values(ne))==null?void 0:qo[0])!=null&&Yo.includes("loginUser"))&&((Go=Object.values(ne))==null?void 0:Go[0]).includes("@")),optionUrl:{type:"Select",selectRelateType:"关联绑定列",menuSelect:_n,groupSelect:Wi,filter:(Fi=(Xo=Object.values(ne))==null?void 0:Xo[0])!=null&&Fi.includes("$##")?(ji=(Hi=(Ki=Object.values(ne))==null?void 0:Ki[0])==null?void 0:Hi.split("$##"))==null?void 0:ji[0]:""}})}}),ie==null||ie.forEach(ne=>{U.push(ne)})}))}),p.push({key:"formFlex",contents:""}),p.push({key:"formGroup",contents:Q}),p.push({key:"formContent",contents:U}),s.push({comp:"Form",compData:r.cloneDeep(p),name:(N=(T=d.find(J=>(J==null?void 0:J.key)==="groupName"))==null?void 0:T.value)==null?void 0:N.replaceAll("'",""),isShow:!0})}else if(d!=null&&d.find(x=>(x==null?void 0:x.key)==="extraButton"))s.push({key:"extraButton",value:{method:(_=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="extraButton"))==null?void 0:_.value,value:[],path:(P=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="extraButton"))==null?void 0:P.path,data:(B=d==null?void 0:d.find(x=>(x==null?void 0:x.key)==="extraButton"))==null?void 0:B.data}});else if((f==null?void 0:f.length)!==0||((j=(A=d.find(x=>(x==null?void 0:x.key)==="tableContents"))==null?void 0:A.value)==null?void 0:j.length)>0)if(p.push({key:"header",contents:f}),p.push({key:"childTree",contents:Lu((M=d.find(x=>(x==null?void 0:x.key)==="childTree"))==null?void 0:M.value)??[]}),p.push({key:"tableContents",contents:Lu((I=d.find(x=>(x==null?void 0:x.key)==="tableContents"))==null?void 0:I.value)}),(K=f==null?void 0:f.filter(x=>(x==null?void 0:x.label)!=="操作"))!=null&&K.every(x=>(x==null?void 0:x.isRoute)===!0)&&((q=(O=($=a==null?void 0:a.find(x=>(x==null?void 0:x.key)==="contentPath"))==null?void 0:$.value)==null?void 0:O.split("/"))==null?void 0:q[0])!=="算法库"?(p.push({key:"extraButton",contents:[{label:"新建"},{label:"修改模板"},{label:"批量删除"},{label:"导入",type:"upload"},{label:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}]}),p.push({key:"rowButton",contents:[{label:"复制新增"},{label:"删除"}]})):(p.push({key:"extraButton",contents:[{label:"新增"},{label:"批量删除"},{label:"导入",type:"upload"},{label:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}]}),(F=f==null?void 0:f.filter(x=>(x==null?void 0:x.label)!=="操作"))!=null&&F.every(x=>(x==null?void 0:x.isRun)===!0)||((G=(L=(X=a==null?void 0:a.find(x=>(x==null?void 0:x.key)==="contentPath"))==null?void 0:X.value)==null?void 0:L.split("/"))==null?void 0:G[0])==="算法库"?p.push({key:"rowButton",contents:[{label:"查看"},{label:"复制新增"},{label:"编辑"},{label:"执行"},{label:"删除"}]}):p.push({key:"rowButton",contents:[{label:"查看"},{label:"复制新增"},{label:"编辑"},{label:"删除"}]})),p.push({key:"tableFilter",contents:(Z=d.find(x=>(x==null?void 0:x.key)==="tableFilter"))==null?void 0:Z.value}),((ee=d==null?void 0:d.filter(x=>{var Q;return(Q=x==null?void 0:x.key)==null?void 0:Q.includes("groupName")}))==null?void 0:ee.length)===1)s.push({comp:"Table",compData:p,name:(z=(Y=d.find(x=>(x==null?void 0:x.key)==="groupName"))==null?void 0:Y.value)==null?void 0:z.replaceAll("'",""),isShow:!0});else{let x={comp:"Table",compData:p,isShow:!0};(R=d==null?void 0:d.filter(Q=>{var U;return(U=Q==null?void 0:Q.key)==null?void 0:U.includes("groupName")}))==null||R.forEach(Q=>{x[Q.key.replace("groupName","name")]=Q.value}),s.push(x)}}),(s==null?void 0:s.length)>0)return{comp:"Group",compData:[{key:"groupContents",contents:s}],name:(c=a==null?void 0:a.find(p=>(p==null?void 0:p.key)==="contentPath"))==null?void 0:c.value,parentPath:(u=a==null?void 0:a.find(p=>(p==null?void 0:p.key)==="contentPath"))==null?void 0:u.parentPath}}))==null?void 0:l.filter(a=>a)},UM=t=>{var a,s,i;const n=(a=t.map(c=>{var d,p;let u=(p=(d=c.key.split("("))==null?void 0:d[1])==null?void 0:p.trim();return u==null?void 0:u.slice(0,u.length-1)}))==null?void 0:a.filter(c=>c),o=[];n==null||n.forEach(c=>{var d,p;const u=[];if((d=qn.contentTrans(c))==null||d.forEach(f=>{var h,m,g,v,k,b,S,y,C;if(f.includes("{")&&f.includes("[")){let E=r.cloneDeep(f).split(":");f=(b=(m=(h=r.cloneDeep(E))==null?void 0:h[0])==null?void 0:m.split("{"))==null?void 0:b[((k=(v=(g=r.cloneDeep(E))==null?void 0:g[0])==null?void 0:v.split("{"))==null?void 0:k.length)-1].replaceAll("'",""),u.push(f)}else if(f.includes("{")){let E=(S=f.split(":"))==null?void 0:S[0];f=(C=E==null?void 0:E.split("{"))==null?void 0:C[((y=E==null?void 0:E.split("{"))==null?void 0:y.length)-1].replaceAll("'",""),u.push(f)}else u.push(f)}),!u.some(f=>Array.isArray(f)))o.push(u);else{let f=[];u==null||u.forEach((h,m)=>{m!==u.length-1&&f.push(h)}),(p=u==null?void 0:u[(u==null?void 0:u.length)-1])==null||p.forEach(h=>{let m=r.cloneDeep(f);m.push(h),o.push(m)})}});const l=(i=(s=o.filter(c=>c.length!==0))==null?void 0:s.filter(c=>c.length!==0))==null?void 0:i.map(c=>{let u="";return c.forEach(d=>{!d.includes("{")&&!(d!=null&&d.includes("$"))&&(u=u===""?u+r.cloneDeep(d):u+"/"+r.cloneDeep(d))}),u});return[...new Set(l)]},qM=t=>{var p,f,h,m;let n=[];const o=UM(r.cloneDeep(t)),l=DM(r.cloneDeep(t));n.push(l);const a=TM(r.cloneDeep(t));a&&n.push(a);const s=_M(r.cloneDeep(t));s&&((p=r.cloneDeep(s))==null||p.forEach(g=>{n.push(g)}));const i=(f=r.cloneDeep(t))==null?void 0:f.filter(g=>{var v;return(v=g==null?void 0:g.key)==null?void 0:v.includes("(")}).map(g=>KM(g,o)).filter(g=>(g==null?void 0:g.length)!==0);let c=[];i==null||i.forEach(g=>{g==null||g.forEach(v=>{c!=null&&c.find(k=>{var b,S;return((b=k==null?void 0:k.find(y=>(y==null?void 0:y.key)==="contentPath"))==null?void 0:b.value)===((S=v==null?void 0:v.find(y=>(y==null?void 0:y.key)==="contentPath"))==null?void 0:S.value)})?c=c==null?void 0:c.map(k=>{var S,y;return((S=k==null?void 0:k.find(C=>(C==null?void 0:C.key)==="contentPath"))==null?void 0:S.value)===((y=v==null?void 0:v.find(C=>(C==null?void 0:C.key)==="contentPath"))==null?void 0:y.value)&&(k=[...k,...v.filter(C=>(C==null?void 0:C.key)!=="contentPath")]),k}):c.push(v)})});let u=(h=r.cloneDeep(i))==null?void 0:h.map(g=>{var v,k;return(k=(v=g==null?void 0:g[0])==null?void 0:v.find(b=>(b==null?void 0:b.key)==="contentPath"))==null?void 0:k.value}),d=[];return u==null||u.forEach(g=>{u!=null&&u.includes(g+er.value)&&d.push(g+"/")}),c=(m=r.cloneDeep(c))==null?void 0:m.map(g=>{var k,b,S;let v=(k=g==null?void 0:g.find(y=>(y==null?void 0:y.key)==="contentPath"))==null?void 0:k.value;return(b=r.cloneDeep(u))!=null&&b.find(y=>y===v+er.value)?g=g==null?void 0:g.map(y=>((y==null?void 0:y.key)==="tableColumn"&&(y.isParent=!0),y)):(v==null?void 0:v[(v==null?void 0:v.length)-1])===er.value?g=g==null?void 0:g.map(y=>((y==null?void 0:y.key)==="tableColumn"&&(g!=null&&g.find(C=>(C==null?void 0:C.key)==="groupName"&&(C==null?void 0:C.value)==="方法明细"))&&(y.isRun=!0),y)):((S=v==null?void 0:v.split("/"))==null?void 0:S[0])==="算法程序"?g=g==null?void 0:g.map(y=>((y==null?void 0:y.key)==="tableColumn"&&(y.isRun=!0),y)):d!=null&&d.find(y=>v.includes(y))&&(g=g==null?void 0:g.map(y=>{var C;if((y==null?void 0:y.key)==="contentPath"){let E=d==null?void 0:d.find(w=>v.includes(w)).slice(0,(d==null?void 0:d.find(w=>v.includes(w)).length)-1);y.value=y.value.replaceAll(E+"/",E+er.value),y.value=(C=y.value)==null?void 0:C.replace(/\^.+$/g,w=>w.replace(/\//g,"^"))}return y})),g}),n=[...n,...WM(c)],n},Ku=t=>{var s,i,c;let n=t;const o=[];let l="",a=0;for(const u of n)a++,u.includes("'")||l.includes("'")?(l+=u.trim(),((i=(s=r.cloneDeep(l))==null?void 0:s.split("'"))==null?void 0:i.length)===3&&((c=r.cloneDeep(l))==null?void 0:c[l.length-1])==="'"?(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l=""):a===(t==null?void 0:t.length)&&(o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="")):(l+=u.trim(),o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),l="");return(l==null?void 0:l.length)!==0&&o.push(l.replace(/\/\*[\s\S]*?\*\//g,"")),o},YM=t=>{var a,s,i;const n=(s=(a=qn.contentTransArray(r.cloneDeep(t)))==null?void 0:a.filter(c=>c!==""))==null?void 0:s.map(c=>c.replaceAll("==","#").replaceAll(",",","));let o=(i=n==null?void 0:n.filter(c=>!c.includes("/*")&&!c.includes("*/")))==null?void 0:i.map(c=>qn.parseGroupValue(c));return o=o==null?void 0:o.map(c=>{var f,h;let u=(f=Ku(r.cloneDeep(c).value))==null?void 0:f.map(m=>{var g;return(m==null?void 0:m.length)===1&&(m=(g=m==null?void 0:m.replaceAll("<","["))==null?void 0:g.replaceAll(">","]")),m}).join("");return{key:(h=Ku(r.cloneDeep(c).key))==null?void 0:h.map(m=>{var g;return(m==null?void 0:m.length)===1&&(m=(g=m==null?void 0:m.replaceAll("<","["))==null?void 0:g.replaceAll(">","]")),m}).join(""),value:u}}),qM(o)};exports._sfc_main=SM;exports.expandToNewContents=YM;exports.savePageDataAsync=EM;